source: ThirdParty/HSL/trunk/configure @ 183

Last change on this file since 183 was 183, checked in by andreasw, 15 years ago

reran autotools

  • Property svn:executable set to *
File size: 702.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyHSL 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyHSL'
431PACKAGE_TARNAME='thirdpartyhsl'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyHSL 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="configure.ac"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL 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 LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyHSL 0.0 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyHSL 0.0:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-hsl compile this project (HSL) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS (default: disabled)
1077  --enable-static[=PKGS]
1078                          build static libraries [default=no]
1079  --disable-dependency-tracking  speeds up one-time build
1080  --enable-dependency-tracking   do not reject slow dependency extractors
1081  --enable-maintainer-mode  enable make rules and dependencies not useful
1082                          (and sometimes confusing) to the casual installer
1083  --enable-shared[=PKGS]
1084                          build shared libraries [default=yes]
1085  --enable-fast-install[=PKGS]
1086                          optimize for fast installation [default=yes]
1087  --disable-libtool-lock  avoid locking (might break parallel builds)
1088
1089Optional Packages:
1090  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1091  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1092  --with-hsl-verbosity specify the debug verbosity level for project HSL
1093  --with-hsl-checklevel specify the sanity check level for project HSL
1094  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1095  --with-pic              try to use only PIC/non-PIC objects [default=use
1096                          both]
1097  --with-tags[=TAGS]
1098                          include additional configurations [automatic]
1099
1100Some influential environment variables:
1101  CDEFS       Additional -D flags to be used when compiling C code.
1102  ADD_CFLAGS  Additional C compiler options
1103  DBG_CFLAGS  Debug C compiler options
1104  OPT_CFLAGS  Optimize C compiler options
1105  CC          C compiler command
1106  CFLAGS      C compiler flags
1107  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1108              nonstandard directory <lib dir>
1109  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1110              headers in a nonstandard directory <include dir>
1111  MPICC       C MPI Compiler
1112  ADD_FFLAGS  Additional Fortran compiler options
1113  DBG_FFLAGS  Debug Fortran compiler options
1114  OPT_FFLAGS  Optimize Fortran compiler options
1115  F77         Fortran 77 compiler command
1116  FFLAGS      Fortran 77 compiler flags
1117  MPIF77      Fortran MPI Compiler
1118  CPP         C preprocessor
1119  CXX         C++ compiler command
1120  CXXFLAGS    C++ compiler flags
1121  CXXCPP      C++ preprocessor
1122
1123Use these variables to override the choices made by `configure' or to help
1124it to find libraries and programs with nonstandard names/locations.
1125
1126Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1127_ACEOF
1128fi
1129
1130if test "$ac_init_help" = "recursive"; then
1131  # If there are subdirs, report their specific --help.
1132  ac_popdir=`pwd`
1133  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1134    test -d $ac_dir || continue
1135    ac_builddir=.
1136
1137if test "$ac_dir" != .; then
1138  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1139  # A "../" for each directory in $ac_dir_suffix.
1140  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1141else
1142  ac_dir_suffix= ac_top_builddir=
1143fi
1144
1145case $srcdir in
1146  .)  # No --srcdir option.  We are building in place.
1147    ac_srcdir=.
1148    if test -z "$ac_top_builddir"; then
1149       ac_top_srcdir=.
1150    else
1151       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1152    fi ;;
1153  [\\/]* | ?:[\\/]* )  # Absolute path.
1154    ac_srcdir=$srcdir$ac_dir_suffix;
1155    ac_top_srcdir=$srcdir ;;
1156  *) # Relative path.
1157    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1158    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1159esac
1160
1161# Do not use `cd foo && pwd` to compute absolute paths, because
1162# the directories may not exist.
1163case `pwd` in
1164.) ac_abs_builddir="$ac_dir";;
1165*)
1166  case "$ac_dir" in
1167  .) ac_abs_builddir=`pwd`;;
1168  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1169  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1170  esac;;
1171esac
1172case $ac_abs_builddir in
1173.) ac_abs_top_builddir=${ac_top_builddir}.;;
1174*)
1175  case ${ac_top_builddir}. in
1176  .) ac_abs_top_builddir=$ac_abs_builddir;;
1177  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1178  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1179  esac;;
1180esac
1181case $ac_abs_builddir in
1182.) ac_abs_srcdir=$ac_srcdir;;
1183*)
1184  case $ac_srcdir in
1185  .) ac_abs_srcdir=$ac_abs_builddir;;
1186  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1187  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1188  esac;;
1189esac
1190case $ac_abs_builddir in
1191.) ac_abs_top_srcdir=$ac_top_srcdir;;
1192*)
1193  case $ac_top_srcdir in
1194  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1195  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1196  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1197  esac;;
1198esac
1199
1200    cd $ac_dir
1201    # Check for guested configure; otherwise get Cygnus style configure.
1202    if test -f $ac_srcdir/configure.gnu; then
1203      echo
1204      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1205    elif test -f $ac_srcdir/configure; then
1206      echo
1207      $SHELL $ac_srcdir/configure  --help=recursive
1208    elif test -f $ac_srcdir/configure.ac ||
1209           test -f $ac_srcdir/configure.in; then
1210      echo
1211      $ac_configure --help
1212    else
1213      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1214    fi
1215    cd $ac_popdir
1216  done
1217fi
1218
1219test -n "$ac_init_help" && exit 0
1220if $ac_init_version; then
1221  cat <<\_ACEOF
1222ThirdPartyHSL configure 0.0
1223generated by GNU Autoconf 2.59
1224
1225Copyright (C) 2003 Free Software Foundation, Inc.
1226This configure script is free software; the Free Software Foundation
1227gives unlimited permission to copy, distribute and modify it.
1228
1229
1230Copyright 2006 International Business Machines and others.
1231All Rights Reserved.
1232This file is part of the open source package Coin which is distributed
1233under the Common Public License.
1234_ACEOF
1235  exit 0
1236fi
1237exec 5>config.log
1238cat >&5 <<_ACEOF
1239This file contains any messages produced by compilers while
1240running configure, to aid debugging if configure makes a mistake.
1241
1242It was created by ThirdPartyHSL $as_me 0.0, which was
1243generated by GNU Autoconf 2.59.  Invocation command line was
1244
1245  $ $0 $@
1246
1247_ACEOF
1248{
1249cat <<_ASUNAME
1250## --------- ##
1251## Platform. ##
1252## --------- ##
1253
1254hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1255uname -m = `(uname -m) 2>/dev/null || echo unknown`
1256uname -r = `(uname -r) 2>/dev/null || echo unknown`
1257uname -s = `(uname -s) 2>/dev/null || echo unknown`
1258uname -v = `(uname -v) 2>/dev/null || echo unknown`
1259
1260/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1261/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1262
1263/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1264/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1265/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1266hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1267/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1268/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1269/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1270
1271_ASUNAME
1272
1273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274for as_dir in $PATH
1275do
1276  IFS=$as_save_IFS
1277  test -z "$as_dir" && as_dir=.
1278  echo "PATH: $as_dir"
1279done
1280
1281} >&5
1282
1283cat >&5 <<_ACEOF
1284
1285
1286## ----------- ##
1287## Core tests. ##
1288## ----------- ##
1289
1290_ACEOF
1291
1292
1293# Keep a trace of the command line.
1294# Strip out --no-create and --no-recursion so they do not pile up.
1295# Strip out --silent because we don't want to record it for future runs.
1296# Also quote any args containing shell meta-characters.
1297# Make two passes to allow for proper duplicate-argument suppression.
1298ac_configure_args=
1299ac_configure_args0=
1300ac_configure_args1=
1301ac_sep=
1302ac_must_keep_next=false
1303for ac_pass in 1 2
1304do
1305  for ac_arg
1306  do
1307    case $ac_arg in
1308    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1309    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310    | -silent | --silent | --silen | --sile | --sil)
1311      continue ;;
1312    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1314    esac
1315    case $ac_pass in
1316    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1317    2)
1318      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1319      if test $ac_must_keep_next = true; then
1320        ac_must_keep_next=false # Got value, back to normal.
1321      else
1322        case $ac_arg in
1323          *=* | --config-cache | -C | -disable-* | --disable-* \
1324          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1325          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1326          | -with-* | --with-* | -without-* | --without-* | --x)
1327            case "$ac_configure_args0 " in
1328              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1329            esac
1330            ;;
1331          -* ) ac_must_keep_next=true ;;
1332        esac
1333      fi
1334      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1335      # Get rid of the leading space.
1336      ac_sep=" "
1337      ;;
1338    esac
1339  done
1340done
1341$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1342$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1343
1344# When interrupted or exit'd, cleanup temporary files, and complete
1345# config.log.  We remove comments because anyway the quotes in there
1346# would cause problems or look ugly.
1347# WARNING: Be sure not to use single quotes in there, as some shells,
1348# such as our DU 5.0 friend, will then `close' the trap.
1349trap 'exit_status=$?
1350  # Save into config.log some information that might help in debugging.
1351  {
1352    echo
1353
1354    cat <<\_ASBOX
1355## ---------------- ##
1356## Cache variables. ##
1357## ---------------- ##
1358_ASBOX
1359    echo
1360    # The following way of writing the cache mishandles newlines in values,
1361{
1362  (set) 2>&1 |
1363    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1364    *ac_space=\ *)
1365      sed -n \
1366        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1367          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1368      ;;
1369    *)
1370      sed -n \
1371        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1372      ;;
1373    esac;
1374}
1375    echo
1376
1377    cat <<\_ASBOX
1378## ----------------- ##
1379## Output variables. ##
1380## ----------------- ##
1381_ASBOX
1382    echo
1383    for ac_var in $ac_subst_vars
1384    do
1385      eval ac_val=$`echo $ac_var`
1386      echo "$ac_var='"'"'$ac_val'"'"'"
1387    done | sort
1388    echo
1389
1390    if test -n "$ac_subst_files"; then
1391      cat <<\_ASBOX
1392## ------------- ##
1393## Output files. ##
1394## ------------- ##
1395_ASBOX
1396      echo
1397      for ac_var in $ac_subst_files
1398      do
1399        eval ac_val=$`echo $ac_var`
1400        echo "$ac_var='"'"'$ac_val'"'"'"
1401      done | sort
1402      echo
1403    fi
1404
1405    if test -s confdefs.h; then
1406      cat <<\_ASBOX
1407## ----------- ##
1408## confdefs.h. ##
1409## ----------- ##
1410_ASBOX
1411      echo
1412      sed "/^$/d" confdefs.h | sort
1413      echo
1414    fi
1415    test "$ac_signal" != 0 &&
1416      echo "$as_me: caught signal $ac_signal"
1417    echo "$as_me: exit $exit_status"
1418  } >&5
1419  rm -f core *.core &&
1420  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1421    exit $exit_status
1422     ' 0
1423for ac_signal in 1 2 13 15; do
1424  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1425done
1426ac_signal=0
1427
1428# confdefs.h avoids OS command line length limits that DEFS can exceed.
1429rm -rf conftest* confdefs.h
1430# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1431echo >confdefs.h
1432
1433# Predefined preprocessor variables.
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_NAME "$PACKAGE_NAME"
1437_ACEOF
1438
1439
1440cat >>confdefs.h <<_ACEOF
1441#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1442_ACEOF
1443
1444
1445cat >>confdefs.h <<_ACEOF
1446#define PACKAGE_VERSION "$PACKAGE_VERSION"
1447_ACEOF
1448
1449
1450cat >>confdefs.h <<_ACEOF
1451#define PACKAGE_STRING "$PACKAGE_STRING"
1452_ACEOF
1453
1454
1455cat >>confdefs.h <<_ACEOF
1456#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1457_ACEOF
1458
1459
1460# Let the site file select an alternate cache file if it wants to.
1461# Prefer explicitly selected file to automatically selected ones.
1462if test -z "$CONFIG_SITE"; then
1463  if test "x$prefix" != xNONE; then
1464    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1465  else
1466    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1467  fi
1468fi
1469for ac_site_file in $CONFIG_SITE; do
1470  if test -r "$ac_site_file"; then
1471    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1472echo "$as_me: loading site script $ac_site_file" >&6;}
1473    sed 's/^/| /' "$ac_site_file" >&5
1474    . "$ac_site_file"
1475  fi
1476done
1477
1478if test -r "$cache_file"; then
1479  # Some versions of bash will fail to source /dev/null (special
1480  # files actually), so we avoid doing that.
1481  if test -f "$cache_file"; then
1482    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1483echo "$as_me: loading cache $cache_file" >&6;}
1484    case $cache_file in
1485      [\\/]* | ?:[\\/]* ) . $cache_file;;
1486      *)                      . ./$cache_file;;
1487    esac
1488  fi
1489else
1490  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1491echo "$as_me: creating cache $cache_file" >&6;}
1492  >$cache_file
1493fi
1494
1495# Check that the precious variables saved in the cache have kept the same
1496# value.
1497ac_cache_corrupted=false
1498for ac_var in `(set) 2>&1 |
1499               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1500  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1501  eval ac_new_set=\$ac_env_${ac_var}_set
1502  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1503  eval ac_new_val="\$ac_env_${ac_var}_value"
1504  case $ac_old_set,$ac_new_set in
1505    set,)
1506      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1507echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1508      ac_cache_corrupted=: ;;
1509    ,set)
1510      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1511echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1512      ac_cache_corrupted=: ;;
1513    ,);;
1514    *)
1515      if test "x$ac_old_val" != "x$ac_new_val"; then
1516        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1517echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1518        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1519echo "$as_me:   former value:  $ac_old_val" >&2;}
1520        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1521echo "$as_me:   current value: $ac_new_val" >&2;}
1522        ac_cache_corrupted=:
1523      fi;;
1524  esac
1525  # Pass precious variables to config.status.
1526  if test "$ac_new_set" = set; then
1527    case $ac_new_val in
1528    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1529      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1530    *) ac_arg=$ac_var=$ac_new_val ;;
1531    esac
1532    case " $ac_configure_args " in
1533      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1534      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1535    esac
1536  fi
1537done
1538if $ac_cache_corrupted; then
1539  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1540echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1541  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1542echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1543   { (exit 1); exit 1; }; }
1544fi
1545
1546ac_ext=c
1547ac_cpp='$CPP $CPPFLAGS'
1548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1550ac_compiler_gnu=$ac_cv_c_compiler_gnu
1551
1552
1553
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# List one file in the package so that the configure script can test
1582# whether the package is actually there
1583# Here we don't know yet which files are actually provided...
1584
1585
1586# Where should everything be installed by default?  Here, we want it
1587# to be installed directly in 'bin', 'lib', 'include' subdirectories
1588# of the directory where configure is run.  The default would be
1589# /usr/local.
1590
1591
1592# Initialize the ADDLIBS variable
1593ADDLIBS="-lm $LIBS"
1594
1595
1596# Initialize the FADDLIBS variable (which is to be used with a fortran
1597# compiler and will not include FLIBS)
1598FADDLIBS="$LIBS"
1599
1600
1601# A useful makefile conditional that is always false
1602
1603
1604if false; then
1605  ALWAYS_FALSE_TRUE=
1606  ALWAYS_FALSE_FALSE='#'
1607else
1608  ALWAYS_FALSE_TRUE='#'
1609  ALWAYS_FALSE_FALSE=
1610fi
1611
1612
1613# We set the following variable so that we know later in AC_COIN_FINALIZE
1614# that we are in a project main directory
1615coin_projectdir=yes
1616
1617
1618#############################################################################
1619#                         Standard build tool stuff                         #
1620#############################################################################
1621
1622# Get the system type
1623ac_aux_dir=
1624for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1625  if test -f $ac_dir/install-sh; then
1626    ac_aux_dir=$ac_dir
1627    ac_install_sh="$ac_aux_dir/install-sh -c"
1628    break
1629  elif test -f $ac_dir/install.sh; then
1630    ac_aux_dir=$ac_dir
1631    ac_install_sh="$ac_aux_dir/install.sh -c"
1632    break
1633  elif test -f $ac_dir/shtool; then
1634    ac_aux_dir=$ac_dir
1635    ac_install_sh="$ac_aux_dir/shtool install -c"
1636    break
1637  fi
1638done
1639if test -z "$ac_aux_dir"; then
1640  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1641echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1642   { (exit 1); exit 1; }; }
1643fi
1644ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1645ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1646ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1647
1648# Make sure we can run config.sub.
1649$ac_config_sub sun4 >/dev/null 2>&1 ||
1650  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1651echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1652   { (exit 1); exit 1; }; }
1653
1654echo "$as_me:$LINENO: checking build system type" >&5
1655echo $ECHO_N "checking build system type... $ECHO_C" >&6
1656if test "${ac_cv_build+set}" = set; then
1657  echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659  ac_cv_build_alias=$build_alias
1660test -z "$ac_cv_build_alias" &&
1661  ac_cv_build_alias=`$ac_config_guess`
1662test -z "$ac_cv_build_alias" &&
1663  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1664echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1665   { (exit 1); exit 1; }; }
1666ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1667  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1668echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1669   { (exit 1); exit 1; }; }
1670
1671fi
1672echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1673echo "${ECHO_T}$ac_cv_build" >&6
1674build=$ac_cv_build
1675build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1676build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1677build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1678
1679
1680
1681# Check if user wants to produce debugging code
1682
1683echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1684echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1685
1686# Check whether --enable-debug or --disable-debug was given.
1687if test "${enable_debug+set}" = set; then
1688  enableval="$enable_debug"
1689  case "${enableval}" in
1690   yes) coin_debug_compile=true
1691        enable_shared=no
1692        ;;
1693   no)  coin_debug_compile=false
1694        ;;
1695   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1696echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1697   { (exit 1); exit 1; }; }
1698        ;;
1699esac
1700else
1701  coin_debug_compile=false
1702fi;
1703
1704# Check whether --enable-debug-hsl or --disable-debug-hsl was given.
1705if test "${enable_debug_hsl+set}" = set; then
1706  enableval="$enable_debug_hsl"
1707  case "${enableval}" in
1708    yes) coin_debug_compile=true
1709         enable_shared=no
1710         ;;
1711    no)  coin_debug_compile=false
1712         ;;
1713    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-hsl" >&5
1714echo "$as_me: error: bad value ${enableval} for --enable-debug-hsl" >&2;}
1715   { (exit 1); exit 1; }; }
1716         ;;
1717 esac
1718else
1719  :
1720fi;
1721
1722 # m4_ifvaln([HSL],
1723
1724if test $coin_debug_compile = true; then
1725  echo "$as_me:$LINENO: result: yes" >&5
1726echo "${ECHO_T}yes" >&6
1727else
1728  echo "$as_me:$LINENO: result: no" >&5
1729echo "${ECHO_T}no" >&6
1730fi
1731
1732
1733# Check whether --with-hsl-verbosity or --without-hsl-verbosity was given.
1734if test "${with_hsl_verbosity+set}" = set; then
1735  withval="$with_hsl_verbosity"
1736  coin_hsl_verbosity=$withval
1737else
1738  coin_hsl_verbosity=0
1739fi;
1740
1741cat >>confdefs.h <<_ACEOF
1742#define COIN_HSL_VERBOSITY $coin_hsl_verbosity
1743_ACEOF
1744
1745
1746
1747# Check whether --with-hsl-checklevel or --without-hsl-checklevel was given.
1748if test "${with_hsl_checklevel+set}" = set; then
1749  withval="$with_hsl_checklevel"
1750  coin_hsl_checklevel=$withval
1751else
1752  coin_hsl_checklevel=0
1753fi;
1754
1755cat >>confdefs.h <<_ACEOF
1756#define COIN_HSL_CHECKLEVEL $coin_hsl_checklevel
1757_ACEOF
1758
1759
1760# We use the following variable to have a string with the upper case
1761# version of the project name
1762COIN_PRJCT=HSL
1763
1764
1765 # m4_ifvaln([HSL],
1766
1767
1768
1769# Get the name of the Fortran compiler and appropriate compiler options
1770case $build in
1771  *-mingw*)
1772    if test "${LD+set}" = set; then :; else
1773      LD=link
1774    fi
1775    ;;
1776esac
1777
1778# Check whether --enable-doscompile or --disable-doscompile was given.
1779if test "${enable_doscompile+set}" = set; then
1780  enableval="$enable_doscompile"
1781  if test "$enable_doscompile = yes"; then
1782  case $build in
1783    *-cygwin*) ;;
1784    *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes only sense under Cygwin" >&5
1785echo "$as_me: error: --enable-doscompile option makes only sense under Cygwin" >&2;}
1786   { (exit 1); exit 1; }; } ;;
1787  esac
1788fi
1789else
1790  enable_doscompile=no
1791fi;
1792
1793
1794
1795
1796ac_ext=c
1797ac_cpp='$CPP $CPPFLAGS'
1798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800ac_compiler_gnu=$ac_cv_c_compiler_gnu
1801
1802
1803# For consistency, we set the C compiler to the same value of the C++
1804# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1805if test x"$CXX" != x; then
1806  case "$CXX" in
1807    cl* | */cl*)
1808      if test x"$CC" = x; then
1809        CC="$CXX"
1810        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1811echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1812      fi
1813      ;;
1814  esac
1815fi
1816
1817
1818
1819
1820
1821
1822coin_has_cc=yes
1823
1824save_cflags="$CFLAGS"
1825case $build in
1826  *-cygwin* | *-mingw*)
1827             comps="gcc cl" ;;
1828  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1829  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1830esac
1831
1832# We delete the cached value, since the test might not have been
1833# performed with our choice of compilers earlier
1834$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1835ac_ext=c
1836ac_cpp='$CPP $CPPFLAGS'
1837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1839ac_compiler_gnu=$ac_cv_c_compiler_gnu
1840if test -n "$ac_tool_prefix"; then
1841  for ac_prog in $comps
1842  do
1843    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_CC+set}" = set; then
1848  echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850  if test -n "$CC"; then
1851  ac_cv_prog_CC="$CC" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856  IFS=$as_save_IFS
1857  test -z "$as_dir" && as_dir=.
1858  for ac_exec_ext in '' $ac_executable_extensions; do
1859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862    break 2
1863  fi
1864done
1865done
1866
1867fi
1868fi
1869CC=$ac_cv_prog_CC
1870if test -n "$CC"; then
1871  echo "$as_me:$LINENO: result: $CC" >&5
1872echo "${ECHO_T}$CC" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878    test -n "$CC" && break
1879  done
1880fi
1881if test -z "$CC"; then
1882  ac_ct_CC=$CC
1883  for ac_prog in $comps
1884do
1885  # Extract the first word of "$ac_prog", so it can be a program name with args.
1886set dummy $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_ac_ct_CC+set}" = set; then
1890  echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892  if test -n "$ac_ct_CC"; then
1893  ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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
1911ac_ct_CC=$ac_cv_prog_ac_ct_CC
1912if test -n "$ac_ct_CC"; then
1913  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914echo "${ECHO_T}$ac_ct_CC" >&6
1915else
1916  echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920  test -n "$ac_ct_CC" && break
1921done
1922
1923  CC=$ac_ct_CC
1924fi
1925
1926
1927test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1928See \`config.log' for more details." >&5
1929echo "$as_me: error: no acceptable C compiler found in \$PATH
1930See \`config.log' for more details." >&2;}
1931   { (exit 1); exit 1; }; }
1932
1933# Provide some information about the compiler.
1934echo "$as_me:$LINENO:" \
1935     "checking for C compiler version" >&5
1936ac_compiler=`set X $ac_compile; echo $2`
1937{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1938  (eval $ac_compiler --version </dev/null >&5) 2>&5
1939  ac_status=$?
1940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941  (exit $ac_status); }
1942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1943  (eval $ac_compiler -v </dev/null >&5) 2>&5
1944  ac_status=$?
1945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946  (exit $ac_status); }
1947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1948  (eval $ac_compiler -V </dev/null >&5) 2>&5
1949  ac_status=$?
1950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951  (exit $ac_status); }
1952
1953cat >conftest.$ac_ext <<_ACEOF
1954/* confdefs.h.  */
1955_ACEOF
1956cat confdefs.h >>conftest.$ac_ext
1957cat >>conftest.$ac_ext <<_ACEOF
1958/* end confdefs.h.  */
1959
1960int
1961main ()
1962{
1963
1964  ;
1965  return 0;
1966}
1967_ACEOF
1968ac_clean_files_save=$ac_clean_files
1969ac_clean_files="$ac_clean_files a.out a.exe b.out"
1970# Try to create an executable without -o first, disregard a.out.
1971# It will help us diagnose broken compilers, and finding out an intuition
1972# of exeext.
1973echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1974echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1975ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1976if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1977  (eval $ac_link_default) 2>&5
1978  ac_status=$?
1979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980  (exit $ac_status); }; then
1981  # Find the output, starting from the most likely.  This scheme is
1982# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1983# resort.
1984
1985# Be careful to initialize this variable, since it used to be cached.
1986# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1987ac_cv_exeext=
1988# b.out is created by i960 compilers.
1989for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1990do
1991  test -f "$ac_file" || continue
1992  case $ac_file in
1993    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1994        ;;
1995    conftest.$ac_ext )
1996        # This is the source file.
1997        ;;
1998    [ab].out )
1999        # We found the default executable, but exeext='' is most
2000        # certainly right.
2001        break;;
2002    *.* )
2003        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2004        # FIXME: I believe we export ac_cv_exeext for Libtool,
2005        # but it would be cool to find out if it's true.  Does anybody
2006        # maintain Libtool? --akim.
2007        export ac_cv_exeext
2008        break;;
2009    * )
2010        break;;
2011  esac
2012done
2013else
2014  echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
2016
2017{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2018See \`config.log' for more details." >&5
2019echo "$as_me: error: C compiler cannot create executables
2020See \`config.log' for more details." >&2;}
2021   { (exit 77); exit 77; }; }
2022fi
2023
2024ac_exeext=$ac_cv_exeext
2025echo "$as_me:$LINENO: result: $ac_file" >&5
2026echo "${ECHO_T}$ac_file" >&6
2027
2028# Check the compiler produces executables we can run.  If not, either
2029# the compiler is broken, or we cross compile.
2030echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2031echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2032# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2033# If not cross compiling, check that we can run a simple program.
2034if test "$cross_compiling" != yes; then
2035  if { ac_try='./$ac_file'
2036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037  (eval $ac_try) 2>&5
2038  ac_status=$?
2039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040  (exit $ac_status); }; }; then
2041    cross_compiling=no
2042  else
2043    if test "$cross_compiling" = maybe; then
2044        cross_compiling=yes
2045    else
2046        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2047If you meant to cross compile, use \`--host'.
2048See \`config.log' for more details." >&5
2049echo "$as_me: error: cannot run C compiled programs.
2050If you meant to cross compile, use \`--host'.
2051See \`config.log' for more details." >&2;}
2052   { (exit 1); exit 1; }; }
2053    fi
2054  fi
2055fi
2056echo "$as_me:$LINENO: result: yes" >&5
2057echo "${ECHO_T}yes" >&6
2058
2059rm -f a.out a.exe conftest$ac_cv_exeext b.out
2060ac_clean_files=$ac_clean_files_save
2061# Check the compiler produces executables we can run.  If not, either
2062# the compiler is broken, or we cross compile.
2063echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2064echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2065echo "$as_me:$LINENO: result: $cross_compiling" >&5
2066echo "${ECHO_T}$cross_compiling" >&6
2067
2068echo "$as_me:$LINENO: checking for suffix of executables" >&5
2069echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2071  (eval $ac_link) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }; then
2075  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2076# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2077# work properly (i.e., refer to `conftest.exe'), while it won't with
2078# `rm'.
2079for ac_file in conftest.exe conftest conftest.*; do
2080  test -f "$ac_file" || continue
2081  case $ac_file in
2082    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2083    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2084          export ac_cv_exeext
2085          break;;
2086    * ) break;;
2087  esac
2088done
2089else
2090  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2091See \`config.log' for more details." >&5
2092echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2093See \`config.log' for more details." >&2;}
2094   { (exit 1); exit 1; }; }
2095fi
2096
2097rm -f conftest$ac_cv_exeext
2098echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2099echo "${ECHO_T}$ac_cv_exeext" >&6
2100
2101rm -f conftest.$ac_ext
2102EXEEXT=$ac_cv_exeext
2103ac_exeext=$EXEEXT
2104echo "$as_me:$LINENO: checking for suffix of object files" >&5
2105echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2106if test "${ac_cv_objext+set}" = set; then
2107  echo $ECHO_N "(cached) $ECHO_C" >&6
2108else
2109  cat >conftest.$ac_ext <<_ACEOF
2110/* confdefs.h.  */
2111_ACEOF
2112cat confdefs.h >>conftest.$ac_ext
2113cat >>conftest.$ac_ext <<_ACEOF
2114/* end confdefs.h.  */
2115
2116int
2117main ()
2118{
2119
2120  ;
2121  return 0;
2122}
2123_ACEOF
2124rm -f conftest.o conftest.obj
2125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126  (eval $ac_compile) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }; then
2130  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2131  case $ac_file in
2132    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2133    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2134       break;;
2135  esac
2136done
2137else
2138  echo "$as_me: failed program was:" >&5
2139sed 's/^/| /' conftest.$ac_ext >&5
2140
2141{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2142See \`config.log' for more details." >&5
2143echo "$as_me: error: cannot compute suffix of object files: cannot compile
2144See \`config.log' for more details." >&2;}
2145   { (exit 1); exit 1; }; }
2146fi
2147
2148rm -f conftest.$ac_cv_objext conftest.$ac_ext
2149fi
2150echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2151echo "${ECHO_T}$ac_cv_objext" >&6
2152OBJEXT=$ac_cv_objext
2153ac_objext=$OBJEXT
2154echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2155echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2156if test "${ac_cv_c_compiler_gnu+set}" = set; then
2157  echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159  cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h.  */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h.  */
2165
2166int
2167main ()
2168{
2169#ifndef __GNUC__
2170       choke me
2171#endif
2172
2173  ;
2174  return 0;
2175}
2176_ACEOF
2177rm -f conftest.$ac_objext
2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179  (eval $ac_compile) 2>conftest.er1
2180  ac_status=$?
2181  grep -v '^ *+' conftest.er1 >conftest.err
2182  rm -f conftest.er1
2183  cat conftest.err >&5
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); } &&
2186         { ac_try='test -z "$ac_c_werror_flag"
2187                         || test ! -s conftest.err'
2188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189  (eval $ac_try) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }; } &&
2193         { ac_try='test -s conftest.$ac_objext'
2194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195  (eval $ac_try) 2>&5
2196  ac_status=$?
2197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198  (exit $ac_status); }; }; then
2199  ac_compiler_gnu=yes
2200else
2201  echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204ac_compiler_gnu=no
2205fi
2206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207ac_cv_c_compiler_gnu=$ac_compiler_gnu
2208
2209fi
2210echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212GCC=`test $ac_compiler_gnu = yes && echo yes`
2213ac_test_CFLAGS=${CFLAGS+set}
2214ac_save_CFLAGS=$CFLAGS
2215CFLAGS="-g"
2216echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218if test "${ac_cv_prog_cc_g+set}" = set; then
2219  echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221  cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h.  */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h.  */
2227
2228int
2229main ()
2230{
2231
2232  ;
2233  return 0;
2234}
2235_ACEOF
2236rm -f conftest.$ac_objext
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238  (eval $ac_compile) 2>conftest.er1
2239  ac_status=$?
2240  grep -v '^ *+' conftest.er1 >conftest.err
2241  rm -f conftest.er1
2242  cat conftest.err >&5
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); } &&
2245         { ac_try='test -z "$ac_c_werror_flag"
2246                         || test ! -s conftest.err'
2247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248  (eval $ac_try) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }; } &&
2252         { ac_try='test -s conftest.$ac_objext'
2253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254  (eval $ac_try) 2>&5
2255  ac_status=$?
2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257  (exit $ac_status); }; }; then
2258  ac_cv_prog_cc_g=yes
2259else
2260  echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263ac_cv_prog_cc_g=no
2264fi
2265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269if test "$ac_test_CFLAGS" = set; then
2270  CFLAGS=$ac_save_CFLAGS
2271elif test $ac_cv_prog_cc_g = yes; then
2272  if test "$GCC" = yes; then
2273    CFLAGS="-g -O2"
2274  else
2275    CFLAGS="-g"
2276  fi
2277else
2278  if test "$GCC" = yes; then
2279    CFLAGS="-O2"
2280  else
2281    CFLAGS=
2282  fi
2283fi
2284echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2285echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2286if test "${ac_cv_prog_cc_stdc+set}" = set; then
2287  echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289  ac_cv_prog_cc_stdc=no
2290ac_save_CC=$CC
2291cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h.  */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h.  */
2297#include <stdarg.h>
2298#include <stdio.h>
2299#include <sys/types.h>
2300#include <sys/stat.h>
2301/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2302struct buf { int x; };
2303FILE * (*rcsopen) (struct buf *, struct stat *, int);
2304static char *e (p, i)
2305     char **p;
2306     int i;
2307{
2308  return p[i];
2309}
2310static char *f (char * (*g) (char **, int), char **p, ...)
2311{
2312  char *s;
2313  va_list v;
2314  va_start (v,p);
2315  s = g (p, va_arg (v,int));
2316  va_end (v);
2317  return s;
2318}
2319
2320/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2321   function prototypes and stuff, but not '\xHH' hex character constants.
2322   These don't provoke an error unfortunately, instead are silently treated
2323   as 'x'.  The following induces an error, until -std1 is added to get
2324   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2325   array size at least.  It's necessary to write '\x00'==0 to get something
2326   that's true only with -std1.  */
2327int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2328
2329int test (int i, double x);
2330struct s1 {int (*f) (int a);};
2331struct s2 {int (*f) (double a);};
2332int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2333int argc;
2334char **argv;
2335int
2336main ()
2337{
2338return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2339  ;
2340  return 0;
2341}
2342_ACEOF
2343# Don't try gcc -ansi; that turns off useful extensions and
2344# breaks some systems' header files.
2345# AIX                   -qlanglvl=ansi
2346# Ultrix and OSF/1      -std1
2347# HP-UX 10.20 and later -Ae
2348# HP-UX older versions  -Aa -D_HPUX_SOURCE
2349# SVR4                  -Xc -D__EXTENSIONS__
2350for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2351do
2352  CC="$ac_save_CC $ac_arg"
2353  rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355  (eval $ac_compile) 2>conftest.er1
2356  ac_status=$?
2357  grep -v '^ *+' conftest.er1 >conftest.err
2358  rm -f conftest.er1
2359  cat conftest.err >&5
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); } &&
2362         { ac_try='test -z "$ac_c_werror_flag"
2363                         || test ! -s conftest.err'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; } &&
2369         { ac_try='test -s conftest.$ac_objext'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; }; then
2375  ac_cv_prog_cc_stdc=$ac_arg
2376break
2377else
2378  echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381fi
2382rm -f conftest.err conftest.$ac_objext
2383done
2384rm -f conftest.$ac_ext conftest.$ac_objext
2385CC=$ac_save_CC
2386
2387fi
2388
2389case "x$ac_cv_prog_cc_stdc" in
2390  x|xno)
2391    echo "$as_me:$LINENO: result: none needed" >&5
2392echo "${ECHO_T}none needed" >&6 ;;
2393  *)
2394    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2395echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2396    CC="$CC $ac_cv_prog_cc_stdc" ;;
2397esac
2398
2399# Some people use a C++ compiler to compile C.  Since we use `exit',
2400# in C++ we need to declare it.  In case someone uses the same compiler
2401# for both compiling C and C++ we need to have the C++ compiler decide
2402# the declaration of exit, since it's the most demanding environment.
2403cat >conftest.$ac_ext <<_ACEOF
2404#ifndef __cplusplus
2405  choke me
2406#endif
2407_ACEOF
2408rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>conftest.er1
2411  ac_status=$?
2412  grep -v '^ *+' conftest.er1 >conftest.err
2413  rm -f conftest.er1
2414  cat conftest.err >&5
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); } &&
2417         { ac_try='test -z "$ac_c_werror_flag"
2418                         || test ! -s conftest.err'
2419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420  (eval $ac_try) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }; } &&
2424         { ac_try='test -s conftest.$ac_objext'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; }; then
2430  for ac_declaration in \
2431   '' \
2432   'extern "C" void std::exit (int) throw (); using std::exit;' \
2433   'extern "C" void std::exit (int); using std::exit;' \
2434   'extern "C" void exit (int) throw ();' \
2435   'extern "C" void exit (int);' \
2436   'void exit (int);'
2437do
2438  cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h.  */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h.  */
2444$ac_declaration
2445#include <stdlib.h>
2446int
2447main ()
2448{
2449exit (42);
2450  ;
2451  return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456  (eval $ac_compile) 2>conftest.er1
2457  ac_status=$?
2458  grep -v '^ *+' conftest.er1 >conftest.err
2459  rm -f conftest.er1
2460  cat conftest.err >&5
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); } &&
2463         { ac_try='test -z "$ac_c_werror_flag"
2464                         || test ! -s conftest.err'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; } &&
2470         { ac_try='test -s conftest.$ac_objext'
2471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472  (eval $ac_try) 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }; }; then
2476  :
2477else
2478  echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481continue
2482fi
2483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484  cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h.  */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h.  */
2490$ac_declaration
2491int
2492main ()
2493{
2494exit (42);
2495  ;
2496  return 0;
2497}
2498_ACEOF
2499rm -f conftest.$ac_objext
2500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501  (eval $ac_compile) 2>conftest.er1
2502  ac_status=$?
2503  grep -v '^ *+' conftest.er1 >conftest.err
2504  rm -f conftest.er1
2505  cat conftest.err >&5
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); } &&
2508         { ac_try='test -z "$ac_c_werror_flag"
2509                         || test ! -s conftest.err'
2510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511  (eval $ac_try) 2>&5
2512  ac_status=$?
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); }; } &&
2515         { ac_try='test -s conftest.$ac_objext'
2516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517  (eval $ac_try) 2>&5
2518  ac_status=$?
2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520  (exit $ac_status); }; }; then
2521  break
2522else
2523  echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528done
2529rm -f conftest*
2530if test -n "$ac_declaration"; then
2531  echo '#ifdef __cplusplus' >>confdefs.h
2532  echo $ac_declaration      >>confdefs.h
2533  echo '#endif'             >>confdefs.h
2534fi
2535
2536else
2537  echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540fi
2541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542ac_ext=c
2543ac_cpp='$CPP $CPPFLAGS'
2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548if test -z "$CC" ; then
2549  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2550echo "$as_me: error: Failed to find a C compiler!" >&2;}
2551   { (exit 1); exit 1; }; }
2552fi
2553# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2554case "$CC" in
2555  cl* | */cl*)
2556    if test "$ac_cv_prog_cc_g" = yes ; then
2557      ac_cv_prog_cc_g=no
2558      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2559echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2560    fi ;;
2561esac
2562CFLAGS="$save_cflags"
2563
2564# Check if a project specific CFLAGS variable has been set
2565if test x$COIN_PRJCT != x; then
2566  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2567  if test x$coin_tmp = xset; then
2568    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2569  fi
2570fi
2571
2572if test x"$CFLAGS" = x; then
2573
2574  coin_add_cflags=
2575  coin_opt_cflags=
2576  coin_dbg_cflags=
2577  coin_warn_cflags=
2578
2579  if test "$GCC" = "yes"; then
2580    case "$CC" in
2581      icc* | */icc*)
2582        ;;
2583      *)
2584        coin_opt_cflags="-O3 -fomit-frame-pointer"
2585        coin_add_cflags="-pipe"
2586        coin_dbg_cflags="-g"
2587        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2588        if test "$enable_doscompile" = yes; then
2589          case $build in
2590            *-cygwin*)
2591              CFLAGS="-mno-cygwin"
2592              cat >conftest.$ac_ext <<_ACEOF
2593/* confdefs.h.  */
2594_ACEOF
2595cat confdefs.h >>conftest.$ac_ext
2596cat >>conftest.$ac_ext <<_ACEOF
2597/* end confdefs.h.  */
2598
2599int
2600main ()
2601{
2602int i=0; i++;
2603  ;
2604  return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext conftest$ac_exeext
2608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2609  (eval $ac_link) 2>conftest.er1
2610  ac_status=$?
2611  grep -v '^ *+' conftest.er1 >conftest.err
2612  rm -f conftest.er1
2613  cat conftest.err >&5
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); } &&
2616         { ac_try='test -z "$ac_c_werror_flag"
2617                         || test ! -s conftest.err'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; } &&
2623         { ac_try='test -s conftest$ac_exeext'
2624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625  (eval $ac_try) 2>&5
2626  ac_status=$?
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); }; }; then
2629  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2630else
2631  echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
2634fi
2635rm -f conftest.err conftest.$ac_objext \
2636      conftest$ac_exeext conftest.$ac_ext
2637              CFLAGS=
2638            ;;
2639          esac
2640        fi
2641    esac
2642  fi
2643  if test -z "$coin_opt_cflags"; then
2644    case $build in
2645      *-cygwin* | *-mingw*)
2646        case "$CC" in
2647          cl* | */cl*)
2648            coin_opt_cflags='-O2'
2649            coin_add_cflags='-nologo'
2650            coin_dbg_cflags='-MTd'
2651            ;;
2652        esac
2653        ;;
2654      *-linux-*)
2655        case "$CC" in
2656          icc* | */icc*)
2657            coin_opt_cflags="-O3 -ip"
2658            coin_add_cflags=""
2659            coin_dbg_cflags="-g"
2660            # Check if -i_dynamic is necessary (for new glibc library)
2661            CFLAGS=
2662            cat >conftest.$ac_ext <<_ACEOF
2663/* confdefs.h.  */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h.  */
2668
2669int
2670main ()
2671{
2672int i=0; i++;
2673  ;
2674  return 0;
2675}
2676_ACEOF
2677rm -f conftest.$ac_objext conftest$ac_exeext
2678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2679  (eval $ac_link) 2>conftest.er1
2680  ac_status=$?
2681  grep -v '^ *+' conftest.er1 >conftest.err
2682  rm -f conftest.er1
2683  cat conftest.err >&5
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); } &&
2686         { ac_try='test -z "$ac_c_werror_flag"
2687                         || test ! -s conftest.err'
2688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689  (eval $ac_try) 2>&5
2690  ac_status=$?
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); }; } &&
2693         { ac_try='test -s conftest$ac_exeext'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; }; then
2699  :
2700else
2701  echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704coin_add_cflags="-i_dynamic $coin_add_cflags"
2705fi
2706rm -f conftest.err conftest.$ac_objext \
2707      conftest$ac_exeext conftest.$ac_ext
2708            ;;
2709          pgcc* | */pgcc*)
2710            coin_opt_cflags="-fast"
2711            coin_add_cflags="-Kieee -pc 64"
2712            coin_dbg_cflags="-g"
2713            ;;
2714        esac
2715        ;;
2716      *-ibm-*)
2717        case "$CC" in
2718          xlc* | */xlc* | mpxlc* | */mpxlc*)
2719            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2720            coin_add_cflags="-bmaxdata:0x80000000"
2721            coin_dbg_cflags="-g"
2722          ;;
2723        esac
2724        ;;
2725      *-hp-*)
2726        coin_opt_cflags="-O"
2727        coin_add_cflags="-Ae"
2728        coin_dbg_cflags="-g"
2729        ;;
2730      *-sun-*)
2731        coin_opt_cflags="-xO4"
2732        coin_dbg_cflags="-g"
2733        ;;
2734      *-sgi-*)
2735        coin_opt_cflags="-O -OPT:Olimit=0"
2736        coin_dbg_cflags="-g"
2737        ;;
2738    esac
2739  fi
2740
2741  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2742    coin_dbg_cflags="-g"
2743  fi
2744
2745  if test -z "$coin_opt_cflags"; then
2746    # Try if -O option works if nothing else is set
2747    CFLAGS="-O"
2748    cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h.  */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h.  */
2754
2755int
2756main ()
2757{
2758int i=0; i++;
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext conftest$ac_exeext
2764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2765  (eval $ac_link) 2>conftest.er1
2766  ac_status=$?
2767  grep -v '^ *+' conftest.er1 >conftest.err
2768  rm -f conftest.er1
2769  cat conftest.err >&5
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); } &&
2772         { ac_try='test -z "$ac_c_werror_flag"
2773                         || test ! -s conftest.err'
2774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775  (eval $ac_try) 2>&5
2776  ac_status=$?
2777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778  (exit $ac_status); }; } &&
2779         { ac_try='test -s conftest$ac_exeext'
2780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781  (eval $ac_try) 2>&5
2782  ac_status=$?
2783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784  (exit $ac_status); }; }; then
2785  coin_opt_cflags="-O"
2786else
2787  echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790fi
2791rm -f conftest.err conftest.$ac_objext \
2792      conftest$ac_exeext conftest.$ac_ext
2793  fi
2794
2795  # if PM doesn't want the warning messages, take them out
2796  if test x"$coin_skip_warn_cflags" = xyes; then
2797    coin_warn_cflags=
2798  fi
2799
2800  if test x${DBG_CFLAGS+set} != xset; then
2801    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2802  fi
2803  if test x${OPT_CFLAGS+set} != xset; then
2804    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2805  fi
2806
2807  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2808  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2809
2810  if test "$coin_debug_compile" = "true"; then
2811    CFLAGS="$DBG_CFLAGS"
2812  else
2813    CFLAGS="$OPT_CFLAGS"
2814  fi
2815else
2816  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2817  if test x${DBG_CFLAGS+set} != xset; then
2818    DBG_CFLAGS="$CFLAGS"
2819  fi
2820  if test x${OPT_CFLAGS+set} != xset; then
2821    OPT_CFLAGS="$CFLAGS"
2822  fi
2823fi
2824
2825# Try if CFLAGS works
2826save_CFLAGS="$CFLAGS"
2827cat >conftest.$ac_ext <<_ACEOF
2828/* confdefs.h.  */
2829_ACEOF
2830cat confdefs.h >>conftest.$ac_ext
2831cat >>conftest.$ac_ext <<_ACEOF
2832/* end confdefs.h.  */
2833
2834int
2835main ()
2836{
2837int i=0; i++;
2838  ;
2839  return 0;
2840}
2841_ACEOF
2842rm -f conftest.$ac_objext conftest$ac_exeext
2843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2844  (eval $ac_link) 2>conftest.er1
2845  ac_status=$?
2846  grep -v '^ *+' conftest.er1 >conftest.err
2847  rm -f conftest.er1
2848  cat conftest.err >&5
2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850  (exit $ac_status); } &&
2851         { ac_try='test -z "$ac_c_werror_flag"
2852                         || test ! -s conftest.err'
2853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854  (eval $ac_try) 2>&5
2855  ac_status=$?
2856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857  (exit $ac_status); }; } &&
2858         { ac_try='test -s conftest$ac_exeext'
2859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860  (eval $ac_try) 2>&5
2861  ac_status=$?
2862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863  (exit $ac_status); }; }; then
2864  :
2865else
2866  echo "$as_me: failed program was:" >&5
2867sed 's/^/| /' conftest.$ac_ext >&5
2868
2869CFLAGS=
2870fi
2871rm -f conftest.err conftest.$ac_objext \
2872      conftest$ac_exeext conftest.$ac_ext
2873if test -z "$CFLAGS"; then
2874  { 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
2875echo "$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;}
2876  CFLAGS='-O'
2877  cat >conftest.$ac_ext <<_ACEOF
2878/* confdefs.h.  */
2879_ACEOF
2880cat confdefs.h >>conftest.$ac_ext
2881cat >>conftest.$ac_ext <<_ACEOF
2882/* end confdefs.h.  */
2883
2884int
2885main ()
2886{
2887int i=0; i++;
2888  ;
2889  return 0;
2890}
2891_ACEOF
2892rm -f conftest.$ac_objext conftest$ac_exeext
2893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2894  (eval $ac_link) 2>conftest.er1
2895  ac_status=$?
2896  grep -v '^ *+' conftest.er1 >conftest.err
2897  rm -f conftest.er1
2898  cat conftest.err >&5
2899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900  (exit $ac_status); } &&
2901         { ac_try='test -z "$ac_c_werror_flag"
2902                         || test ! -s conftest.err'
2903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904  (eval $ac_try) 2>&5
2905  ac_status=$?
2906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907  (exit $ac_status); }; } &&
2908         { ac_try='test -s conftest$ac_exeext'
2909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910  (eval $ac_try) 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }; }; then
2914  :
2915else
2916  echo "$as_me: failed program was:" >&5
2917sed 's/^/| /' conftest.$ac_ext >&5
2918
2919CFLAGS=
2920fi
2921rm -f conftest.err conftest.$ac_objext \
2922      conftest$ac_exeext conftest.$ac_ext
2923  if test -z "$CFLAGS"; then
2924    { 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
2925echo "$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;}
2926  fi
2927fi
2928
2929{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2930echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2931
2932
2933if test x"$MPICC" = x; then :; else
2934  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2935echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2936  CC="$MPICC"
2937fi
2938
2939# Correct ADDLIBS initialization if we are using the MS compiler
2940case "$CC" in
2941  cl* | */cl*)
2942    ADDLIBS=
2943    case $build in
2944  *-mingw*)
2945    if test "${LD+set}" = set; then :; else
2946      LD=link
2947    fi
2948    ;;
2949esac
2950
2951    ;;
2952esac
2953
2954ac_ext=c
2955ac_cpp='$CPP $CPPFLAGS'
2956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959
2960
2961case $build in
2962  *-cygwin* | *-mingw*)
2963     coin_f77_comps="gfortran g77 ifort fl32" ;;
2964  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
2965esac
2966
2967
2968
2969
2970
2971
2972ac_ext=f
2973ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2974ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2975ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2976
2977
2978
2979
2980
2981
2982coin_has_f77=yes
2983
2984save_fflags="$FFLAGS"
2985comps="$coin_f77_comps" #This comes from AC_COIN_F77_COMPS
2986
2987# We delete the cached value, since the test might not have been
2988# performed with our choice of compilers earlier
2989$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
2990ac_ext=f
2991ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2992ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2994if test -n "$ac_tool_prefix"; then
2995  for ac_prog in $comps
2996  do
2997    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2998set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2999echo "$as_me:$LINENO: checking for $ac_word" >&5
3000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3001if test "${ac_cv_prog_F77+set}" = set; then
3002  echo $ECHO_N "(cached) $ECHO_C" >&6
3003else
3004  if test -n "$F77"; then
3005  ac_cv_prog_F77="$F77" # Let the user override the test.
3006else
3007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010  IFS=$as_save_IFS
3011  test -z "$as_dir" && as_dir=.
3012  for ac_exec_ext in '' $ac_executable_extensions; do
3013  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3014    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3015    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016    break 2
3017  fi
3018done
3019done
3020
3021fi
3022fi
3023F77=$ac_cv_prog_F77
3024if test -n "$F77"; then
3025  echo "$as_me:$LINENO: result: $F77" >&5
3026echo "${ECHO_T}$F77" >&6
3027else
3028  echo "$as_me:$LINENO: result: no" >&5
3029echo "${ECHO_T}no" >&6
3030fi
3031
3032    test -n "$F77" && break
3033  done
3034fi
3035if test -z "$F77"; then
3036  ac_ct_F77=$F77
3037  for ac_prog in $comps
3038do
3039  # Extract the first word of "$ac_prog", so it can be a program name with args.
3040set dummy $ac_prog; ac_word=$2
3041echo "$as_me:$LINENO: checking for $ac_word" >&5
3042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3043if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3044  echo $ECHO_N "(cached) $ECHO_C" >&6
3045else
3046  if test -n "$ac_ct_F77"; then
3047  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3048else
3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052  IFS=$as_save_IFS
3053  test -z "$as_dir" && as_dir=.
3054  for ac_exec_ext in '' $ac_executable_extensions; do
3055  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056    ac_cv_prog_ac_ct_F77="$ac_prog"
3057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058    break 2
3059  fi
3060done
3061done
3062
3063fi
3064fi
3065ac_ct_F77=$ac_cv_prog_ac_ct_F77
3066if test -n "$ac_ct_F77"; then
3067  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3068echo "${ECHO_T}$ac_ct_F77" >&6
3069else
3070  echo "$as_me:$LINENO: result: no" >&5
3071echo "${ECHO_T}no" >&6
3072fi
3073
3074  test -n "$ac_ct_F77" && break
3075done
3076
3077  F77=$ac_ct_F77
3078fi
3079
3080
3081# Provide some information about the compiler.
3082echo "$as_me:3082:" \
3083     "checking for Fortran 77 compiler version" >&5
3084ac_compiler=`set X $ac_compile; echo $2`
3085{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3086  (eval $ac_compiler --version </dev/null >&5) 2>&5
3087  ac_status=$?
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); }
3090{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3091  (eval $ac_compiler -v </dev/null >&5) 2>&5
3092  ac_status=$?
3093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); }
3095{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3096  (eval $ac_compiler -V </dev/null >&5) 2>&5
3097  ac_status=$?
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); }
3100rm -f a.out
3101
3102# If we don't use `.F' as extension, the preprocessor is not run on the
3103# input file.  (Note that this only needs to work for GNU compilers.)
3104ac_save_ext=$ac_ext
3105ac_ext=F
3106echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3107echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3108if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3109  echo $ECHO_N "(cached) $ECHO_C" >&6
3110else
3111  cat >conftest.$ac_ext <<_ACEOF
3112      program main
3113#ifndef __GNUC__
3114       choke me
3115#endif
3116
3117      end
3118_ACEOF
3119rm -f conftest.$ac_objext
3120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3121  (eval $ac_compile) 2>conftest.er1
3122  ac_status=$?
3123  grep -v '^ *+' conftest.er1 >conftest.err
3124  rm -f conftest.er1
3125  cat conftest.err >&5
3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127  (exit $ac_status); } &&
3128         { ac_try='test -z "$ac_f77_werror_flag"
3129                         || test ! -s conftest.err'
3130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131  (eval $ac_try) 2>&5
3132  ac_status=$?
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); }; } &&
3135         { ac_try='test -s conftest.$ac_objext'
3136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137  (eval $ac_try) 2>&5
3138  ac_status=$?
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); }; }; then
3141  ac_compiler_gnu=yes
3142else
3143  echo "$as_me: failed program was:" >&5
3144sed 's/^/| /' conftest.$ac_ext >&5
3145
3146ac_compiler_gnu=no
3147fi
3148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3149ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3150
3151fi
3152echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3153echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3154ac_ext=$ac_save_ext
3155ac_test_FFLAGS=${FFLAGS+set}
3156ac_save_FFLAGS=$FFLAGS
3157FFLAGS=
3158echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3159echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3160if test "${ac_cv_prog_f77_g+set}" = set; then
3161  echo $ECHO_N "(cached) $ECHO_C" >&6
3162else
3163  FFLAGS=-g
3164cat >conftest.$ac_ext <<_ACEOF
3165      program main
3166
3167      end
3168_ACEOF
3169rm -f conftest.$ac_objext
3170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171  (eval $ac_compile) 2>conftest.er1
3172  ac_status=$?
3173  grep -v '^ *+' conftest.er1 >conftest.err
3174  rm -f conftest.er1
3175  cat conftest.err >&5
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); } &&
3178         { ac_try='test -z "$ac_f77_werror_flag"
3179                         || test ! -s conftest.err'
3180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181  (eval $ac_try) 2>&5
3182  ac_status=$?
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); }; } &&
3185         { ac_try='test -s conftest.$ac_objext'
3186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187  (eval $ac_try) 2>&5
3188  ac_status=$?
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); }; }; then
3191  ac_cv_prog_f77_g=yes
3192else
3193  echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
3196ac_cv_prog_f77_g=no
3197fi
3198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3199
3200fi
3201echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3202echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3203if test "$ac_test_FFLAGS" = set; then
3204  FFLAGS=$ac_save_FFLAGS
3205elif test $ac_cv_prog_f77_g = yes; then
3206  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3207    FFLAGS="-g -O2"
3208  else
3209    FFLAGS="-g"
3210  fi
3211else
3212  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3213    FFLAGS="-O2"
3214  else
3215    FFLAGS=
3216  fi
3217fi
3218
3219G77=`test $ac_compiler_gnu = yes && echo yes`
3220ac_ext=f
3221ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3222ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3224
3225if test -z "$F77" ; then
3226  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3227echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3228fi
3229FFLAGS="$save_fflags"
3230
3231# Check if a project specific FFLAGS variable has been set
3232if test x$COIN_PRJCT != x; then
3233  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3234  if test x$coin_tmp = xset; then
3235    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3236  fi
3237fi
3238
3239if test x"$FFLAGS" = x; then
3240
3241  coin_add_fflags=
3242  coin_opt_fflags=
3243  coin_dbg_fflags=
3244  coin_warn_fflags=
3245
3246  if test "$G77" = "yes"; then
3247    coin_opt_fflags="-O3 -fomit-frame-pointer"
3248    coin_add_fflags="-pipe"
3249    coin_dbg_fflags="-g"
3250    if test "$enable_doscompile" = yes; then
3251      case $build in
3252        *-cygwin*)
3253          FFLAGS="-mno-cygwin"
3254          cat >conftest.$ac_ext <<_ACEOF
3255      program main
3256      write(*,*) 'Hello world'
3257      end
3258_ACEOF
3259rm -f conftest.$ac_objext conftest$ac_exeext
3260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3261  (eval $ac_link) 2>conftest.er1
3262  ac_status=$?
3263  grep -v '^ *+' conftest.er1 >conftest.err
3264  rm -f conftest.er1
3265  cat conftest.err >&5
3266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267  (exit $ac_status); } &&
3268         { ac_try='test -z "$ac_f77_werror_flag"
3269                         || test ! -s conftest.err'
3270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271  (eval $ac_try) 2>&5
3272  ac_status=$?
3273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274  (exit $ac_status); }; } &&
3275         { ac_try='test -s conftest$ac_exeext'
3276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277  (eval $ac_try) 2>&5
3278  ac_status=$?
3279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280  (exit $ac_status); }; }; then
3281  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3282else
3283  echo "$as_me: failed program was:" >&5
3284sed 's/^/| /' conftest.$ac_ext >&5
3285
3286fi
3287rm -f conftest.err conftest.$ac_objext \
3288      conftest$ac_exeext conftest.$ac_ext
3289          FFLAGS=
3290        ;;
3291      esac
3292    fi
3293  else
3294    case $build in
3295      *-cygwin* | *-mingw*)
3296        case $F77 in
3297          ifort* | */ifort*)
3298            coin_opt_fflags='-O3'
3299            coin_add_fflags='-nologo -MT'
3300            coin_dbg_fflags='-debug'
3301          ;;
3302        esac
3303        ;;
3304      *-linux-*)
3305        case $F77 in
3306          ifc* | */ifc* | ifort* | */ifort*)
3307            coin_opt_fflags="-O3 -ip"
3308            coin_add_fflags="-cm -w90 -w95"
3309            coin_dbg_fflags="-g -CA -CB -CS"
3310            # Check if -i_dynamic is necessary (for new glibc library)
3311            FFLAGS=
3312            cat >conftest.$ac_ext <<_ACEOF
3313      program main
3314      write(*,*) 'Hello world'
3315      end
3316_ACEOF
3317rm -f conftest.$ac_objext conftest$ac_exeext
3318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3319  (eval $ac_link) 2>conftest.er1
3320  ac_status=$?
3321  grep -v '^ *+' conftest.er1 >conftest.err
3322  rm -f conftest.er1
3323  cat conftest.err >&5
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); } &&
3326         { ac_try='test -z "$ac_f77_werror_flag"
3327                         || test ! -s conftest.err'
3328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329  (eval $ac_try) 2>&5
3330  ac_status=$?
3331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332  (exit $ac_status); }; } &&
3333         { ac_try='test -s conftest$ac_exeext'
3334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335  (eval $ac_try) 2>&5
3336  ac_status=$?
3337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338  (exit $ac_status); }; }; then
3339  :
3340else
3341  echo "$as_me: failed program was:" >&5
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
3344coin_add_fflags="-i_dynamic $coin_add_fflags"
3345fi
3346rm -f conftest.err conftest.$ac_objext \
3347      conftest$ac_exeext conftest.$ac_ext
3348            ;;
3349          pgf77* | */pgf77* | pgf90* | */pgf90*)
3350            coin_opt_fflags="-fast"
3351            coin_add_fflags="-Kieee -pc 64"
3352            coin_dbg_fflags="-g"
3353          ;;
3354        esac
3355        ;;
3356      *-ibm-*)
3357        case "$F77" in
3358          xlf* | */xlf* | mpxlf* | */mpxlf* )
3359            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3360            coin_add_fflags="-bmaxdata:0x80000000"
3361            coin_dbg_fflags="-g -C"
3362            ;;
3363        esac
3364        ;;
3365      *-hp-*)
3366        coin_opt_fflags="+O3"
3367        coin_add_fflags="+U77"
3368        coin_dbg_fflags="-C -g"
3369        ;;
3370      *-sun-*)
3371        coin_opt_fflags="-O4"
3372        coin_dbg_fflags="-g"
3373        ;;
3374      *-sgi-*)
3375        coin_opt_fflags="-O5 -OPT:Olimit=0"
3376        coin_dbg_fflags="-g"
3377        ;;
3378    esac
3379  fi
3380
3381  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3382    coin_dbg_fflags="-g"
3383  fi
3384
3385  if test -z "$coin_opt_fflags"; then
3386    # Try if -O option works if nothing else is set
3387    FFLAGS=-O
3388    cat >conftest.$ac_ext <<_ACEOF
3389      program main
3390      integer i
3391      end
3392_ACEOF
3393rm -f conftest.$ac_objext conftest$ac_exeext
3394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3395  (eval $ac_link) 2>conftest.er1
3396  ac_status=$?
3397  grep -v '^ *+' conftest.er1 >conftest.err
3398  rm -f conftest.er1
3399  cat conftest.err >&5
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); } &&
3402         { ac_try='test -z "$ac_f77_werror_flag"
3403                         || test ! -s conftest.err'
3404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405  (eval $ac_try) 2>&5
3406  ac_status=$?
3407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408  (exit $ac_status); }; } &&
3409         { ac_try='test -s conftest$ac_exeext'
3410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411  (eval $ac_try) 2>&5
3412  ac_status=$?
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); }; }; then
3415  coin_opt_fflags="-O"
3416else
3417  echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420fi
3421rm -f conftest.err conftest.$ac_objext \
3422      conftest$ac_exeext conftest.$ac_ext
3423  fi
3424
3425  # if PM doesn't want the warning messages, take them out
3426  if test x"$coin_skip_warn_fflags" = xyes; then
3427    coin_warn_fflags=
3428  fi
3429
3430  if test x${DBG_FFLAGS+set} != xset; then
3431    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3432  fi
3433  if test x${OPT_FFLAGS+set} != xset; then
3434    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3435  fi
3436
3437  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3438  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3439
3440  if test "$coin_debug_compile" = "true"; then
3441    FFLAGS="$DBG_FFLAGS"
3442  else
3443    FFLAGS="$OPT_FFLAGS"
3444  fi
3445else
3446  FFLAGS="$FFLAGS $ADD_FFLAGS"
3447  if test x${DBG_FFLAGS+set} != xset; then
3448    DBG_FFLAGS="$FFLAGS"
3449  fi
3450  if test x${OPT_FFLAGS+set} != xset; then
3451    OPT_FFLAGS="$FFLAGS"
3452  fi
3453fi
3454
3455# Try if FFLAGS works
3456cat >conftest.$ac_ext <<_ACEOF
3457      program main
3458      integer i
3459      end
3460_ACEOF
3461rm -f conftest.$ac_objext conftest$ac_exeext
3462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3463  (eval $ac_link) 2>conftest.er1
3464  ac_status=$?
3465  grep -v '^ *+' conftest.er1 >conftest.err
3466  rm -f conftest.er1
3467  cat conftest.err >&5
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); } &&
3470         { ac_try='test -z "$ac_f77_werror_flag"
3471                         || test ! -s conftest.err'
3472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473  (eval $ac_try) 2>&5
3474  ac_status=$?
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); }; } &&
3477         { ac_try='test -s conftest$ac_exeext'
3478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479  (eval $ac_try) 2>&5
3480  ac_status=$?
3481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); }; }; then
3483  :
3484else
3485  echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488FFLAGS=
3489fi
3490rm -f conftest.err conftest.$ac_objext \
3491      conftest$ac_exeext conftest.$ac_ext
3492if test -z "$FFLAGS"; then
3493  { 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
3494echo "$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;}
3495  FFLAGS='-O'
3496  cat >conftest.$ac_ext <<_ACEOF
3497      program main
3498      integer i
3499      end
3500_ACEOF
3501rm -f conftest.$ac_objext conftest$ac_exeext
3502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3503  (eval $ac_link) 2>conftest.er1
3504  ac_status=$?
3505  grep -v '^ *+' conftest.er1 >conftest.err
3506  rm -f conftest.er1
3507  cat conftest.err >&5
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); } &&
3510         { ac_try='test -z "$ac_f77_werror_flag"
3511                         || test ! -s conftest.err'
3512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513  (eval $ac_try) 2>&5
3514  ac_status=$?
3515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516  (exit $ac_status); }; } &&
3517         { ac_try='test -s conftest$ac_exeext'
3518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519  (eval $ac_try) 2>&5
3520  ac_status=$?
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); }; }; then
3523  :
3524else
3525  echo "$as_me: failed program was:" >&5
3526sed 's/^/| /' conftest.$ac_ext >&5
3527
3528FFLAGS=
3529fi
3530rm -f conftest.err conftest.$ac_objext \
3531      conftest$ac_exeext conftest.$ac_ext
3532  if test -z "$FFLAGS"; then
3533    { 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
3534echo "$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;}
3535  fi
3536fi
3537
3538{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3539echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3540
3541
3542if test x"$MPIF77" = x; then :; else
3543  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3544echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3545  F77="$MPIF77"
3546fi
3547
3548case "$F77" in
3549  ifort*)
3550    case $build in
3551  *-mingw*)
3552    if test "${LD+set}" = set; then :; else
3553      LD=link
3554    fi
3555    ;;
3556esac
3557
3558    ;;
3559esac
3560
3561ac_ext=c
3562ac_cpp='$CPP $CPPFLAGS'
3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566
3567
3568
3569# Need egrep later on
3570echo "$as_me:$LINENO: checking for egrep" >&5
3571echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3572if test "${ac_cv_prog_egrep+set}" = set; then
3573  echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3576    then ac_cv_prog_egrep='grep -E'
3577    else ac_cv_prog_egrep='egrep'
3578    fi
3579fi
3580echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3581echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3582 EGREP=$ac_cv_prog_egrep
3583
3584
3585
3586# Initialize autotools
3587{
3588
3589
3590
3591# START
3592
3593# On Cygwin, building DLLs doesn't work
3594case $build in
3595  *-cygwin*)
3596    coin_disable_shared=yes
3597    platform=Cygwin
3598  ;;
3599  *-mingw*)
3600    coin_disable_shared=yes
3601    platform="Msys"
3602#    case "$CXX" in
3603#      cl*)
3604#        coin_disable_shared=yes
3605#        platform="Msys with cl"
3606#    ;;
3607#    esac
3608  ;;
3609esac
3610if test x"$coin_disable_shared" = xyes; then
3611  if test x"$enable_shared" = xyes; then
3612    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3613echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3614  fi
3615  enable_shared=no
3616fi
3617# By default, we only want the shared objects to be compiled
3618# Check whether --enable-static or --disable-static was given.
3619if test "${enable_static+set}" = set; then
3620  enableval="$enable_static"
3621  p=${PACKAGE-default}
3622    case $enableval in
3623    yes) enable_static=yes ;;
3624    no) enable_static=no ;;
3625    *)
3626     enable_static=no
3627      # Look at the argument we got.  We use all the common list separators.
3628      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3629      for pkg in $enableval; do
3630        IFS="$lt_save_ifs"
3631        if test "X$pkg" = "X$p"; then
3632          enable_static=yes
3633        fi
3634      done
3635      IFS="$lt_save_ifs"
3636      ;;
3637    esac
3638else
3639  enable_static=no
3640fi;
3641
3642
3643
3644
3645# Initialize automake
3646am__api_version="1.9"
3647# Find a good install program.  We prefer a C program (faster),
3648# so one script is as good as another.  But avoid the broken or
3649# incompatible versions:
3650# SysV /etc/install, /usr/sbin/install
3651# SunOS /usr/etc/install
3652# IRIX /sbin/install
3653# AIX /bin/install
3654# AmigaOS /C/install, which installs bootblocks on floppy discs
3655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3658# OS/2's system install, which has a completely different semantic
3659# ./install, which can be erroneously created by make from ./install.sh.
3660echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3661echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3662if test -z "$INSTALL"; then
3663if test "${ac_cv_path_install+set}" = set; then
3664  echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669  IFS=$as_save_IFS
3670  test -z "$as_dir" && as_dir=.
3671  # Account for people who put trailing slashes in PATH elements.
3672case $as_dir/ in
3673  ./ | .// | /cC/* | \
3674  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3675  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3676  /usr/ucb/* ) ;;
3677  *)
3678    # OSF1 and SCO ODT 3.0 have their own names for install.
3679    # Don't use installbsd from OSF since it installs stuff as root
3680    # by default.
3681    for ac_prog in ginstall scoinst install; do
3682      for ac_exec_ext in '' $ac_executable_extensions; do
3683        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3684          if test $ac_prog = install &&
3685            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686            # AIX install.  It has an incompatible calling convention.
3687            :
3688          elif test $ac_prog = install &&
3689            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3690            # program-specific install script used by HP pwplus--don't use.
3691            :
3692          else
3693            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3694            break 3
3695          fi
3696        fi
3697      done
3698    done
3699    ;;
3700esac
3701done
3702
3703
3704fi
3705  if test "${ac_cv_path_install+set}" = set; then
3706    INSTALL=$ac_cv_path_install
3707  else
3708    # As a last resort, use the slow shell script.  We don't cache a
3709    # path for INSTALL within a source directory, because that will
3710    # break other packages using the cache if that directory is
3711    # removed, or if the path is relative.
3712    INSTALL=$ac_install_sh
3713  fi
3714fi
3715echo "$as_me:$LINENO: result: $INSTALL" >&5
3716echo "${ECHO_T}$INSTALL" >&6
3717
3718# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3719# It thinks the first close brace ends the variable substitution.
3720test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3721
3722test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3723
3724test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3725
3726echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3727echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3728# Just in case
3729sleep 1
3730echo timestamp > conftest.file
3731# Do `set' in a subshell so we don't clobber the current shell's
3732# arguments.  Must try -L first in case configure is actually a
3733# symlink; some systems play weird games with the mod time of symlinks
3734# (eg FreeBSD returns the mod time of the symlink's containing
3735# directory).
3736if (
3737   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3738   if test "$*" = "X"; then
3739      # -L didn't work.
3740      set X `ls -t $srcdir/configure conftest.file`
3741   fi
3742   rm -f conftest.file
3743   if test "$*" != "X $srcdir/configure conftest.file" \
3744      && test "$*" != "X conftest.file $srcdir/configure"; then
3745
3746      # If neither matched, then we have a broken ls.  This can happen
3747      # if, for instance, CONFIG_SHELL is bash and it inherits a
3748      # broken ls alias from the environment.  This has actually
3749      # happened.  Such a system could not be considered "sane".
3750      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3751alias in your environment" >&5
3752echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3753alias in your environment" >&2;}
3754   { (exit 1); exit 1; }; }
3755   fi
3756
3757   test "$2" = conftest.file
3758   )
3759then
3760   # Ok.
3761   :
3762else
3763   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3764Check your system clock" >&5
3765echo "$as_me: error: newly created file is older than distributed files!
3766Check your system clock" >&2;}
3767   { (exit 1); exit 1; }; }
3768fi
3769echo "$as_me:$LINENO: result: yes" >&5
3770echo "${ECHO_T}yes" >&6
3771test "$program_prefix" != NONE &&
3772  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3773# Use a double $ so make ignores it.
3774test "$program_suffix" != NONE &&
3775  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3776# Double any \ or $.  echo might interpret backslashes.
3777# By default was `s,x,x', remove it if useless.
3778cat <<\_ACEOF >conftest.sed
3779s/[\\$]/&&/g;s/;s,x,x,$//
3780_ACEOF
3781program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3782rm conftest.sed
3783
3784# expand $ac_aux_dir to an absolute path
3785am_aux_dir=`cd $ac_aux_dir && pwd`
3786
3787test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3788# Use eval to expand $SHELL
3789if eval "$MISSING --run true"; then
3790  am_missing_run="$MISSING --run "
3791else
3792  am_missing_run=
3793  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3794echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3795fi
3796
3797if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3798  # We used to keeping the `.' as first argument, in order to
3799  # allow $(mkdir_p) to be used without argument.  As in
3800  #   $(mkdir_p) $(somedir)
3801  # where $(somedir) is conditionally defined.  However this is wrong
3802  # for two reasons:
3803  #  1. if the package is installed by a user who cannot write `.'
3804  #     make install will fail,
3805  #  2. the above comment should most certainly read
3806  #     $(mkdir_p) $(DESTDIR)$(somedir)
3807  #     so it does not work when $(somedir) is undefined and
3808  #     $(DESTDIR) is not.
3809  #  To support the latter case, we have to write
3810  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3811  #  so the `.' trick is pointless.
3812  mkdir_p='mkdir -p --'
3813else
3814  # On NextStep and OpenStep, the `mkdir' command does not
3815  # recognize any option.  It will interpret all options as
3816  # directories to create, and then abort because `.' already
3817  # exists.
3818  for d in ./-p ./--version;
3819  do
3820    test -d $d && rmdir $d
3821  done
3822  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3823  if test -f "$ac_aux_dir/mkinstalldirs"; then
3824    mkdir_p='$(mkinstalldirs)'
3825  else
3826    mkdir_p='$(install_sh) -d'
3827  fi
3828fi
3829
3830for ac_prog in gawk mawk nawk awk
3831do
3832  # Extract the first word of "$ac_prog", so it can be a program name with args.
3833set dummy $ac_prog; ac_word=$2
3834echo "$as_me:$LINENO: checking for $ac_word" >&5
3835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836if test "${ac_cv_prog_AWK+set}" = set; then
3837  echo $ECHO_N "(cached) $ECHO_C" >&6
3838else
3839  if test -n "$AWK"; then
3840  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3841else
3842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843for as_dir in $PATH
3844do
3845  IFS=$as_save_IFS
3846  test -z "$as_dir" && as_dir=.
3847  for ac_exec_ext in '' $ac_executable_extensions; do
3848  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849    ac_cv_prog_AWK="$ac_prog"
3850    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851    break 2
3852  fi
3853done
3854done
3855
3856fi
3857fi
3858AWK=$ac_cv_prog_AWK
3859if test -n "$AWK"; then
3860  echo "$as_me:$LINENO: result: $AWK" >&5
3861echo "${ECHO_T}$AWK" >&6
3862else
3863  echo "$as_me:$LINENO: result: no" >&5
3864echo "${ECHO_T}no" >&6
3865fi
3866
3867  test -n "$AWK" && break
3868done
3869
3870echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3871echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3872set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3873if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3874  echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876  cat >conftest.make <<\_ACEOF
3877all:
3878        @echo 'ac_maketemp="$(MAKE)"'
3879_ACEOF
3880# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3881eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3882if test -n "$ac_maketemp"; then
3883  eval ac_cv_prog_make_${ac_make}_set=yes
3884else
3885  eval ac_cv_prog_make_${ac_make}_set=no
3886fi
3887rm -f conftest.make
3888fi
3889if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3890  echo "$as_me:$LINENO: result: yes" >&5
3891echo "${ECHO_T}yes" >&6
3892  SET_MAKE=
3893else
3894  echo "$as_me:$LINENO: result: no" >&5
3895echo "${ECHO_T}no" >&6
3896  SET_MAKE="MAKE=${MAKE-make}"
3897fi
3898
3899rm -rf .tst 2>/dev/null
3900mkdir .tst 2>/dev/null
3901if test -d .tst; then
3902  am__leading_dot=.
3903else
3904  am__leading_dot=_
3905fi
3906rmdir .tst 2>/dev/null
3907
3908DEPDIR="${am__leading_dot}deps"
3909
3910          ac_config_commands="$ac_config_commands depfiles"
3911
3912
3913am_make=${MAKE-make}
3914cat > confinc << 'END'
3915am__doit:
3916        @echo done
3917.PHONY: am__doit
3918END
3919# If we don't find an include directive, just comment out the code.
3920echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3921echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3922am__include="#"
3923am__quote=
3924_am_result=none
3925# First try GNU make style include.
3926echo "include confinc" > confmf
3927# We grep out `Entering directory' and `Leaving directory'
3928# messages which can occur if `w' ends up in MAKEFLAGS.
3929# In particular we don't look at `^make:' because GNU make might
3930# be invoked under some other name (usually "gmake"), in which
3931# case it prints its new name instead of `make'.
3932if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3933   am__include=include
3934   am__quote=
3935   _am_result=GNU
3936fi
3937# Now try BSD make style include.
3938if test "$am__include" = "#"; then
3939   echo '.include "confinc"' > confmf
3940   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3941      am__include=.include
3942      am__quote="\""
3943      _am_result=BSD
3944   fi
3945fi
3946
3947
3948echo "$as_me:$LINENO: result: $_am_result" >&5
3949echo "${ECHO_T}$_am_result" >&6
3950rm -f confinc confmf
3951
3952# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3953if test "${enable_dependency_tracking+set}" = set; then
3954  enableval="$enable_dependency_tracking"
3955
3956fi;
3957if test "x$enable_dependency_tracking" != xno; then
3958  am_depcomp="$ac_aux_dir/depcomp"
3959  AMDEPBACKSLASH='\'
3960fi
3961
3962
3963if test "x$enable_dependency_tracking" != xno; then
3964  AMDEP_TRUE=
3965  AMDEP_FALSE='#'
3966else
3967  AMDEP_TRUE='#'
3968  AMDEP_FALSE=
3969fi
3970
3971
3972
3973
3974# Stuff for automake
3975# test to see if srcdir already configured
3976if test "`cd $srcdir && pwd`" != "`pwd`" &&
3977   test -f $srcdir/config.status; then
3978  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3979echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3980   { (exit 1); exit 1; }; }
3981fi
3982
3983# test whether we have cygpath
3984if test -z "$CYGPATH_W"; then
3985  if (cygpath --version) >/dev/null 2>/dev/null; then
3986    CYGPATH_W='cygpath -w'
3987  else
3988    CYGPATH_W=echo
3989  fi
3990fi
3991
3992
3993# Define the identity of the package.
3994 PACKAGE='thirdpartyhsl'
3995 VERSION='0.0'
3996
3997
3998cat >>confdefs.h <<_ACEOF
3999#define PACKAGE "$PACKAGE"
4000_ACEOF
4001
4002
4003cat >>confdefs.h <<_ACEOF
4004#define VERSION "$VERSION"
4005_ACEOF
4006
4007# Some tools Automake needs.
4008
4009ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4010
4011
4012AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4013
4014
4015AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4016
4017
4018AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4019
4020
4021MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4022
4023install_sh=${install_sh-"$am_aux_dir/install-sh"}
4024
4025# Installed binaries are usually stripped using `strip' when the user
4026# run `make install-strip'.  However `strip' might not be the right
4027# tool to use in cross-compilation environments, therefore Automake
4028# will honor the `STRIP' environment variable to overrule this program.
4029if test "$cross_compiling" != no; then
4030  if test -n "$ac_tool_prefix"; then
4031  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4032set dummy ${ac_tool_prefix}strip; ac_word=$2
4033echo "$as_me:$LINENO: checking for $ac_word" >&5
4034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4035if test "${ac_cv_prog_STRIP+set}" = set; then
4036  echo $ECHO_N "(cached) $ECHO_C" >&6
4037else
4038  if test -n "$STRIP"; then
4039  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4040else
4041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042for as_dir in $PATH
4043do
4044  IFS=$as_save_IFS
4045  test -z "$as_dir" && as_dir=.
4046  for ac_exec_ext in '' $ac_executable_extensions; do
4047  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4049    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050    break 2
4051  fi
4052done
4053done
4054
4055fi
4056fi
4057STRIP=$ac_cv_prog_STRIP
4058if test -n "$STRIP"; then
4059  echo "$as_me:$LINENO: result: $STRIP" >&5
4060echo "${ECHO_T}$STRIP" >&6
4061else
4062  echo "$as_me:$LINENO: result: no" >&5
4063echo "${ECHO_T}no" >&6
4064fi
4065
4066fi
4067if test -z "$ac_cv_prog_STRIP"; then
4068  ac_ct_STRIP=$STRIP
4069  # Extract the first word of "strip", so it can be a program name with args.
4070set dummy strip; ac_word=$2
4071echo "$as_me:$LINENO: checking for $ac_word" >&5
4072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4074  echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076  if test -n "$ac_ct_STRIP"; then
4077  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4078else
4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080for as_dir in $PATH
4081do
4082  IFS=$as_save_IFS
4083  test -z "$as_dir" && as_dir=.
4084  for ac_exec_ext in '' $ac_executable_extensions; do
4085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086    ac_cv_prog_ac_ct_STRIP="strip"
4087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088    break 2
4089  fi
4090done
4091done
4092
4093  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4094fi
4095fi
4096ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4097if test -n "$ac_ct_STRIP"; then
4098  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4099echo "${ECHO_T}$ac_ct_STRIP" >&6
4100else
4101  echo "$as_me:$LINENO: result: no" >&5
4102echo "${ECHO_T}no" >&6
4103fi
4104
4105  STRIP=$ac_ct_STRIP
4106else
4107  STRIP="$ac_cv_prog_STRIP"
4108fi
4109
4110fi
4111INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4112
4113# We need awk for the "check" target.  The system "awk" is bad on
4114# some platforms.
4115# Always define AMTAR for backward compatibility.
4116
4117AMTAR=${AMTAR-"${am_missing_run}tar"}
4118
4119am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4120
4121
4122
4123
4124depcc="$CC"   am_compiler_list=
4125
4126echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4127echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4128if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4129  echo $ECHO_N "(cached) $ECHO_C" >&6
4130else
4131  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4132  # We make a subdir and do the tests there.  Otherwise we can end up
4133  # making bogus files that we don't know about and never remove.  For
4134  # instance it was reported that on HP-UX the gcc test will end up
4135  # making a dummy file named `D' -- because `-MD' means `put the output
4136  # in D'.
4137  mkdir conftest.dir
4138  # Copy depcomp to subdir because otherwise we won't find it if we're
4139  # using a relative directory.
4140  cp "$am_depcomp" conftest.dir
4141  cd conftest.dir
4142  # We will build objects and dependencies in a subdirectory because
4143  # it helps to detect inapplicable dependency modes.  For instance
4144  # both Tru64's cc and ICC support -MD to output dependencies as a
4145  # side effect of compilation, but ICC will put the dependencies in
4146  # the current directory while Tru64 will put them in the object
4147  # directory.
4148  mkdir sub
4149
4150  am_cv_CC_dependencies_compiler_type=none
4151  if test "$am_compiler_list" = ""; then
4152     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4153  fi
4154  for depmode in $am_compiler_list; do
4155    # Setup a source with many dependencies, because some compilers
4156    # like to wrap large dependency lists on column 80 (with \), and
4157    # we should not choose a depcomp mode which is confused by this.
4158    #
4159    # We need to recreate these files for each test, as the compiler may
4160    # overwrite some of them when testing with obscure command lines.
4161    # This happens at least with the AIX C compiler.
4162    : > sub/conftest.c
4163    for i in 1 2 3 4 5 6; do
4164      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4165      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4166      # Solaris 8's {/usr,}/bin/sh.
4167      touch sub/conftst$i.h
4168    done
4169    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4170
4171    case $depmode in
4172    nosideeffect)
4173      # after this tag, mechanisms are not by side-effect, so they'll
4174      # only be used when explicitly requested
4175      if test "x$enable_dependency_tracking" = xyes; then
4176        continue
4177      else
4178        break
4179      fi
4180      ;;
4181    none) break ;;
4182    esac
4183    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4184    # mode.  It turns out that the SunPro C++ compiler does not properly
4185    # handle `-M -o', and we need to detect this.
4186    if depmode=$depmode \
4187       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4188       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4189       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4190         >/dev/null 2>conftest.err &&
4191       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4192       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4193       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4194      # icc doesn't choke on unknown options, it will just issue warnings
4195      # or remarks (even with -Werror).  So we grep stderr for any message
4196      # that says an option was ignored or not supported.
4197      # When given -MP, icc 7.0 and 7.1 complain thusly:
4198      #   icc: Command line warning: ignoring option '-M'; no argument required
4199      # The diagnosis changed in icc 8.0:
4200      #   icc: Command line remark: option '-MP' not supported
4201      if (grep 'ignoring option' conftest.err ||
4202          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4203        am_cv_CC_dependencies_compiler_type=$depmode
4204        break
4205      fi
4206    fi
4207  done
4208
4209  cd ..
4210  rm -rf conftest.dir
4211else
4212  am_cv_CC_dependencies_compiler_type=none
4213fi
4214
4215fi
4216echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4217echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4218CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4219
4220
4221
4222if
4223  test "x$enable_dependency_tracking" != xno \
4224  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4225  am__fastdepCC_TRUE=
4226  am__fastdepCC_FALSE='#'
4227else
4228  am__fastdepCC_TRUE='#'
4229  am__fastdepCC_FALSE=
4230fi
4231
4232
4233
4234echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4235echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4236    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4237if test "${enable_maintainer_mode+set}" = set; then
4238  enableval="$enable_maintainer_mode"
4239  USE_MAINTAINER_MODE=$enableval
4240else
4241  USE_MAINTAINER_MODE=no
4242fi;
4243  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4244echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4245
4246
4247if test $USE_MAINTAINER_MODE = yes; then
4248  MAINTAINER_MODE_TRUE=
4249  MAINTAINER_MODE_FALSE='#'
4250else
4251  MAINTAINER_MODE_TRUE='#'
4252  MAINTAINER_MODE_FALSE=
4253fi
4254
4255  MAINT=$MAINTAINER_MODE_TRUE
4256
4257
4258
4259coin_have_externals=no
4260if test "$enable_maintainer_mode" = yes; then
4261
4262  # If maintainer mode is chosen, we make sure that the correct versions
4263  # of the tools are used, and that we know where libtool.m4 is (to
4264  # recreate acinclude.m4)
4265
4266
4267  LIBTOOLM4=
4268  # Normally, $HOME
4269  AUTOTOOLS_DFLT=$HOME
4270
4271  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4272echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4273if test "${ac_cv_use_correct_autotools+set}" = set; then
4274  echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276  ac_cv_use_correct_autotools=check
4277fi
4278echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4279echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4280
4281  if test $ac_cv_use_correct_autotools = check; then
4282    ac_cv_use_correct_autotools=yes
4283    # Check if we have autoconf
4284    # Extract the first word of "autoconf", so it can be a program name with args.
4285set dummy autoconf; ac_word=$2
4286echo "$as_me:$LINENO: checking for $ac_word" >&5
4287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4288if test "${ac_cv_prog_have_autoconf+set}" = set; then
4289  echo $ECHO_N "(cached) $ECHO_C" >&6
4290else
4291  if test -n "$have_autoconf"; then
4292  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4293else
4294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295for as_dir in $PATH
4296do
4297  IFS=$as_save_IFS
4298  test -z "$as_dir" && as_dir=.
4299  for ac_exec_ext in '' $ac_executable_extensions; do
4300  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301    ac_cv_prog_have_autoconf="yes"
4302    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303    break 2
4304  fi
4305done
4306done
4307
4308  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4309fi
4310fi
4311have_autoconf=$ac_cv_prog_have_autoconf
4312if test -n "$have_autoconf"; then
4313  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4314echo "${ECHO_T}$have_autoconf" >&6
4315else
4316  echo "$as_me:$LINENO: result: no" >&5
4317echo "${ECHO_T}no" >&6
4318fi
4319
4320    if test $have_autoconf = no; then
4321      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4322echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4323   { (exit 1); exit 1; }; }
4324    fi
4325
4326    # Check whether autoconf is the correct version
4327    correct_version='2.59'
4328    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4329    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4330echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4331    autoconf --version > confauto.out 2>&1
4332    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4333      echo "$as_me:$LINENO: result: yes" >&5
4334echo "${ECHO_T}yes" >&6
4335    else
4336      rm -f confauto.out
4337      echo "$as_me:$LINENO: result: no" >&5
4338echo "${ECHO_T}no" >&6
4339      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4340echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4341   { (exit 1); exit 1; }; }
4342    fi
4343    rm -f confauto.out
4344
4345    # Check if the executable autoconf is picked up from the correct location
4346    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4347echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4348    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4349    autoconf_dir=`cd $autoconf_dir; pwd`
4350    if test x$AUTOTOOLS_DIR = x; then
4351      want_dir=$AUTOTOOLS_DFLT/bin
4352    else
4353      want_dir=$AUTOTOOLS_DIR/bin
4354    fi
4355    if test $autoconf_dir = `cd $want_dir; pwd`; then
4356      echo "$as_me:$LINENO: result: yes" >&5
4357echo "${ECHO_T}yes" >&6
4358    else
4359      rm -f confauto.out
4360      echo "$as_me:$LINENO: result: no" >&5
4361echo "${ECHO_T}no" >&6
4362      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4363echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4364   { (exit 1); exit 1; }; }
4365    fi
4366
4367    # Check if we have automake
4368    # Extract the first word of "automake", so it can be a program name with args.
4369set dummy automake; ac_word=$2
4370echo "$as_me:$LINENO: checking for $ac_word" >&5
4371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4372if test "${ac_cv_prog_have_automake+set}" = set; then
4373  echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375  if test -n "$have_automake"; then
4376  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4377else
4378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379for as_dir in $PATH
4380do
4381  IFS=$as_save_IFS
4382  test -z "$as_dir" && as_dir=.
4383  for ac_exec_ext in '' $ac_executable_extensions; do
4384  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385    ac_cv_prog_have_automake="yes"
4386    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387    break 2
4388  fi
4389done
4390done
4391
4392  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4393fi
4394fi
4395have_automake=$ac_cv_prog_have_automake
4396if test -n "$have_automake"; then
4397  echo "$as_me:$LINENO: result: $have_automake" >&5
4398echo "${ECHO_T}$have_automake" >&6
4399else
4400  echo "$as_me:$LINENO: result: no" >&5
4401echo "${ECHO_T}no" >&6
4402fi
4403
4404    if test $have_automake = no; then
4405      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4406echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4407   { (exit 1); exit 1; }; }
4408    fi
4409
4410    # Check whether automake is the correct version
4411    correct_version='1.9.6'
4412    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4413    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4414echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4415    automake --version > confauto.out 2>&1
4416    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4417      echo "$as_me:$LINENO: result: yes" >&5
4418echo "${ECHO_T}yes" >&6
4419    else
4420      rm -f confauto.out
4421      echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6
4423      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4424echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4425   { (exit 1); exit 1; }; }
4426    fi
4427    rm -f confauto.out
4428
4429    # Check if the executable automake is picked up from the correct location
4430    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4431echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4432    automake_dir=`which automake | sed -e 's=/automake=='`
4433    automake_dir=`cd $automake_dir; pwd`
4434    if test x$AUTOTOOLS_DIR = x; then
4435      want_dir=$AUTOTOOLS_DFLT/bin
4436    else
4437      want_dir=$AUTOTOOLS_DIR/bin
4438    fi
4439    if test $automake_dir = `cd $want_dir; pwd`; then
4440      echo "$as_me:$LINENO: result: yes" >&5
4441echo "${ECHO_T}yes" >&6
4442    else
4443      rm -f confauto.out
4444      echo "$as_me:$LINENO: result: no" >&5
4445echo "${ECHO_T}no" >&6
4446      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4447echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4448   { (exit 1); exit 1; }; }
4449    fi
4450
4451    # Check if this is the correct version of libtool (with escaped dots)
4452    if test x$AUTOTOOLS_DIR = x; then
4453      want_dir=$AUTOTOOLS_DFLT/share
4454    else
4455      want_dir=$AUTOTOOLS_DIR/share
4456    fi
4457    correct_version='1.5.22'
4458    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4459    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4460echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4461echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4462if eval "test \"\${$as_ac_File+set}\" = set"; then
4463  echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
4465  test "$cross_compiling" = yes &&
4466  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4467echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4468   { (exit 1); exit 1; }; }
4469if test -r "$want_dir/libtool/ltmain.sh"; then
4470  eval "$as_ac_File=yes"
4471else
4472  eval "$as_ac_File=no"
4473fi
4474fi
4475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4476echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4477if test `eval echo '${'$as_ac_File'}'` = yes; then
4478  have_ltmain=yes
4479else
4480  have_ltmain=no
4481fi
4482
4483    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4484echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4485    if test $have_ltmain = yes; then
4486    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4487        echo "$as_me:$LINENO: result: yes" >&5
4488echo "${ECHO_T}yes" >&6
4489      else
4490        echo "$as_me:$LINENO: result: no" >&5
4491echo "${ECHO_T}no" >&6
4492        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4493echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4494   { (exit 1); exit 1; }; }
4495      fi
4496    else
4497      echo "$as_me:$LINENO: result: no" >&5
4498echo "${ECHO_T}no" >&6
4499      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4500echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4501   { (exit 1); exit 1; }; }
4502    fi
4503  fi
4504
4505  # Check if we can find the libtool file
4506  if test x$AUTOTOOLS_DIR = x; then
4507    want_dir=$AUTOTOOLS_DFLT/share
4508  else
4509    want_dir=$AUTOTOOLS_DIR/share
4510  fi
4511  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4512echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4513echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4514if eval "test \"\${$as_ac_File+set}\" = set"; then
4515  echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517  test "$cross_compiling" = yes &&
4518  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4519echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4520   { (exit 1); exit 1; }; }
4521if test -r "$want_dir/aclocal/libtool.m4"; then
4522  eval "$as_ac_File=yes"
4523else
4524  eval "$as_ac_File=no"
4525fi
4526fi
4527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4528echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4529if test `eval echo '${'$as_ac_File'}'` = yes; then
4530  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4531else
4532  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4533echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4534   { (exit 1); exit 1; }; }
4535fi
4536
4537
4538  # Check if we have an Externals file
4539  if test -r $srcdir/Externals; then
4540    coin_have_externals=yes
4541  fi
4542  # Check if subversion is installed and understands https
4543  # Extract the first word of "svn", so it can be a program name with args.
4544set dummy svn; ac_word=$2
4545echo "$as_me:$LINENO: checking for $ac_word" >&5
4546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4547if test "${ac_cv_prog_have_svn+set}" = set; then
4548  echo $ECHO_N "(cached) $ECHO_C" >&6
4549else
4550  if test -n "$have_svn"; then
4551  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4552else
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556  IFS=$as_save_IFS
4557  test -z "$as_dir" && as_dir=.
4558  for ac_exec_ext in '' $ac_executable_extensions; do
4559  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560    ac_cv_prog_have_svn="yes"
4561    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562    break 2
4563  fi
4564done
4565done
4566
4567  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4568fi
4569fi
4570have_svn=$ac_cv_prog_have_svn
4571if test -n "$have_svn"; then
4572  echo "$as_me:$LINENO: result: $have_svn" >&5
4573echo "${ECHO_T}$have_svn" >&6
4574else
4575  echo "$as_me:$LINENO: result: no" >&5
4576echo "${ECHO_T}no" >&6
4577fi
4578
4579  if test x$have_svn = xyes; then
4580    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4581echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4582if test "${ac_cv_svn_understands_https+set}" = set; then
4583  echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585  svn --version > confauto.out 2>&1
4586                    if $EGREP https confauto.out >/dev/null 2>&1; then
4587                      ac_cv_svn_understands_https=yes
4588                    else
4589                      ac_cv_svn_understands_https=no
4590                      have_svn=no
4591                      ac_cv_prog_have_svn=no
4592                    fi
4593                    rm -f confauto.out
4594fi
4595echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4596echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4597  fi
4598
4599  # Find the location of the BuildTools directory
4600  BUILDTOOLSDIR=
4601  if test -r $srcdir/BuildTools/coin.m4; then
4602    BUILDTOOLSDIR=$srcdir/BuildTools
4603  else
4604    if test -r $srcdir/../BuildTools/coin.m4; then
4605      BUILDTOOLSDIR=$srcdir/../BuildTools
4606    else
4607      if test -r $srcdir/../../BuildTools/coin.m4; then
4608        BUILDTOOLSDIR=$srcdir/../../BuildTools
4609      else
4610        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4611echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4612   { (exit 1); exit 1; }; }
4613      fi
4614    fi
4615  fi
4616
4617
4618  # The following variable is set to the name of the directory where
4619  # the autotool scripts are located
4620
4621  AUX_DIR=$ac_aux_dir
4622fi
4623
4624# helpful variable for the base directory of this package
4625abs_source_dir=`cd $srcdir; pwd`
4626
4627
4628# Stuff for example Makefiles
4629if test x$prefix = xNONE; then
4630  full_prefix=$ac_default_prefix
4631else
4632  full_prefix=$prefix
4633fi
4634full_prefix=`cd $full_prefix ; pwd`
4635
4636abs_lib_dir=$full_prefix/lib
4637
4638abs_include_dir=$full_prefix/include
4639
4640abs_bin_dir=$full_prefix/bin
4641
4642
4643
4644if test $coin_have_externals = yes && test x$have_svn = xyes; then
4645  HAVE_EXTERNALS_TRUE=
4646  HAVE_EXTERNALS_FALSE='#'
4647else
4648  HAVE_EXTERNALS_TRUE='#'
4649  HAVE_EXTERNALS_FALSE=
4650fi
4651
4652
4653
4654unset ac_cv_file__________libtool
4655unset ac_cv_file_______libtool
4656unset ac_cv_file____libtool
4657
4658LIBTOOL=
4659echo "$as_me:$LINENO: checking for ../libtool" >&5
4660echo $ECHO_N "checking for ../libtool... $ECHO_C" >&6
4661if test "${ac_cv_file____libtool+set}" = set; then
4662  echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
4664  test "$cross_compiling" = yes &&
4665  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4666echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4667   { (exit 1); exit 1; }; }
4668if test -r "../libtool"; then
4669  ac_cv_file____libtool=yes
4670else
4671  ac_cv_file____libtool=no
4672fi
4673fi
4674echo "$as_me:$LINENO: result: $ac_cv_file____libtool" >&5
4675echo "${ECHO_T}$ac_cv_file____libtool" >&6
4676if test $ac_cv_file____libtool = yes; then
4677  coin_config_dir=..
4678               LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4679fi
4680
4681if test "x$LIBTOOL" = x; then
4682  echo "$as_me:$LINENO: checking for ../../libtool" >&5
4683echo $ECHO_N "checking for ../../libtool... $ECHO_C" >&6
4684if test "${ac_cv_file_______libtool+set}" = set; then
4685  echo $ECHO_N "(cached) $ECHO_C" >&6
4686else
4687  test "$cross_compiling" = yes &&
4688  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4689echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4690   { (exit 1); exit 1; }; }
4691if test -r "../../libtool"; then
4692  ac_cv_file_______libtool=yes
4693else
4694  ac_cv_file_______libtool=no
4695fi
4696fi
4697echo "$as_me:$LINENO: result: $ac_cv_file_______libtool" >&5
4698echo "${ECHO_T}$ac_cv_file_______libtool" >&6
4699if test $ac_cv_file_______libtool = yes; then
4700  coin_config_dir=../..
4701                 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4702fi
4703
4704fi
4705if test "x$LIBTOOL" = x; then
4706  echo "$as_me:$LINENO: checking for ../../../libtool" >&5
4707echo $ECHO_N "checking for ../../../libtool... $ECHO_C" >&6
4708if test "${ac_cv_file__________libtool+set}" = set; then
4709  echo $ECHO_N "(cached) $ECHO_C" >&6
4710else
4711  test "$cross_compiling" = yes &&
4712  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4713echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4714   { (exit 1); exit 1; }; }
4715if test -r "../../../libtool"; then
4716  ac_cv_file__________libtool=yes
4717else
4718  ac_cv_file__________libtool=no
4719fi
4720fi
4721echo "$as_me:$LINENO: result: $ac_cv_file__________libtool" >&5
4722echo "${ECHO_T}$ac_cv_file__________libtool" >&6
4723if test $ac_cv_file__________libtool = yes; then
4724  coin_config_dir=../../..
4725                 LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool'
4726fi
4727
4728fi
4729
4730if test "x$LIBTOOL" = x; then
4731
4732  # Stuff for libtool
4733  ac_ext=c
4734ac_cpp='$CPP $CPPFLAGS'
4735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738
4739if test x"" = x; then
4740  hdr="#include <dlfcn.h>"
4741else
4742  hdr=""
4743fi
4744
4745for ac_header in dlfcn.h
4746do
4747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748echo "$as_me:$LINENO: checking for $ac_header" >&5
4749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4750if eval "test \"\${$as_ac_Header+set}\" = set"; then
4751  echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753  cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h.  */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h.  */
4759$hdr
4760
4761#include <$ac_header>
4762_ACEOF
4763rm -f conftest.$ac_objext
4764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4765  (eval $ac_compile) 2>conftest.er1
4766  ac_status=$?
4767  grep -v '^ *+' conftest.er1 >conftest.err
4768  rm -f conftest.er1
4769  cat conftest.err >&5
4770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771  (exit $ac_status); } &&
4772         { ac_try='test -z "$ac_c_werror_flag"
4773                         || test ! -s conftest.err'
4774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775  (eval $ac_try) 2>&5
4776  ac_status=$?
4777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778  (exit $ac_status); }; } &&
4779         { ac_try='test -s conftest.$ac_objext'
4780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781  (eval $ac_try) 2>&5
4782  ac_status=$?
4783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784  (exit $ac_status); }; }; then
4785  eval "$as_ac_Header=yes"
4786else
4787  echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
4789
4790eval "$as_ac_Header=no"
4791fi
4792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4793fi
4794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4796if test `eval echo '${'$as_ac_Header'}'` = yes; then
4797  cat >>confdefs.h <<_ACEOF
4798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4799_ACEOF
4800
4801fi
4802
4803done
4804
4805
4806ac_ext=c
4807ac_cpp='$CPP $CPPFLAGS'
4808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812
4813# Check whether --enable-shared or --disable-shared was given.
4814if test "${enable_shared+set}" = set; then
4815  enableval="$enable_shared"
4816  p=${PACKAGE-default}
4817    case $enableval in
4818    yes) enable_shared=yes ;;
4819    no) enable_shared=no ;;
4820    *)
4821      enable_shared=no
4822      # Look at the argument we got.  We use all the common list separators.
4823      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4824      for pkg in $enableval; do
4825        IFS="$lt_save_ifs"
4826        if test "X$pkg" = "X$p"; then
4827          enable_shared=yes
4828        fi
4829      done
4830      IFS="$lt_save_ifs"
4831      ;;
4832    esac
4833else
4834  enable_shared=yes
4835fi;
4836
4837# Check whether --enable-fast-install or --disable-fast-install was given.
4838if test "${enable_fast_install+set}" = set; then
4839  enableval="$enable_fast_install"
4840  p=${PACKAGE-default}
4841    case $enableval in
4842    yes) enable_fast_install=yes ;;
4843    no) enable_fast_install=no ;;
4844    *)
4845      enable_fast_install=no
4846      # Look at the argument we got.  We use all the common list separators.
4847      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4848      for pkg in $enableval; do
4849        IFS="$lt_save_ifs"
4850        if test "X$pkg" = "X$p"; then
4851          enable_fast_install=yes
4852        fi
4853      done
4854      IFS="$lt_save_ifs"
4855      ;;
4856    esac
4857else
4858  enable_fast_install=yes
4859fi;
4860
4861echo "$as_me:$LINENO: checking host system type" >&5
4862echo $ECHO_N "checking host system type... $ECHO_C" >&6
4863if test "${ac_cv_host+set}" = set; then
4864  echo $ECHO_N "(cached) $ECHO_C" >&6
4865else
4866  ac_cv_host_alias=$host_alias
4867test -z "$ac_cv_host_alias" &&
4868  ac_cv_host_alias=$ac_cv_build_alias
4869ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4870  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4871echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4872   { (exit 1); exit 1; }; }
4873
4874fi
4875echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4876echo "${ECHO_T}$ac_cv_host" >&6
4877host=$ac_cv_host
4878host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4879host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4880host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4881
4882
4883echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4884echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4885if test "${lt_cv_path_SED+set}" = set; then
4886  echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888  # Loop through the user's path and test for sed and gsed.
4889# Then use that list of sed's as ones to test for truncation.
4890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891for as_dir in $PATH
4892do
4893  IFS=$as_save_IFS
4894  test -z "$as_dir" && as_dir=.
4895  for lt_ac_prog in sed gsed; do
4896    for ac_exec_ext in '' $ac_executable_extensions; do
4897      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4898        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4899      fi
4900    done
4901  done
4902done
4903lt_ac_max=0
4904lt_ac_count=0
4905# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4906# along with /bin/sed that truncates output.
4907for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4908  test ! -f $lt_ac_sed && continue
4909  cat /dev/null > conftest.in
4910  lt_ac_count=0
4911  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4912  # Check for GNU sed and select it if it is found.
4913  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4914    lt_cv_path_SED=$lt_ac_sed
4915    break
4916  fi
4917  while true; do
4918    cat conftest.in conftest.in >conftest.tmp
4919    mv conftest.tmp conftest.in
4920    cp conftest.in conftest.nl
4921    echo >>conftest.nl
4922    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4923    cmp -s conftest.out conftest.nl || break
4924    # 10000 chars as input seems more than enough
4925    test $lt_ac_count -gt 10 && break
4926    lt_ac_count=`expr $lt_ac_count + 1`
4927    if test $lt_ac_count -gt $lt_ac_max; then
4928      lt_ac_max=$lt_ac_count
4929      lt_cv_path_SED=$lt_ac_sed
4930    fi
4931  done
4932done
4933
4934fi
4935
4936SED=$lt_cv_path_SED
4937echo "$as_me:$LINENO: result: $SED" >&5
4938echo "${ECHO_T}$SED" >&6
4939
4940
4941# Check whether --with-gnu-ld or --without-gnu-ld was given.
4942if test "${with_gnu_ld+set}" = set; then
4943  withval="$with_gnu_ld"
4944  test "$withval" = no || with_gnu_ld=yes
4945else
4946  with_gnu_ld=no
4947fi;
4948ac_prog=ld
4949if test "$GCC" = yes; then
4950  # Check if gcc -print-prog-name=ld gives a path.
4951  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4952echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4953  case $host in
4954  *-*-mingw*)
4955    # gcc leaves a trailing carriage return which upsets mingw
4956    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4957  *)
4958    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4959  esac
4960  case $ac_prog in
4961    # Accept absolute paths.
4962    [\\/]* | ?:[\\/]*)
4963      re_direlt='/[^/][^/]*/\.\./'
4964      # Canonicalize the pathname of ld
4965      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4966      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4967        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4968      done
4969      test -z "$LD" && LD="$ac_prog"
4970      ;;
4971  "")
4972    # If it fails, then pretend we aren't using GCC.
4973    ac_prog=ld
4974    ;;
4975  *)
4976    # If it is relative, then search for the first ld in PATH.
4977    with_gnu_ld=unknown
4978    ;;
4979  esac
4980elif test "$with_gnu_ld" = yes; then
4981  echo "$as_me:$LINENO: checking for GNU ld" >&5
4982echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4983else
4984  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4985echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4986fi
4987if test "${lt_cv_path_LD+set}" = set; then
4988  echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990  if test -z "$LD"; then
4991  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4992  for ac_dir in $PATH; do
4993    IFS="$lt_save_ifs"
4994    test -z "$ac_dir" && ac_dir=.
4995    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4996      lt_cv_path_LD="$ac_dir/$ac_prog"
4997      # Check to see if the program is GNU ld.  I'd rather use --version,
4998      # but apparently some variants of GNU ld only accept -v.
4999      # Break only if it was the GNU/non-GNU ld that we prefer.
5000      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5001      *GNU* | *'with BFD'*)
5002        test "$with_gnu_ld" != no && break
5003        ;;
5004      *)
5005        test "$with_gnu_ld" != yes && break
5006        ;;
5007      esac
5008    fi
5009  done
5010  IFS="$lt_save_ifs"
5011else
5012  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5013fi
5014fi
5015
5016LD="$lt_cv_path_LD"
5017if test -n "$LD"; then
5018  echo "$as_me:$LINENO: result: $LD" >&5
5019echo "${ECHO_T}$LD" >&6
5020else
5021  echo "$as_me:$LINENO: result: no" >&5
5022echo "${ECHO_T}no" >&6
5023fi
5024test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5025echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5026   { (exit 1); exit 1; }; }
5027echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5028echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5029if test "${lt_cv_prog_gnu_ld+set}" = set; then
5030  echo $ECHO_N "(cached) $ECHO_C" >&6
5031else
5032  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5033case `$LD -v 2>&1 </dev/null` in
5034*GNU* | *'with BFD'*)
5035  lt_cv_prog_gnu_ld=yes
5036  ;;
5037*)
5038  lt_cv_prog_gnu_ld=no
5039  ;;
5040esac
5041fi
5042echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5043echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5044with_gnu_ld=$lt_cv_prog_gnu_ld
5045
5046
5047echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5048echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5049if test "${lt_cv_ld_reload_flag+set}" = set; then
5050  echo $ECHO_N "(cached) $ECHO_C" >&6
5051else
5052  lt_cv_ld_reload_flag='-r'
5053fi
5054echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5055echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5056reload_flag=$lt_cv_ld_reload_flag
5057case $reload_flag in
5058"" | " "*) ;;
5059*) reload_flag=" $reload_flag" ;;
5060esac
5061reload_cmds='$LD$reload_flag -o $output$reload_objs'
5062case $host_os in
5063  darwin*)
5064    if test "$GCC" = yes; then
5065      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5066    else
5067      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5068    fi
5069    ;;
5070esac
5071
5072echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5073echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5074if test "${lt_cv_path_NM+set}" = set; then
5075  echo $ECHO_N "(cached) $ECHO_C" >&6
5076else
5077  if test -n "$NM"; then
5078  # Let the user override the test.
5079  lt_cv_path_NM="$NM"
5080else
5081  lt_nm_to_check="${ac_tool_prefix}nm"
5082  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5083    lt_nm_to_check="$lt_nm_to_check nm"
5084  fi
5085  for lt_tmp_nm in $lt_nm_to_check; do
5086    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5087    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5088      IFS="$lt_save_ifs"
5089      test -z "$ac_dir" && ac_dir=.
5090      tmp_nm="$ac_dir/$lt_tmp_nm"
5091      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5092        # Check to see if the nm accepts a BSD-compat flag.
5093        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5094        #   nm: unknown option "B" ignored
5095        # Tru64's nm complains that /dev/null is an invalid object file
5096        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5097        */dev/null* | *'Invalid file or object type'*)
5098          lt_cv_path_NM="$tmp_nm -B"
5099          break
5100          ;;
5101        *)
5102          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5103          */dev/null*)
5104            lt_cv_path_NM="$tmp_nm -p"
5105            break
5106            ;;
5107          *)
5108            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5109            continue # so that we can try to find one that supports BSD flags
5110            ;;
5111          esac
5112          ;;
5113        esac
5114      fi
5115    done
5116    IFS="$lt_save_ifs"
5117  done
5118  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5119fi
5120fi
5121echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5122echo "${ECHO_T}$lt_cv_path_NM" >&6
5123NM="$lt_cv_path_NM"
5124
5125echo "$as_me:$LINENO: checking whether ln -s works" >&5
5126echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5127LN_S=$as_ln_s
5128if test "$LN_S" = "ln -s"; then
5129  echo "$as_me:$LINENO: result: yes" >&5
5130echo "${ECHO_T}yes" >&6
5131else
5132  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5133echo "${ECHO_T}no, using $LN_S" >&6
5134fi
5135
5136echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5137echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5138if test "${lt_cv_deplibs_check_method+set}" = set; then
5139  echo $ECHO_N "(cached) $ECHO_C" >&6
5140else
5141  lt_cv_file_magic_cmd='$MAGIC_CMD'
5142lt_cv_file_magic_test_file=
5143lt_cv_deplibs_check_method='unknown'
5144# Need to set the preceding variable on all platforms that support
5145# interlibrary dependencies.
5146# 'none' -- dependencies not supported.
5147# `unknown' -- same as none, but documents that we really don't know.
5148# 'pass_all' -- all dependencies passed with no checks.
5149# 'test_compile' -- check by making test program.
5150# 'file_magic [[regex]]' -- check by looking for files in library path
5151# which responds to the $file_magic_cmd with a given extended regex.
5152# If you have `file' or equivalent on your system and you're not sure
5153# whether `pass_all' will *always* work, you probably want this one.
5154
5155case $host_os in
5156aix4* | aix5*)
5157  lt_cv_deplibs_check_method=pass_all
5158  ;;
5159
5160beos*)
5161  lt_cv_deplibs_check_method=pass_all
5162  ;;
5163
5164bsdi[45]*)
5165  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5166  lt_cv_file_magic_cmd='/usr/bin/file -L'
5167  lt_cv_file_magic_test_file=/shlib/libc.so
5168  ;;
5169
5170cygwin*)
5171  # func_win32_libid is a shell function defined in ltmain.sh
5172  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5173  lt_cv_file_magic_cmd='func_win32_libid'
5174  ;;
5175
5176mingw* | pw32*)
5177  # Base MSYS/MinGW do not provide the 'file' command needed by
5178  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5179  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5180  lt_cv_file_magic_cmd='$OBJDUMP -f'
5181  ;;
5182
5183darwin* | rhapsody*)
5184  lt_cv_deplibs_check_method=pass_all
5185  ;;
5186
5187freebsd* | kfreebsd*-gnu | dragonfly*)
5188  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5189    case $host_cpu in
5190    i*86 )
5191      # Not sure whether the presence of OpenBSD here was a mistake.
5192      # Let's accept both of them until this is cleared up.
5193      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5194      lt_cv_file_magic_cmd=/usr/bin/file
5195      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5196      ;;
5197    esac
5198  else
5199    lt_cv_deplibs_check_method=pass_all
5200  fi
5201  ;;
5202
5203gnu*)
5204  lt_cv_deplibs_check_method=pass_all
5205  ;;
5206
5207hpux10.20* | hpux11*)
5208  lt_cv_file_magic_cmd=/usr/bin/file
5209  case $host_cpu in
5210  ia64*)
5211    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5212    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5213    ;;
5214  hppa*64*)
5215    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]'
5216    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5217    ;;
5218  *)
5219    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5220    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5221    ;;
5222  esac
5223  ;;
5224
5225interix3*)
5226  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5227  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5228  ;;
5229
5230irix5* | irix6* | nonstopux*)
5231  case $LD in
5232  *-32|*"-32 ") libmagic=32-bit;;
5233  *-n32|*"-n32 ") libmagic=N32;;
5234  *-64|*"-64 ") libmagic=64-bit;;
5235  *) libmagic=never-match;;
5236  esac
5237  lt_cv_deplibs_check_method=pass_all
5238  ;;
5239
5240# This must be Linux ELF.
5241linux*)
5242  lt_cv_deplibs_check_method=pass_all
5243  ;;
5244
5245netbsd*)
5246  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5247    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5248  else
5249    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5250  fi
5251  ;;
5252
5253newos6*)
5254  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5255  lt_cv_file_magic_cmd=/usr/bin/file
5256  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5257  ;;
5258
5259nto-qnx*)
5260  lt_cv_deplibs_check_method=unknown
5261  ;;
5262
5263openbsd*)
5264  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5265    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5266  else
5267    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5268  fi
5269  ;;
5270
5271osf3* | osf4* | osf5*)
5272  lt_cv_deplibs_check_method=pass_all
5273  ;;
5274
5275solaris*)
5276  lt_cv_deplibs_check_method=pass_all
5277  ;;
5278
5279sysv4 | sysv4.3*)
5280  case $host_vendor in
5281  motorola)
5282    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]'
5283    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5284    ;;
5285  ncr)
5286    lt_cv_deplibs_check_method=pass_all
5287    ;;
5288  sequent)
5289    lt_cv_file_magic_cmd='/bin/file'
5290    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5291    ;;
5292  sni)
5293    lt_cv_file_magic_cmd='/bin/file'
5294    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5295    lt_cv_file_magic_test_file=/lib/libc.so
5296    ;;
5297  siemens)
5298    lt_cv_deplibs_check_method=pass_all
5299    ;;
5300  pc)
5301    lt_cv_deplibs_check_method=pass_all
5302    ;;
5303  esac
5304  ;;
5305
5306sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5307  lt_cv_deplibs_check_method=pass_all
5308  ;;
5309esac
5310
5311fi
5312echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5313echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5314file_magic_cmd=$lt_cv_file_magic_cmd
5315deplibs_check_method=$lt_cv_deplibs_check_method
5316test -z "$deplibs_check_method" && deplibs_check_method=unknown
5317
5318
5319
5320
5321# If no C compiler was specified, use CC.
5322LTCC=${LTCC-"$CC"}
5323
5324# If no C compiler flags were specified, use CFLAGS.
5325LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5326
5327# Allow CC to be a program name with arguments.
5328compiler=$CC
5329
5330# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5331if test "${enable_libtool_lock+set}" = set; then
5332  enableval="$enable_libtool_lock"
5333
5334fi;
5335test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5336
5337# Some flags need to be propagated to the compiler or linker for good
5338# libtool support.
5339case $host in
5340ia64-*-hpux*)
5341  # Find out which ABI we are using.
5342  echo 'int i;' > conftest.$ac_ext
5343  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344  (eval $ac_compile) 2>&5
5345  ac_status=$?
5346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347  (exit $ac_status); }; then
5348    case `/usr/bin/file conftest.$ac_objext` in
5349    *ELF-32*)
5350      HPUX_IA64_MODE="32"
5351      ;;
5352    *ELF-64*)
5353      HPUX_IA64_MODE="64"
5354      ;;
5355    esac
5356  fi
5357  rm -rf conftest*
5358  ;;
5359*-*-irix6*)
5360  # Find out which ABI we are using.
5361  echo '#line 5361 "configure"' > conftest.$ac_ext
5362  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5363  (eval $ac_compile) 2>&5
5364  ac_status=$?
5365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366  (exit $ac_status); }; then
5367   if test "$lt_cv_prog_gnu_ld" = yes; then
5368    case `/usr/bin/file conftest.$ac_objext` in
5369    *32-bit*)
5370      LD="${LD-ld} -melf32bsmip"
5371      ;;
5372    *N32*)
5373      LD="${LD-ld} -melf32bmipn32"
5374      ;;
5375    *64-bit*)
5376      LD="${LD-ld} -melf64bmip"
5377      ;;
5378    esac
5379   else
5380    case `/usr/bin/file conftest.$ac_objext` in
5381    *32-bit*)
5382      LD="${LD-ld} -32"
5383      ;;
5384    *N32*)
5385      LD="${LD-ld} -n32"
5386      ;;
5387    *64-bit*)
5388      LD="${LD-ld} -64"
5389      ;;
5390    esac
5391   fi
5392  fi
5393  rm -rf conftest*
5394  ;;
5395
5396x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5397  # Find out which ABI we are using.
5398  echo 'int i;' > conftest.$ac_ext
5399  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400  (eval $ac_compile) 2>&5
5401  ac_status=$?
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); }; then
5404    case `/usr/bin/file conftest.o` in
5405    *32-bit*)
5406      case $host in
5407        x86_64-*linux*)
5408          LD="${LD-ld} -m elf_i386"
5409          ;;
5410        ppc64-*linux*|powerpc64-*linux*)
5411          LD="${LD-ld} -m elf32ppclinux"
5412          ;;
5413        s390x-*linux*)
5414          LD="${LD-ld} -m elf_s390"
5415          ;;
5416        sparc64-*linux*)
5417          LD="${LD-ld} -m elf32_sparc"
5418          ;;
5419      esac
5420      ;;
5421    *64-bit*)
5422      case $host in
5423        x86_64-*linux*)
5424          LD="${LD-ld} -m elf_x86_64"
5425          ;;
5426        ppc*-*linux*|powerpc*-*linux*)
5427          LD="${LD-ld} -m elf64ppc"
5428          ;;
5429        s390*-*linux*)
5430          LD="${LD-ld} -m elf64_s390"
5431          ;;
5432        sparc*-*linux*)
5433          LD="${LD-ld} -m elf64_sparc"
5434          ;;
5435      esac
5436      ;;
5437    esac
5438  fi
5439  rm -rf conftest*
5440  ;;
5441
5442*-*-sco3.2v5*)
5443  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5444  SAVE_CFLAGS="$CFLAGS"
5445  CFLAGS="$CFLAGS -belf"
5446  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5447echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5448if test "${lt_cv_cc_needs_belf+set}" = set; then
5449  echo $ECHO_N "(cached) $ECHO_C" >&6
5450else
5451  ac_ext=c
5452ac_cpp='$CPP $CPPFLAGS'
5453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455ac_compiler_gnu=$ac_cv_c_compiler_gnu
5456
5457     cat >conftest.$ac_ext <<_ACEOF
5458/* confdefs.h.  */
5459_ACEOF
5460cat confdefs.h >>conftest.$ac_ext
5461cat >>conftest.$ac_ext <<_ACEOF
5462/* end confdefs.h.  */
5463
5464int
5465main ()
5466{
5467
5468  ;
5469  return 0;
5470}
5471_ACEOF
5472rm -f conftest.$ac_objext conftest$ac_exeext
5473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5474  (eval $ac_link) 2>conftest.er1
5475  ac_status=$?
5476  grep -v '^ *+' conftest.er1 >conftest.err
5477  rm -f conftest.er1
5478  cat conftest.err >&5
5479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480  (exit $ac_status); } &&
5481         { ac_try='test -z "$ac_c_werror_flag"
5482                         || test ! -s conftest.err'
5483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484  (eval $ac_try) 2>&5
5485  ac_status=$?
5486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487  (exit $ac_status); }; } &&
5488         { ac_try='test -s conftest$ac_exeext'
5489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490  (eval $ac_try) 2>&5
5491  ac_status=$?
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); }; }; then
5494  lt_cv_cc_needs_belf=yes
5495else
5496  echo "$as_me: failed program was:" >&5
5497sed 's/^/| /' conftest.$ac_ext >&5
5498
5499lt_cv_cc_needs_belf=no
5500fi
5501rm -f conftest.err conftest.$ac_objext \
5502      conftest$ac_exeext conftest.$ac_ext
5503     ac_ext=c
5504ac_cpp='$CPP $CPPFLAGS'
5505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508
5509fi
5510echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5511echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5512  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5513    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5514    CFLAGS="$SAVE_CFLAGS"
5515  fi
5516  ;;
5517sparc*-*solaris*)
5518  # Find out which ABI we are using.
5519  echo 'int i;' > conftest.$ac_ext
5520  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5521  (eval $ac_compile) 2>&5
5522  ac_status=$?
5523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524  (exit $ac_status); }; then
5525    case `/usr/bin/file conftest.o` in
5526    *64-bit*)
5527      case $lt_cv_prog_gnu_ld in
5528      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5529      *)    LD="${LD-ld} -64" ;;
5530      esac
5531      ;;
5532    esac
5533  fi
5534  rm -rf conftest*
5535  ;;
5536
5537
5538esac
5539
5540need_locks="$enable_libtool_lock"
5541
5542
5543ac_ext=c
5544ac_cpp='$CPP $CPPFLAGS'
5545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547ac_compiler_gnu=$ac_cv_c_compiler_gnu
5548echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5549echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5550# On Suns, sometimes $CPP names a directory.
5551if test -n "$CPP" && test -d "$CPP"; then
5552  CPP=
5553fi
5554if test -z "$CPP"; then
5555  if test "${ac_cv_prog_CPP+set}" = set; then
5556  echo $ECHO_N "(cached) $ECHO_C" >&6
5557else
5558      # Double quotes because CPP needs to be expanded
5559    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5560    do
5561      ac_preproc_ok=false
5562for ac_c_preproc_warn_flag in '' yes
5563do
5564  # Use a header file that comes with gcc, so configuring glibc
5565  # with a fresh cross-compiler works.
5566  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5567  # <limits.h> exists even on freestanding compilers.
5568  # On the NeXT, cc -E runs the code through the compiler's parser,
5569  # not just through cpp. "Syntax error" is here to catch this case.
5570  cat >conftest.$ac_ext <<_ACEOF
5571/* confdefs.h.  */
5572_ACEOF
5573cat confdefs.h >>conftest.$ac_ext
5574cat >>conftest.$ac_ext <<_ACEOF
5575/* end confdefs.h.  */
5576#ifdef __STDC__
5577# include <limits.h>
5578#else
5579# include <assert.h>
5580#endif
5581                     Syntax error
5582_ACEOF
5583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5584  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5585  ac_status=$?
5586  grep -v '^ *+' conftest.er1 >conftest.err
5587  rm -f conftest.er1
5588  cat conftest.err >&5
5589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590  (exit $ac_status); } >/dev/null; then
5591  if test -s conftest.err; then
5592    ac_cpp_err=$ac_c_preproc_warn_flag
5593    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5594  else
5595    ac_cpp_err=
5596  fi
5597else
5598  ac_cpp_err=yes
5599fi
5600if test -z "$ac_cpp_err"; then
5601  :
5602else
5603  echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606  # Broken: fails on valid input.
5607continue
5608fi
5609rm -f conftest.err conftest.$ac_ext
5610
5611  # OK, works on sane cases.  Now check whether non-existent headers
5612  # can be detected and how.
5613  cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h.  */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
5618/* end confdefs.h.  */
5619#include <ac_nonexistent.h>
5620_ACEOF
5621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5622  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5623  ac_status=$?
5624  grep -v '^ *+' conftest.er1 >conftest.err
5625  rm -f conftest.er1
5626  cat conftest.err >&5
5627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628  (exit $ac_status); } >/dev/null; then
5629  if test -s conftest.err; then
5630    ac_cpp_err=$ac_c_preproc_warn_flag
5631    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5632  else
5633    ac_cpp_err=
5634  fi
5635else
5636  ac_cpp_err=yes
5637fi
5638if test -z "$ac_cpp_err"; then
5639  # Broken: success on invalid input.
5640continue
5641else
5642  echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645  # Passes both tests.
5646ac_preproc_ok=:
5647break
5648fi
5649rm -f conftest.err conftest.$ac_ext
5650
5651done
5652# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5653rm -f conftest.err conftest.$ac_ext
5654if $ac_preproc_ok; then
5655  break
5656fi
5657
5658    done
5659    ac_cv_prog_CPP=$CPP
5660
5661fi
5662  CPP=$ac_cv_prog_CPP
5663else
5664  ac_cv_prog_CPP=$CPP
5665fi
5666echo "$as_me:$LINENO: result: $CPP" >&5
5667echo "${ECHO_T}$CPP" >&6
5668ac_preproc_ok=false
5669for ac_c_preproc_warn_flag in '' yes
5670do
5671  # Use a header file that comes with gcc, so configuring glibc
5672  # with a fresh cross-compiler works.
5673  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5674  # <limits.h> exists even on freestanding compilers.
5675  # On the NeXT, cc -E runs the code through the compiler's parser,
5676  # not just through cpp. "Syntax error" is here to catch this case.
5677  cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h.  */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h.  */
5683#ifdef __STDC__
5684# include <limits.h>
5685#else
5686# include <assert.h>
5687#endif
5688                     Syntax error
5689_ACEOF
5690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5691  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5692  ac_status=$?
5693  grep -v '^ *+' conftest.er1 >conftest.err
5694  rm -f conftest.er1
5695  cat conftest.err >&5
5696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697  (exit $ac_status); } >/dev/null; then
5698  if test -s conftest.err; then
5699    ac_cpp_err=$ac_c_preproc_warn_flag
5700    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5701  else
5702    ac_cpp_err=
5703  fi
5704else
5705  ac_cpp_err=yes
5706fi
5707if test -z "$ac_cpp_err"; then
5708  :
5709else
5710  echo "$as_me: failed program was:" >&5
5711sed 's/^/| /' conftest.$ac_ext >&5
5712
5713  # Broken: fails on valid input.
5714continue
5715fi
5716rm -f conftest.err conftest.$ac_ext
5717
5718  # OK, works on sane cases.  Now check whether non-existent headers
5719  # can be detected and how.
5720  cat >conftest.$ac_ext <<_ACEOF
5721/* confdefs.h.  */
5722_ACEOF
5723cat confdefs.h >>conftest.$ac_ext
5724cat >>conftest.$ac_ext <<_ACEOF
5725/* end confdefs.h.  */
5726#include <ac_nonexistent.h>
5727_ACEOF
5728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5729  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5730  ac_status=$?
5731  grep -v '^ *+' conftest.er1 >conftest.err
5732  rm -f conftest.er1
5733  cat conftest.err >&5
5734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735  (exit $ac_status); } >/dev/null; then
5736  if test -s conftest.err; then
5737    ac_cpp_err=$ac_c_preproc_warn_flag
5738    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5739  else
5740    ac_cpp_err=
5741  fi
5742else
5743  ac_cpp_err=yes
5744fi
5745if test -z "$ac_cpp_err"; then
5746  # Broken: success on invalid input.
5747continue
5748else
5749  echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
5752  # Passes both tests.
5753ac_preproc_ok=:
5754break
5755fi
5756rm -f conftest.err conftest.$ac_ext
5757
5758done
5759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5760rm -f conftest.err conftest.$ac_ext
5761if $ac_preproc_ok; then
5762  :
5763else
5764  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5765See \`config.log' for more details." >&5
5766echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5767See \`config.log' for more details." >&2;}
5768   { (exit 1); exit 1; }; }
5769fi
5770
5771ac_ext=c
5772ac_cpp='$CPP $CPPFLAGS'
5773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775ac_compiler_gnu=$ac_cv_c_compiler_gnu
5776
5777
5778echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5779echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5780if test "${ac_cv_header_stdc+set}" = set; then
5781  echo $ECHO_N "(cached) $ECHO_C" >&6
5782else
5783  cat >conftest.$ac_ext <<_ACEOF
5784/* confdefs.h.  */
5785_ACEOF
5786cat confdefs.h >>conftest.$ac_ext
5787cat >>conftest.$ac_ext <<_ACEOF
5788/* end confdefs.h.  */
5789#include <stdlib.h>
5790#include <stdarg.h>
5791#include <string.h>
5792#include <float.h>
5793
5794int
5795main ()
5796{
5797
5798  ;
5799  return 0;
5800}
5801_ACEOF
5802rm -f conftest.$ac_objext
5803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804  (eval $ac_compile) 2>conftest.er1
5805  ac_status=$?
5806  grep -v '^ *+' conftest.er1 >conftest.err
5807  rm -f conftest.er1
5808  cat conftest.err >&5
5809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810  (exit $ac_status); } &&
5811         { ac_try='test -z "$ac_c_werror_flag"
5812                         || test ! -s conftest.err'
5813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814  (eval $ac_try) 2>&5
5815  ac_status=$?
5816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817  (exit $ac_status); }; } &&
5818         { ac_try='test -s conftest.$ac_objext'
5819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820  (eval $ac_try) 2>&5
5821  ac_status=$?
5822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823  (exit $ac_status); }; }; then
5824  ac_cv_header_stdc=yes
5825else
5826  echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
5828
5829ac_cv_header_stdc=no
5830fi
5831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5832
5833if test $ac_cv_header_stdc = yes; then
5834  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5835  cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h.  */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h.  */
5841#include <string.h>
5842
5843_ACEOF
5844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5845  $EGREP "memchr" >/dev/null 2>&1; then
5846  :
5847else
5848  ac_cv_header_stdc=no
5849fi
5850rm -f conftest*
5851
5852fi
5853
5854if test $ac_cv_header_stdc = yes; then
5855  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5856  cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h.  */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
5861/* end confdefs.h.  */
5862#include <stdlib.h>
5863
5864_ACEOF
5865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866  $EGREP "free" >/dev/null 2>&1; then
5867  :
5868else
5869  ac_cv_header_stdc=no
5870fi
5871rm -f conftest*
5872
5873fi
5874
5875if test $ac_cv_header_stdc = yes; then
5876  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5877  if test "$cross_compiling" = yes; then
5878  :
5879else
5880  cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h.  */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h.  */
5886#include <ctype.h>
5887#if ((' ' & 0x0FF) == 0x020)
5888# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5889# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5890#else
5891# define ISLOWER(c) \
5892                   (('a' <= (c) && (c) <= 'i') \
5893                     || ('j' <= (c) && (c) <= 'r') \
5894                     || ('s' <= (c) && (c) <= 'z'))
5895# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5896#endif
5897
5898#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5899int
5900main ()
5901{
5902  int i;
5903  for (i = 0; i < 256; i++)
5904    if (XOR (islower (i), ISLOWER (i))
5905        || toupper (i) != TOUPPER (i))
5906      exit(2);
5907  exit (0);
5908}
5909_ACEOF
5910rm -f conftest$ac_exeext
5911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5912  (eval $ac_link) 2>&5
5913  ac_status=$?
5914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917  (eval $ac_try) 2>&5
5918  ac_status=$?
5919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920  (exit $ac_status); }; }; then
5921  :
5922else
5923  echo "$as_me: program exited with status $ac_status" >&5
5924echo "$as_me: failed program was:" >&5
5925sed 's/^/| /' conftest.$ac_ext >&5
5926
5927( exit $ac_status )
5928ac_cv_header_stdc=no
5929fi
5930rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5931fi
5932fi
5933fi
5934echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5935echo "${ECHO_T}$ac_cv_header_stdc" >&6
5936if test $ac_cv_header_stdc = yes; then
5937
5938cat >>confdefs.h <<\_ACEOF
5939#define STDC_HEADERS 1
5940_ACEOF
5941
5942fi
5943
5944# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5955                  inttypes.h stdint.h unistd.h
5956do
5957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5958echo "$as_me:$LINENO: checking for $ac_header" >&5
5959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5960if eval "test \"\${$as_ac_Header+set}\" = set"; then
5961  echo $ECHO_N "(cached) $ECHO_C" >&6
5962else
5963  cat >conftest.$ac_ext <<_ACEOF
5964/* confdefs.h.  */
5965_ACEOF
5966cat confdefs.h >>conftest.$ac_ext
5967cat >>conftest.$ac_ext <<_ACEOF
5968/* end confdefs.h.  */
5969$ac_includes_default
5970
5971#include <$ac_header>
5972_ACEOF
5973rm -f conftest.$ac_objext
5974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975  (eval $ac_compile) 2>conftest.er1
5976  ac_status=$?
5977  grep -v '^ *+' conftest.er1 >conftest.err
5978  rm -f conftest.er1
5979  cat conftest.err >&5
5980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981  (exit $ac_status); } &&
5982         { ac_try='test -z "$ac_c_werror_flag"
5983                         || test ! -s conftest.err'
5984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985  (eval $ac_try) 2>&5
5986  ac_status=$?
5987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988  (exit $ac_status); }; } &&
5989         { ac_try='test -s conftest.$ac_objext'
5990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991  (eval $ac_try) 2>&5
5992  ac_status=$?
5993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994  (exit $ac_status); }; }; then
5995  eval "$as_ac_Header=yes"
5996else
5997  echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000eval "$as_ac_Header=no"
6001fi
6002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6003fi
6004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6006if test `eval echo '${'$as_ac_Header'}'` = yes; then
6007  cat >>confdefs.h <<_ACEOF
6008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6009_ACEOF
6010
6011fi
6012
6013done
6014
6015
6016
6017for ac_header in dlfcn.h
6018do
6019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6020if eval "test \"\${$as_ac_Header+set}\" = set"; then
6021  echo "$as_me:$LINENO: checking for $ac_header" >&5
6022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6023if eval "test \"\${$as_ac_Header+set}\" = set"; then
6024  echo $ECHO_N "(cached) $ECHO_C" >&6
6025fi
6026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6028else
6029  # Is the header compilable?
6030echo "$as_me:$LINENO: checking $ac_header usability" >&5
6031echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6032cat >conftest.$ac_ext <<_ACEOF
6033/* confdefs.h.  */
6034_ACEOF
6035cat confdefs.h >>conftest.$ac_ext
6036cat >>conftest.$ac_ext <<_ACEOF
6037/* end confdefs.h.  */
6038$ac_includes_default
6039#include <$ac_header>
6040_ACEOF
6041rm -f conftest.$ac_objext
6042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6043  (eval $ac_compile) 2>conftest.er1
6044  ac_status=$?
6045  grep -v '^ *+' conftest.er1 >conftest.err
6046  rm -f conftest.er1
6047  cat conftest.err >&5
6048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049  (exit $ac_status); } &&
6050         { ac_try='test -z "$ac_c_werror_flag"
6051                         || test ! -s conftest.err'
6052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053  (eval $ac_try) 2>&5
6054  ac_status=$?
6055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056  (exit $ac_status); }; } &&
6057         { ac_try='test -s conftest.$ac_objext'
6058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059  (eval $ac_try) 2>&5
6060  ac_status=$?
6061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062  (exit $ac_status); }; }; then
6063  ac_header_compiler=yes
6064else
6065  echo "$as_me: failed program was:" >&5
6066sed 's/^/| /' conftest.$ac_ext >&5
6067
6068ac_header_compiler=no
6069fi
6070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6072echo "${ECHO_T}$ac_header_compiler" >&6
6073
6074# Is the header present?
6075echo "$as_me:$LINENO: checking $ac_header presence" >&5
6076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6077cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h.  */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
6082/* end confdefs.h.  */
6083#include <$ac_header>
6084_ACEOF
6085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6086  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6087  ac_status=$?
6088  grep -v '^ *+' conftest.er1 >conftest.err
6089  rm -f conftest.er1
6090  cat conftest.err >&5
6091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092  (exit $ac_status); } >/dev/null; then
6093  if test -s conftest.err; then
6094    ac_cpp_err=$ac_c_preproc_warn_flag
6095    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6096  else
6097    ac_cpp_err=
6098  fi
6099else
6100  ac_cpp_err=yes
6101fi
6102if test -z "$ac_cpp_err"; then
6103  ac_header_preproc=yes
6104else
6105  echo "$as_me: failed program was:" >&5
6106sed 's/^/| /' conftest.$ac_ext >&5
6107
6108  ac_header_preproc=no
6109fi
6110rm -f conftest.err conftest.$ac_ext
6111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6112echo "${ECHO_T}$ac_header_preproc" >&6
6113
6114# So?  What about this header?
6115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6116  yes:no: )
6117    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6119    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6121    ac_header_preproc=yes
6122    ;;
6123  no:yes:* )
6124    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6126    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6127echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6128    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6130    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6131echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6132    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6134    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6136    (
6137      cat <<\_ASBOX
6138## --------------------------------------------------------------- ##
6139## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6140## --------------------------------------------------------------- ##
6141_ASBOX
6142    ) |
6143      sed "s/^/$as_me: WARNING:     /" >&2
6144    ;;
6145esac
6146echo "$as_me:$LINENO: checking for $ac_header" >&5
6147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6148if eval "test \"\${$as_ac_Header+set}\" = set"; then
6149  echo $ECHO_N "(cached) $ECHO_C" >&6
6150else
6151  eval "$as_ac_Header=\$ac_header_preproc"
6152fi
6153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6155
6156fi
6157if test `eval echo '${'$as_ac_Header'}'` = yes; then
6158  cat >>confdefs.h <<_ACEOF
6159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6160_ACEOF
6161
6162fi
6163
6164done
6165
6166ac_ext=cc
6167ac_cpp='$CXXCPP $CPPFLAGS'
6168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6171if test -n "$ac_tool_prefix"; then
6172  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6173  do
6174    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6176echo "$as_me:$LINENO: checking for $ac_word" >&5
6177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6178if test "${ac_cv_prog_CXX+set}" = set; then
6179  echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
6181  if test -n "$CXX"; then
6182  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187  IFS=$as_save_IFS
6188  test -z "$as_dir" && as_dir=.
6189  for ac_exec_ext in '' $ac_executable_extensions; do
6190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193    break 2
6194  fi
6195done
6196done
6197
6198fi
6199fi
6200CXX=$ac_cv_prog_CXX
6201if test -n "$CXX"; then
6202  echo "$as_me:$LINENO: result: $CXX" >&5
6203echo "${ECHO_T}$CXX" >&6
6204else
6205  echo "$as_me:$LINENO: result: no" >&5
6206echo "${ECHO_T}no" >&6
6207fi
6208
6209    test -n "$CXX" && break
6210  done
6211fi
6212if test -z "$CXX"; then
6213  ac_ct_CXX=$CXX
6214  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6215do
6216  # Extract the first word of "$ac_prog", so it can be a program name with args.
6217set dummy $ac_prog; ac_word=$2
6218echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6220if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  if test -n "$ac_ct_CXX"; then
6224  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229  IFS=$as_save_IFS
6230  test -z "$as_dir" && as_dir=.
6231  for ac_exec_ext in '' $ac_executable_extensions; do
6232  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233    ac_cv_prog_ac_ct_CXX="$ac_prog"
6234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235    break 2
6236  fi
6237done
6238done
6239
6240fi
6241fi
6242ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6243if test -n "$ac_ct_CXX"; then
6244  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6245echo "${ECHO_T}$ac_ct_CXX" >&6
6246else
6247  echo "$as_me:$LINENO: result: no" >&5
6248echo "${ECHO_T}no" >&6
6249fi
6250
6251  test -n "$ac_ct_CXX" && break
6252done
6253test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6254
6255  CXX=$ac_ct_CXX
6256fi
6257
6258
6259# Provide some information about the compiler.
6260echo "$as_me:$LINENO:" \
6261     "checking for C++ compiler version" >&5
6262ac_compiler=`set X $ac_compile; echo $2`
6263{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6264  (eval $ac_compiler --version </dev/null >&5) 2>&5
6265  ac_status=$?
6266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267  (exit $ac_status); }
6268{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6269  (eval $ac_compiler -v </dev/null >&5) 2>&5
6270  ac_status=$?
6271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272  (exit $ac_status); }
6273{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6274  (eval $ac_compiler -V </dev/null >&5) 2>&5
6275  ac_status=$?
6276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); }
6278
6279echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6280echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6281if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6282  echo $ECHO_N "(cached) $ECHO_C" >&6
6283else
6284  cat >conftest.$ac_ext <<_ACEOF
6285/* confdefs.h.  */
6286_ACEOF
6287cat confdefs.h >>conftest.$ac_ext
6288cat >>conftest.$ac_ext <<_ACEOF
6289/* end confdefs.h.  */
6290
6291int
6292main ()
6293{
6294#ifndef __GNUC__
6295       choke me
6296#endif
6297
6298  ;
6299  return 0;
6300}
6301_ACEOF
6302rm -f conftest.$ac_objext
6303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304  (eval $ac_compile) 2>conftest.er1
6305  ac_status=$?
6306  grep -v '^ *+' conftest.er1 >conftest.err
6307  rm -f conftest.er1
6308  cat conftest.err >&5
6309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310  (exit $ac_status); } &&
6311         { ac_try='test -z "$ac_cxx_werror_flag"
6312                         || test ! -s conftest.err'
6313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314  (eval $ac_try) 2>&5
6315  ac_status=$?
6316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317  (exit $ac_status); }; } &&
6318         { ac_try='test -s conftest.$ac_objext'
6319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320  (eval $ac_try) 2>&5
6321  ac_status=$?
6322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323  (exit $ac_status); }; }; then
6324  ac_compiler_gnu=yes
6325else
6326  echo "$as_me: failed program was:" >&5
6327sed 's/^/| /' conftest.$ac_ext >&5
6328
6329ac_compiler_gnu=no
6330fi
6331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6332ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6333
6334fi
6335echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6336echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6337GXX=`test $ac_compiler_gnu = yes && echo yes`
6338ac_test_CXXFLAGS=${CXXFLAGS+set}
6339ac_save_CXXFLAGS=$CXXFLAGS
6340CXXFLAGS="-g"
6341echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6342echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6343if test "${ac_cv_prog_cxx_g+set}" = set; then
6344  echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346  cat >conftest.$ac_ext <<_ACEOF
6347/* confdefs.h.  */
6348_ACEOF
6349cat confdefs.h >>conftest.$ac_ext
6350cat >>conftest.$ac_ext <<_ACEOF
6351/* end confdefs.h.  */
6352
6353int
6354main ()
6355{
6356
6357  ;
6358  return 0;
6359}
6360_ACEOF
6361rm -f conftest.$ac_objext
6362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6363  (eval $ac_compile) 2>conftest.er1
6364  ac_status=$?
6365  grep -v '^ *+' conftest.er1 >conftest.err
6366  rm -f conftest.er1
6367  cat conftest.err >&5
6368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369  (exit $ac_status); } &&
6370         { ac_try='test -z "$ac_cxx_werror_flag"
6371                         || test ! -s conftest.err'
6372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373  (eval $ac_try) 2>&5
6374  ac_status=$?
6375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376  (exit $ac_status); }; } &&
6377         { ac_try='test -s conftest.$ac_objext'
6378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379  (eval $ac_try) 2>&5
6380  ac_status=$?
6381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382  (exit $ac_status); }; }; then
6383  ac_cv_prog_cxx_g=yes
6384else
6385  echo "$as_me: failed program was:" >&5
6386sed 's/^/| /' conftest.$ac_ext >&5
6387
6388ac_cv_prog_cxx_g=no
6389fi
6390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6391fi
6392echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6393echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6394if test "$ac_test_CXXFLAGS" = set; then
6395  CXXFLAGS=$ac_save_CXXFLAGS
6396elif test $ac_cv_prog_cxx_g = yes; then
6397  if test "$GXX" = yes; then
6398    CXXFLAGS="-g -O2"
6399  else
6400    CXXFLAGS="-g"
6401  fi
6402else
6403  if test "$GXX" = yes; then
6404    CXXFLAGS="-O2"
6405  else
6406    CXXFLAGS=
6407  fi
6408fi
6409for ac_declaration in \
6410   '' \
6411   'extern "C" void std::exit (int) throw (); using std::exit;' \
6412   'extern "C" void std::exit (int); using std::exit;' \
6413   'extern "C" void exit (int) throw ();' \
6414   'extern "C" void exit (int);' \
6415   'void exit (int);'
6416do
6417  cat >conftest.$ac_ext <<_ACEOF
6418/* confdefs.h.  */
6419_ACEOF
6420cat confdefs.h >>conftest.$ac_ext
6421cat >>conftest.$ac_ext <<_ACEOF
6422/* end confdefs.h.  */
6423$ac_declaration
6424#include <stdlib.h>
6425int
6426main ()
6427{
6428exit (42);
6429  ;
6430  return 0;
6431}
6432_ACEOF
6433rm -f conftest.$ac_objext
6434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435  (eval $ac_compile) 2>conftest.er1
6436  ac_status=$?
6437  grep -v '^ *+' conftest.er1 >conftest.err
6438  rm -f conftest.er1
6439  cat conftest.err >&5
6440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441  (exit $ac_status); } &&
6442         { ac_try='test -z "$ac_cxx_werror_flag"
6443                         || test ! -s conftest.err'
6444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445  (eval $ac_try) 2>&5
6446  ac_status=$?
6447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448  (exit $ac_status); }; } &&
6449         { ac_try='test -s conftest.$ac_objext'
6450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451  (eval $ac_try) 2>&5
6452  ac_status=$?
6453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454  (exit $ac_status); }; }; then
6455  :
6456else
6457  echo "$as_me: failed program was:" >&5
6458sed 's/^/| /' conftest.$ac_ext >&5
6459
6460continue
6461fi
6462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6463  cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h.  */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h.  */
6469$ac_declaration
6470int
6471main ()
6472{
6473exit (42);
6474  ;
6475  return 0;
6476}
6477_ACEOF
6478rm -f conftest.$ac_objext
6479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6480  (eval $ac_compile) 2>conftest.er1
6481  ac_status=$?
6482  grep -v '^ *+' conftest.er1 >conftest.err
6483  rm -f conftest.er1
6484  cat conftest.err >&5
6485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486  (exit $ac_status); } &&
6487         { ac_try='test -z "$ac_cxx_werror_flag"
6488                         || test ! -s conftest.err'
6489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490  (eval $ac_try) 2>&5
6491  ac_status=$?
6492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493  (exit $ac_status); }; } &&
6494         { ac_try='test -s conftest.$ac_objext'
6495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496  (eval $ac_try) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); }; }; then
6500  break
6501else
6502  echo "$as_me: failed program was:" >&5
6503sed 's/^/| /' conftest.$ac_ext >&5
6504
6505fi
6506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6507done
6508rm -f conftest*
6509if test -n "$ac_declaration"; then
6510  echo '#ifdef __cplusplus' >>confdefs.h
6511  echo $ac_declaration      >>confdefs.h
6512  echo '#endif'             >>confdefs.h
6513fi
6514
6515ac_ext=cc
6516ac_cpp='$CXXCPP $CPPFLAGS'
6517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6520
6521depcc="$CXX"  am_compiler_list=
6522
6523echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6524echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6525if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6526  echo $ECHO_N "(cached) $ECHO_C" >&6
6527else
6528  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6529  # We make a subdir and do the tests there.  Otherwise we can end up
6530  # making bogus files that we don't know about and never remove.  For
6531  # instance it was reported that on HP-UX the gcc test will end up
6532  # making a dummy file named `D' -- because `-MD' means `put the output
6533  # in D'.
6534  mkdir conftest.dir
6535  # Copy depcomp to subdir because otherwise we won't find it if we're
6536  # using a relative directory.
6537  cp "$am_depcomp" conftest.dir
6538  cd conftest.dir
6539  # We will build objects and dependencies in a subdirectory because
6540  # it helps to detect inapplicable dependency modes.  For instance
6541  # both Tru64's cc and ICC support -MD to output dependencies as a
6542  # side effect of compilation, but ICC will put the dependencies in
6543  # the current directory while Tru64 will put them in the object
6544  # directory.
6545  mkdir sub
6546
6547  am_cv_CXX_dependencies_compiler_type=none
6548  if test "$am_compiler_list" = ""; then
6549     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6550  fi
6551  for depmode in $am_compiler_list; do
6552    # Setup a source with many dependencies, because some compilers
6553    # like to wrap large dependency lists on column 80 (with \), and
6554    # we should not choose a depcomp mode which is confused by this.
6555    #
6556    # We need to recreate these files for each test, as the compiler may
6557    # overwrite some of them when testing with obscure command lines.
6558    # This happens at least with the AIX C compiler.
6559    : > sub/conftest.c
6560    for i in 1 2 3 4 5 6; do
6561      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6562      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6563      # Solaris 8's {/usr,}/bin/sh.
6564      touch sub/conftst$i.h
6565    done
6566    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6567
6568    case $depmode in
6569    nosideeffect)
6570      # after this tag, mechanisms are not by side-effect, so they'll
6571      # only be used when explicitly requested
6572      if test "x$enable_dependency_tracking" = xyes; then
6573        continue
6574      else
6575        break
6576      fi
6577      ;;
6578    none) break ;;
6579    esac
6580    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6581    # mode.  It turns out that the SunPro C++ compiler does not properly
6582    # handle `-M -o', and we need to detect this.
6583    if depmode=$depmode \
6584       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6585       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6586       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6587         >/dev/null 2>conftest.err &&
6588       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6589       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6590       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6591      # icc doesn't choke on unknown options, it will just issue warnings
6592      # or remarks (even with -Werror).  So we grep stderr for any message
6593      # that says an option was ignored or not supported.
6594      # When given -MP, icc 7.0 and 7.1 complain thusly:
6595      #   icc: Command line warning: ignoring option '-M'; no argument required
6596      # The diagnosis changed in icc 8.0:
6597      #   icc: Command line remark: option '-MP' not supported
6598      if (grep 'ignoring option' conftest.err ||
6599          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6600        am_cv_CXX_dependencies_compiler_type=$depmode
6601        break
6602      fi
6603    fi
6604  done
6605
6606  cd ..
6607  rm -rf conftest.dir
6608else
6609  am_cv_CXX_dependencies_compiler_type=none
6610fi
6611
6612fi
6613echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6614echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6615CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6616
6617
6618
6619if
6620  test "x$enable_dependency_tracking" != xno \
6621  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6622  am__fastdepCXX_TRUE=
6623  am__fastdepCXX_FALSE='#'
6624else
6625  am__fastdepCXX_TRUE='#'
6626  am__fastdepCXX_FALSE=
6627fi
6628
6629
6630
6631
6632if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6633    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6634    (test "X$CXX" != "Xg++"))) ; then
6635  ac_ext=cc
6636ac_cpp='$CXXCPP $CPPFLAGS'
6637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6640echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6641echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6642if test -z "$CXXCPP"; then
6643  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6644  echo $ECHO_N "(cached) $ECHO_C" >&6
6645else
6646      # Double quotes because CXXCPP needs to be expanded
6647    for CXXCPP in "$CXX -E" "/lib/cpp"
6648    do
6649      ac_preproc_ok=false
6650for ac_cxx_preproc_warn_flag in '' yes
6651do
6652  # Use a header file that comes with gcc, so configuring glibc
6653  # with a fresh cross-compiler works.
6654  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6655  # <limits.h> exists even on freestanding compilers.
6656  # On the NeXT, cc -E runs the code through the compiler's parser,
6657  # not just through cpp. "Syntax error" is here to catch this case.
6658  cat >conftest.$ac_ext <<_ACEOF
6659/* confdefs.h.  */
6660_ACEOF
6661cat confdefs.h >>conftest.$ac_ext
6662cat >>conftest.$ac_ext <<_ACEOF
6663/* end confdefs.h.  */
6664#ifdef __STDC__
6665# include <limits.h>
6666#else
6667# include <assert.h>
6668#endif
6669                     Syntax error
6670_ACEOF
6671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6672  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6673  ac_status=$?
6674  grep -v '^ *+' conftest.er1 >conftest.err
6675  rm -f conftest.er1
6676  cat conftest.err >&5
6677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678  (exit $ac_status); } >/dev/null; then
6679  if test -s conftest.err; then
6680    ac_cpp_err=$ac_cxx_preproc_warn_flag
6681    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6682  else
6683    ac_cpp_err=
6684  fi
6685else
6686  ac_cpp_err=yes
6687fi
6688if test -z "$ac_cpp_err"; then
6689  :
6690else
6691  echo "$as_me: failed program was:" >&5
6692sed 's/^/| /' conftest.$ac_ext >&5
6693
6694  # Broken: fails on valid input.
6695continue
6696fi
6697rm -f conftest.err conftest.$ac_ext
6698
6699  # OK, works on sane cases.  Now check whether non-existent headers
6700  # can be detected and how.
6701  cat >conftest.$ac_ext <<_ACEOF
6702/* confdefs.h.  */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h.  */
6707#include <ac_nonexistent.h>
6708_ACEOF
6709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6710  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6711  ac_status=$?
6712  grep -v '^ *+' conftest.er1 >conftest.err
6713  rm -f conftest.er1
6714  cat conftest.err >&5
6715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716  (exit $ac_status); } >/dev/null; then
6717  if test -s conftest.err; then
6718    ac_cpp_err=$ac_cxx_preproc_warn_flag
6719    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6720  else
6721    ac_cpp_err=
6722  fi
6723else
6724  ac_cpp_err=yes
6725fi
6726if test -z "$ac_cpp_err"; then
6727  # Broken: success on invalid input.
6728continue
6729else
6730  echo "$as_me: failed program was:" >&5
6731sed 's/^/| /' conftest.$ac_ext >&5
6732
6733  # Passes both tests.
6734ac_preproc_ok=:
6735break
6736fi
6737rm -f conftest.err conftest.$ac_ext
6738
6739done
6740# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6741rm -f conftest.err conftest.$ac_ext
6742if $ac_preproc_ok; then
6743  break
6744fi
6745
6746    done
6747    ac_cv_prog_CXXCPP=$CXXCPP
6748
6749fi
6750  CXXCPP=$ac_cv_prog_CXXCPP
6751else
6752  ac_cv_prog_CXXCPP=$CXXCPP
6753fi
6754echo "$as_me:$LINENO: result: $CXXCPP" >&5
6755echo "${ECHO_T}$CXXCPP" >&6
6756ac_preproc_ok=false
6757for ac_cxx_preproc_warn_flag in '' yes
6758do
6759  # Use a header file that comes with gcc, so configuring glibc
6760  # with a fresh cross-compiler works.
6761  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6762  # <limits.h> exists even on freestanding compilers.
6763  # On the NeXT, cc -E runs the code through the compiler's parser,
6764  # not just through cpp. "Syntax error" is here to catch this case.
6765  cat >conftest.$ac_ext <<_ACEOF
6766/* confdefs.h.  */
6767_ACEOF
6768cat confdefs.h >>conftest.$ac_ext
6769cat >>conftest.$ac_ext <<_ACEOF
6770/* end confdefs.h.  */
6771#ifdef __STDC__
6772# include <limits.h>
6773#else
6774# include <assert.h>
6775#endif
6776                     Syntax error
6777_ACEOF
6778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6779  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6780  ac_status=$?
6781  grep -v '^ *+' conftest.er1 >conftest.err
6782  rm -f conftest.er1
6783  cat conftest.err >&5
6784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785  (exit $ac_status); } >/dev/null; then
6786  if test -s conftest.err; then
6787    ac_cpp_err=$ac_cxx_preproc_warn_flag
6788    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6789  else
6790    ac_cpp_err=
6791  fi
6792else
6793  ac_cpp_err=yes
6794fi
6795if test -z "$ac_cpp_err"; then
6796  :
6797else
6798  echo "$as_me: failed program was:" >&5
6799sed 's/^/| /' conftest.$ac_ext >&5
6800
6801  # Broken: fails on valid input.
6802continue
6803fi
6804rm -f conftest.err conftest.$ac_ext
6805
6806  # OK, works on sane cases.  Now check whether non-existent headers
6807  # can be detected and how.
6808  cat >conftest.$ac_ext <<_ACEOF
6809/* confdefs.h.  */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
6813/* end confdefs.h.  */
6814#include <ac_nonexistent.h>
6815_ACEOF
6816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6817  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6818  ac_status=$?
6819  grep -v '^ *+' conftest.er1 >conftest.err
6820  rm -f conftest.er1
6821  cat conftest.err >&5
6822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823  (exit $ac_status); } >/dev/null; then
6824  if test -s conftest.err; then
6825    ac_cpp_err=$ac_cxx_preproc_warn_flag
6826    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6827  else
6828    ac_cpp_err=
6829  fi
6830else
6831  ac_cpp_err=yes
6832fi
6833if test -z "$ac_cpp_err"; then
6834  # Broken: success on invalid input.
6835continue
6836else
6837  echo "$as_me: failed program was:" >&5
6838sed 's/^/| /' conftest.$ac_ext >&5
6839
6840  # Passes both tests.
6841ac_preproc_ok=:
6842break
6843fi
6844rm -f conftest.err conftest.$ac_ext
6845
6846done
6847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6848rm -f conftest.err conftest.$ac_ext
6849if $ac_preproc_ok; then
6850  :
6851else
6852  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6853See \`config.log' for more details." >&5
6854echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6855See \`config.log' for more details." >&2;}
6856   { (exit 1); exit 1; }; }
6857fi
6858
6859ac_ext=cc
6860ac_cpp='$CXXCPP $CPPFLAGS'
6861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6864
6865fi
6866
6867
6868
6869# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6870
6871# find the maximum length of command line arguments
6872echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6873echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6874if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6875  echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877    i=0
6878  teststring="ABCD"
6879
6880  case $build_os in
6881  msdosdjgpp*)
6882    # On DJGPP, this test can blow up pretty badly due to problems in libc
6883    # (any single argument exceeding 2000 bytes causes a buffer overrun
6884    # during glob expansion).  Even if it were fixed, the result of this
6885    # check would be larger than it should be.
6886    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6887    ;;
6888
6889  gnu*)
6890    # Under GNU Hurd, this test is not required because there is
6891    # no limit to the length of command line arguments.
6892    # Libtool will interpret -1 as no limit whatsoever
6893    lt_cv_sys_max_cmd_len=-1;
6894    ;;
6895
6896  cygwin* | mingw*)
6897    # On Win9x/ME, this test blows up -- it succeeds, but takes
6898    # about 5 minutes as the teststring grows exponentially.
6899    # Worse, since 9x/ME are not pre-emptively multitasking,
6900    # you end up with a "frozen" computer, even though with patience
6901    # the test eventually succeeds (with a max line length of 256k).
6902    # Instead, let's just punt: use the minimum linelength reported by
6903    # all of the supported platforms: 8192 (on NT/2K/XP).
6904    lt_cv_sys_max_cmd_len=8192;
6905    ;;
6906
6907  amigaos*)
6908    # On AmigaOS with pdksh, this test takes hours, literally.
6909    # So we just punt and use a minimum line length of 8192.
6910    lt_cv_sys_max_cmd_len=8192;
6911    ;;
6912
6913  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6914    # This has been around since 386BSD, at least.  Likely further.
6915    if test -x /sbin/sysctl; then
6916      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6917    elif test -x /usr/sbin/sysctl; then
6918      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6919    else
6920      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6921    fi
6922    # And add a safety zone
6923    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6924    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6925    ;;
6926
6927  interix*)
6928    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6929    lt_cv_sys_max_cmd_len=196608
6930    ;;
6931
6932  osf*)
6933    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6934    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6935    # nice to cause kernel panics so lets avoid the loop below.
6936    # First set a reasonable default.
6937    lt_cv_sys_max_cmd_len=16384
6938    #
6939    if test -x /sbin/sysconfig; then
6940      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6941        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6942      esac
6943    fi
6944    ;;
6945  sco3.2v5*)
6946    lt_cv_sys_max_cmd_len=102400
6947    ;;
6948  sysv5* | sco5v6* | sysv4.2uw2*)
6949    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6950    if test -n "$kargmax"; then
6951      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6952    else
6953      lt_cv_sys_max_cmd_len=32768
6954    fi
6955    ;;
6956  *)
6957    # If test is not a shell built-in, we'll probably end up computing a
6958    # maximum length that is only half of the actual maximum length, but
6959    # we can't tell.
6960    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6961    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6962               = "XX$teststring") >/dev/null 2>&1 &&
6963            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6964            lt_cv_sys_max_cmd_len=$new_result &&
6965            test $i != 17 # 1/2 MB should be enough
6966    do
6967      i=`expr $i + 1`
6968      teststring=$teststring$teststring
6969    done
6970    teststring=
6971    # Add a significant safety factor because C++ compilers can tack on massive
6972    # amounts of additional arguments before passing them to the linker.
6973    # It appears as though 1/2 is a usable value.
6974    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6975    ;;
6976  esac
6977
6978fi
6979
6980if test -n $lt_cv_sys_max_cmd_len ; then
6981  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6982echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6983else
6984  echo "$as_me:$LINENO: result: none" >&5
6985echo "${ECHO_T}none" >&6
6986fi
6987
6988
6989
6990
6991# Check for command to grab the raw symbol name followed by C symbol from nm.
6992echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6993echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6994if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6995  echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997
6998# These are sane defaults that work on at least a few old systems.
6999# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7000
7001# Character class describing NM global symbol codes.
7002symcode='[BCDEGRST]'
7003
7004# Regexp to match symbols that can be accessed directly from C.
7005sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7006
7007# Transform an extracted symbol line into a proper C declaration
7008lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7009
7010# Transform an extracted symbol line into symbol name and symbol address
7011lt_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'"
7012
7013# Define system-specific variables.
7014case $host_os in
7015aix*)
7016  symcode='[BCDT]'
7017  ;;
7018cygwin* | mingw* | pw32*)
7019  symcode='[ABCDGISTW]'
7020  ;;
7021hpux*) # Its linker distinguishes data from code symbols
7022  if test "$host_cpu" = ia64; then
7023    symcode='[ABCDEGRST]'
7024  fi
7025  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7026  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'"
7027  ;;
7028linux*)
7029  if test "$host_cpu" = ia64; then
7030    symcode='[ABCDGIRSTW]'
7031    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7032    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'"
7033  fi
7034  ;;
7035irix* | nonstopux*)
7036  symcode='[BCDEGRST]'
7037  ;;
7038osf*)
7039  symcode='[BCDEGQRST]'
7040  ;;
7041solaris*)
7042  symcode='[BDRT]'
7043  ;;
7044sco3.2v5*)
7045  symcode='[DT]'
7046  ;;
7047sysv4.2uw2*)
7048  symcode='[DT]'
7049  ;;
7050sysv5* | sco5v6* | unixware* | OpenUNIX*)
7051  symcode='[ABDT]'
7052  ;;
7053sysv4)
7054  symcode='[DFNSTU]'
7055  ;;
7056esac
7057
7058# Handle CRLF in mingw tool chain
7059opt_cr=
7060case $build_os in
7061mingw*)
7062  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7063  ;;
7064esac
7065
7066# If we're using GNU nm, then use its standard symbol codes.
7067case `$NM -V 2>&1` in
7068*GNU* | *'with BFD'*)
7069  symcode='[ABCDGIRSTW]' ;;
7070esac
7071
7072# Try without a prefix undercore, then with it.
7073for ac_symprfx in "" "_"; do
7074
7075  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7076  symxfrm="\\1 $ac_symprfx\\2 \\2"
7077
7078  # Write the raw and C identifiers.
7079  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7080
7081  # Check to see that the pipe works correctly.
7082  pipe_works=no
7083
7084  rm -f conftest*
7085  cat > conftest.$ac_ext <<EOF
7086#ifdef __cplusplus
7087extern "C" {
7088#endif
7089char nm_test_var;
7090void nm_test_func(){}
7091#ifdef __cplusplus
7092}
7093#endif
7094int main(){nm_test_var='a';nm_test_func();return(0);}
7095EOF
7096
7097  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098  (eval $ac_compile) 2>&5
7099  ac_status=$?
7100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101  (exit $ac_status); }; then
7102    # Now try to grab the symbols.
7103    nlist=conftest.nm
7104    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7105  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7106  ac_status=$?
7107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108  (exit $ac_status); } && test -s "$nlist"; then
7109      # Try sorting and uniquifying the output.
7110      if sort "$nlist" | uniq > "$nlist"T; then
7111        mv -f "$nlist"T "$nlist"
7112      else
7113        rm -f "$nlist"T
7114      fi
7115
7116      # Make sure that we snagged all the symbols we need.
7117      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7118        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7119          cat <<EOF > conftest.$ac_ext
7120#ifdef __cplusplus
7121extern "C" {
7122#endif
7123
7124EOF
7125          # Now generate the symbol file.
7126          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7127
7128          cat <<EOF >> conftest.$ac_ext
7129#if defined (__STDC__) && __STDC__
7130# define lt_ptr_t void *
7131#else
7132# define lt_ptr_t char *
7133# define const
7134#endif
7135
7136/* The mapping between symbol names and symbols. */
7137const struct {
7138  const char *name;
7139  lt_ptr_t address;
7140}
7141lt_preloaded_symbols[] =
7142{
7143EOF
7144          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7145          cat <<\EOF >> conftest.$ac_ext
7146  {0, (lt_ptr_t) 0}
7147};
7148
7149#ifdef __cplusplus
7150}
7151#endif
7152EOF
7153          # Now try linking the two files.
7154          mv conftest.$ac_objext conftstm.$ac_objext
7155          lt_save_LIBS="$LIBS"
7156          lt_save_CFLAGS="$CFLAGS"
7157          LIBS="conftstm.$ac_objext"
7158          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7159          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7160  (eval $ac_link) 2>&5
7161  ac_status=$?
7162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7164            pipe_works=yes
7165          fi
7166          LIBS="$lt_save_LIBS"
7167          CFLAGS="$lt_save_CFLAGS"
7168        else
7169          echo "cannot find nm_test_func in $nlist" >&5
7170        fi
7171      else
7172        echo "cannot find nm_test_var in $nlist" >&5
7173      fi
7174    else
7175      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7176    fi
7177  else
7178    echo "$progname: failed program was:" >&5
7179    cat conftest.$ac_ext >&5
7180  fi
7181  rm -f conftest* conftst*
7182
7183  # Do not use the global_symbol_pipe unless it works.
7184  if test "$pipe_works" = yes; then
7185    break
7186  else
7187    lt_cv_sys_global_symbol_pipe=
7188  fi
7189done
7190
7191fi
7192
7193if test -z "$lt_cv_sys_global_symbol_pipe"; then
7194  lt_cv_sys_global_symbol_to_cdecl=
7195fi
7196if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7197  echo "$as_me:$LINENO: result: failed" >&5
7198echo "${ECHO_T}failed" >&6
7199else
7200  echo "$as_me:$LINENO: result: ok" >&5
7201echo "${ECHO_T}ok" >&6
7202fi
7203
7204echo "$as_me:$LINENO: checking for objdir" >&5
7205echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7206if test "${lt_cv_objdir+set}" = set; then
7207  echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209  rm -f .libs 2>/dev/null
7210mkdir .libs 2>/dev/null
7211if test -d .libs; then
7212  lt_cv_objdir=.libs
7213else
7214  # MS-DOS does not allow filenames that begin with a dot.
7215  lt_cv_objdir=_libs
7216fi
7217rmdir .libs 2>/dev/null
7218fi
7219echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7220echo "${ECHO_T}$lt_cv_objdir" >&6
7221objdir=$lt_cv_objdir
7222
7223
7224
7225
7226
7227case $host_os in
7228aix3*)
7229  # AIX sometimes has problems with the GCC collect2 program.  For some
7230  # reason, if we set the COLLECT_NAMES environment variable, the problems
7231  # vanish in a puff of smoke.
7232  if test "X${COLLECT_NAMES+set}" != Xset; then
7233    COLLECT_NAMES=
7234    export COLLECT_NAMES
7235  fi
7236  ;;
7237esac
7238
7239# Sed substitution that helps us do robust quoting.  It backslashifies
7240# metacharacters that are still active within double-quoted strings.
7241Xsed='sed -e 1s/^X//'
7242sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7243
7244# Same as above, but do not quote variable references.
7245double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7246
7247# Sed substitution to delay expansion of an escaped shell variable in a
7248# double_quote_subst'ed string.
7249delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7250
7251# Sed substitution to avoid accidental globbing in evaled expressions
7252no_glob_subst='s/\*/\\\*/g'
7253
7254# Constants:
7255rm="rm -f"
7256
7257# Global variables:
7258default_ofile=libtool
7259can_build_shared=yes
7260
7261# All known linkers require a `.a' archive for static linking (except MSVC,
7262# which needs '.lib').
7263libext=a
7264ltmain="$ac_aux_dir/ltmain.sh"
7265ofile="$default_ofile"
7266with_gnu_ld="$lt_cv_prog_gnu_ld"
7267
7268if test -n "$ac_tool_prefix"; then
7269  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7270set dummy ${ac_tool_prefix}ar; ac_word=$2
7271echo "$as_me:$LINENO: checking for $ac_word" >&5
7272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7273if test "${ac_cv_prog_AR+set}" = set; then
7274  echo $ECHO_N "(cached) $ECHO_C" >&6
7275else
7276  if test -n "$AR"; then
7277  ac_cv_prog_AR="$AR" # Let the user override the test.
7278else
7279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280for as_dir in $PATH
7281do
7282  IFS=$as_save_IFS
7283  test -z "$as_dir" && as_dir=.
7284  for ac_exec_ext in '' $ac_executable_extensions; do
7285  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286    ac_cv_prog_AR="${ac_tool_prefix}ar"
7287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288    break 2
7289  fi
7290done
7291done
7292
7293fi
7294fi
7295AR=$ac_cv_prog_AR
7296if test -n "$AR"; then
7297  echo "$as_me:$LINENO: result: $AR" >&5
7298echo "${ECHO_T}$AR" >&6
7299else
7300  echo "$as_me:$LINENO: result: no" >&5
7301echo "${ECHO_T}no" >&6
7302fi
7303
7304fi
7305if test -z "$ac_cv_prog_AR"; then
7306  ac_ct_AR=$AR
7307  # Extract the first word of "ar", so it can be a program name with args.
7308set dummy ar; ac_word=$2
7309echo "$as_me:$LINENO: checking for $ac_word" >&5
7310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7312  echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314  if test -n "$ac_ct_AR"; then
7315  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7316else
7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320  IFS=$as_save_IFS
7321  test -z "$as_dir" && as_dir=.
7322  for ac_exec_ext in '' $ac_executable_extensions; do
7323  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324    ac_cv_prog_ac_ct_AR="ar"
7325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326    break 2
7327  fi
7328done
7329done
7330
7331  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7332fi
7333fi
7334ac_ct_AR=$ac_cv_prog_ac_ct_AR
7335if test -n "$ac_ct_AR"; then
7336  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7337echo "${ECHO_T}$ac_ct_AR" >&6
7338else
7339  echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6
7341fi
7342
7343  AR=$ac_ct_AR
7344else
7345  AR="$ac_cv_prog_AR"
7346fi
7347
7348if test -n "$ac_tool_prefix"; then
7349  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7350set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7351echo "$as_me:$LINENO: checking for $ac_word" >&5
7352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7353if test "${ac_cv_prog_RANLIB+set}" = set; then
7354  echo $ECHO_N "(cached) $ECHO_C" >&6
7355else
7356  if test -n "$RANLIB"; then
7357  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7358else
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362  IFS=$as_save_IFS
7363  test -z "$as_dir" && as_dir=.
7364  for ac_exec_ext in '' $ac_executable_extensions; do
7365  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7367    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368    break 2
7369  fi
7370done
7371done
7372
7373fi
7374fi
7375RANLIB=$ac_cv_prog_RANLIB
7376if test -n "$RANLIB"; then
7377  echo "$as_me:$LINENO: result: $RANLIB" >&5
7378echo "${ECHO_T}$RANLIB" >&6
7379else
7380  echo "$as_me:$LINENO: result: no" >&5
7381echo "${ECHO_T}no" >&6
7382fi
7383
7384fi
7385if test -z "$ac_cv_prog_RANLIB"; then
7386  ac_ct_RANLIB=$RANLIB
7387  # Extract the first word of "ranlib", so it can be a program name with args.
7388set dummy ranlib; ac_word=$2
7389echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7391if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7392  echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394  if test -n "$ac_ct_RANLIB"; then
7395  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400  IFS=$as_save_IFS
7401  test -z "$as_dir" && as_dir=.
7402  for ac_exec_ext in '' $ac_executable_extensions; do
7403  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404    ac_cv_prog_ac_ct_RANLIB="ranlib"
7405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406    break 2
7407  fi
7408done
7409done
7410
7411  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7412fi
7413fi
7414ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7415if test -n "$ac_ct_RANLIB"; then
7416  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7417echo "${ECHO_T}$ac_ct_RANLIB" >&6
7418else
7419  echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
7421fi
7422
7423  RANLIB=$ac_ct_RANLIB
7424else
7425  RANLIB="$ac_cv_prog_RANLIB"
7426fi
7427
7428if test -n "$ac_tool_prefix"; then
7429  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7430set dummy ${ac_tool_prefix}strip; ac_word=$2
7431echo "$as_me:$LINENO: checking for $ac_word" >&5
7432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7433if test "${ac_cv_prog_STRIP+set}" = set; then
7434  echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436  if test -n "$STRIP"; then
7437  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7438else
7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440for as_dir in $PATH
7441do
7442  IFS=$as_save_IFS
7443  test -z "$as_dir" && as_dir=.
7444  for ac_exec_ext in '' $ac_executable_extensions; do
7445  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448    break 2
7449  fi
7450done
7451done
7452
7453fi
7454fi
7455STRIP=$ac_cv_prog_STRIP
7456if test -n "$STRIP"; then
7457  echo "$as_me:$LINENO: result: $STRIP" >&5
7458echo "${ECHO_T}$STRIP" >&6
7459else
7460  echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6
7462fi
7463
7464fi
7465if test -z "$ac_cv_prog_STRIP"; then
7466  ac_ct_STRIP=$STRIP
7467  # Extract the first word of "strip", so it can be a program name with args.
7468set dummy strip; ac_word=$2
7469echo "$as_me:$LINENO: checking for $ac_word" >&5
7470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7471if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7472  echo $ECHO_N "(cached) $ECHO_C" >&6
7473else
7474  if test -n "$ac_ct_STRIP"; then
7475  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7476else
7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480  IFS=$as_save_IFS
7481  test -z "$as_dir" && as_dir=.
7482  for ac_exec_ext in '' $ac_executable_extensions; do
7483  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484    ac_cv_prog_ac_ct_STRIP="strip"
7485    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486    break 2
7487  fi
7488done
7489done
7490
7491  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7492fi
7493fi
7494ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7495if test -n "$ac_ct_STRIP"; then
7496  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7497echo "${ECHO_T}$ac_ct_STRIP" >&6
7498else
7499  echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6
7501fi
7502
7503  STRIP=$ac_ct_STRIP
7504else
7505  STRIP="$ac_cv_prog_STRIP"
7506fi
7507
7508
7509old_CC="$CC"
7510old_CFLAGS="$CFLAGS"
7511
7512# Set sane defaults for various variables
7513test -z "$AR" && AR=ar
7514test -z "$AR_FLAGS" && AR_FLAGS=cru
7515test -z "$AS" && AS=as
7516test -z "$CC" && CC=cc
7517test -z "$LTCC" && LTCC=$CC
7518test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7519test -z "$DLLTOOL" && DLLTOOL=dlltool
7520test -z "$LD" && LD=ld
7521test -z "$LN_S" && LN_S="ln -s"
7522test -z "$MAGIC_CMD" && MAGIC_CMD=file
7523test -z "$NM" && NM=nm
7524test -z "$SED" && SED=sed
7525test -z "$OBJDUMP" && OBJDUMP=objdump
7526test -z "$RANLIB" && RANLIB=:
7527test -z "$STRIP" && STRIP=:
7528test -z "$ac_objext" && ac_objext=o
7529
7530# Determine commands to create old-style static archives.
7531old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7532old_postinstall_cmds='chmod 644 $oldlib'
7533old_postuninstall_cmds=
7534
7535if test -n "$RANLIB"; then
7536  case $host_os in
7537  openbsd*)
7538    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7539    ;;
7540  *)
7541    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7542    ;;
7543  esac
7544  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7545fi
7546
7547for cc_temp in $compiler""; do
7548  case $cc_temp in
7549    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7550    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7551    \-*) ;;
7552    *) break;;
7553  esac
7554done
7555cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7556
7557
7558# Only perform the check for file, if the check method requires it
7559case $deplibs_check_method in
7560file_magic*)
7561  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7562    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7563echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7564if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7565  echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567  case $MAGIC_CMD in
7568[\\/*] |  ?:[\\/]*)
7569  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7570  ;;
7571*)
7572  lt_save_MAGIC_CMD="$MAGIC_CMD"
7573  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7574  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7575  for ac_dir in $ac_dummy; do
7576    IFS="$lt_save_ifs"
7577    test -z "$ac_dir" && ac_dir=.
7578    if test -f $ac_dir/${ac_tool_prefix}file; then
7579      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7580      if test -n "$file_magic_test_file"; then
7581        case $deplibs_check_method in
7582        "file_magic "*)
7583          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7584          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7585          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7586            $EGREP "$file_magic_regex" > /dev/null; then
7587            :
7588          else
7589            cat <<EOF 1>&2
7590
7591*** Warning: the command libtool uses to detect shared libraries,
7592*** $file_magic_cmd, produces output that libtool cannot recognize.
7593*** The result is that libtool may fail to recognize shared libraries
7594*** as such.  This will affect the creation of libtool libraries that
7595*** depend on shared libraries, but programs linked with such libtool
7596*** libraries will work regardless of this problem.  Nevertheless, you
7597*** may want to report the problem to your system manager and/or to
7598*** bug-libtool@gnu.org
7599
7600EOF
7601          fi ;;
7602        esac
7603      fi
7604      break
7605    fi
7606  done
7607  IFS="$lt_save_ifs"
7608  MAGIC_CMD="$lt_save_MAGIC_CMD"
7609  ;;
7610esac
7611fi
7612
7613MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7614if test -n "$MAGIC_CMD"; then
7615  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7616echo "${ECHO_T}$MAGIC_CMD" >&6
7617else
7618  echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6
7620fi
7621
7622if test -z "$lt_cv_path_MAGIC_CMD"; then
7623  if test -n "$ac_tool_prefix"; then
7624    echo "$as_me:$LINENO: checking for file" >&5
7625echo $ECHO_N "checking for file... $ECHO_C" >&6
7626if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7627  echo $ECHO_N "(cached) $ECHO_C" >&6
7628else
7629  case $MAGIC_CMD in
7630[\\/*] |  ?:[\\/]*)
7631  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7632  ;;
7633*)
7634  lt_save_MAGIC_CMD="$MAGIC_CMD"
7635  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7636  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7637  for ac_dir in $ac_dummy; do
7638    IFS="$lt_save_ifs"
7639    test -z "$ac_dir" && ac_dir=.
7640    if test -f $ac_dir/file; then
7641      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7642      if test -n "$file_magic_test_file"; then
7643        case $deplibs_check_method in
7644        "file_magic "*)
7645          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7646          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7647          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7648            $EGREP "$file_magic_regex" > /dev/null; then
7649            :
7650          else
7651            cat <<EOF 1>&2
7652
7653*** Warning: the command libtool uses to detect shared libraries,
7654*** $file_magic_cmd, produces output that libtool cannot recognize.
7655*** The result is that libtool may fail to recognize shared libraries
7656*** as such.  This will affect the creation of libtool libraries that
7657*** depend on shared libraries, but programs linked with such libtool
7658*** libraries will work regardless of this problem.  Nevertheless, you
7659*** may want to report the problem to your system manager and/or to
7660*** bug-libtool@gnu.org
7661
7662EOF
7663          fi ;;
7664        esac
7665      fi
7666      break
7667    fi
7668  done
7669  IFS="$lt_save_ifs"
7670  MAGIC_CMD="$lt_save_MAGIC_CMD"
7671  ;;
7672esac
7673fi
7674
7675MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7676if test -n "$MAGIC_CMD"; then
7677  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7678echo "${ECHO_T}$MAGIC_CMD" >&6
7679else
7680  echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6
7682fi
7683
7684  else
7685    MAGIC_CMD=:
7686  fi
7687fi
7688
7689  fi
7690  ;;
7691esac
7692
7693enable_dlopen=no
7694enable_win32_dll=no
7695
7696# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7697if test "${enable_libtool_lock+set}" = set; then
7698  enableval="$enable_libtool_lock"
7699
7700fi;
7701test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7702
7703
7704# Check whether --with-pic or --without-pic was given.
7705if test "${with_pic+set}" = set; then
7706  withval="$with_pic"
7707  pic_mode="$withval"
7708else
7709  pic_mode=default
7710fi;
7711test -z "$pic_mode" && pic_mode=default
7712
7713# Use C for the default configuration in the libtool script
7714tagname=
7715lt_save_CC="$CC"
7716ac_ext=c
7717ac_cpp='$CPP $CPPFLAGS'
7718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7720ac_compiler_gnu=$ac_cv_c_compiler_gnu
7721
7722
7723# Source file extension for C test sources.
7724ac_ext=c
7725
7726# Object file extension for compiled C test sources.
7727objext=o
7728objext=$objext
7729
7730# Code to be used in simple compile tests
7731lt_simple_compile_test_code="int some_variable = 0;\n"
7732
7733# Code to be used in simple link tests
7734lt_simple_link_test_code='int main(){return(0);}\n'
7735
7736
7737# If no C compiler was specified, use CC.
7738LTCC=${LTCC-"$CC"}
7739
7740# If no C compiler flags were specified, use CFLAGS.
7741LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7742
7743# Allow CC to be a program name with arguments.
7744compiler=$CC
7745
7746
7747# save warnings/boilerplate of simple test code
7748ac_outfile=conftest.$ac_objext
7749printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7750eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7751_lt_compiler_boilerplate=`cat conftest.err`
7752$rm conftest*
7753
7754ac_outfile=conftest.$ac_objext
7755printf "$lt_simple_link_test_code" >conftest.$ac_ext
7756eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7757_lt_linker_boilerplate=`cat conftest.err`
7758$rm conftest*
7759
7760
7761## CAVEAT EMPTOR:
7762## There is no encapsulation within the following macros, do not change
7763## the running order or otherwise move them around unless you know exactly
7764## what you are doing...
7765
7766lt_prog_compiler_no_builtin_flag=
7767
7768if test "$GCC" = yes; then
7769  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7770
7771
7772echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7773echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7774if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7775  echo $ECHO_N "(cached) $ECHO_C" >&6
7776else
7777  lt_cv_prog_compiler_rtti_exceptions=no
7778  ac_outfile=conftest.$ac_objext
7779   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7780   lt_compiler_flag="-fno-rtti -fno-exceptions"
7781   # Insert the option either (1) after the last *FLAGS variable, or
7782   # (2) before a word containing "conftest.", or (3) at the end.
7783   # Note that $ac_compile itself does not contain backslashes and begins
7784   # with a dollar sign (not a hyphen), so the echo should work correctly.
7785   # The option is referenced via a variable to avoid confusing sed.
7786   lt_compile=`echo "$ac_compile" | $SED \
7787   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7788   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7789   -e 's:$: $lt_compiler_flag:'`
7790   (eval echo "\"\$as_me:7790: $lt_compile\"" >&5)
7791   (eval "$lt_compile" 2>conftest.err)
7792   ac_status=$?
7793   cat conftest.err >&5
7794   echo "$as_me:7794: \$? = $ac_status" >&5
7795   if (exit $ac_status) && test -s "$ac_outfile"; then
7796     # The compiler can only warn and ignore the option if not recognized
7797     # So say no if there are warnings other than the usual output.
7798     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7799     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7800     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7801       lt_cv_prog_compiler_rtti_exceptions=yes
7802     fi
7803   fi
7804   $rm conftest*
7805
7806fi
7807echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7808echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7809
7810if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7811    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7812else
7813    :
7814fi
7815
7816fi
7817
7818lt_prog_compiler_wl=
7819lt_prog_compiler_pic=
7820lt_prog_compiler_static=
7821
7822echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7823echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7824
7825  if test "$GCC" = yes; then
7826    lt_prog_compiler_wl='-Wl,'
7827    lt_prog_compiler_static='-static'
7828
7829    case $host_os in
7830      aix*)
7831      # All AIX code is PIC.
7832      if test "$host_cpu" = ia64; then
7833        # AIX 5 now supports IA64 processor
7834        lt_prog_compiler_static='-Bstatic'
7835      fi
7836      ;;
7837
7838    amigaos*)
7839      # FIXME: we need at least 68020 code to build shared libraries, but
7840      # adding the `-m68020' flag to GCC prevents building anything better,
7841      # like `-m68040'.
7842      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7843      ;;
7844
7845    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7846      # PIC is the default for these OSes.
7847      ;;
7848
7849    mingw* | pw32* | os2*)
7850      # This hack is so that the source file can tell whether it is being
7851      # built for inclusion in a dll (and should export symbols for example).
7852      lt_prog_compiler_pic='-DDLL_EXPORT'
7853      ;;
7854
7855    darwin* | rhapsody*)
7856      # PIC is the default on this platform
7857      # Common symbols not allowed in MH_DYLIB files
7858      lt_prog_compiler_pic='-fno-common'
7859      ;;
7860
7861    interix3*)
7862      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7863      # Instead, we relocate shared libraries at runtime.
7864      ;;
7865
7866    msdosdjgpp*)
7867      # Just because we use GCC doesn't mean we suddenly get shared libraries
7868      # on systems that don't support them.
7869      lt_prog_compiler_can_build_shared=no
7870      enable_shared=no
7871      ;;
7872
7873    sysv4*MP*)
7874      if test -d /usr/nec; then
7875        lt_prog_compiler_pic=-Kconform_pic
7876      fi
7877      ;;
7878
7879    hpux*)
7880      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7881      # not for PA HP-UX.
7882      case $host_cpu in
7883      hppa*64*|ia64*)
7884        # +Z the default
7885        ;;
7886      *)
7887        lt_prog_compiler_pic='-fPIC'
7888        ;;
7889      esac
7890      ;;
7891
7892    *)
7893      lt_prog_compiler_pic='-fPIC'
7894      ;;
7895    esac
7896  else
7897    # PORTME Check for flag to pass linker flags through the system compiler.
7898    case $host_os in
7899    aix*)
7900      lt_prog_compiler_wl='-Wl,'
7901      if test "$host_cpu" = ia64; then
7902        # AIX 5 now supports IA64 processor
7903        lt_prog_compiler_static='-Bstatic'
7904      else
7905        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7906      fi
7907      ;;
7908      darwin*)
7909        # PIC is the default on this platform
7910        # Common symbols not allowed in MH_DYLIB files
7911       case $cc_basename in
7912         xlc*)
7913         lt_prog_compiler_pic='-qnocommon'
7914         lt_prog_compiler_wl='-Wl,'
7915         ;;
7916       esac
7917       ;;
7918
7919    mingw* | pw32* | os2*)
7920      # This hack is so that the source file can tell whether it is being
7921      # built for inclusion in a dll (and should export symbols for example).
7922      lt_prog_compiler_pic='-DDLL_EXPORT'
7923      ;;
7924
7925    hpux9* | hpux10* | hpux11*)
7926      lt_prog_compiler_wl='-Wl,'
7927      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7928      # not for PA HP-UX.
7929      case $host_cpu in
7930      hppa*64*|ia64*)
7931        # +Z the default
7932        ;;
7933      *)
7934        lt_prog_compiler_pic='+Z'
7935        ;;
7936      esac
7937      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7938      lt_prog_compiler_static='${wl}-a ${wl}archive'
7939      ;;
7940
7941    irix5* | irix6* | nonstopux*)
7942      lt_prog_compiler_wl='-Wl,'
7943      # PIC (with -KPIC) is the default.
7944      lt_prog_compiler_static='-non_shared'
7945      ;;
7946
7947    newsos6)
7948      lt_prog_compiler_pic='-KPIC'
7949      lt_prog_compiler_static='-Bstatic'
7950      ;;
7951
7952    linux*)
7953      case $cc_basename in
7954      icc* | ecc*)
7955        lt_prog_compiler_wl='-Wl,'
7956        lt_prog_compiler_pic='-KPIC'
7957        lt_prog_compiler_static='-static'
7958        ;;
7959      pgcc* | pgf77* | pgf90* | pgf95*)
7960        # Portland Group compilers (*not* the Pentium gcc compiler,
7961        # which looks to be a dead project)
7962        lt_prog_compiler_wl='-Wl,'
7963        lt_prog_compiler_pic='-fpic'
7964        lt_prog_compiler_static='-Bstatic'
7965        ;;
7966      ccc*)
7967        lt_prog_compiler_wl='-Wl,'
7968        # All Alpha code is PIC.
7969        lt_prog_compiler_static='-non_shared'
7970        ;;
7971      esac
7972      ;;
7973
7974    osf3* | osf4* | osf5*)
7975      lt_prog_compiler_wl='-Wl,'
7976      # All OSF/1 code is PIC.
7977      lt_prog_compiler_static='-non_shared'
7978      ;;
7979
7980    solaris*)
7981      lt_prog_compiler_pic='-KPIC'
7982      lt_prog_compiler_static='-Bstatic'
7983      case $cc_basename in
7984      f77* | f90* | f95*)
7985        lt_prog_compiler_wl='-Qoption ld ';;
7986      *)
7987        lt_prog_compiler_wl='-Wl,';;
7988      esac
7989      ;;
7990
7991    sunos4*)
7992      lt_prog_compiler_wl='-Qoption ld '
7993      lt_prog_compiler_pic='-PIC'
7994      lt_prog_compiler_static='-Bstatic'
7995      ;;
7996
7997    sysv4 | sysv4.2uw2* | sysv4.3*)
7998      lt_prog_compiler_wl='-Wl,'
7999      lt_prog_compiler_pic='-KPIC'
8000      lt_prog_compiler_static='-Bstatic'
8001      ;;
8002
8003    sysv4*MP*)
8004      if test -d /usr/nec ;then
8005        lt_prog_compiler_pic='-Kconform_pic'
8006        lt_prog_compiler_static='-Bstatic'
8007      fi
8008      ;;
8009
8010    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8011      lt_prog_compiler_wl='-Wl,'
8012      lt_prog_compiler_pic='-KPIC'
8013      lt_prog_compiler_static='-Bstatic'
8014      ;;
8015
8016    unicos*)
8017      lt_prog_compiler_wl='-Wl,'
8018      lt_prog_compiler_can_build_shared=no
8019      ;;
8020
8021    uts4*)
8022      lt_prog_compiler_pic='-pic'
8023      lt_prog_compiler_static='-Bstatic'
8024      ;;
8025
8026    *)
8027      lt_prog_compiler_can_build_shared=no
8028      ;;
8029    esac
8030  fi
8031
8032echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8033echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8034
8035#
8036# Check to make sure the PIC flag actually works.
8037#
8038if test -n "$lt_prog_compiler_pic"; then
8039
8040echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8041echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8042if test "${lt_prog_compiler_pic_works+set}" = set; then
8043  echo $ECHO_N "(cached) $ECHO_C" >&6
8044else
8045  lt_prog_compiler_pic_works=no
8046  ac_outfile=conftest.$ac_objext
8047   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8048   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8049   # Insert the option either (1) after the last *FLAGS variable, or
8050   # (2) before a word containing "conftest.", or (3) at the end.
8051   # Note that $ac_compile itself does not contain backslashes and begins
8052   # with a dollar sign (not a hyphen), so the echo should work correctly.
8053   # The option is referenced via a variable to avoid confusing sed.
8054   lt_compile=`echo "$ac_compile" | $SED \
8055   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8056   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8057   -e 's:$: $lt_compiler_flag:'`
8058   (eval echo "\"\$as_me:8058: $lt_compile\"" >&5)
8059   (eval "$lt_compile" 2>conftest.err)
8060   ac_status=$?
8061   cat conftest.err >&5
8062   echo "$as_me:8062: \$? = $ac_status" >&5
8063   if (exit $ac_status) && test -s "$ac_outfile"; then
8064     # The compiler can only warn and ignore the option if not recognized
8065     # So say no if there are warnings other than the usual output.
8066     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8067     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8068     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8069       lt_prog_compiler_pic_works=yes
8070     fi
8071   fi
8072   $rm conftest*
8073
8074fi
8075echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8076echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8077
8078if test x"$lt_prog_compiler_pic_works" = xyes; then
8079    case $lt_prog_compiler_pic in
8080     "" | " "*) ;;
8081     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8082     esac
8083else
8084    lt_prog_compiler_pic=
8085     lt_prog_compiler_can_build_shared=no
8086fi
8087
8088fi
8089case $host_os in
8090  # For platforms which do not support PIC, -DPIC is meaningless:
8091  *djgpp*)
8092    lt_prog_compiler_pic=
8093    ;;
8094  *)
8095    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8096    ;;
8097esac
8098
8099#
8100# Check to make sure the static flag actually works.
8101#
8102wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8103echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8104echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8105if test "${lt_prog_compiler_static_works+set}" = set; then
8106  echo $ECHO_N "(cached) $ECHO_C" >&6
8107else
8108  lt_prog_compiler_static_works=no
8109   save_LDFLAGS="$LDFLAGS"
8110   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8111   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8112   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8113     # The linker can only warn and ignore the option if not recognized
8114     # So say no if there are warnings
8115     if test -s conftest.err; then
8116       # Append any errors to the config.log.
8117       cat conftest.err 1>&5
8118       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8119       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8120       if diff conftest.exp conftest.er2 >/dev/null; then
8121         lt_prog_compiler_static_works=yes
8122       fi
8123     else
8124       lt_prog_compiler_static_works=yes
8125     fi
8126   fi
8127   $rm conftest*
8128   LDFLAGS="$save_LDFLAGS"
8129
8130fi
8131echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8132echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8133
8134if test x"$lt_prog_compiler_static_works" = xyes; then
8135    :
8136else
8137    lt_prog_compiler_static=
8138fi
8139
8140
8141echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8142echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8143if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8144  echo $ECHO_N "(cached) $ECHO_C" >&6
8145else
8146  lt_cv_prog_compiler_c_o=no
8147   $rm -r conftest 2>/dev/null
8148   mkdir conftest
8149   cd conftest
8150   mkdir out
8151   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8152
8153   lt_compiler_flag="-o out/conftest2.$ac_objext"
8154   # Insert the option either (1) after the last *FLAGS variable, or
8155   # (2) before a word containing "conftest.", or (3) at the end.
8156   # Note that $ac_compile itself does not contain backslashes and begins
8157   # with a dollar sign (not a hyphen), so the echo should work correctly.
8158   lt_compile=`echo "$ac_compile" | $SED \
8159   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8160   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8161   -e 's:$: $lt_compiler_flag:'`
8162   (eval echo "\"\$as_me:8162: $lt_compile\"" >&5)
8163   (eval "$lt_compile" 2>out/conftest.err)
8164   ac_status=$?
8165   cat out/conftest.err >&5
8166   echo "$as_me:8166: \$? = $ac_status" >&5
8167   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8168   then
8169     # The compiler can only warn and ignore the option if not recognized
8170     # So say no if there are warnings
8171     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8172     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8173     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8174       lt_cv_prog_compiler_c_o=yes
8175     fi
8176   fi
8177   chmod u+w . 2>&5
8178   $rm conftest*
8179   # SGI C++ compiler will create directory out/ii_files/ for
8180   # template instantiation
8181   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8182   $rm out/* && rmdir out
8183   cd ..
8184   rmdir conftest
8185   $rm conftest*
8186
8187fi
8188echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8189echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8190
8191
8192hard_links="nottested"
8193if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8194  # do not overwrite the value of need_locks provided by the user
8195  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8196echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8197  hard_links=yes
8198  $rm conftest*
8199  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8200  touch conftest.a
8201  ln conftest.a conftest.b 2>&5 || hard_links=no
8202  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8203  echo "$as_me:$LINENO: result: $hard_links" >&5
8204echo "${ECHO_T}$hard_links" >&6
8205  if test "$hard_links" = no; then
8206    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8207echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8208    need_locks=warn
8209  fi
8210else
8211  need_locks=no
8212fi
8213
8214echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8215echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8216
8217  runpath_var=
8218  allow_undefined_flag=
8219  enable_shared_with_static_runtimes=no
8220  archive_cmds=
8221  archive_expsym_cmds=
8222  old_archive_From_new_cmds=
8223  old_archive_from_expsyms_cmds=
8224  export_dynamic_flag_spec=
8225  whole_archive_flag_spec=
8226  thread_safe_flag_spec=
8227  hardcode_libdir_flag_spec=
8228  hardcode_libdir_flag_spec_ld=
8229  hardcode_libdir_separator=
8230  hardcode_direct=no
8231  hardcode_minus_L=no
8232  hardcode_shlibpath_var=unsupported
8233  link_all_deplibs=unknown
8234  hardcode_automatic=no
8235  module_cmds=
8236  module_expsym_cmds=
8237  always_export_symbols=no
8238  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8239  # include_expsyms should be a list of space-separated symbols to be *always*
8240  # included in the symbol list
8241  include_expsyms=
8242  # exclude_expsyms can be an extended regexp of symbols to exclude
8243  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8244  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8245  # as well as any symbol that contains `d'.
8246  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8247  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8248  # platforms (ab)use it in PIC code, but their linkers get confused if
8249  # the symbol is explicitly referenced.  Since portable code cannot
8250  # rely on this symbol name, it's probably fine to never include it in
8251  # preloaded symbol tables.
8252  extract_expsyms_cmds=
8253  # Just being paranoid about ensuring that cc_basename is set.
8254  for cc_temp in $compiler""; do
8255  case $cc_temp in
8256    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8257    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8258    \-*) ;;
8259    *) break;;
8260  esac
8261done
8262cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8263
8264  case $host_os in
8265  cygwin* | mingw* | pw32*)
8266    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8267    # When not using gcc, we currently assume that we are using
8268    # Microsoft Visual C++.
8269    if test "$GCC" != yes; then
8270      with_gnu_ld=no
8271    fi
8272    ;;
8273  interix*)
8274    # we just hope/assume this is gcc and not c89 (= MSVC++)
8275    with_gnu_ld=yes
8276    ;;
8277  openbsd*)
8278    with_gnu_ld=no
8279    ;;
8280  esac
8281
8282  ld_shlibs=yes
8283  if test "$with_gnu_ld" = yes; then
8284    # If archive_cmds runs LD, not CC, wlarc should be empty
8285    wlarc='${wl}'
8286
8287    # Set some defaults for GNU ld with shared library support. These
8288    # are reset later if shared libraries are not supported. Putting them
8289    # here allows them to be overridden if necessary.
8290    runpath_var=LD_RUN_PATH
8291    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8292    export_dynamic_flag_spec='${wl}--export-dynamic'
8293    # ancient GNU ld didn't support --whole-archive et. al.
8294    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8295        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8296      else
8297        whole_archive_flag_spec=
8298    fi
8299    supports_anon_versioning=no
8300    case `$LD -v 2>/dev/null` in
8301      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8302      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8303      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8304      *\ 2.11.*) ;; # other 2.11 versions
8305      *) supports_anon_versioning=yes ;;
8306    esac
8307
8308    # See if GNU ld supports shared libraries.
8309    case $host_os in
8310    aix3* | aix4* | aix5*)
8311      # On AIX/PPC, the GNU linker is very broken
8312      if test "$host_cpu" != ia64; then
8313        ld_shlibs=no
8314        cat <<EOF 1>&2
8315
8316*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8317*** to be unable to reliably create shared libraries on AIX.
8318*** Therefore, libtool is disabling shared libraries support.  If you
8319*** really care for shared libraries, you may want to modify your PATH
8320*** so that a non-GNU linker is found, and then restart.
8321
8322EOF
8323      fi
8324      ;;
8325
8326    amigaos*)
8327      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)'
8328      hardcode_libdir_flag_spec='-L$libdir'
8329      hardcode_minus_L=yes
8330
8331      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8332      # that the semantics of dynamic libraries on AmigaOS, at least up
8333      # to version 4, is to share data among multiple programs linked
8334      # with the same dynamic library.  Since this doesn't match the
8335      # behavior of shared libraries on other platforms, we can't use
8336      # them.
8337      ld_shlibs=no
8338      ;;
8339
8340    beos*)
8341      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8342        allow_undefined_flag=unsupported
8343        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8344        # support --undefined.  This deserves some investigation.  FIXME
8345        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8346      else
8347        ld_shlibs=no
8348      fi
8349      ;;
8350
8351    cygwin* | mingw* | pw32*)
8352      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8353      # as there is no search path for DLLs.
8354      hardcode_libdir_flag_spec='-L$libdir'
8355      allow_undefined_flag=unsupported
8356      always_export_symbols=no
8357      enable_shared_with_static_runtimes=yes
8358      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8359
8360      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8361        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8362        # If the export-symbols file already is a .def file (1st line
8363        # is EXPORTS), use it as is; otherwise, prepend...
8364        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8365          cp $export_symbols $output_objdir/$soname.def;
8366        else
8367          echo EXPORTS > $output_objdir/$soname.def;
8368          cat $export_symbols >> $output_objdir/$soname.def;
8369        fi~
8370        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8371      else
8372        ld_shlibs=no
8373      fi
8374      ;;
8375
8376    interix3*)
8377      hardcode_direct=no
8378      hardcode_shlibpath_var=no
8379      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8380      export_dynamic_flag_spec='${wl}-E'
8381      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8382      # Instead, shared libraries are loaded at an image base (0x10000000 by
8383      # default) and relocated if they conflict, which is a slow very memory
8384      # consuming and fragmenting process.  To avoid this, we pick a random,
8385      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8386      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8387      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8388      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'
8389      ;;
8390
8391    linux*)
8392      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8393        tmp_addflag=
8394        case $cc_basename,$host_cpu in
8395        pgcc*)                          # Portland Group C compiler
8396          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'
8397          tmp_addflag=' $pic_flag'
8398          ;;
8399        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8400          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'
8401          tmp_addflag=' $pic_flag -Mnomain' ;;
8402        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8403          tmp_addflag=' -i_dynamic' ;;
8404        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8405          tmp_addflag=' -i_dynamic -nofor_main' ;;
8406        ifc* | ifort*)                  # Intel Fortran compiler
8407          tmp_addflag=' -nofor_main' ;;
8408        esac
8409        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410
8411        if test $supports_anon_versioning = yes; then
8412          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8413  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8414  $echo "local: *; };" >> $output_objdir/$libname.ver~
8415          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8416        fi
8417      else
8418        ld_shlibs=no
8419      fi
8420      ;;
8421
8422    netbsd*)
8423      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8424        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8425        wlarc=
8426      else
8427        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8428        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8429      fi
8430      ;;
8431
8432    solaris*)
8433      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8434        ld_shlibs=no
8435        cat <<EOF 1>&2
8436
8437*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8438*** create shared libraries on Solaris systems.  Therefore, libtool
8439*** is disabling shared libraries support.  We urge you to upgrade GNU
8440*** binutils to release 2.9.1 or newer.  Another option is to modify
8441*** your PATH or compiler configuration so that the native linker is
8442*** used, and then restart.
8443
8444EOF
8445      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8446        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8447        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8448      else
8449        ld_shlibs=no
8450      fi
8451      ;;
8452
8453    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8454      case `$LD -v 2>&1` in
8455        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8456        ld_shlibs=no
8457        cat <<_LT_EOF 1>&2
8458
8459*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8460*** reliably create shared libraries on SCO systems.  Therefore, libtool
8461*** is disabling shared libraries support.  We urge you to upgrade GNU
8462*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8463*** your PATH or compiler configuration so that the native linker is
8464*** used, and then restart.
8465
8466_LT_EOF
8467        ;;
8468        *)
8469          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8470            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8471            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8472            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8473          else
8474            ld_shlibs=no
8475          fi
8476        ;;
8477      esac
8478      ;;
8479
8480    sunos4*)
8481      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8482      wlarc=
8483      hardcode_direct=yes
8484      hardcode_shlibpath_var=no
8485      ;;
8486
8487    *)
8488      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8489        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8490        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8491      else
8492        ld_shlibs=no
8493      fi
8494      ;;
8495    esac
8496
8497    if test "$ld_shlibs" = no; then
8498      runpath_var=
8499      hardcode_libdir_flag_spec=
8500      export_dynamic_flag_spec=
8501      whole_archive_flag_spec=
8502    fi
8503  else
8504    # PORTME fill in a description of your system's linker (not GNU ld)
8505    case $host_os in
8506    aix3*)
8507      allow_undefined_flag=unsupported
8508      always_export_symbols=yes
8509      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'
8510      # Note: this linker hardcodes the directories in LIBPATH if there
8511      # are no directories specified by -L.
8512      hardcode_minus_L=yes
8513      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8514        # Neither direct hardcoding nor static linking is supported with a
8515        # broken collect2.
8516        hardcode_direct=unsupported
8517      fi
8518      ;;
8519
8520    aix4* | aix5*)
8521      if test "$host_cpu" = ia64; then
8522        # On IA64, the linker does run time linking by default, so we don't
8523        # have to do anything special.
8524        aix_use_runtimelinking=no
8525        exp_sym_flag='-Bexport'
8526        no_entry_flag=""
8527      else
8528        # If we're using GNU nm, then we don't want the "-C" option.
8529        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8530        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8531          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'
8532        else
8533          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'
8534        fi
8535        aix_use_runtimelinking=no
8536
8537        # Test if we are trying to use run time linking or normal
8538        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8539        # need to do runtime linking.
8540        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8541          for ld_flag in $LDFLAGS; do
8542          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8543            aix_use_runtimelinking=yes
8544            break
8545          fi
8546          done
8547          ;;
8548        esac
8549
8550        exp_sym_flag='-bexport'
8551        no_entry_flag='-bnoentry'
8552      fi
8553
8554      # When large executables or shared objects are built, AIX ld can
8555      # have problems creating the table of contents.  If linking a library
8556      # or program results in "error TOC overflow" add -mminimal-toc to
8557      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8558      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8559
8560      archive_cmds=''
8561      hardcode_direct=yes
8562      hardcode_libdir_separator=':'
8563      link_all_deplibs=yes
8564
8565      if test "$GCC" = yes; then
8566        case $host_os in aix4.[012]|aix4.[012].*)
8567        # We only want to do this on AIX 4.2 and lower, the check
8568        # below for broken collect2 doesn't work under 4.3+
8569          collect2name=`${CC} -print-prog-name=collect2`
8570          if test -f "$collect2name" && \
8571           strings "$collect2name" | grep resolve_lib_name >/dev/null
8572          then
8573          # We have reworked collect2
8574          hardcode_direct=yes
8575          else
8576          # We have old collect2
8577          hardcode_direct=unsupported
8578          # It fails to find uninstalled libraries when the uninstalled
8579          # path is not listed in the libpath.  Setting hardcode_minus_L
8580          # to unsupported forces relinking
8581          hardcode_minus_L=yes
8582          hardcode_libdir_flag_spec='-L$libdir'
8583          hardcode_libdir_separator=
8584          fi
8585          ;;
8586        esac
8587        shared_flag='-shared'
8588        if test "$aix_use_runtimelinking" = yes; then
8589          shared_flag="$shared_flag "'${wl}-G'
8590        fi
8591      else
8592        # not using gcc
8593        if test "$host_cpu" = ia64; then
8594        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8595        # chokes on -Wl,-G. The following line is correct:
8596          shared_flag='-G'
8597        else
8598          if test "$aix_use_runtimelinking" = yes; then
8599            shared_flag='${wl}-G'
8600          else
8601            shared_flag='${wl}-bM:SRE'
8602          fi
8603        fi
8604      fi
8605
8606      # It seems that -bexpall does not export symbols beginning with
8607      # underscore (_), so it is better to generate a list of symbols to export.
8608      always_export_symbols=yes
8609      if test "$aix_use_runtimelinking" = yes; then
8610        # Warning - without using the other runtime loading flags (-brtl),
8611        # -berok will link without error, but may produce a broken library.
8612        allow_undefined_flag='-berok'
8613       # Determine the default libpath from the value encoded in an empty executable.
8614       cat >conftest.$ac_ext <<_ACEOF
8615/* confdefs.h.  */
8616_ACEOF
8617cat confdefs.h >>conftest.$ac_ext
8618cat >>conftest.$ac_ext <<_ACEOF
8619/* end confdefs.h.  */
8620
8621int
8622main ()
8623{
8624
8625  ;
8626  return 0;
8627}
8628_ACEOF
8629rm -f conftest.$ac_objext conftest$ac_exeext
8630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631  (eval $ac_link) 2>conftest.er1
8632  ac_status=$?
8633  grep -v '^ *+' conftest.er1 >conftest.err
8634  rm -f conftest.er1
8635  cat conftest.err >&5
8636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637  (exit $ac_status); } &&
8638         { ac_try='test -z "$ac_c_werror_flag"
8639                         || test ! -s conftest.err'
8640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641  (eval $ac_try) 2>&5
8642  ac_status=$?
8643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644  (exit $ac_status); }; } &&
8645         { ac_try='test -s conftest$ac_exeext'
8646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647  (eval $ac_try) 2>&5
8648  ac_status=$?
8649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650  (exit $ac_status); }; }; then
8651
8652aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8653}'`
8654# Check for a 64-bit object if we didn't find anything.
8655if 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; }
8656}'`; fi
8657else
8658  echo "$as_me: failed program was:" >&5
8659sed 's/^/| /' conftest.$ac_ext >&5
8660
8661fi
8662rm -f conftest.err conftest.$ac_objext \
8663      conftest$ac_exeext conftest.$ac_ext
8664if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8665
8666       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8667        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"
8668       else
8669        if test "$host_cpu" = ia64; then
8670          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8671          allow_undefined_flag="-z nodefs"
8672          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"
8673        else
8674         # Determine the default libpath from the value encoded in an empty executable.
8675         cat >conftest.$ac_ext <<_ACEOF
8676/* confdefs.h.  */
8677_ACEOF
8678cat confdefs.h >>conftest.$ac_ext
8679cat >>conftest.$ac_ext <<_ACEOF
8680/* end confdefs.h.  */
8681
8682int
8683main ()
8684{
8685
8686  ;
8687  return 0;
8688}
8689_ACEOF
8690rm -f conftest.$ac_objext conftest$ac_exeext
8691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692  (eval $ac_link) 2>conftest.er1
8693  ac_status=$?
8694  grep -v '^ *+' conftest.er1 >conftest.err
8695  rm -f conftest.er1
8696  cat conftest.err >&5
8697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698  (exit $ac_status); } &&
8699         { ac_try='test -z "$ac_c_werror_flag"
8700                         || test ! -s conftest.err'
8701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702  (eval $ac_try) 2>&5
8703  ac_status=$?
8704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705  (exit $ac_status); }; } &&
8706         { ac_try='test -s conftest$ac_exeext'
8707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708  (eval $ac_try) 2>&5
8709  ac_status=$?
8710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711  (exit $ac_status); }; }; then
8712
8713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8714}'`
8715# Check for a 64-bit object if we didn't find anything.
8716if 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; }
8717}'`; fi
8718else
8719  echo "$as_me: failed program was:" >&5
8720sed 's/^/| /' conftest.$ac_ext >&5
8721
8722fi
8723rm -f conftest.err conftest.$ac_objext \
8724      conftest$ac_exeext conftest.$ac_ext
8725if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8726
8727         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8728          # Warning - without using the other run time loading flags,
8729          # -berok will link without error, but may produce a broken library.
8730          no_undefined_flag=' ${wl}-bernotok'
8731          allow_undefined_flag=' ${wl}-berok'
8732          # Exported symbols can be pulled into shared objects from archives
8733          whole_archive_flag_spec='$convenience'
8734          archive_cmds_need_lc=yes
8735          # This is similar to how AIX traditionally builds its shared libraries.
8736          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'
8737        fi
8738      fi
8739      ;;
8740
8741    amigaos*)
8742      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)'
8743      hardcode_libdir_flag_spec='-L$libdir'
8744      hardcode_minus_L=yes
8745      # see comment about different semantics on the GNU ld section
8746      ld_shlibs=no
8747      ;;
8748
8749    bsdi[45]*)
8750      export_dynamic_flag_spec=-rdynamic
8751      ;;
8752
8753    cygwin* | mingw* | pw32*)
8754      # When not using gcc, we currently assume that we are using
8755      # Microsoft Visual C++.
8756      # hardcode_libdir_flag_spec is actually meaningless, as there is
8757      # no search path for DLLs.
8758      hardcode_libdir_flag_spec=' '
8759      allow_undefined_flag=unsupported
8760      # Tell ltmain to make .lib files, not .a files.
8761      libext=lib
8762      # Tell ltmain to make .dll files, not .so files.
8763      shrext_cmds=".dll"
8764      # FIXME: Setting linknames here is a bad hack.
8765      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8766      # The linker will automatically build a .lib file if we build a DLL.
8767      old_archive_From_new_cmds='true'
8768      # FIXME: Should let the user specify the lib program.
8769      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8770      fix_srcfile_path='`cygpath -w "$srcfile"`'
8771      enable_shared_with_static_runtimes=yes
8772      ;;
8773
8774    darwin* | rhapsody*)
8775      case $host_os in
8776        rhapsody* | darwin1.[012])
8777         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8778         ;;
8779       *) # Darwin 1.3 on
8780         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8781           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8782         else
8783           case ${MACOSX_DEPLOYMENT_TARGET} in
8784             10.[012])
8785               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8786               ;;
8787             10.*)
8788               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8789               ;;
8790           esac
8791         fi
8792         ;;
8793      esac
8794      archive_cmds_need_lc=no
8795      hardcode_direct=no
8796      hardcode_automatic=yes
8797      hardcode_shlibpath_var=unsupported
8798      whole_archive_flag_spec=''
8799      link_all_deplibs=yes
8800    if test "$GCC" = yes ; then
8801        output_verbose_link_cmd='echo'
8802        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8803      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8804      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8805      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}'
8806      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}'
8807    else
8808      case $cc_basename in
8809        xlc*)
8810         output_verbose_link_cmd='echo'
8811         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8812         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8813          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8814         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}'
8815          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}'
8816          ;;
8817       *)
8818         ld_shlibs=no
8819          ;;
8820      esac
8821    fi
8822      ;;
8823
8824    dgux*)
8825      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8826      hardcode_libdir_flag_spec='-L$libdir'
8827      hardcode_shlibpath_var=no
8828      ;;
8829
8830    freebsd1*)
8831      ld_shlibs=no
8832      ;;
8833
8834    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8835    # support.  Future versions do this automatically, but an explicit c++rt0.o
8836    # does not break anything, and helps significantly (at the cost of a little
8837    # extra space).
8838    freebsd2.2*)
8839      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8840      hardcode_libdir_flag_spec='-R$libdir'
8841      hardcode_direct=yes
8842      hardcode_shlibpath_var=no
8843      ;;
8844
8845    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8846    freebsd2*)
8847      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8848      hardcode_direct=yes
8849      hardcode_minus_L=yes
8850      hardcode_shlibpath_var=no
8851      ;;
8852
8853    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8854    freebsd* | kfreebsd*-gnu | dragonfly*)
8855      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8856      hardcode_libdir_flag_spec='-R$libdir'
8857      hardcode_direct=yes
8858      hardcode_shlibpath_var=no
8859      ;;
8860
8861    hpux9*)
8862      if test "$GCC" = yes; then
8863        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'
8864      else
8865        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'
8866      fi
8867      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8868      hardcode_libdir_separator=:
8869      hardcode_direct=yes
8870
8871      # hardcode_minus_L: Not really in the search PATH,
8872      # but as the default location of the library.
8873      hardcode_minus_L=yes
8874      export_dynamic_flag_spec='${wl}-E'
8875      ;;
8876
8877    hpux10*)
8878      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8879        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8880      else
8881        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8882      fi
8883      if test "$with_gnu_ld" = no; then
8884        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8885        hardcode_libdir_separator=:
8886
8887        hardcode_direct=yes
8888        export_dynamic_flag_spec='${wl}-E'
8889
8890        # hardcode_minus_L: Not really in the search PATH,
8891        # but as the default location of the library.
8892        hardcode_minus_L=yes
8893      fi
8894      ;;
8895
8896    hpux11*)
8897      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8898        case $host_cpu in
8899        hppa*64*)
8900          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8901          ;;
8902        ia64*)
8903          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8904          ;;
8905        *)
8906          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8907          ;;
8908        esac
8909      else
8910        case $host_cpu in
8911        hppa*64*)
8912          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8913          ;;
8914        ia64*)
8915          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8916          ;;
8917        *)
8918          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8919          ;;
8920        esac
8921      fi
8922      if test "$with_gnu_ld" = no; then
8923        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8924        hardcode_libdir_separator=:
8925
8926        case $host_cpu in
8927        hppa*64*|ia64*)
8928          hardcode_libdir_flag_spec_ld='+b $libdir'
8929          hardcode_direct=no
8930          hardcode_shlibpath_var=no
8931          ;;
8932        *)
8933          hardcode_direct=yes
8934          export_dynamic_flag_spec='${wl}-E'
8935
8936          # hardcode_minus_L: Not really in the search PATH,
8937          # but as the default location of the library.
8938          hardcode_minus_L=yes
8939          ;;
8940        esac
8941      fi
8942      ;;
8943
8944    irix5* | irix6* | nonstopux*)
8945      if test "$GCC" = yes; then
8946        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'
8947      else
8948        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'
8949        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8950      fi
8951      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8952      hardcode_libdir_separator=:
8953      link_all_deplibs=yes
8954      ;;
8955
8956    netbsd*)
8957      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8958        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8959      else
8960        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8961      fi
8962      hardcode_libdir_flag_spec='-R$libdir'
8963      hardcode_direct=yes
8964      hardcode_shlibpath_var=no
8965      ;;
8966
8967    newsos6)
8968      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8969      hardcode_direct=yes
8970      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8971      hardcode_libdir_separator=:
8972      hardcode_shlibpath_var=no
8973      ;;
8974
8975    openbsd*)
8976      hardcode_direct=yes
8977      hardcode_shlibpath_var=no
8978      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8979        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8980        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8981        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8982        export_dynamic_flag_spec='${wl}-E'
8983      else
8984       case $host_os in
8985         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8986           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8987           hardcode_libdir_flag_spec='-R$libdir'
8988           ;;
8989         *)
8990           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8991           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8992           ;;
8993       esac
8994      fi
8995      ;;
8996
8997    os2*)
8998      hardcode_libdir_flag_spec='-L$libdir'
8999      hardcode_minus_L=yes
9000      allow_undefined_flag=unsupported
9001      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'
9002      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9003      ;;
9004
9005    osf3*)
9006      if test "$GCC" = yes; then
9007        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9008        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'
9009      else
9010        allow_undefined_flag=' -expect_unresolved \*'
9011        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'
9012      fi
9013      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9014      hardcode_libdir_separator=:
9015      ;;
9016
9017    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9018      if test "$GCC" = yes; then
9019        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9020        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'
9021        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9022      else
9023        allow_undefined_flag=' -expect_unresolved \*'
9024        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'
9025        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9026        $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'
9027
9028        # Both c and cxx compiler support -rpath directly
9029        hardcode_libdir_flag_spec='-rpath $libdir'
9030      fi
9031      hardcode_libdir_separator=:
9032      ;;
9033
9034    solaris*)
9035      no_undefined_flag=' -z text'
9036      if test "$GCC" = yes; then
9037        wlarc='${wl}'
9038        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9039        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9040          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9041      else
9042        wlarc=''
9043        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9045        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9046      fi
9047      hardcode_libdir_flag_spec='-R$libdir'
9048      hardcode_shlibpath_var=no
9049      case $host_os in
9050      solaris2.[0-5] | solaris2.[0-5].*) ;;
9051      *)
9052        # The compiler driver will combine linker options so we
9053        # cannot just pass the convience library names through
9054        # without $wl, iff we do not link with $LD.
9055        # Luckily, gcc supports the same syntax we need for Sun Studio.
9056        # Supported since Solaris 2.6 (maybe 2.5.1?)
9057        case $wlarc in
9058        '')
9059          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9060        *)
9061          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' ;;
9062        esac ;;
9063      esac
9064      link_all_deplibs=yes
9065      ;;
9066
9067    sunos4*)
9068      if test "x$host_vendor" = xsequent; then
9069        # Use $CC to link under sequent, because it throws in some extra .o
9070        # files that make .init and .fini sections work.
9071        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9072      else
9073        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9074      fi
9075      hardcode_libdir_flag_spec='-L$libdir'
9076      hardcode_direct=yes
9077      hardcode_minus_L=yes
9078      hardcode_shlibpath_var=no
9079      ;;
9080
9081    sysv4)
9082      case $host_vendor in
9083        sni)
9084          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9085          hardcode_direct=yes # is this really true???
9086        ;;
9087        siemens)
9088          ## LD is ld it makes a PLAMLIB
9089          ## CC just makes a GrossModule.
9090          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9091          reload_cmds='$CC -r -o $output$reload_objs'
9092          hardcode_direct=no
9093        ;;
9094        motorola)
9095          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9097        ;;
9098      esac
9099      runpath_var='LD_RUN_PATH'
9100      hardcode_shlibpath_var=no
9101      ;;
9102
9103    sysv4.3*)
9104      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9105      hardcode_shlibpath_var=no
9106      export_dynamic_flag_spec='-Bexport'
9107      ;;
9108
9109    sysv4*MP*)
9110      if test -d /usr/nec; then
9111        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9112        hardcode_shlibpath_var=no
9113        runpath_var=LD_RUN_PATH
9114        hardcode_runpath_var=yes
9115        ld_shlibs=yes
9116      fi
9117      ;;
9118
9119    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9120      no_undefined_flag='${wl}-z,text'
9121      archive_cmds_need_lc=no
9122      hardcode_shlibpath_var=no
9123      runpath_var='LD_RUN_PATH'
9124
9125      if test "$GCC" = yes; then
9126        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9127        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9128      else
9129        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9130        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9131      fi
9132      ;;
9133
9134    sysv5* | sco3.2v5* | sco5v6*)
9135      # Note: We can NOT use -z defs as we might desire, because we do not
9136      # link with -lc, and that would cause any symbols used from libc to
9137      # always be unresolved, which means just about no library would
9138      # ever link correctly.  If we're not using GNU ld we use -z text
9139      # though, which does catch some bad symbols but isn't as heavy-handed
9140      # as -z defs.
9141      no_undefined_flag='${wl}-z,text'
9142      allow_undefined_flag='${wl}-z,nodefs'
9143      archive_cmds_need_lc=no
9144      hardcode_shlibpath_var=no
9145      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9146      hardcode_libdir_separator=':'
9147      link_all_deplibs=yes
9148      export_dynamic_flag_spec='${wl}-Bexport'
9149      runpath_var='LD_RUN_PATH'
9150
9151      if test "$GCC" = yes; then
9152        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9153        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9154      else
9155        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9156        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9157      fi
9158      ;;
9159
9160    uts4*)
9161      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9162      hardcode_libdir_flag_spec='-L$libdir'
9163      hardcode_shlibpath_var=no
9164      ;;
9165
9166    *)
9167      ld_shlibs=no
9168      ;;
9169    esac
9170  fi
9171
9172echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9173echo "${ECHO_T}$ld_shlibs" >&6
9174test "$ld_shlibs" = no && can_build_shared=no
9175
9176#
9177# Do we need to explicitly link libc?
9178#
9179case "x$archive_cmds_need_lc" in
9180x|xyes)
9181  # Assume -lc should be added
9182  archive_cmds_need_lc=yes
9183
9184  if test "$enable_shared" = yes && test "$GCC" = yes; then
9185    case $archive_cmds in
9186    *'~'*)
9187      # FIXME: we may have to deal with multi-command sequences.
9188      ;;
9189    '$CC '*)
9190      # Test whether the compiler implicitly links with -lc since on some
9191      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9192      # to ld, don't add -lc before -lgcc.
9193      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9194echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9195      $rm conftest*
9196      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9197
9198      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9199  (eval $ac_compile) 2>&5
9200  ac_status=$?
9201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202  (exit $ac_status); } 2>conftest.err; then
9203        soname=conftest
9204        lib=conftest
9205        libobjs=conftest.$ac_objext
9206        deplibs=
9207        wl=$lt_prog_compiler_wl
9208        pic_flag=$lt_prog_compiler_pic
9209        compiler_flags=-v
9210        linker_flags=-v
9211        verstring=
9212        output_objdir=.
9213        libname=conftest
9214        lt_save_allow_undefined_flag=$allow_undefined_flag
9215        allow_undefined_flag=
9216        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9217  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9218  ac_status=$?
9219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220  (exit $ac_status); }
9221        then
9222          archive_cmds_need_lc=no
9223        else
9224          archive_cmds_need_lc=yes
9225        fi
9226        allow_undefined_flag=$lt_save_allow_undefined_flag
9227      else
9228        cat conftest.err 1>&5
9229      fi
9230      $rm conftest*
9231      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9232echo "${ECHO_T}$archive_cmds_need_lc" >&6
9233      ;;
9234    esac
9235  fi
9236  ;;
9237esac
9238
9239echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9240echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9241library_names_spec=
9242libname_spec='lib$name'
9243soname_spec=
9244shrext_cmds=".so"
9245postinstall_cmds=
9246postuninstall_cmds=
9247finish_cmds=
9248finish_eval=
9249shlibpath_var=
9250shlibpath_overrides_runpath=unknown
9251version_type=none
9252dynamic_linker="$host_os ld.so"
9253sys_lib_dlsearch_path_spec="/lib /usr/lib"
9254if test "$GCC" = yes; then
9255  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9256  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9257    # if the path contains ";" then we assume it to be the separator
9258    # otherwise default to the standard path separator (i.e. ":") - it is
9259    # assumed that no part of a normal pathname contains ";" but that should
9260    # okay in the real world where ";" in dirpaths is itself problematic.
9261    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9262  else
9263    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9264  fi
9265else
9266  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9267fi
9268need_lib_prefix=unknown
9269hardcode_into_libs=no
9270
9271# when you set need_version to no, make sure it does not cause -set_version
9272# flags to be left without arguments
9273need_version=unknown
9274
9275case $host_os in
9276aix3*)
9277  version_type=linux
9278  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9279  shlibpath_var=LIBPATH
9280
9281  # AIX 3 has no versioning support, so we append a major version to the name.
9282  soname_spec='${libname}${release}${shared_ext}$major'
9283  ;;
9284
9285aix4* | aix5*)
9286  version_type=linux
9287  need_lib_prefix=no
9288  need_version=no
9289  hardcode_into_libs=yes
9290  if test "$host_cpu" = ia64; then
9291    # AIX 5 supports IA64
9292    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9293    shlibpath_var=LD_LIBRARY_PATH
9294  else
9295    # With GCC up to 2.95.x, collect2 would create an import file
9296    # for dependence libraries.  The import file would start with
9297    # the line `#! .'.  This would cause the generated library to
9298    # depend on `.', always an invalid library.  This was fixed in
9299    # development snapshots of GCC prior to 3.0.
9300    case $host_os in
9301      aix4 | aix4.[01] | aix4.[01].*)
9302      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9303           echo ' yes '
9304           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9305        :
9306      else
9307        can_build_shared=no
9308      fi
9309      ;;
9310    esac
9311    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9312    # soname into executable. Probably we can add versioning support to
9313    # collect2, so additional links can be useful in future.
9314    if test "$aix_use_runtimelinking" = yes; then
9315      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9316      # instead of lib<name>.a to let people know that these are not
9317      # typical AIX shared libraries.
9318      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319    else
9320      # We preserve .a as extension for shared libraries through AIX4.2
9321      # and later when we are not doing run time linking.
9322      library_names_spec='${libname}${release}.a $libname.a'
9323      soname_spec='${libname}${release}${shared_ext}$major'
9324    fi
9325    shlibpath_var=LIBPATH
9326  fi
9327  ;;
9328
9329amigaos*)
9330  library_names_spec='$libname.ixlibrary $libname.a'
9331  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9332  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'
9333  ;;
9334
9335beos*)
9336  library_names_spec='${libname}${shared_ext}'
9337  dynamic_linker="$host_os ld.so"
9338  shlibpath_var=LIBRARY_PATH
9339  ;;
9340
9341bsdi[45]*)
9342  version_type=linux
9343  need_version=no
9344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345  soname_spec='${libname}${release}${shared_ext}$major'
9346  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9347  shlibpath_var=LD_LIBRARY_PATH
9348  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9349  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9350  # the default ld.so.conf also contains /usr/contrib/lib and
9351  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9352  # libtool to hard-code these into programs
9353  ;;
9354
9355cygwin* | mingw* | pw32*)
9356  version_type=windows
9357  shrext_cmds=".dll"
9358  need_version=no
9359  need_lib_prefix=no
9360
9361  case $GCC,$host_os in
9362  yes,cygwin* | yes,mingw* | yes,pw32*)
9363    library_names_spec='$libname.dll.a'
9364    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9365    postinstall_cmds='base_file=`basename \${file}`~
9366      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9367      dldir=$destdir/`dirname \$dlpath`~
9368      test -d \$dldir || mkdir -p \$dldir~
9369      $install_prog $dir/$dlname \$dldir/$dlname~
9370      chmod a+x \$dldir/$dlname'
9371    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9372      dlpath=$dir/\$dldll~
9373       $rm \$dlpath'
9374    shlibpath_overrides_runpath=yes
9375
9376    case $host_os in
9377    cygwin*)
9378      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9379      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9380      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9381      ;;
9382    mingw*)
9383      # MinGW DLLs use traditional 'lib' prefix
9384      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9385      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9386      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9387        # It is most probably a Windows format PATH printed by
9388        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9389        # path with ; separators, and with drive letters. We can handle the
9390        # drive letters (cygwin fileutils understands them), so leave them,
9391        # especially as we might pass files found there to a mingw objdump,
9392        # which wouldn't understand a cygwinified path. Ahh.
9393        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9394      else
9395        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9396      fi
9397      ;;
9398    pw32*)
9399      # pw32 DLLs use 'pw' prefix rather than 'lib'
9400      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9401      ;;
9402    esac
9403    ;;
9404
9405  *)
9406    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9407    ;;
9408  esac
9409  dynamic_linker='Win32 ld.exe'
9410  # FIXME: first we should search . and the directory the executable is in
9411  shlibpath_var=PATH
9412  ;;
9413
9414darwin* | rhapsody*)
9415  dynamic_linker="$host_os dyld"
9416  version_type=darwin
9417  need_lib_prefix=no
9418  need_version=no
9419  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9420  soname_spec='${libname}${release}${major}$shared_ext'
9421  shlibpath_overrides_runpath=yes
9422  shlibpath_var=DYLD_LIBRARY_PATH
9423  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9424  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9425  if test "$GCC" = yes; then
9426    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"`
9427  else
9428    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9429  fi
9430  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9431  ;;
9432
9433dgux*)
9434  version_type=linux
9435  need_lib_prefix=no
9436  need_version=no
9437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9438  soname_spec='${libname}${release}${shared_ext}$major'
9439  shlibpath_var=LD_LIBRARY_PATH
9440  ;;
9441
9442freebsd1*)
9443  dynamic_linker=no
9444  ;;
9445
9446kfreebsd*-gnu)
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  shlibpath_overrides_runpath=no
9454  hardcode_into_libs=yes
9455  dynamic_linker='GNU ld.so'
9456  ;;
9457
9458freebsd* | dragonfly*)
9459  # DragonFly does not have aout.  When/if they implement a new
9460  # versioning mechanism, adjust this.
9461  if test -x /usr/bin/objformat; then
9462    objformat=`/usr/bin/objformat`
9463  else
9464    case $host_os in
9465    freebsd[123]*) objformat=aout ;;
9466    *) objformat=elf ;;
9467    esac
9468  fi
9469  version_type=freebsd-$objformat
9470  case $version_type in
9471    freebsd-elf*)
9472      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9473      need_version=no
9474      need_lib_prefix=no
9475      ;;
9476    freebsd-*)
9477      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9478      need_version=yes
9479      ;;
9480  esac
9481  shlibpath_var=LD_LIBRARY_PATH
9482  case $host_os in
9483  freebsd2*)
9484    shlibpath_overrides_runpath=yes
9485    ;;
9486  freebsd3.[01]* | freebsdelf3.[01]*)
9487    shlibpath_overrides_runpath=yes
9488    hardcode_into_libs=yes
9489    ;;
9490  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9491  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9492    shlibpath_overrides_runpath=no
9493    hardcode_into_libs=yes
9494    ;;
9495  freebsd*) # from 4.6 on
9496    shlibpath_overrides_runpath=yes
9497    hardcode_into_libs=yes
9498    ;;
9499  esac
9500  ;;
9501
9502gnu*)
9503  version_type=linux
9504  need_lib_prefix=no
9505  need_version=no
9506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9507  soname_spec='${libname}${release}${shared_ext}$major'
9508  shlibpath_var=LD_LIBRARY_PATH
9509  hardcode_into_libs=yes
9510  ;;
9511
9512hpux9* | hpux10* | hpux11*)
9513  # Give a soname corresponding to the major version so that dld.sl refuses to
9514  # link against other versions.
9515  version_type=sunos
9516  need_lib_prefix=no
9517  need_version=no
9518  case $host_cpu in
9519  ia64*)
9520    shrext_cmds='.so'
9521    hardcode_into_libs=yes
9522    dynamic_linker="$host_os dld.so"
9523    shlibpath_var=LD_LIBRARY_PATH
9524    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9525    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526    soname_spec='${libname}${release}${shared_ext}$major'
9527    if test "X$HPUX_IA64_MODE" = X32; then
9528      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9529    else
9530      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9531    fi
9532    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9533    ;;
9534   hppa*64*)
9535     shrext_cmds='.sl'
9536     hardcode_into_libs=yes
9537     dynamic_linker="$host_os dld.sl"
9538     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9539     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541     soname_spec='${libname}${release}${shared_ext}$major'
9542     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9543     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9544     ;;
9545   *)
9546    shrext_cmds='.sl'
9547    dynamic_linker="$host_os dld.sl"
9548    shlibpath_var=SHLIB_PATH
9549    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9550    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551    soname_spec='${libname}${release}${shared_ext}$major'
9552    ;;
9553  esac
9554  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9555  postinstall_cmds='chmod 555 $lib'
9556  ;;
9557
9558interix3*)
9559  version_type=linux
9560  need_lib_prefix=no
9561  need_version=no
9562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9563  soname_spec='${libname}${release}${shared_ext}$major'
9564  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9565  shlibpath_var=LD_LIBRARY_PATH
9566  shlibpath_overrides_runpath=no
9567  hardcode_into_libs=yes
9568  ;;
9569
9570irix5* | irix6* | nonstopux*)
9571  case $host_os in
9572    nonstopux*) version_type=nonstopux ;;
9573    *)
9574        if test "$lt_cv_prog_gnu_ld" = yes; then
9575                version_type=linux
9576        else
9577                version_type=irix
9578        fi ;;
9579  esac
9580  need_lib_prefix=no
9581  need_version=no
9582  soname_spec='${libname}${release}${shared_ext}$major'
9583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9584  case $host_os in
9585  irix5* | nonstopux*)
9586    libsuff= shlibsuff=
9587    ;;
9588  *)
9589    case $LD in # libtool.m4 will add one of these switches to LD
9590    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9591      libsuff= shlibsuff= libmagic=32-bit;;
9592    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9593      libsuff=32 shlibsuff=N32 libmagic=N32;;
9594    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9595      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9596    *) libsuff= shlibsuff= libmagic=never-match;;
9597    esac
9598    ;;
9599  esac
9600  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9601  shlibpath_overrides_runpath=no
9602  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9603  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9604  hardcode_into_libs=yes
9605  ;;
9606
9607# No shared lib support for Linux oldld, aout, or coff.
9608linux*oldld* | linux*aout* | linux*coff*)
9609  dynamic_linker=no
9610  ;;
9611
9612# This must be Linux ELF.
9613linux*)
9614  version_type=linux
9615  need_lib_prefix=no
9616  need_version=no
9617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618  soname_spec='${libname}${release}${shared_ext}$major'
9619  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9620  shlibpath_var=LD_LIBRARY_PATH
9621  shlibpath_overrides_runpath=no
9622  # This implies no fast_install, which is unacceptable.
9623  # Some rework will be needed to allow for fast_install
9624  # before this can be enabled.
9625  hardcode_into_libs=yes
9626
9627  # Append ld.so.conf contents to the search path
9628  if test -f /etc/ld.so.conf; then
9629    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' ' '`
9630    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9631  fi
9632
9633  # We used to test for /lib/ld.so.1 and disable shared libraries on
9634  # powerpc, because MkLinux only supported shared libraries with the
9635  # GNU dynamic linker.  Since this was broken with cross compilers,
9636  # most powerpc-linux boxes support dynamic linking these days and
9637  # people can always --disable-shared, the test was removed, and we
9638  # assume the GNU/Linux dynamic linker is in use.
9639  dynamic_linker='GNU/Linux ld.so'
9640  ;;
9641
9642knetbsd*-gnu)
9643  version_type=linux
9644  need_lib_prefix=no
9645  need_version=no
9646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9647  soname_spec='${libname}${release}${shared_ext}$major'
9648  shlibpath_var=LD_LIBRARY_PATH
9649  shlibpath_overrides_runpath=no
9650  hardcode_into_libs=yes
9651  dynamic_linker='GNU ld.so'
9652  ;;
9653
9654netbsd*)
9655  version_type=sunos
9656  need_lib_prefix=no
9657  need_version=no
9658  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9659    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9660    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9661    dynamic_linker='NetBSD (a.out) ld.so'
9662  else
9663    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9664    soname_spec='${libname}${release}${shared_ext}$major'
9665    dynamic_linker='NetBSD ld.elf_so'
9666  fi
9667  shlibpath_var=LD_LIBRARY_PATH
9668  shlibpath_overrides_runpath=yes
9669  hardcode_into_libs=yes
9670  ;;
9671
9672newsos6)
9673  version_type=linux
9674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675  shlibpath_var=LD_LIBRARY_PATH
9676  shlibpath_overrides_runpath=yes
9677  ;;
9678
9679nto-qnx*)
9680  version_type=linux
9681  need_lib_prefix=no
9682  need_version=no
9683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684  soname_spec='${libname}${release}${shared_ext}$major'
9685  shlibpath_var=LD_LIBRARY_PATH
9686  shlibpath_overrides_runpath=yes
9687  ;;
9688
9689openbsd*)
9690  version_type=sunos
9691  sys_lib_dlsearch_path_spec="/usr/lib"
9692  need_lib_prefix=no
9693  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9694  case $host_os in
9695    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9696    *)                         need_version=no  ;;
9697  esac
9698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9699  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9700  shlibpath_var=LD_LIBRARY_PATH
9701  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9702    case $host_os in
9703      openbsd2.[89] | openbsd2.[89].*)
9704        shlibpath_overrides_runpath=no
9705        ;;
9706      *)
9707        shlibpath_overrides_runpath=yes
9708        ;;
9709      esac
9710  else
9711    shlibpath_overrides_runpath=yes
9712  fi
9713  ;;
9714
9715os2*)
9716  libname_spec='$name'
9717  shrext_cmds=".dll"
9718  need_lib_prefix=no
9719  library_names_spec='$libname${shared_ext} $libname.a'
9720  dynamic_linker='OS/2 ld.exe'
9721  shlibpath_var=LIBPATH
9722  ;;
9723
9724osf3* | osf4* | osf5*)
9725  version_type=osf
9726  need_lib_prefix=no
9727  need_version=no
9728  soname_spec='${libname}${release}${shared_ext}$major'
9729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730  shlibpath_var=LD_LIBRARY_PATH
9731  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9732  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9733  ;;
9734
9735solaris*)
9736  version_type=linux
9737  need_lib_prefix=no
9738  need_version=no
9739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740  soname_spec='${libname}${release}${shared_ext}$major'
9741  shlibpath_var=LD_LIBRARY_PATH
9742  shlibpath_overrides_runpath=yes
9743  hardcode_into_libs=yes
9744  # ldd complains unless libraries are executable
9745  postinstall_cmds='chmod +x $lib'
9746  ;;
9747
9748sunos4*)
9749  version_type=sunos
9750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9751  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9752  shlibpath_var=LD_LIBRARY_PATH
9753  shlibpath_overrides_runpath=yes
9754  if test "$with_gnu_ld" = yes; then
9755    need_lib_prefix=no
9756  fi
9757  need_version=yes
9758  ;;
9759
9760sysv4 | sysv4.3*)
9761  version_type=linux
9762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763  soname_spec='${libname}${release}${shared_ext}$major'
9764  shlibpath_var=LD_LIBRARY_PATH
9765  case $host_vendor in
9766    sni)
9767      shlibpath_overrides_runpath=no
9768      need_lib_prefix=no
9769      export_dynamic_flag_spec='${wl}-Blargedynsym'
9770      runpath_var=LD_RUN_PATH
9771      ;;
9772    siemens)
9773      need_lib_prefix=no
9774      ;;
9775    motorola)
9776      need_lib_prefix=no
9777      need_version=no
9778      shlibpath_overrides_runpath=no
9779      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9780      ;;
9781  esac
9782  ;;
9783
9784sysv4*MP*)
9785  if test -d /usr/nec ;then
9786    version_type=linux
9787    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9788    soname_spec='$libname${shared_ext}.$major'
9789    shlibpath_var=LD_LIBRARY_PATH
9790  fi
9791  ;;
9792
9793sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9794  version_type=freebsd-elf
9795  need_lib_prefix=no
9796  need_version=no
9797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9798  soname_spec='${libname}${release}${shared_ext}$major'
9799  shlibpath_var=LD_LIBRARY_PATH
9800  hardcode_into_libs=yes
9801  if test "$with_gnu_ld" = yes; then
9802    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9803    shlibpath_overrides_runpath=no
9804  else
9805    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9806    shlibpath_overrides_runpath=yes
9807    case $host_os in
9808      sco3.2v5*)
9809        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9810        ;;
9811    esac
9812  fi
9813  sys_lib_dlsearch_path_spec='/usr/lib'
9814  ;;
9815
9816uts4*)
9817  version_type=linux
9818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819  soname_spec='${libname}${release}${shared_ext}$major'
9820  shlibpath_var=LD_LIBRARY_PATH
9821  ;;
9822
9823*)
9824  dynamic_linker=no
9825  ;;
9826esac
9827echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9828echo "${ECHO_T}$dynamic_linker" >&6
9829test "$dynamic_linker" = no && can_build_shared=no
9830
9831variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9832if test "$GCC" = yes; then
9833  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9834fi
9835
9836echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9837echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9838hardcode_action=
9839if test -n "$hardcode_libdir_flag_spec" || \
9840   test -n "$runpath_var" || \
9841   test "X$hardcode_automatic" = "Xyes" ; then
9842
9843  # We can hardcode non-existant directories.
9844  if test "$hardcode_direct" != no &&
9845     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9846     # have to relink, otherwise we might link with an installed library
9847     # when we should be linking with a yet-to-be-installed one
9848     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9849     test "$hardcode_minus_L" != no; then
9850    # Linking always hardcodes the temporary library directory.
9851    hardcode_action=relink
9852  else
9853    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9854    hardcode_action=immediate
9855  fi
9856else
9857  # We cannot hardcode anything, or else we can only hardcode existing
9858  # directories.
9859  hardcode_action=unsupported
9860fi
9861echo "$as_me:$LINENO: result: $hardcode_action" >&5
9862echo "${ECHO_T}$hardcode_action" >&6
9863
9864if test "$hardcode_action" = relink; then
9865  # Fast installation is not supported
9866  enable_fast_install=no
9867elif test "$shlibpath_overrides_runpath" = yes ||
9868     test "$enable_shared" = no; then
9869  # Fast installation is not necessary
9870  enable_fast_install=needless
9871fi
9872
9873striplib=
9874old_striplib=
9875echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9876echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9877if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9878  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9879  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9880  echo "$as_me:$LINENO: result: yes" >&5
9881echo "${ECHO_T}yes" >&6
9882else
9883# FIXME - insert some real tests, host_os isn't really good enough
9884  case $host_os in
9885   darwin*)
9886       if test -n "$STRIP" ; then
9887         striplib="$STRIP -x"
9888         echo "$as_me:$LINENO: result: yes" >&5
9889echo "${ECHO_T}yes" >&6
9890       else
9891  echo "$as_me:$LINENO: result: no" >&5
9892echo "${ECHO_T}no" >&6
9893fi
9894       ;;
9895   *)
9896  echo "$as_me:$LINENO: result: no" >&5
9897echo "${ECHO_T}no" >&6
9898    ;;
9899  esac
9900fi
9901
9902if test "x$enable_dlopen" != xyes; then
9903  enable_dlopen=unknown
9904  enable_dlopen_self=unknown
9905  enable_dlopen_self_static=unknown
9906else
9907  lt_cv_dlopen=no
9908  lt_cv_dlopen_libs=
9909
9910  case $host_os in
9911  beos*)
9912    lt_cv_dlopen="load_add_on"
9913    lt_cv_dlopen_libs=
9914    lt_cv_dlopen_self=yes
9915    ;;
9916
9917  mingw* | pw32*)
9918    lt_cv_dlopen="LoadLibrary"
9919    lt_cv_dlopen_libs=
9920   ;;
9921
9922  cygwin*)
9923    lt_cv_dlopen="dlopen"
9924    lt_cv_dlopen_libs=
9925   ;;
9926
9927  darwin*)
9928  # if libdl is installed we need to link against it
9929    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9930echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9931if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9932  echo $ECHO_N "(cached) $ECHO_C" >&6
9933else
9934  ac_check_lib_save_LIBS=$LIBS
9935LIBS="-ldl  $LIBS"
9936cat >conftest.$ac_ext <<_ACEOF
9937/* confdefs.h.  */
9938_ACEOF
9939cat confdefs.h >>conftest.$ac_ext
9940cat >>conftest.$ac_ext <<_ACEOF
9941/* end confdefs.h.  */
9942
9943/* Override any gcc2 internal prototype to avoid an error.  */
9944#ifdef __cplusplus
9945extern "C"
9946#endif
9947/* We use char because int might match the return type of a gcc2
9948   builtin and then its argument prototype would still apply.  */
9949char dlopen ();
9950int
9951main ()
9952{
9953dlopen ();
9954  ;
9955  return 0;
9956}
9957_ACEOF
9958rm -f conftest.$ac_objext conftest$ac_exeext
9959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9960  (eval $ac_link) 2>conftest.er1
9961  ac_status=$?
9962  grep -v '^ *+' conftest.er1 >conftest.err
9963  rm -f conftest.er1
9964  cat conftest.err >&5
9965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966  (exit $ac_status); } &&
9967         { ac_try='test -z "$ac_c_werror_flag"
9968                         || test ! -s conftest.err'
9969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970  (eval $ac_try) 2>&5
9971  ac_status=$?
9972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973  (exit $ac_status); }; } &&
9974         { ac_try='test -s conftest$ac_exeext'
9975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976  (eval $ac_try) 2>&5
9977  ac_status=$?
9978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979  (exit $ac_status); }; }; then
9980  ac_cv_lib_dl_dlopen=yes
9981else
9982  echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
9985ac_cv_lib_dl_dlopen=no
9986fi
9987rm -f conftest.err conftest.$ac_objext \
9988      conftest$ac_exeext conftest.$ac_ext
9989LIBS=$ac_check_lib_save_LIBS
9990fi
9991echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9992echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9993if test $ac_cv_lib_dl_dlopen = yes; then
9994  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9995else
9996
9997    lt_cv_dlopen="dyld"
9998    lt_cv_dlopen_libs=
9999    lt_cv_dlopen_self=yes
10000
10001fi
10002
10003   ;;
10004
10005  *)
10006    echo "$as_me:$LINENO: checking for shl_load" >&5
10007echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10008if test "${ac_cv_func_shl_load+set}" = set; then
10009  echo $ECHO_N "(cached) $ECHO_C" >&6
10010else
10011  cat >conftest.$ac_ext <<_ACEOF
10012/* confdefs.h.  */
10013_ACEOF
10014cat confdefs.h >>conftest.$ac_ext
10015cat >>conftest.$ac_ext <<_ACEOF
10016/* end confdefs.h.  */
10017/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10018   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10019#define shl_load innocuous_shl_load
10020
10021/* System header to define __stub macros and hopefully few prototypes,
10022    which can conflict with char shl_load (); below.
10023    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10024    <limits.h> exists even on freestanding compilers.  */
10025
10026#ifdef __STDC__
10027# include <limits.h>
10028#else
10029# include <assert.h>
10030#endif
10031
10032#undef shl_load
10033
10034/* Override any gcc2 internal prototype to avoid an error.  */
10035#ifdef __cplusplus
10036extern "C"
10037{
10038#endif
10039/* We use char because int might match the return type of a gcc2
10040   builtin and then its argument prototype would still apply.  */
10041char shl_load ();
10042/* The GNU C library defines this for functions which it implements
10043    to always fail with ENOSYS.  Some functions are actually named
10044    something starting with __ and the normal name is an alias.  */
10045#if defined (__stub_shl_load) || defined (__stub___shl_load)
10046choke me
10047#else
10048char (*f) () = shl_load;
10049#endif
10050#ifdef __cplusplus
10051}
10052#endif
10053
10054int
10055main ()
10056{
10057return f != shl_load;
10058  ;
10059  return 0;
10060}
10061_ACEOF
10062rm -f conftest.$ac_objext conftest$ac_exeext
10063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10064  (eval $ac_link) 2>conftest.er1
10065  ac_status=$?
10066  grep -v '^ *+' conftest.er1 >conftest.err
10067  rm -f conftest.er1
10068  cat conftest.err >&5
10069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070  (exit $ac_status); } &&
10071         { ac_try='test -z "$ac_c_werror_flag"
10072                         || test ! -s conftest.err'
10073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074  (eval $ac_try) 2>&5
10075  ac_status=$?
10076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077  (exit $ac_status); }; } &&
10078         { ac_try='test -s conftest$ac_exeext'
10079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080  (eval $ac_try) 2>&5
10081  ac_status=$?
10082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083  (exit $ac_status); }; }; then
10084  ac_cv_func_shl_load=yes
10085else
10086  echo "$as_me: failed program was:" >&5
10087sed 's/^/| /' conftest.$ac_ext >&5
10088
10089ac_cv_func_shl_load=no
10090fi
10091rm -f conftest.err conftest.$ac_objext \
10092      conftest$ac_exeext conftest.$ac_ext
10093fi
10094echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10095echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10096if test $ac_cv_func_shl_load = yes; then
10097  lt_cv_dlopen="shl_load"
10098else
10099  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10100echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10101if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10102  echo $ECHO_N "(cached) $ECHO_C" >&6
10103else
10104  ac_check_lib_save_LIBS=$LIBS
10105LIBS="-ldld  $LIBS"
10106cat >conftest.$ac_ext <<_ACEOF
10107/* confdefs.h.  */
10108_ACEOF
10109cat confdefs.h >>conftest.$ac_ext
10110cat >>conftest.$ac_ext <<_ACEOF
10111/* end confdefs.h.  */
10112
10113/* Override any gcc2 internal prototype to avoid an error.  */
10114#ifdef __cplusplus
10115extern "C"
10116#endif
10117/* We use char because int might match the return type of a gcc2
10118   builtin and then its argument prototype would still apply.  */
10119char shl_load ();
10120int
10121main ()
10122{
10123shl_load ();
10124  ;
10125  return 0;
10126}
10127_ACEOF
10128rm -f conftest.$ac_objext conftest$ac_exeext
10129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10130  (eval $ac_link) 2>conftest.er1
10131  ac_status=$?
10132  grep -v '^ *+' conftest.er1 >conftest.err
10133  rm -f conftest.er1
10134  cat conftest.err >&5
10135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136  (exit $ac_status); } &&
10137         { ac_try='test -z "$ac_c_werror_flag"
10138                         || test ! -s conftest.err'
10139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140  (eval $ac_try) 2>&5
10141  ac_status=$?
10142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143  (exit $ac_status); }; } &&
10144         { ac_try='test -s conftest$ac_exeext'
10145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146  (eval $ac_try) 2>&5
10147  ac_status=$?
10148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149  (exit $ac_status); }; }; then
10150  ac_cv_lib_dld_shl_load=yes
10151else
10152  echo "$as_me: failed program was:" >&5
10153sed 's/^/| /' conftest.$ac_ext >&5
10154
10155ac_cv_lib_dld_shl_load=no
10156fi
10157rm -f conftest.err conftest.$ac_objext \
10158      conftest$ac_exeext conftest.$ac_ext
10159LIBS=$ac_check_lib_save_LIBS
10160fi
10161echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10162echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10163if test $ac_cv_lib_dld_shl_load = yes; then
10164  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10165else
10166  echo "$as_me:$LINENO: checking for dlopen" >&5
10167echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10168if test "${ac_cv_func_dlopen+set}" = set; then
10169  echo $ECHO_N "(cached) $ECHO_C" >&6
10170else
10171  cat >conftest.$ac_ext <<_ACEOF
10172/* confdefs.h.  */
10173_ACEOF
10174cat confdefs.h >>conftest.$ac_ext
10175cat >>conftest.$ac_ext <<_ACEOF
10176/* end confdefs.h.  */
10177/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10178   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10179#define dlopen innocuous_dlopen
10180
10181/* System header to define __stub macros and hopefully few prototypes,
10182    which can conflict with char dlopen (); below.
10183    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10184    <limits.h> exists even on freestanding compilers.  */
10185
10186#ifdef __STDC__
10187# include <limits.h>
10188#else
10189# include <assert.h>
10190#endif
10191
10192#undef dlopen
10193
10194/* Override any gcc2 internal prototype to avoid an error.  */
10195#ifdef __cplusplus
10196extern "C"
10197{
10198#endif
10199/* We use char because int might match the return type of a gcc2
10200   builtin and then its argument prototype would still apply.  */
10201char dlopen ();
10202/* The GNU C library defines this for functions which it implements
10203    to always fail with ENOSYS.  Some functions are actually named
10204    something starting with __ and the normal name is an alias.  */
10205#if defined (__stub_dlopen) || defined (__stub___dlopen)
10206choke me
10207#else
10208char (*f) () = dlopen;
10209#endif
10210#ifdef __cplusplus
10211}
10212#endif
10213
10214int
10215main ()
10216{
10217return f != dlopen;
10218  ;
10219  return 0;
10220}
10221_ACEOF
10222rm -f conftest.$ac_objext conftest$ac_exeext
10223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224  (eval $ac_link) 2>conftest.er1
10225  ac_status=$?
10226  grep -v '^ *+' conftest.er1 >conftest.err
10227  rm -f conftest.er1
10228  cat conftest.err >&5
10229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230  (exit $ac_status); } &&
10231         { ac_try='test -z "$ac_c_werror_flag"
10232                         || test ! -s conftest.err'
10233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234  (eval $ac_try) 2>&5
10235  ac_status=$?
10236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237  (exit $ac_status); }; } &&
10238         { ac_try='test -s conftest$ac_exeext'
10239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240  (eval $ac_try) 2>&5
10241  ac_status=$?
10242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243  (exit $ac_status); }; }; then
10244  ac_cv_func_dlopen=yes
10245else
10246  echo "$as_me: failed program was:" >&5
10247sed 's/^/| /' conftest.$ac_ext >&5
10248
10249ac_cv_func_dlopen=no
10250fi
10251rm -f conftest.err conftest.$ac_objext \
10252      conftest$ac_exeext conftest.$ac_ext
10253fi
10254echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10255echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10256if test $ac_cv_func_dlopen = yes; then
10257  lt_cv_dlopen="dlopen"
10258else
10259  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10260echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10261if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10262  echo $ECHO_N "(cached) $ECHO_C" >&6
10263else
10264  ac_check_lib_save_LIBS=$LIBS
10265LIBS="-ldl  $LIBS"
10266cat >conftest.$ac_ext <<_ACEOF
10267/* confdefs.h.  */
10268_ACEOF
10269cat confdefs.h >>conftest.$ac_ext
10270cat >>conftest.$ac_ext <<_ACEOF
10271/* end confdefs.h.  */
10272
10273/* Override any gcc2 internal prototype to avoid an error.  */
10274#ifdef __cplusplus
10275extern "C"
10276#endif
10277/* We use char because int might match the return type of a gcc2
10278   builtin and then its argument prototype would still apply.  */
10279char dlopen ();
10280int
10281main ()
10282{
10283dlopen ();
10284  ;
10285  return 0;
10286}
10287_ACEOF
10288rm -f conftest.$ac_objext conftest$ac_exeext
10289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290  (eval $ac_link) 2>conftest.er1
10291  ac_status=$?
10292  grep -v '^ *+' conftest.er1 >conftest.err
10293  rm -f conftest.er1
10294  cat conftest.err >&5
10295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296  (exit $ac_status); } &&
10297         { ac_try='test -z "$ac_c_werror_flag"
10298                         || test ! -s conftest.err'
10299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300  (eval $ac_try) 2>&5
10301  ac_status=$?
10302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); }; } &&
10304         { ac_try='test -s conftest$ac_exeext'
10305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306  (eval $ac_try) 2>&5
10307  ac_status=$?
10308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309  (exit $ac_status); }; }; then
10310  ac_cv_lib_dl_dlopen=yes
10311else
10312  echo "$as_me: failed program was:" >&5
10313sed 's/^/| /' conftest.$ac_ext >&5
10314
10315ac_cv_lib_dl_dlopen=no
10316fi
10317rm -f conftest.err conftest.$ac_objext \
10318      conftest$ac_exeext conftest.$ac_ext
10319LIBS=$ac_check_lib_save_LIBS
10320fi
10321echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10322echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10323if test $ac_cv_lib_dl_dlopen = yes; then
10324  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10325else
10326  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10327echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10328if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10329  echo $ECHO_N "(cached) $ECHO_C" >&6
10330else
10331  ac_check_lib_save_LIBS=$LIBS
10332LIBS="-lsvld  $LIBS"
10333cat >conftest.$ac_ext <<_ACEOF
10334/* confdefs.h.  */
10335_ACEOF
10336cat confdefs.h >>conftest.$ac_ext
10337cat >>conftest.$ac_ext <<_ACEOF
10338/* end confdefs.h.  */
10339
10340/* Override any gcc2 internal prototype to avoid an error.  */
10341#ifdef __cplusplus
10342extern "C"
10343#endif
10344/* We use char because int might match the return type of a gcc2
10345   builtin and then its argument prototype would still apply.  */
10346char dlopen ();
10347int
10348main ()
10349{
10350dlopen ();
10351  ;
10352  return 0;
10353}
10354_ACEOF
10355rm -f conftest.$ac_objext conftest$ac_exeext
10356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357  (eval $ac_link) 2>conftest.er1
10358  ac_status=$?
10359  grep -v '^ *+' conftest.er1 >conftest.err
10360  rm -f conftest.er1
10361  cat conftest.err >&5
10362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363  (exit $ac_status); } &&
10364         { ac_try='test -z "$ac_c_werror_flag"
10365                         || test ! -s conftest.err'
10366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367  (eval $ac_try) 2>&5
10368  ac_status=$?
10369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370  (exit $ac_status); }; } &&
10371         { ac_try='test -s conftest$ac_exeext'
10372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373  (eval $ac_try) 2>&5
10374  ac_status=$?
10375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376  (exit $ac_status); }; }; then
10377  ac_cv_lib_svld_dlopen=yes
10378else
10379  echo "$as_me: failed program was:" >&5
10380sed 's/^/| /' conftest.$ac_ext >&5
10381
10382ac_cv_lib_svld_dlopen=no
10383fi
10384rm -f conftest.err conftest.$ac_objext \
10385      conftest$ac_exeext conftest.$ac_ext
10386LIBS=$ac_check_lib_save_LIBS
10387fi
10388echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10389echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10390if test $ac_cv_lib_svld_dlopen = yes; then
10391  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10392else
10393  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10394echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10395if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10396  echo $ECHO_N "(cached) $ECHO_C" >&6
10397else
10398  ac_check_lib_save_LIBS=$LIBS
10399LIBS="-ldld  $LIBS"
10400cat >conftest.$ac_ext <<_ACEOF
10401/* confdefs.h.  */
10402_ACEOF
10403cat confdefs.h >>conftest.$ac_ext
10404cat >>conftest.$ac_ext <<_ACEOF
10405/* end confdefs.h.  */
10406
10407/* Override any gcc2 internal prototype to avoid an error.  */
10408#ifdef __cplusplus
10409extern "C"
10410#endif
10411/* We use char because int might match the return type of a gcc2
10412   builtin and then its argument prototype would still apply.  */
10413char dld_link ();
10414int
10415main ()
10416{
10417dld_link ();
10418  ;
10419  return 0;
10420}
10421_ACEOF
10422rm -f conftest.$ac_objext conftest$ac_exeext
10423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10424  (eval $ac_link) 2>conftest.er1
10425  ac_status=$?
10426  grep -v '^ *+' conftest.er1 >conftest.err
10427  rm -f conftest.er1
10428  cat conftest.err >&5
10429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430  (exit $ac_status); } &&
10431         { ac_try='test -z "$ac_c_werror_flag"
10432                         || test ! -s conftest.err'
10433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434  (eval $ac_try) 2>&5
10435  ac_status=$?
10436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437  (exit $ac_status); }; } &&
10438         { ac_try='test -s conftest$ac_exeext'
10439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440  (eval $ac_try) 2>&5
10441  ac_status=$?
10442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443  (exit $ac_status); }; }; then
10444  ac_cv_lib_dld_dld_link=yes
10445else
10446  echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
10449ac_cv_lib_dld_dld_link=no
10450fi
10451rm -f conftest.err conftest.$ac_objext \
10452      conftest$ac_exeext conftest.$ac_ext
10453LIBS=$ac_check_lib_save_LIBS
10454fi
10455echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10456echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10457if test $ac_cv_lib_dld_dld_link = yes; then
10458  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10459fi
10460
10461
10462fi
10463
10464
10465fi
10466
10467
10468fi
10469
10470
10471fi
10472
10473
10474fi
10475
10476    ;;
10477  esac
10478
10479  if test "x$lt_cv_dlopen" != xno; then
10480    enable_dlopen=yes
10481  else
10482    enable_dlopen=no
10483  fi
10484
10485  case $lt_cv_dlopen in
10486  dlopen)
10487    save_CPPFLAGS="$CPPFLAGS"
10488    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10489
10490    save_LDFLAGS="$LDFLAGS"
10491    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10492
10493    save_LIBS="$LIBS"
10494    LIBS="$lt_cv_dlopen_libs $LIBS"
10495
10496    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10497echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10498if test "${lt_cv_dlopen_self+set}" = set; then
10499  echo $ECHO_N "(cached) $ECHO_C" >&6
10500else
10501          if test "$cross_compiling" = yes; then :
10502  lt_cv_dlopen_self=cross
10503else
10504  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10505  lt_status=$lt_dlunknown
10506  cat > conftest.$ac_ext <<EOF
10507#line 10507 "configure"
10508#include "confdefs.h"
10509
10510#if HAVE_DLFCN_H
10511#include <dlfcn.h>
10512#endif
10513
10514#include <stdio.h>
10515
10516#ifdef RTLD_GLOBAL
10517#  define LT_DLGLOBAL           RTLD_GLOBAL
10518#else
10519#  ifdef DL_GLOBAL
10520#    define LT_DLGLOBAL         DL_GLOBAL
10521#  else
10522#    define LT_DLGLOBAL         0
10523#  endif
10524#endif
10525
10526/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10527   find out it does not work in some platform. */
10528#ifndef LT_DLLAZY_OR_NOW
10529#  ifdef RTLD_LAZY
10530#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10531#  else
10532#    ifdef DL_LAZY
10533#      define LT_DLLAZY_OR_NOW          DL_LAZY
10534#    else
10535#      ifdef RTLD_NOW
10536#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10537#      else
10538#        ifdef DL_NOW
10539#          define LT_DLLAZY_OR_NOW      DL_NOW
10540#        else
10541#          define LT_DLLAZY_OR_NOW      0
10542#        endif
10543#      endif
10544#    endif
10545#  endif
10546#endif
10547
10548#ifdef __cplusplus
10549extern "C" void exit (int);
10550#endif
10551
10552void fnord() { int i=42;}
10553int main ()
10554{
10555  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10556  int status = $lt_dlunknown;
10557
10558  if (self)
10559    {
10560      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10561      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10562      /* dlclose (self); */
10563    }
10564  else
10565    puts (dlerror ());
10566
10567    exit (status);
10568}
10569EOF
10570  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571  (eval $ac_link) 2>&5
10572  ac_status=$?
10573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10575    (./conftest; exit; ) >&5 2>/dev/null
10576    lt_status=$?
10577    case x$lt_status in
10578      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10579      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10580      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10581    esac
10582  else :
10583    # compilation failed
10584    lt_cv_dlopen_self=no
10585  fi
10586fi
10587rm -fr conftest*
10588
10589
10590fi
10591echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10592echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10593
10594    if test "x$lt_cv_dlopen_self" = xyes; then
10595      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10596      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10597echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10598if test "${lt_cv_dlopen_self_static+set}" = set; then
10599  echo $ECHO_N "(cached) $ECHO_C" >&6
10600else
10601          if test "$cross_compiling" = yes; then :
10602  lt_cv_dlopen_self_static=cross
10603else
10604  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10605  lt_status=$lt_dlunknown
10606  cat > conftest.$ac_ext <<EOF
10607#line 10607 "configure"
10608#include "confdefs.h"
10609
10610#if HAVE_DLFCN_H
10611#include <dlfcn.h>
10612#endif
10613
10614#include <stdio.h>
10615
10616#ifdef RTLD_GLOBAL
10617#  define LT_DLGLOBAL           RTLD_GLOBAL
10618#else
10619#  ifdef DL_GLOBAL
10620#    define LT_DLGLOBAL         DL_GLOBAL
10621#  else
10622#    define LT_DLGLOBAL         0
10623#  endif
10624#endif
10625
10626/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10627   find out it does not work in some platform. */
10628#ifndef LT_DLLAZY_OR_NOW
10629#  ifdef RTLD_LAZY
10630#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10631#  else
10632#    ifdef DL_LAZY
10633#      define LT_DLLAZY_OR_NOW          DL_LAZY
10634#    else
10635#      ifdef RTLD_NOW
10636#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10637#      else
10638#        ifdef DL_NOW
10639#          define LT_DLLAZY_OR_NOW      DL_NOW
10640#        else
10641#          define LT_DLLAZY_OR_NOW      0
10642#        endif
10643#      endif
10644#    endif
10645#  endif
10646#endif
10647
10648#ifdef __cplusplus
10649extern "C" void exit (int);
10650#endif
10651
10652void fnord() { int i=42;}
10653int main ()
10654{
10655  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10656  int status = $lt_dlunknown;
10657
10658  if (self)
10659    {
10660      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10661      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10662      /* dlclose (self); */
10663    }
10664  else
10665    puts (dlerror ());
10666
10667    exit (status);
10668}
10669EOF
10670  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10671  (eval $ac_link) 2>&5
10672  ac_status=$?
10673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10675    (./conftest; exit; ) >&5 2>/dev/null
10676    lt_status=$?
10677    case x$lt_status in
10678      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10679      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10680      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10681    esac
10682  else :
10683    # compilation failed
10684    lt_cv_dlopen_self_static=no
10685  fi
10686fi
10687rm -fr conftest*
10688
10689
10690fi
10691echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10692echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10693    fi
10694
10695    CPPFLAGS="$save_CPPFLAGS"
10696    LDFLAGS="$save_LDFLAGS"
10697    LIBS="$save_LIBS"
10698    ;;
10699  esac
10700
10701  case $lt_cv_dlopen_self in
10702  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10703  *) enable_dlopen_self=unknown ;;
10704  esac
10705
10706  case $lt_cv_dlopen_self_static in
10707  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10708  *) enable_dlopen_self_static=unknown ;;
10709  esac
10710fi
10711
10712
10713# Report which library types will actually be built
10714echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10715echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10716echo "$as_me:$LINENO: result: $can_build_shared" >&5
10717echo "${ECHO_T}$can_build_shared" >&6
10718
10719echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10720echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10721test "$can_build_shared" = "no" && enable_shared=no
10722
10723# On AIX, shared libraries and static libraries use the same namespace, and
10724# are all built from PIC.
10725case $host_os in
10726aix3*)
10727  test "$enable_shared" = yes && enable_static=no
10728  if test -n "$RANLIB"; then
10729    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10730    postinstall_cmds='$RANLIB $lib'
10731  fi
10732  ;;
10733
10734aix4* | aix5*)
10735  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10736    test "$enable_shared" = yes && enable_static=no
10737  fi
10738    ;;
10739esac
10740echo "$as_me:$LINENO: result: $enable_shared" >&5
10741echo "${ECHO_T}$enable_shared" >&6
10742
10743echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10744echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10745# Make sure either enable_shared or enable_static is yes.
10746test "$enable_shared" = yes || enable_static=yes
10747echo "$as_me:$LINENO: result: $enable_static" >&5
10748echo "${ECHO_T}$enable_static" >&6
10749
10750# The else clause should only fire when bootstrapping the
10751# libtool distribution, otherwise you forgot to ship ltmain.sh
10752# with your package, and you will get complaints that there are
10753# no rules to generate ltmain.sh.
10754if test -f "$ltmain"; then
10755  # See if we are running on zsh, and set the options which allow our commands through
10756  # without removal of \ escapes.
10757  if test -n "${ZSH_VERSION+set}" ; then
10758    setopt NO_GLOB_SUBST
10759  fi
10760  # Now quote all the things that may contain metacharacters while being
10761  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10762  # variables and quote the copies for generation of the libtool script.
10763  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10764    SED SHELL STRIP \
10765    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10766    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10767    deplibs_check_method reload_flag reload_cmds need_locks \
10768    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10769    lt_cv_sys_global_symbol_to_c_name_address \
10770    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10771    old_postinstall_cmds old_postuninstall_cmds \
10772    compiler \
10773    CC \
10774    LD \
10775    lt_prog_compiler_wl \
10776    lt_prog_compiler_pic \
10777    lt_prog_compiler_static \
10778    lt_prog_compiler_no_builtin_flag \
10779    export_dynamic_flag_spec \
10780    thread_safe_flag_spec \
10781    whole_archive_flag_spec \
10782    enable_shared_with_static_runtimes \
10783    old_archive_cmds \
10784    old_archive_from_new_cmds \
10785    predep_objects \
10786    postdep_objects \
10787<