source: ThirdParty/HSL/trunk/configure @ 230

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

reran autotools

  • Property svn:executable set to *
File size: 706.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyHSL 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyHSL'
431PACKAGE_TARNAME='thirdpartyhsl'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyHSL 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="configure.ac"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyHSL 0.0 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyHSL 0.0:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-hsl compile this project (HSL) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS. Set to mingw to use gcc/g++/ld with
1077                          -mno-cygwin. Set to msvc to use cl/link. Default
1078                          when mentioned: mingw. Default when not mentioned:
1079                          disabled.
1080  --enable-static[=PKGS]
1081                          build static libraries [default=no]
1082  --disable-dependency-tracking  speeds up one-time build
1083  --enable-dependency-tracking   do not reject slow dependency extractors
1084  --enable-maintainer-mode  enable make rules and dependencies not useful
1085                          (and sometimes confusing) to the casual installer
1086  --enable-shared[=PKGS]
1087                          build shared libraries [default=yes]
1088  --enable-fast-install[=PKGS]
1089                          optimize for fast installation [default=yes]
1090  --disable-libtool-lock  avoid locking (might break parallel builds)
1091
1092Optional Packages:
1093  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1094  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1095  --with-hsl-verbosity specify the debug verbosity level for project HSL
1096  --with-hsl-checklevel specify the sanity check level for project HSL
1097  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1098  --with-pic              try to use only PIC/non-PIC objects [default=use
1099                          both]
1100  --with-tags[=TAGS]
1101                          include additional configurations [automatic]
1102
1103Some influential environment variables:
1104  CDEFS       Additional -D flags to be used when compiling C code.
1105  ADD_CFLAGS  Additional C compiler options
1106  DBG_CFLAGS  Debug C compiler options
1107  OPT_CFLAGS  Optimize C compiler options
1108  CC          C compiler command
1109  CFLAGS      C compiler flags
1110  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1111              nonstandard directory <lib dir>
1112  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1113              headers in a nonstandard directory <include dir>
1114  MPICC       C MPI Compiler
1115  ADD_FFLAGS  Additional Fortran compiler options
1116  DBG_FFLAGS  Debug Fortran compiler options
1117  OPT_FFLAGS  Optimize Fortran compiler options
1118  F77         Fortran 77 compiler command
1119  FFLAGS      Fortran 77 compiler flags
1120  MPIF77      Fortran MPI Compiler
1121  CPP         C preprocessor
1122  CXX         C++ compiler command
1123  CXXFLAGS    C++ compiler flags
1124  CXXCPP      C++ preprocessor
1125
1126Use these variables to override the choices made by `configure' or to help
1127it to find libraries and programs with nonstandard names/locations.
1128
1129Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1130_ACEOF
1131fi
1132
1133if test "$ac_init_help" = "recursive"; then
1134  # If there are subdirs, report their specific --help.
1135  ac_popdir=`pwd`
1136  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1137    test -d $ac_dir || continue
1138    ac_builddir=.
1139
1140if test "$ac_dir" != .; then
1141  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1142  # A "../" for each directory in $ac_dir_suffix.
1143  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1144else
1145  ac_dir_suffix= ac_top_builddir=
1146fi
1147
1148case $srcdir in
1149  .)  # No --srcdir option.  We are building in place.
1150    ac_srcdir=.
1151    if test -z "$ac_top_builddir"; then
1152       ac_top_srcdir=.
1153    else
1154       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1155    fi ;;
1156  [\\/]* | ?:[\\/]* )  # Absolute path.
1157    ac_srcdir=$srcdir$ac_dir_suffix;
1158    ac_top_srcdir=$srcdir ;;
1159  *) # Relative path.
1160    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1161    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1162esac
1163
1164# Do not use `cd foo && pwd` to compute absolute paths, because
1165# the directories may not exist.
1166case `pwd` in
1167.) ac_abs_builddir="$ac_dir";;
1168*)
1169  case "$ac_dir" in
1170  .) ac_abs_builddir=`pwd`;;
1171  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1172  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1173  esac;;
1174esac
1175case $ac_abs_builddir in
1176.) ac_abs_top_builddir=${ac_top_builddir}.;;
1177*)
1178  case ${ac_top_builddir}. in
1179  .) ac_abs_top_builddir=$ac_abs_builddir;;
1180  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1181  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1182  esac;;
1183esac
1184case $ac_abs_builddir in
1185.) ac_abs_srcdir=$ac_srcdir;;
1186*)
1187  case $ac_srcdir in
1188  .) ac_abs_srcdir=$ac_abs_builddir;;
1189  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1190  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1191  esac;;
1192esac
1193case $ac_abs_builddir in
1194.) ac_abs_top_srcdir=$ac_top_srcdir;;
1195*)
1196  case $ac_top_srcdir in
1197  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1198  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1199  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1200  esac;;
1201esac
1202
1203    cd $ac_dir
1204    # Check for guested configure; otherwise get Cygnus style configure.
1205    if test -f $ac_srcdir/configure.gnu; then
1206      echo
1207      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1208    elif test -f $ac_srcdir/configure; then
1209      echo
1210      $SHELL $ac_srcdir/configure  --help=recursive
1211    elif test -f $ac_srcdir/configure.ac ||
1212           test -f $ac_srcdir/configure.in; then
1213      echo
1214      $ac_configure --help
1215    else
1216      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1217    fi
1218    cd $ac_popdir
1219  done
1220fi
1221
1222test -n "$ac_init_help" && exit 0
1223if $ac_init_version; then
1224  cat <<\_ACEOF
1225ThirdPartyHSL configure 0.0
1226generated by GNU Autoconf 2.59
1227
1228Copyright (C) 2003 Free Software Foundation, Inc.
1229This configure script is free software; the Free Software Foundation
1230gives unlimited permission to copy, distribute and modify it.
1231
1232
1233Copyright 2006 International Business Machines and others.
1234All Rights Reserved.
1235This file is part of the open source package Coin which is distributed
1236under the Common Public License.
1237_ACEOF
1238  exit 0
1239fi
1240exec 5>config.log
1241cat >&5 <<_ACEOF
1242This file contains any messages produced by compilers while
1243running configure, to aid debugging if configure makes a mistake.
1244
1245It was created by ThirdPartyHSL $as_me 0.0, which was
1246generated by GNU Autoconf 2.59.  Invocation command line was
1247
1248  $ $0 $@
1249
1250_ACEOF
1251{
1252cat <<_ASUNAME
1253## --------- ##
1254## Platform. ##
1255## --------- ##
1256
1257hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1258uname -m = `(uname -m) 2>/dev/null || echo unknown`
1259uname -r = `(uname -r) 2>/dev/null || echo unknown`
1260uname -s = `(uname -s) 2>/dev/null || echo unknown`
1261uname -v = `(uname -v) 2>/dev/null || echo unknown`
1262
1263/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1264/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1265
1266/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1267/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1268/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1269hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1270/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1271/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1272/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1273
1274_ASUNAME
1275
1276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1277for as_dir in $PATH
1278do
1279  IFS=$as_save_IFS
1280  test -z "$as_dir" && as_dir=.
1281  echo "PATH: $as_dir"
1282done
1283
1284} >&5
1285
1286cat >&5 <<_ACEOF
1287
1288
1289## ----------- ##
1290## Core tests. ##
1291## ----------- ##
1292
1293_ACEOF
1294
1295
1296# Keep a trace of the command line.
1297# Strip out --no-create and --no-recursion so they do not pile up.
1298# Strip out --silent because we don't want to record it for future runs.
1299# Also quote any args containing shell meta-characters.
1300# Make two passes to allow for proper duplicate-argument suppression.
1301ac_configure_args=
1302ac_configure_args0=
1303ac_configure_args1=
1304ac_sep=
1305ac_must_keep_next=false
1306for ac_pass in 1 2
1307do
1308  for ac_arg
1309  do
1310    case $ac_arg in
1311    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1312    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1313    | -silent | --silent | --silen | --sile | --sil)
1314      continue ;;
1315    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1316      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1317    esac
1318    case $ac_pass in
1319    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1320    2)
1321      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1322      if test $ac_must_keep_next = true; then
1323        ac_must_keep_next=false # Got value, back to normal.
1324      else
1325        case $ac_arg in
1326          *=* | --config-cache | -C | -disable-* | --disable-* \
1327          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1328          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1329          | -with-* | --with-* | -without-* | --without-* | --x)
1330            case "$ac_configure_args0 " in
1331              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1332            esac
1333            ;;
1334          -* ) ac_must_keep_next=true ;;
1335        esac
1336      fi
1337      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1338      # Get rid of the leading space.
1339      ac_sep=" "
1340      ;;
1341    esac
1342  done
1343done
1344$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1345$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1346
1347# When interrupted or exit'd, cleanup temporary files, and complete
1348# config.log.  We remove comments because anyway the quotes in there
1349# would cause problems or look ugly.
1350# WARNING: Be sure not to use single quotes in there, as some shells,
1351# such as our DU 5.0 friend, will then `close' the trap.
1352trap 'exit_status=$?
1353  # Save into config.log some information that might help in debugging.
1354  {
1355    echo
1356
1357    cat <<\_ASBOX
1358## ---------------- ##
1359## Cache variables. ##
1360## ---------------- ##
1361_ASBOX
1362    echo
1363    # The following way of writing the cache mishandles newlines in values,
1364{
1365  (set) 2>&1 |
1366    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1367    *ac_space=\ *)
1368      sed -n \
1369        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1370          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1371      ;;
1372    *)
1373      sed -n \
1374        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1375      ;;
1376    esac;
1377}
1378    echo
1379
1380    cat <<\_ASBOX
1381## ----------------- ##
1382## Output variables. ##
1383## ----------------- ##
1384_ASBOX
1385    echo
1386    for ac_var in $ac_subst_vars
1387    do
1388      eval ac_val=$`echo $ac_var`
1389      echo "$ac_var='"'"'$ac_val'"'"'"
1390    done | sort
1391    echo
1392
1393    if test -n "$ac_subst_files"; then
1394      cat <<\_ASBOX
1395## ------------- ##
1396## Output files. ##
1397## ------------- ##
1398_ASBOX
1399      echo
1400      for ac_var in $ac_subst_files
1401      do
1402        eval ac_val=$`echo $ac_var`
1403        echo "$ac_var='"'"'$ac_val'"'"'"
1404      done | sort
1405      echo
1406    fi
1407
1408    if test -s confdefs.h; then
1409      cat <<\_ASBOX
1410## ----------- ##
1411## confdefs.h. ##
1412## ----------- ##
1413_ASBOX
1414      echo
1415      sed "/^$/d" confdefs.h | sort
1416      echo
1417    fi
1418    test "$ac_signal" != 0 &&
1419      echo "$as_me: caught signal $ac_signal"
1420    echo "$as_me: exit $exit_status"
1421  } >&5
1422  rm -f core *.core &&
1423  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1424    exit $exit_status
1425     ' 0
1426for ac_signal in 1 2 13 15; do
1427  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1428done
1429ac_signal=0
1430
1431# confdefs.h avoids OS command line length limits that DEFS can exceed.
1432rm -rf conftest* confdefs.h
1433# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1434echo >confdefs.h
1435
1436# Predefined preprocessor variables.
1437
1438cat >>confdefs.h <<_ACEOF
1439#define PACKAGE_NAME "$PACKAGE_NAME"
1440_ACEOF
1441
1442
1443cat >>confdefs.h <<_ACEOF
1444#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1445_ACEOF
1446
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_VERSION "$PACKAGE_VERSION"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_STRING "$PACKAGE_STRING"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1460_ACEOF
1461
1462
1463# Let the site file select an alternate cache file if it wants to.
1464# Prefer explicitly selected file to automatically selected ones.
1465if test -z "$CONFIG_SITE"; then
1466  if test "x$prefix" != xNONE; then
1467    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1468  else
1469    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1470  fi
1471fi
1472for ac_site_file in $CONFIG_SITE; do
1473  if test -r "$ac_site_file"; then
1474    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1475echo "$as_me: loading site script $ac_site_file" >&6;}
1476    sed 's/^/| /' "$ac_site_file" >&5
1477    . "$ac_site_file"
1478  fi
1479done
1480
1481if test -r "$cache_file"; then
1482  # Some versions of bash will fail to source /dev/null (special
1483  # files actually), so we avoid doing that.
1484  if test -f "$cache_file"; then
1485    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1486echo "$as_me: loading cache $cache_file" >&6;}
1487    case $cache_file in
1488      [\\/]* | ?:[\\/]* ) . $cache_file;;
1489      *)                      . ./$cache_file;;
1490    esac
1491  fi
1492else
1493  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1494echo "$as_me: creating cache $cache_file" >&6;}
1495  >$cache_file
1496fi
1497
1498# Check that the precious variables saved in the cache have kept the same
1499# value.
1500ac_cache_corrupted=false
1501for ac_var in `(set) 2>&1 |
1502               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1503  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1504  eval ac_new_set=\$ac_env_${ac_var}_set
1505  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1506  eval ac_new_val="\$ac_env_${ac_var}_value"
1507  case $ac_old_set,$ac_new_set in
1508    set,)
1509      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1510echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1511      ac_cache_corrupted=: ;;
1512    ,set)
1513      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1514echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1515      ac_cache_corrupted=: ;;
1516    ,);;
1517    *)
1518      if test "x$ac_old_val" != "x$ac_new_val"; then
1519        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1520echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1521        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1522echo "$as_me:   former value:  $ac_old_val" >&2;}
1523        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1524echo "$as_me:   current value: $ac_new_val" >&2;}
1525        ac_cache_corrupted=:
1526      fi;;
1527  esac
1528  # Pass precious variables to config.status.
1529  if test "$ac_new_set" = set; then
1530    case $ac_new_val in
1531    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1532      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1533    *) ac_arg=$ac_var=$ac_new_val ;;
1534    esac
1535    case " $ac_configure_args " in
1536      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1537      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1538    esac
1539  fi
1540done
1541if $ac_cache_corrupted; then
1542  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1543echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1544  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1545echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1546   { (exit 1); exit 1; }; }
1547fi
1548
1549ac_ext=c
1550ac_cpp='$CPP $CPPFLAGS'
1551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1553ac_compiler_gnu=$ac_cv_c_compiler_gnu
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584# List one file in the package so that the configure script can test
1585# whether the package is actually there
1586# Here we don't know yet which files are actually provided...
1587
1588
1589# Where should everything be installed by default?  Here, we want it
1590# to be installed directly in 'bin', 'lib', 'include' subdirectories
1591# of the directory where configure is run.  The default would be
1592# /usr/local.
1593
1594
1595# Initialize the ADDLIBS variable
1596ADDLIBS="-lm $LIBS"
1597
1598
1599# Initialize the FADDLIBS variable (which is to be used with a fortran
1600# compiler and will not include FLIBS)
1601FADDLIBS="$LIBS"
1602
1603
1604# A useful makefile conditional that is always false
1605
1606
1607if false; then
1608  ALWAYS_FALSE_TRUE=
1609  ALWAYS_FALSE_FALSE='#'
1610else
1611  ALWAYS_FALSE_TRUE='#'
1612  ALWAYS_FALSE_FALSE=
1613fi
1614
1615
1616# We set the following variable so that we know later in AC_COIN_FINALIZE
1617# that we are in a project main directory
1618coin_projectdir=yes
1619
1620
1621#############################################################################
1622#                         Standard build tool stuff                         #
1623#############################################################################
1624
1625# Get the system type
1626ac_aux_dir=
1627for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1628  if test -f $ac_dir/install-sh; then
1629    ac_aux_dir=$ac_dir
1630    ac_install_sh="$ac_aux_dir/install-sh -c"
1631    break
1632  elif test -f $ac_dir/install.sh; then
1633    ac_aux_dir=$ac_dir
1634    ac_install_sh="$ac_aux_dir/install.sh -c"
1635    break
1636  elif test -f $ac_dir/shtool; then
1637    ac_aux_dir=$ac_dir
1638    ac_install_sh="$ac_aux_dir/shtool install -c"
1639    break
1640  fi
1641done
1642if test -z "$ac_aux_dir"; then
1643  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1644echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1645   { (exit 1); exit 1; }; }
1646fi
1647ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1648ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1649ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1650
1651# Make sure we can run config.sub.
1652$ac_config_sub sun4 >/dev/null 2>&1 ||
1653  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1654echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1655   { (exit 1); exit 1; }; }
1656
1657echo "$as_me:$LINENO: checking build system type" >&5
1658echo $ECHO_N "checking build system type... $ECHO_C" >&6
1659if test "${ac_cv_build+set}" = set; then
1660  echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662  ac_cv_build_alias=$build_alias
1663test -z "$ac_cv_build_alias" &&
1664  ac_cv_build_alias=`$ac_config_guess`
1665test -z "$ac_cv_build_alias" &&
1666  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1667echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1668   { (exit 1); exit 1; }; }
1669ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1670  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1671echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1672   { (exit 1); exit 1; }; }
1673
1674fi
1675echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1676echo "${ECHO_T}$ac_cv_build" >&6
1677build=$ac_cv_build
1678build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681
1682
1683
1684# Check if user wants to produce debugging code
1685
1686echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1687echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1688
1689# Check whether --enable-debug or --disable-debug was given.
1690if test "${enable_debug+set}" = set; then
1691  enableval="$enable_debug"
1692  case "${enableval}" in
1693   yes) coin_debug_compile=true
1694        enable_shared=no
1695        ;;
1696   no)  coin_debug_compile=false
1697        ;;
1698   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1699echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1700   { (exit 1); exit 1; }; }
1701        ;;
1702esac
1703else
1704  coin_debug_compile=false
1705fi;
1706
1707# Check whether --enable-debug-hsl or --disable-debug-hsl was given.
1708if test "${enable_debug_hsl+set}" = set; then
1709  enableval="$enable_debug_hsl"
1710  case "${enableval}" in
1711    yes) coin_debug_compile=true
1712         enable_shared=no
1713         ;;
1714    no)  coin_debug_compile=false
1715         ;;
1716    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-hsl" >&5
1717echo "$as_me: error: bad value ${enableval} for --enable-debug-hsl" >&2;}
1718   { (exit 1); exit 1; }; }
1719         ;;
1720 esac
1721else
1722  :
1723fi;
1724
1725 # m4_ifvaln([HSL],
1726
1727if test $coin_debug_compile = true; then
1728  echo "$as_me:$LINENO: result: yes" >&5
1729echo "${ECHO_T}yes" >&6
1730else
1731  echo "$as_me:$LINENO: result: no" >&5
1732echo "${ECHO_T}no" >&6
1733fi
1734
1735
1736# Check whether --with-hsl-verbosity or --without-hsl-verbosity was given.
1737if test "${with_hsl_verbosity+set}" = set; then
1738  withval="$with_hsl_verbosity"
1739  coin_hsl_verbosity=$withval
1740else
1741  coin_hsl_verbosity=0
1742fi;
1743
1744cat >>confdefs.h <<_ACEOF
1745#define COIN_HSL_VERBOSITY $coin_hsl_verbosity
1746_ACEOF
1747
1748
1749
1750# Check whether --with-hsl-checklevel or --without-hsl-checklevel was given.
1751if test "${with_hsl_checklevel+set}" = set; then
1752  withval="$with_hsl_checklevel"
1753  coin_hsl_checklevel=$withval
1754else
1755  coin_hsl_checklevel=0
1756fi;
1757
1758cat >>confdefs.h <<_ACEOF
1759#define COIN_HSL_CHECKLEVEL $coin_hsl_checklevel
1760_ACEOF
1761
1762
1763# We use the following variable to have a string with the upper case
1764# version of the project name
1765COIN_PRJCT=HSL
1766
1767
1768 # m4_ifvaln([HSL],
1769
1770
1771
1772# Get the name of the Fortran compiler and appropriate compiler options
1773case $build in
1774  *-mingw*)
1775    if test "${LD+set}" = set; then :; else
1776      LD=link
1777    fi
1778    ;;
1779 esac
1780 case $enable_doscompile in
1781   msvc)
1782     if test "x${LD+set}" = xset; then :; else
1783       LD=link
1784     fi
1785     ;;
1786 esac
1787
1788
1789 # Check whether --enable-doscompile or --disable-doscompile was given.
1790if test "${enable_doscompile+set}" = set; then
1791  enableval="$enable_doscompile"
1792  if test "$enable_doscompile" != no; then
1793     case $build in
1794       *-cygwin*) ;;
1795       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1796echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1797   { (exit 1); exit 1; }; } ;;
1798     esac
1799   fi
1800else
1801  enable_doscompile=no
1802fi;
1803 case "$enable_doscompile" in
1804   msvc|mingw|no) ;;
1805   yes) enable_doscompile=mingw ;;
1806   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1807                    Try configure --help=recursive." >&5
1808echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1809                    Try configure --help=recursive." >&2;}
1810   { (exit 1); exit 1; }; }
1811      ;;
1812  esac
1813  if test "$enable_doscompile" != no ; then
1814    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1815echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1816  fi
1817
1818
1819
1820
1821ac_ext=c
1822ac_cpp='$CPP $CPPFLAGS'
1823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826
1827
1828# For consistency, we set the C compiler to the same value of the C++
1829# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1830if test x"$CXX" != x; then
1831  case "$CXX" in
1832    cl* | */cl* | CL* | */CL*)
1833      if test x"$CC" = x; then
1834        CC="$CXX"
1835        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1836echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1837      fi
1838      ;;
1839  esac
1840fi
1841
1842
1843
1844
1845
1846
1847coin_has_cc=yes
1848
1849save_cflags="$CFLAGS"
1850# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1851# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1852# is likely to be a non-functional shell. But many installations will have
1853# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1854case $build in
1855  *-cygwin* | *-mingw*)
1856             if test "$enable_doscompile" = msvc ; then
1857               comps="cl"
1858             else
1859               comps="gcc cl"
1860             fi ;;
1861  sparc-sun-solaris*)
1862             comps="cc xlc gcc pgcc icc" ;;
1863  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1864  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1865esac
1866
1867# We delete the cached value, since the test might not have been
1868# performed with our choice of compilers earlier
1869$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1870# AC_MSG_NOTICE([C compiler candidates: $comps])
1871ac_ext=c
1872ac_cpp='$CPP $CPPFLAGS'
1873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1875ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876if test -n "$ac_tool_prefix"; then
1877  for ac_prog in $comps
1878  do
1879    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1880set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1881echo "$as_me:$LINENO: checking for $ac_word" >&5
1882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883if test "${ac_cv_prog_CC+set}" = set; then
1884  echo $ECHO_N "(cached) $ECHO_C" >&6
1885else
1886  if test -n "$CC"; then
1887  ac_cv_prog_CC="$CC" # Let the user override the test.
1888else
1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890for as_dir in $PATH
1891do
1892  IFS=$as_save_IFS
1893  test -z "$as_dir" && as_dir=.
1894  for ac_exec_ext in '' $ac_executable_extensions; do
1895  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898    break 2
1899  fi
1900done
1901done
1902
1903fi
1904fi
1905CC=$ac_cv_prog_CC
1906if test -n "$CC"; then
1907  echo "$as_me:$LINENO: result: $CC" >&5
1908echo "${ECHO_T}$CC" >&6
1909else
1910  echo "$as_me:$LINENO: result: no" >&5
1911echo "${ECHO_T}no" >&6
1912fi
1913
1914    test -n "$CC" && break
1915  done
1916fi
1917if test -z "$CC"; then
1918  ac_ct_CC=$CC
1919  for ac_prog in $comps
1920do
1921  # Extract the first word of "$ac_prog", so it can be a program name with args.
1922set dummy $ac_prog; ac_word=$2
1923echo "$as_me:$LINENO: checking for $ac_word" >&5
1924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926  echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928  if test -n "$ac_ct_CC"; then
1929  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930else
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934  IFS=$as_save_IFS
1935  test -z "$as_dir" && as_dir=.
1936  for ac_exec_ext in '' $ac_executable_extensions; do
1937  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938    ac_cv_prog_ac_ct_CC="$ac_prog"
1939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940    break 2
1941  fi
1942done
1943done
1944
1945fi
1946fi
1947ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948if test -n "$ac_ct_CC"; then
1949  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950echo "${ECHO_T}$ac_ct_CC" >&6
1951else
1952  echo "$as_me:$LINENO: result: no" >&5
1953echo "${ECHO_T}no" >&6
1954fi
1955
1956  test -n "$ac_ct_CC" && break
1957done
1958
1959  CC=$ac_ct_CC
1960fi
1961
1962
1963test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1964See \`config.log' for more details." >&5
1965echo "$as_me: error: no acceptable C compiler found in \$PATH
1966See \`config.log' for more details." >&2;}
1967   { (exit 1); exit 1; }; }
1968
1969# Provide some information about the compiler.
1970echo "$as_me:$LINENO:" \
1971     "checking for C compiler version" >&5
1972ac_compiler=`set X $ac_compile; echo $2`
1973{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1974  (eval $ac_compiler --version </dev/null >&5) 2>&5
1975  ac_status=$?
1976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977  (exit $ac_status); }
1978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1979  (eval $ac_compiler -v </dev/null >&5) 2>&5
1980  ac_status=$?
1981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982  (exit $ac_status); }
1983{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1984  (eval $ac_compiler -V </dev/null >&5) 2>&5
1985  ac_status=$?
1986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987  (exit $ac_status); }
1988
1989cat >conftest.$ac_ext <<_ACEOF
1990/* confdefs.h.  */
1991_ACEOF
1992cat confdefs.h >>conftest.$ac_ext
1993cat >>conftest.$ac_ext <<_ACEOF
1994/* end confdefs.h.  */
1995
1996int
1997main ()
1998{
1999
2000  ;
2001  return 0;
2002}
2003_ACEOF
2004ac_clean_files_save=$ac_clean_files
2005ac_clean_files="$ac_clean_files a.out a.exe b.out"
2006# Try to create an executable without -o first, disregard a.out.
2007# It will help us diagnose broken compilers, and finding out an intuition
2008# of exeext.
2009echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2010echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2011ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2012if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2013  (eval $ac_link_default) 2>&5
2014  ac_status=$?
2015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016  (exit $ac_status); }; then
2017  # Find the output, starting from the most likely.  This scheme is
2018# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2019# resort.
2020
2021# Be careful to initialize this variable, since it used to be cached.
2022# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2023ac_cv_exeext=
2024# b.out is created by i960 compilers.
2025for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2026do
2027  test -f "$ac_file" || continue
2028  case $ac_file in
2029    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2030        ;;
2031    conftest.$ac_ext )
2032        # This is the source file.
2033        ;;
2034    [ab].out )
2035        # We found the default executable, but exeext='' is most
2036        # certainly right.
2037        break;;
2038    *.* )
2039        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2040        # FIXME: I believe we export ac_cv_exeext for Libtool,
2041        # but it would be cool to find out if it's true.  Does anybody
2042        # maintain Libtool? --akim.
2043        export ac_cv_exeext
2044        break;;
2045    * )
2046        break;;
2047  esac
2048done
2049else
2050  echo "$as_me: failed program was:" >&5
2051sed 's/^/| /' conftest.$ac_ext >&5
2052
2053{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2054See \`config.log' for more details." >&5
2055echo "$as_me: error: C compiler cannot create executables
2056See \`config.log' for more details." >&2;}
2057   { (exit 77); exit 77; }; }
2058fi
2059
2060ac_exeext=$ac_cv_exeext
2061echo "$as_me:$LINENO: result: $ac_file" >&5
2062echo "${ECHO_T}$ac_file" >&6
2063
2064# Check the compiler produces executables we can run.  If not, either
2065# the compiler is broken, or we cross compile.
2066echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2067echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2068# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2069# If not cross compiling, check that we can run a simple program.
2070if test "$cross_compiling" != yes; then
2071  if { ac_try='./$ac_file'
2072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073  (eval $ac_try) 2>&5
2074  ac_status=$?
2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076  (exit $ac_status); }; }; then
2077    cross_compiling=no
2078  else
2079    if test "$cross_compiling" = maybe; then
2080        cross_compiling=yes
2081    else
2082        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2083If you meant to cross compile, use \`--host'.
2084See \`config.log' for more details." >&5
2085echo "$as_me: error: cannot run C compiled programs.
2086If you meant to cross compile, use \`--host'.
2087See \`config.log' for more details." >&2;}
2088   { (exit 1); exit 1; }; }
2089    fi
2090  fi
2091fi
2092echo "$as_me:$LINENO: result: yes" >&5
2093echo "${ECHO_T}yes" >&6
2094
2095rm -f a.out a.exe conftest$ac_cv_exeext b.out
2096ac_clean_files=$ac_clean_files_save
2097# Check the compiler produces executables we can run.  If not, either
2098# the compiler is broken, or we cross compile.
2099echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2100echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2101echo "$as_me:$LINENO: result: $cross_compiling" >&5
2102echo "${ECHO_T}$cross_compiling" >&6
2103
2104echo "$as_me:$LINENO: checking for suffix of executables" >&5
2105echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2107  (eval $ac_link) 2>&5
2108  ac_status=$?
2109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110  (exit $ac_status); }; then
2111  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2112# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2113# work properly (i.e., refer to `conftest.exe'), while it won't with
2114# `rm'.
2115for ac_file in conftest.exe conftest conftest.*; do
2116  test -f "$ac_file" || continue
2117  case $ac_file in
2118    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2119    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120          export ac_cv_exeext
2121          break;;
2122    * ) break;;
2123  esac
2124done
2125else
2126  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2127See \`config.log' for more details." >&5
2128echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2129See \`config.log' for more details." >&2;}
2130   { (exit 1); exit 1; }; }
2131fi
2132
2133rm -f conftest$ac_cv_exeext
2134echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2135echo "${ECHO_T}$ac_cv_exeext" >&6
2136
2137rm -f conftest.$ac_ext
2138EXEEXT=$ac_cv_exeext
2139ac_exeext=$EXEEXT
2140echo "$as_me:$LINENO: checking for suffix of object files" >&5
2141echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2142if test "${ac_cv_objext+set}" = set; then
2143  echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145  cat >conftest.$ac_ext <<_ACEOF
2146/* confdefs.h.  */
2147_ACEOF
2148cat confdefs.h >>conftest.$ac_ext
2149cat >>conftest.$ac_ext <<_ACEOF
2150/* end confdefs.h.  */
2151
2152int
2153main ()
2154{
2155
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160rm -f conftest.o conftest.obj
2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162  (eval $ac_compile) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; then
2166  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2167  case $ac_file in
2168    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2169    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2170       break;;
2171  esac
2172done
2173else
2174  echo "$as_me: failed program was:" >&5
2175sed 's/^/| /' conftest.$ac_ext >&5
2176
2177{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2178See \`config.log' for more details." >&5
2179echo "$as_me: error: cannot compute suffix of object files: cannot compile
2180See \`config.log' for more details." >&2;}
2181   { (exit 1); exit 1; }; }
2182fi
2183
2184rm -f conftest.$ac_cv_objext conftest.$ac_ext
2185fi
2186echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2187echo "${ECHO_T}$ac_cv_objext" >&6
2188OBJEXT=$ac_cv_objext
2189ac_objext=$OBJEXT
2190echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2191echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2192if test "${ac_cv_c_compiler_gnu+set}" = set; then
2193  echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195  cat >conftest.$ac_ext <<_ACEOF
2196/* confdefs.h.  */
2197_ACEOF
2198cat confdefs.h >>conftest.$ac_ext
2199cat >>conftest.$ac_ext <<_ACEOF
2200/* end confdefs.h.  */
2201
2202int
2203main ()
2204{
2205#ifndef __GNUC__
2206       choke me
2207#endif
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213rm -f conftest.$ac_objext
2214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215  (eval $ac_compile) 2>conftest.er1
2216  ac_status=$?
2217  grep -v '^ *+' conftest.er1 >conftest.err
2218  rm -f conftest.er1
2219  cat conftest.err >&5
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); } &&
2222         { ac_try='test -z "$ac_c_werror_flag"
2223                         || test ! -s conftest.err'
2224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225  (eval $ac_try) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }; } &&
2229         { ac_try='test -s conftest.$ac_objext'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; }; then
2235  ac_compiler_gnu=yes
2236else
2237  echo "$as_me: failed program was:" >&5
2238sed 's/^/| /' conftest.$ac_ext >&5
2239
2240ac_compiler_gnu=no
2241fi
2242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2243ac_cv_c_compiler_gnu=$ac_compiler_gnu
2244
2245fi
2246echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2247echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2248GCC=`test $ac_compiler_gnu = yes && echo yes`
2249ac_test_CFLAGS=${CFLAGS+set}
2250ac_save_CFLAGS=$CFLAGS
2251CFLAGS="-g"
2252echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2253echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2254if test "${ac_cv_prog_cc_g+set}" = set; then
2255  echo $ECHO_N "(cached) $ECHO_C" >&6
2256else
2257  cat >conftest.$ac_ext <<_ACEOF
2258/* confdefs.h.  */
2259_ACEOF
2260cat confdefs.h >>conftest.$ac_ext
2261cat >>conftest.$ac_ext <<_ACEOF
2262/* end confdefs.h.  */
2263
2264int
2265main ()
2266{
2267
2268  ;
2269  return 0;
2270}
2271_ACEOF
2272rm -f conftest.$ac_objext
2273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274  (eval $ac_compile) 2>conftest.er1
2275  ac_status=$?
2276  grep -v '^ *+' conftest.er1 >conftest.err
2277  rm -f conftest.er1
2278  cat conftest.err >&5
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); } &&
2281         { ac_try='test -z "$ac_c_werror_flag"
2282                         || test ! -s conftest.err'
2283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284  (eval $ac_try) 2>&5
2285  ac_status=$?
2286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287  (exit $ac_status); }; } &&
2288         { ac_try='test -s conftest.$ac_objext'
2289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290  (eval $ac_try) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }; }; then
2294  ac_cv_prog_cc_g=yes
2295else
2296  echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299ac_cv_prog_cc_g=no
2300fi
2301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2304echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2305if test "$ac_test_CFLAGS" = set; then
2306  CFLAGS=$ac_save_CFLAGS
2307elif test $ac_cv_prog_cc_g = yes; then
2308  if test "$GCC" = yes; then
2309    CFLAGS="-g -O2"
2310  else
2311    CFLAGS="-g"
2312  fi
2313else
2314  if test "$GCC" = yes; then
2315    CFLAGS="-O2"
2316  else
2317    CFLAGS=
2318  fi
2319fi
2320echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2321echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2322if test "${ac_cv_prog_cc_stdc+set}" = set; then
2323  echo $ECHO_N "(cached) $ECHO_C" >&6
2324else
2325  ac_cv_prog_cc_stdc=no
2326ac_save_CC=$CC
2327cat >conftest.$ac_ext <<_ACEOF
2328/* confdefs.h.  */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h.  */
2333#include <stdarg.h>
2334#include <stdio.h>
2335#include <sys/types.h>
2336#include <sys/stat.h>
2337/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2338struct buf { int x; };
2339FILE * (*rcsopen) (struct buf *, struct stat *, int);
2340static char *e (p, i)
2341     char **p;
2342     int i;
2343{
2344  return p[i];
2345}
2346static char *f (char * (*g) (char **, int), char **p, ...)
2347{
2348  char *s;
2349  va_list v;
2350  va_start (v,p);
2351  s = g (p, va_arg (v,int));
2352  va_end (v);
2353  return s;
2354}
2355
2356/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2357   function prototypes and stuff, but not '\xHH' hex character constants.
2358   These don't provoke an error unfortunately, instead are silently treated
2359   as 'x'.  The following induces an error, until -std1 is added to get
2360   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2361   array size at least.  It's necessary to write '\x00'==0 to get something
2362   that's true only with -std1.  */
2363int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2364
2365int test (int i, double x);
2366struct s1 {int (*f) (int a);};
2367struct s2 {int (*f) (double a);};
2368int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2369int argc;
2370char **argv;
2371int
2372main ()
2373{
2374return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2375  ;
2376  return 0;
2377}
2378_ACEOF
2379# Don't try gcc -ansi; that turns off useful extensions and
2380# breaks some systems' header files.
2381# AIX                   -qlanglvl=ansi
2382# Ultrix and OSF/1      -std1
2383# HP-UX 10.20 and later -Ae
2384# HP-UX older versions  -Aa -D_HPUX_SOURCE
2385# SVR4                  -Xc -D__EXTENSIONS__
2386for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2387do
2388  CC="$ac_save_CC $ac_arg"
2389  rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391  (eval $ac_compile) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } &&
2398         { ac_try='test -z "$ac_c_werror_flag"
2399                         || test ! -s conftest.err'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; } &&
2405         { ac_try='test -s conftest.$ac_objext'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; }; then
2411  ac_cv_prog_cc_stdc=$ac_arg
2412break
2413else
2414  echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417fi
2418rm -f conftest.err conftest.$ac_objext
2419done
2420rm -f conftest.$ac_ext conftest.$ac_objext
2421CC=$ac_save_CC
2422
2423fi
2424
2425case "x$ac_cv_prog_cc_stdc" in
2426  x|xno)
2427    echo "$as_me:$LINENO: result: none needed" >&5
2428echo "${ECHO_T}none needed" >&6 ;;
2429  *)
2430    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2431echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2432    CC="$CC $ac_cv_prog_cc_stdc" ;;
2433esac
2434
2435# Some people use a C++ compiler to compile C.  Since we use `exit',
2436# in C++ we need to declare it.  In case someone uses the same compiler
2437# for both compiling C and C++ we need to have the C++ compiler decide
2438# the declaration of exit, since it's the most demanding environment.
2439cat >conftest.$ac_ext <<_ACEOF
2440#ifndef __cplusplus
2441  choke me
2442#endif
2443_ACEOF
2444rm -f conftest.$ac_objext
2445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446  (eval $ac_compile) 2>conftest.er1
2447  ac_status=$?
2448  grep -v '^ *+' conftest.er1 >conftest.err
2449  rm -f conftest.er1
2450  cat conftest.err >&5
2451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452  (exit $ac_status); } &&
2453         { ac_try='test -z "$ac_c_werror_flag"
2454                         || test ! -s conftest.err'
2455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456  (eval $ac_try) 2>&5
2457  ac_status=$?
2458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459  (exit $ac_status); }; } &&
2460         { ac_try='test -s conftest.$ac_objext'
2461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462  (eval $ac_try) 2>&5
2463  ac_status=$?
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); }; }; then
2466  for ac_declaration in \
2467   '' \
2468   'extern "C" void std::exit (int) throw (); using std::exit;' \
2469   'extern "C" void std::exit (int); using std::exit;' \
2470   'extern "C" void exit (int) throw ();' \
2471   'extern "C" void exit (int);' \
2472   'void exit (int);'
2473do
2474  cat >conftest.$ac_ext <<_ACEOF
2475/* confdefs.h.  */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h.  */
2480$ac_declaration
2481#include <stdlib.h>
2482int
2483main ()
2484{
2485exit (42);
2486  ;
2487  return 0;
2488}
2489_ACEOF
2490rm -f conftest.$ac_objext
2491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492  (eval $ac_compile) 2>conftest.er1
2493  ac_status=$?
2494  grep -v '^ *+' conftest.er1 >conftest.err
2495  rm -f conftest.er1
2496  cat conftest.err >&5
2497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498  (exit $ac_status); } &&
2499         { ac_try='test -z "$ac_c_werror_flag"
2500                         || test ! -s conftest.err'
2501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502  (eval $ac_try) 2>&5
2503  ac_status=$?
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); }; } &&
2506         { ac_try='test -s conftest.$ac_objext'
2507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508  (eval $ac_try) 2>&5
2509  ac_status=$?
2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511  (exit $ac_status); }; }; then
2512  :
2513else
2514  echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517continue
2518fi
2519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520  cat >conftest.$ac_ext <<_ACEOF
2521/* confdefs.h.  */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h.  */
2526$ac_declaration
2527int
2528main ()
2529{
2530exit (42);
2531  ;
2532  return 0;
2533}
2534_ACEOF
2535rm -f conftest.$ac_objext
2536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537  (eval $ac_compile) 2>conftest.er1
2538  ac_status=$?
2539  grep -v '^ *+' conftest.er1 >conftest.err
2540  rm -f conftest.er1
2541  cat conftest.err >&5
2542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543  (exit $ac_status); } &&
2544         { ac_try='test -z "$ac_c_werror_flag"
2545                         || test ! -s conftest.err'
2546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547  (eval $ac_try) 2>&5
2548  ac_status=$?
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); }; } &&
2551         { ac_try='test -s conftest.$ac_objext'
2552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553  (eval $ac_try) 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; }; then
2557  break
2558else
2559  echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562fi
2563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2564done
2565rm -f conftest*
2566if test -n "$ac_declaration"; then
2567  echo '#ifdef __cplusplus' >>confdefs.h
2568  echo $ac_declaration      >>confdefs.h
2569  echo '#endif'             >>confdefs.h
2570fi
2571
2572else
2573  echo "$as_me: failed program was:" >&5
2574sed 's/^/| /' conftest.$ac_ext >&5
2575
2576fi
2577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578ac_ext=c
2579ac_cpp='$CPP $CPPFLAGS'
2580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583
2584if test -z "$CC" ; then
2585  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2586echo "$as_me: error: Failed to find a C compiler!" >&2;}
2587   { (exit 1); exit 1; }; }
2588fi
2589# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2590case "$CC" in
2591  cl* | */cl* | CL* | */CL* )
2592    if test "$ac_cv_prog_cc_g" = yes ; then
2593      ac_cv_prog_cc_g=no
2594      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2595echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2596    fi ;;
2597esac
2598CFLAGS="$save_cflags"
2599
2600# Check if a project specific CFLAGS variable has been set
2601if test x$COIN_PRJCT != x; then
2602  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2603  if test x$coin_tmp = xset; then
2604    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2605  fi
2606fi
2607
2608if test x"$CFLAGS" = x; then
2609
2610  coin_add_cflags=
2611  coin_opt_cflags=
2612  coin_dbg_cflags=
2613  coin_warn_cflags=
2614
2615  if test "$GCC" = "yes"; then
2616    case "$CC" in
2617      icc* | */icc*)
2618        ;;
2619      *)
2620        coin_opt_cflags="-O3 -fomit-frame-pointer"
2621        coin_add_cflags="-pipe"
2622        coin_dbg_cflags="-g"
2623        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2624        case $enable_doscompile in
2625          mingw)
2626            CFLAGS="-mno-cygwin"
2627            cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h.  */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h.  */
2633
2634int
2635main ()
2636{
2637int i=0; i++;
2638  ;
2639  return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext conftest$ac_exeext
2643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2644  (eval $ac_link) 2>conftest.er1
2645  ac_status=$?
2646  grep -v '^ *+' conftest.er1 >conftest.err
2647  rm -f conftest.er1
2648  cat conftest.err >&5
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); } &&
2651         { ac_try='test -z "$ac_c_werror_flag"
2652                         || test ! -s conftest.err'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; } &&
2658         { ac_try='test -s conftest$ac_exeext'
2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660  (eval $ac_try) 2>&5
2661  ac_status=$?
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; }; then
2664  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2665else
2666  echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668
2669fi
2670rm -f conftest.err conftest.$ac_objext \
2671      conftest$ac_exeext conftest.$ac_ext
2672            CFLAGS=
2673          ;;
2674        esac
2675    esac
2676  fi
2677  if test -z "$coin_opt_cflags"; then
2678    case $build in
2679      *-cygwin* | *-mingw*)
2680        case "$CC" in
2681          cl* | */cl* | CL* | */CL*)
2682            coin_opt_cflags='-MT -O2'
2683            coin_add_cflags='-nologo -wd4996'
2684            coin_dbg_cflags='-MTd'
2685            ;;
2686        esac
2687        ;;
2688      *-linux-*)
2689        case "$CC" in
2690          icc* | */icc*)
2691            coin_opt_cflags="-O3 -ip"
2692            coin_add_cflags=""
2693            coin_dbg_cflags="-g"
2694            # Check if -i_dynamic is necessary (for new glibc library)
2695            CFLAGS=
2696            cat >conftest.$ac_ext <<_ACEOF
2697/* confdefs.h.  */
2698_ACEOF
2699cat confdefs.h >>conftest.$ac_ext
2700cat >>conftest.$ac_ext <<_ACEOF
2701/* end confdefs.h.  */
2702
2703int
2704main ()
2705{
2706int i=0; i++;
2707  ;
2708  return 0;
2709}
2710_ACEOF
2711rm -f conftest.$ac_objext conftest$ac_exeext
2712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2713  (eval $ac_link) 2>conftest.er1
2714  ac_status=$?
2715  grep -v '^ *+' conftest.er1 >conftest.err
2716  rm -f conftest.er1
2717  cat conftest.err >&5
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); } &&
2720         { ac_try='test -z "$ac_c_werror_flag"
2721                         || test ! -s conftest.err'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; } &&
2727         { ac_try='test -s conftest$ac_exeext'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; }; then
2733  :
2734else
2735  echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738coin_add_cflags="-i_dynamic $coin_add_cflags"
2739fi
2740rm -f conftest.err conftest.$ac_objext \
2741      conftest$ac_exeext conftest.$ac_ext
2742            ;;
2743          pgcc* | */pgcc*)
2744            coin_opt_cflags="-fast"
2745            coin_add_cflags="-Kieee -pc 64"
2746            coin_dbg_cflags="-g"
2747            ;;
2748        esac
2749        ;;
2750      *-ibm-*)
2751        case "$CC" in
2752          xlc* | */xlc* | mpxlc* | */mpxlc*)
2753            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2754            coin_add_cflags="-bmaxdata:0x80000000"
2755            coin_dbg_cflags="-g"
2756          ;;
2757        esac
2758        ;;
2759      *-hp-*)
2760        coin_opt_cflags="-O"
2761        coin_add_cflags="-Ae"
2762        coin_dbg_cflags="-g"
2763        ;;
2764      *-sun-*)
2765        coin_opt_cflags="-xO4"
2766        coin_dbg_cflags="-g"
2767        ;;
2768      *-sgi-*)
2769        coin_opt_cflags="-O -OPT:Olimit=0"
2770        coin_dbg_cflags="-g"
2771        ;;
2772    esac
2773  fi
2774
2775  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2776    coin_dbg_cflags="-g"
2777  fi
2778
2779  if test -z "$coin_opt_cflags"; then
2780    # Try if -O option works if nothing else is set
2781    CFLAGS="-O"
2782    cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h.  */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h.  */
2788
2789int
2790main ()
2791{
2792int i=0; i++;
2793  ;
2794  return 0;
2795}
2796_ACEOF
2797rm -f conftest.$ac_objext conftest$ac_exeext
2798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2799  (eval $ac_link) 2>conftest.er1
2800  ac_status=$?
2801  grep -v '^ *+' conftest.er1 >conftest.err
2802  rm -f conftest.er1
2803  cat conftest.err >&5
2804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805  (exit $ac_status); } &&
2806         { ac_try='test -z "$ac_c_werror_flag"
2807                         || test ! -s conftest.err'
2808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809  (eval $ac_try) 2>&5
2810  ac_status=$?
2811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812  (exit $ac_status); }; } &&
2813         { ac_try='test -s conftest$ac_exeext'
2814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815  (eval $ac_try) 2>&5
2816  ac_status=$?
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); }; }; then
2819  coin_opt_cflags="-O"
2820else
2821  echo "$as_me: failed program was:" >&5
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
2824fi
2825rm -f conftest.err conftest.$ac_objext \
2826      conftest$ac_exeext conftest.$ac_ext
2827  fi
2828
2829  # if PM doesn't want the warning messages, take them out
2830  if test x"$coin_skip_warn_cflags" = xyes; then
2831    coin_warn_cflags=
2832  fi
2833
2834  if test x${DBG_CFLAGS+set} != xset; then
2835    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2836  fi
2837  if test x${OPT_CFLAGS+set} != xset; then
2838    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2839  fi
2840
2841  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2842  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2843
2844  if test "$coin_debug_compile" = "true"; then
2845    CFLAGS="$DBG_CFLAGS"
2846  else
2847    CFLAGS="$OPT_CFLAGS"
2848  fi
2849else
2850  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2851  if test x${DBG_CFLAGS+set} != xset; then
2852    DBG_CFLAGS="$CFLAGS"
2853  fi
2854  if test x${OPT_CFLAGS+set} != xset; then
2855    OPT_CFLAGS="$CFLAGS"
2856  fi
2857fi
2858
2859# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2860
2861case "$CFLAGS" in
2862  *-mno-cygwin*)
2863    if test x${CPPFLAGS+set} != xset ; then
2864      CPPFLAGS="-mno-cygwin"
2865    else
2866      case "$CPPFLAGS" in
2867        *-mno-cygwin*)
2868          ;;
2869        *)
2870          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2871          ;;
2872      esac
2873    fi ;;
2874esac
2875
2876# Try if CFLAGS works
2877save_CFLAGS="$CFLAGS"
2878cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884
2885int
2886main ()
2887{
2888int i=0; i++;
2889  ;
2890  return 0;
2891}
2892_ACEOF
2893rm -f conftest.$ac_objext conftest$ac_exeext
2894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2895  (eval $ac_link) 2>conftest.er1
2896  ac_status=$?
2897  grep -v '^ *+' conftest.er1 >conftest.err
2898  rm -f conftest.er1
2899  cat conftest.err >&5
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); } &&
2902         { ac_try='test -z "$ac_c_werror_flag"
2903                         || test ! -s conftest.err'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; } &&
2909         { ac_try='test -s conftest$ac_exeext'
2910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911  (eval $ac_try) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }; }; then
2915  :
2916else
2917  echo "$as_me: failed program was:" >&5
2918sed 's/^/| /' conftest.$ac_ext >&5
2919
2920CFLAGS=
2921fi
2922rm -f conftest.err conftest.$ac_objext \
2923      conftest$ac_exeext conftest.$ac_ext
2924if test -z "$CFLAGS"; then
2925  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
2926echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
2927  CFLAGS='-O'
2928  cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h.  */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h.  */
2934
2935int
2936main ()
2937{
2938int i=0; i++;
2939  ;
2940  return 0;
2941}
2942_ACEOF
2943rm -f conftest.$ac_objext conftest$ac_exeext
2944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945  (eval $ac_link) 2>conftest.er1
2946  ac_status=$?
2947  grep -v '^ *+' conftest.er1 >conftest.err
2948  rm -f conftest.er1
2949  cat conftest.err >&5
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); } &&
2952         { ac_try='test -z "$ac_c_werror_flag"
2953                         || test ! -s conftest.err'
2954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955  (eval $ac_try) 2>&5
2956  ac_status=$?
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); }; } &&
2959         { ac_try='test -s conftest$ac_exeext'
2960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961  (eval $ac_try) 2>&5
2962  ac_status=$?
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); }; }; then
2965  :
2966else
2967  echo "$as_me: failed program was:" >&5
2968sed 's/^/| /' conftest.$ac_ext >&5
2969
2970CFLAGS=
2971fi
2972rm -f conftest.err conftest.$ac_objext \
2973      conftest$ac_exeext conftest.$ac_ext
2974  if test -z "$CFLAGS"; then
2975    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
2976echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
2977  fi
2978fi
2979
2980{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2981echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2982
2983
2984if test x"$MPICC" = x; then :; else
2985  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2986echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2987  CC="$MPICC"
2988fi
2989
2990# Correct ADDLIBS initialization if we are using the MS compiler
2991case "$CC" in
2992  cl* | */cl* | CL* | */CL*)
2993    ADDLIBS=
2994    case $build in
2995  *-mingw*)
2996    if test "${LD+set}" = set; then :; else
2997      LD=link
2998    fi
2999    ;;
3000 esac
3001 case $enable_doscompile in
3002   msvc)
3003     if test "x${LD+set}" = xset; then :; else
3004       LD=link
3005     fi
3006     ;;
3007 esac
3008
3009    ;;
3010esac
3011
3012ac_ext=c
3013ac_cpp='$CPP $CPPFLAGS'
3014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017
3018
3019case $build in
3020  *-cygwin* | *-mingw*)
3021     if test "$enable_doscompile" = msvc ; then
3022       coin_f77_comps="ifort fl32"
3023     else
3024       coin_f77_comps="gfortran g77 ifort fl32"
3025     fi ;;
3026  sparc-sun-solaris*)
3027     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3028  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3029 esac
3030
3031
3032
3033
3034
3035
3036ac_ext=f
3037ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3038ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3040
3041
3042
3043
3044
3045
3046coin_has_f77=yes
3047
3048save_fflags="$FFLAGS"
3049
3050# We delete the cached value, since the test might not have been
3051# performed with our choice of compilers earlier
3052$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3053
3054# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3055# coin_f77_comps to see if there's a program that matches one of the names.
3056# If there's no such program, F77 = unavailable. If we match the name,
3057# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3058# compiler.
3059# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3060
3061
3062{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3063echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3064for ac_prog in $coin_f77_comps
3065do
3066  # Extract the first word of "$ac_prog", so it can be a program name with args.
3067set dummy $ac_prog; ac_word=$2
3068echo "$as_me:$LINENO: checking for $ac_word" >&5
3069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070if test "${ac_cv_prog_F77+set}" = set; then
3071  echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073  if test -n "$F77"; then
3074  ac_cv_prog_F77="$F77" # Let the user override the test.
3075else
3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079  IFS=$as_save_IFS
3080  test -z "$as_dir" && as_dir=.
3081  for ac_exec_ext in '' $ac_executable_extensions; do
3082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083    ac_cv_prog_F77="$ac_prog"
3084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085    break 2
3086  fi
3087done
3088done
3089
3090fi
3091fi
3092F77=$ac_cv_prog_F77
3093if test -n "$F77"; then
3094  echo "$as_me:$LINENO: result: $F77" >&5
3095echo "${ECHO_T}$F77" >&6
3096else
3097  echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
3099fi
3100
3101  test -n "$F77" && break
3102done
3103test -n "$F77" || F77="unavailable"
3104
3105
3106if test "$F77" != "unavailable" ; then
3107  ac_ext=f
3108ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3109ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3111if test -n "$ac_tool_prefix"; then
3112  for ac_prog in $coin_f77_comps
3113  do
3114    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116echo "$as_me:$LINENO: checking for $ac_word" >&5
3117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3118if test "${ac_cv_prog_F77+set}" = set; then
3119  echo $ECHO_N "(cached) $ECHO_C" >&6
3120else
3121  if test -n "$F77"; then
3122  ac_cv_prog_F77="$F77" # Let the user override the test.
3123else
3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125for as_dir in $PATH
3126do
3127  IFS=$as_save_IFS
3128  test -z "$as_dir" && as_dir=.
3129  for ac_exec_ext in '' $ac_executable_extensions; do
3130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133    break 2
3134  fi
3135done
3136done
3137
3138fi
3139fi
3140F77=$ac_cv_prog_F77
3141if test -n "$F77"; then
3142  echo "$as_me:$LINENO: result: $F77" >&5
3143echo "${ECHO_T}$F77" >&6
3144else
3145  echo "$as_me:$LINENO: result: no" >&5
3146echo "${ECHO_T}no" >&6
3147fi
3148
3149    test -n "$F77" && break
3150  done
3151fi
3152if test -z "$F77"; then
3153  ac_ct_F77=$F77
3154  for ac_prog in $coin_f77_comps
3155do
3156  # Extract the first word of "$ac_prog", so it can be a program name with args.
3157set dummy $ac_prog; ac_word=$2
3158echo "$as_me:$LINENO: checking for $ac_word" >&5
3159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3160if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3161  echo $ECHO_N "(cached) $ECHO_C" >&6
3162else
3163  if test -n "$ac_ct_F77"; then
3164  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3165else
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  test -z "$as_dir" && as_dir=.
3171  for ac_exec_ext in '' $ac_executable_extensions; do
3172  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173    ac_cv_prog_ac_ct_F77="$ac_prog"
3174    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3175    break 2
3176  fi
3177done
3178done
3179
3180fi
3181fi
3182ac_ct_F77=$ac_cv_prog_ac_ct_F77
3183if test -n "$ac_ct_F77"; then
3184  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3185echo "${ECHO_T}$ac_ct_F77" >&6
3186else
3187  echo "$as_me:$LINENO: result: no" >&5
3188echo "${ECHO_T}no" >&6
3189fi
3190
3191  test -n "$ac_ct_F77" && break
3192done
3193
3194  F77=$ac_ct_F77
3195fi
3196
3197
3198# Provide some information about the compiler.
3199echo "$as_me:3199:" \
3200     "checking for Fortran 77 compiler version" >&5
3201ac_compiler=`set X $ac_compile; echo $2`
3202{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3203  (eval $ac_compiler --version </dev/null >&5) 2>&5
3204  ac_status=$?
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); }
3207{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3208  (eval $ac_compiler -v </dev/null >&5) 2>&5
3209  ac_status=$?
3210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); }
3212{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3213  (eval $ac_compiler -V </dev/null >&5) 2>&5
3214  ac_status=$?
3215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216  (exit $ac_status); }
3217rm -f a.out
3218
3219# If we don't use `.F' as extension, the preprocessor is not run on the
3220# input file.  (Note that this only needs to work for GNU compilers.)
3221ac_save_ext=$ac_ext
3222ac_ext=F
3223echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3224echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3225if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3226  echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228  cat >conftest.$ac_ext <<_ACEOF
3229      program main
3230#ifndef __GNUC__
3231       choke me
3232#endif
3233
3234      end
3235_ACEOF
3236rm -f conftest.$ac_objext
3237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238  (eval $ac_compile) 2>conftest.er1
3239  ac_status=$?
3240  grep -v '^ *+' conftest.er1 >conftest.err
3241  rm -f conftest.er1
3242  cat conftest.err >&5
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); } &&
3245         { ac_try='test -z "$ac_f77_werror_flag"
3246                         || test ! -s conftest.err'
3247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248  (eval $ac_try) 2>&5
3249  ac_status=$?
3250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251  (exit $ac_status); }; } &&
3252         { ac_try='test -s conftest.$ac_objext'
3253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254  (eval $ac_try) 2>&5
3255  ac_status=$?
3256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257  (exit $ac_status); }; }; then
3258  ac_compiler_gnu=yes
3259else
3260  echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263ac_compiler_gnu=no
3264fi
3265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3266ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3267
3268fi
3269echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3270echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3271ac_ext=$ac_save_ext
3272ac_test_FFLAGS=${FFLAGS+set}
3273ac_save_FFLAGS=$FFLAGS
3274FFLAGS=
3275echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3276echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3277if test "${ac_cv_prog_f77_g+set}" = set; then
3278  echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280  FFLAGS=-g
3281cat >conftest.$ac_ext <<_ACEOF
3282      program main
3283
3284      end
3285_ACEOF
3286rm -f conftest.$ac_objext
3287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3288  (eval $ac_compile) 2>conftest.er1
3289  ac_status=$?
3290  grep -v '^ *+' conftest.er1 >conftest.err
3291  rm -f conftest.er1
3292  cat conftest.err >&5
3293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294  (exit $ac_status); } &&
3295         { ac_try='test -z "$ac_f77_werror_flag"
3296                         || test ! -s conftest.err'
3297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298  (eval $ac_try) 2>&5
3299  ac_status=$?
3300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301  (exit $ac_status); }; } &&
3302         { ac_try='test -s conftest.$ac_objext'
3303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304  (eval $ac_try) 2>&5
3305  ac_status=$?
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); }; }; then
3308  ac_cv_prog_f77_g=yes
3309else
3310  echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313ac_cv_prog_f77_g=no
3314fi
3315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3316
3317fi
3318echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3319echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3320if test "$ac_test_FFLAGS" = set; then
3321  FFLAGS=$ac_save_FFLAGS
3322elif test $ac_cv_prog_f77_g = yes; then
3323  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3324    FFLAGS="-g -O2"
3325  else
3326    FFLAGS="-g"
3327  fi
3328else
3329  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3330    FFLAGS="-O2"
3331  else
3332    FFLAGS=
3333  fi
3334fi
3335
3336G77=`test $ac_compiler_gnu = yes && echo yes`
3337ac_ext=f
3338ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3339ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3341
3342else
3343  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3344echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3345fi
3346
3347FFLAGS="$save_fflags"
3348
3349# Check if a project specific FFLAGS variable has been set
3350if test x$COIN_PRJCT != x; then
3351  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3352  if test x$coin_tmp = xset; then
3353    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3354  fi
3355fi
3356
3357if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3358
3359  coin_add_fflags=
3360  coin_opt_fflags=
3361  coin_dbg_fflags=
3362  coin_warn_fflags=
3363
3364  if test "$G77" = "yes"; then
3365    coin_opt_fflags="-O3 -fomit-frame-pointer"
3366    coin_add_fflags="-pipe"
3367    coin_dbg_fflags="-g"
3368    case $enable_doscompile in
3369      mingw)
3370        FFLAGS="-mno-cygwin"
3371        cat >conftest.$ac_ext <<_ACEOF
3372      program main
3373      write(*,*) 'Hello world'
3374      end
3375_ACEOF
3376rm -f conftest.$ac_objext conftest$ac_exeext
3377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3378  (eval $ac_link) 2>conftest.er1
3379  ac_status=$?
3380  grep -v '^ *+' conftest.er1 >conftest.err
3381  rm -f conftest.er1
3382  cat conftest.err >&5
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); } &&
3385         { ac_try='test -z "$ac_f77_werror_flag"
3386                         || test ! -s conftest.err'
3387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388  (eval $ac_try) 2>&5
3389  ac_status=$?
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); }; } &&
3392         { ac_try='test -s conftest$ac_exeext'
3393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394  (eval $ac_try) 2>&5
3395  ac_status=$?
3396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); }; }; then
3398  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3399else
3400  echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403fi
3404rm -f conftest.err conftest.$ac_objext \
3405      conftest$ac_exeext conftest.$ac_ext
3406        FFLAGS=
3407      ;;
3408    esac
3409  else
3410    case $build in
3411      *-cygwin* | *-mingw*)
3412        case $F77 in
3413          ifort* | */ifort* | IFORT* | */IFORT* )
3414            coin_opt_fflags='-O3'
3415            coin_add_fflags='-nologo -MT'
3416            coin_dbg_fflags='-debug'
3417          ;;
3418        esac
3419        ;;
3420      *-linux-*)
3421        case $F77 in
3422          ifc* | */ifc* | ifort* | */ifort*)
3423            coin_opt_fflags="-O3 -ip"
3424            coin_add_fflags="-cm -w90 -w95"
3425            coin_dbg_fflags="-g -CA -CB -CS"
3426            # Check if -i_dynamic is necessary (for new glibc library)
3427            FFLAGS=
3428            cat >conftest.$ac_ext <<_ACEOF
3429      program main
3430      write(*,*) 'Hello world'
3431      end
3432_ACEOF
3433rm -f conftest.$ac_objext conftest$ac_exeext
3434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3435  (eval $ac_link) 2>conftest.er1
3436  ac_status=$?
3437  grep -v '^ *+' conftest.er1 >conftest.err
3438  rm -f conftest.er1
3439  cat conftest.err >&5
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); } &&
3442         { ac_try='test -z "$ac_f77_werror_flag"
3443                         || test ! -s conftest.err'
3444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445  (eval $ac_try) 2>&5
3446  ac_status=$?
3447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448  (exit $ac_status); }; } &&
3449         { ac_try='test -s conftest$ac_exeext'
3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451  (eval $ac_try) 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); }; }; then
3455  :
3456else
3457  echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460coin_add_fflags="-i_dynamic $coin_add_fflags"
3461fi
3462rm -f conftest.err conftest.$ac_objext \
3463      conftest$ac_exeext conftest.$ac_ext
3464            ;;
3465          pgf77* | */pgf77* | pgf90* | */pgf90*)
3466            coin_opt_fflags="-fast"
3467            coin_add_fflags="-Kieee -pc 64"
3468            coin_dbg_fflags="-g"
3469          ;;
3470        esac
3471        ;;
3472      *-ibm-*)
3473        case "$F77" in
3474          xlf* | */xlf* | mpxlf* | */mpxlf* )
3475            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3476            coin_add_fflags="-bmaxdata:0x80000000"
3477            coin_dbg_fflags="-g -C"
3478            ;;
3479        esac
3480        ;;
3481      *-hp-*)
3482        coin_opt_fflags="+O3"
3483        coin_add_fflags="+U77"
3484        coin_dbg_fflags="-C -g"
3485        ;;
3486      *-sun-*)
3487        coin_opt_fflags="-O4"
3488        coin_dbg_fflags="-g"
3489        ;;
3490      *-sgi-*)
3491        coin_opt_fflags="-O5 -OPT:Olimit=0"
3492        coin_dbg_fflags="-g"
3493        ;;
3494    esac
3495  fi
3496
3497  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3498    coin_dbg_fflags="-g"
3499  fi
3500
3501  if test -z "$coin_opt_fflags"; then
3502    # Try if -O option works if nothing else is set
3503    FFLAGS=-O
3504    cat >conftest.$ac_ext <<_ACEOF
3505      program main
3506      integer i
3507      end
3508_ACEOF
3509rm -f conftest.$ac_objext conftest$ac_exeext
3510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3511  (eval $ac_link) 2>conftest.er1
3512  ac_status=$?
3513  grep -v '^ *+' conftest.er1 >conftest.err
3514  rm -f conftest.er1
3515  cat conftest.err >&5
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); } &&
3518         { ac_try='test -z "$ac_f77_werror_flag"
3519                         || test ! -s conftest.err'
3520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521  (eval $ac_try) 2>&5
3522  ac_status=$?
3523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524  (exit $ac_status); }; } &&
3525         { ac_try='test -s conftest$ac_exeext'
3526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527  (eval $ac_try) 2>&5
3528  ac_status=$?
3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530  (exit $ac_status); }; }; then
3531  coin_opt_fflags="-O"
3532else
3533  echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536fi
3537rm -f conftest.err conftest.$ac_objext \
3538      conftest$ac_exeext conftest.$ac_ext
3539  fi
3540
3541  # if PM doesn't want the warning messages, take them out
3542  if test x"$coin_skip_warn_fflags" = xyes; then
3543    coin_warn_fflags=
3544  fi
3545
3546  if test x${DBG_FFLAGS+set} != xset; then
3547    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3548  fi
3549  if test x${OPT_FFLAGS+set} != xset; then
3550    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3551  fi
3552
3553  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3554  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3555
3556  if test "$coin_debug_compile" = "true"; then
3557    FFLAGS="$DBG_FFLAGS"
3558  else
3559    FFLAGS="$OPT_FFLAGS"
3560  fi
3561else
3562  FFLAGS="$FFLAGS $ADD_FFLAGS"
3563  if test x${DBG_FFLAGS+set} != xset; then
3564    DBG_FFLAGS="$FFLAGS"
3565  fi
3566  if test x${OPT_FFLAGS+set} != xset; then
3567    OPT_FFLAGS="$FFLAGS"
3568  fi
3569fi
3570
3571# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3572case "$FFLAGS" in
3573  *-mno-cygwin*)
3574    if test x${CPPFLAGS+set} != xset ; then
3575      CPPFLAGS="-mno-cygwin"
3576    else
3577      case "$CPPFLAGS" in
3578        *-mno-cygwin*)
3579          ;;
3580        *)
3581          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3582          ;;
3583      esac
3584    fi ;;
3585esac
3586
3587# Try if FFLAGS works
3588if test "$F77" != "unavailable" ; then
3589  cat >conftest.$ac_ext <<_ACEOF
3590      program main
3591      integer i
3592      end
3593_ACEOF
3594rm -f conftest.$ac_objext conftest$ac_exeext
3595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3596  (eval $ac_link) 2>conftest.er1
3597  ac_status=$?
3598  grep -v '^ *+' conftest.er1 >conftest.err
3599  rm -f conftest.er1
3600  cat conftest.err >&5
3601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602  (exit $ac_status); } &&
3603         { ac_try='test -z "$ac_f77_werror_flag"
3604                         || test ! -s conftest.err'
3605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606  (eval $ac_try) 2>&5
3607  ac_status=$?
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); }; } &&
3610         { ac_try='test -s conftest$ac_exeext'
3611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612  (eval $ac_try) 2>&5
3613  ac_status=$?
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); }; }; then
3616  :
3617else
3618  echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621FFLAGS=
3622fi
3623rm -f conftest.err conftest.$ac_objext \
3624      conftest$ac_exeext conftest.$ac_ext
3625  if test -z "$FFLAGS"; then
3626    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
3627echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
3628    FFLAGS='-O'
3629    cat >conftest.$ac_ext <<_ACEOF
3630      program main
3631      integer i
3632      end
3633_ACEOF
3634rm -f conftest.$ac_objext conftest$ac_exeext
3635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3636  (eval $ac_link) 2>conftest.er1
3637  ac_status=$?
3638  grep -v '^ *+' conftest.er1 >conftest.err
3639  rm -f conftest.er1
3640  cat conftest.err >&5
3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642  (exit $ac_status); } &&
3643         { ac_try='test -z "$ac_f77_werror_flag"
3644                         || test ! -s conftest.err'
3645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646  (eval $ac_try) 2>&5
3647  ac_status=$?
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); }; } &&
3650         { ac_try='test -s conftest$ac_exeext'
3651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652  (eval $ac_try) 2>&5
3653  ac_status=$?
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); }; }; then
3656  :
3657else
3658  echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661FFLAGS=
3662fi
3663rm -f conftest.err conftest.$ac_objext \
3664      conftest$ac_exeext conftest.$ac_ext
3665    if test -z "$FFLAGS"; then
3666      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
3667echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
3668    fi
3669  fi
3670fi
3671
3672{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3673echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3674
3675
3676if test x"$MPIF77" = x; then :; else
3677  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3678echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3679  F77="$MPIF77"
3680fi
3681
3682case "$F77" in
3683  ifort* | */ifort* | IFORT* | */IFORT*)
3684    case $build in
3685  *-mingw*)
3686    if test "${LD+set}" = set; then :; else
3687      LD=link
3688    fi
3689    ;;
3690 esac
3691 case $enable_doscompile in
3692   msvc)
3693     if test "x${LD+set}" = xset; then :; else
3694       LD=link
3695     fi
3696     ;;
3697 esac
3698
3699    ;;
3700esac
3701
3702ac_ext=c
3703ac_cpp='$CPP $CPPFLAGS'
3704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707
3708
3709
3710# Need egrep later on
3711echo "$as_me:$LINENO: checking for egrep" >&5
3712echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3713if test "${ac_cv_prog_egrep+set}" = set; then
3714  echo $ECHO_N "(cached) $ECHO_C" >&6
3715else
3716  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3717    then ac_cv_prog_egrep='grep -E'
3718    else ac_cv_prog_egrep='egrep'
3719    fi
3720fi
3721echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3722echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3723 EGREP=$ac_cv_prog_egrep
3724
3725
3726
3727# Initialize autotools
3728{
3729
3730
3731
3732# START
3733
3734# On Cygwin, building DLLs doesn't work
3735case $build in
3736  *-cygwin*)
3737    coin_disable_shared=yes
3738    platform=Cygwin
3739  ;;
3740  *-mingw*)
3741    coin_disable_shared=yes
3742    platform="Msys"
3743#    case "$CXX" in
3744#      cl*)
3745#        coin_disable_shared=yes
3746#        platform="Msys with cl"
3747#    ;;
3748#    esac
3749  ;;
3750esac
3751if test x"$coin_disable_shared" = xyes; then
3752  if test x"$enable_shared" = xyes; then
3753    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3754echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3755  fi
3756  enable_shared=no
3757fi
3758# By default, we only want the shared objects to be compiled
3759# Check whether --enable-static or --disable-static was given.
3760if test "${enable_static+set}" = set; then
3761  enableval="$enable_static"
3762  p=${PACKAGE-default}
3763    case $enableval in
3764    yes) enable_static=yes ;;
3765    no) enable_static=no ;;
3766    *)
3767     enable_static=no
3768      # Look at the argument we got.  We use all the common list separators.
3769      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3770      for pkg in $enableval; do
3771        IFS="$lt_save_ifs"
3772        if test "X$pkg" = "X$p"; then
3773          enable_static=yes
3774        fi
3775      done
3776      IFS="$lt_save_ifs"
3777      ;;
3778    esac
3779else
3780  enable_static=no
3781fi;
3782
3783
3784
3785
3786# Initialize automake
3787am__api_version="1.9"
3788# Find a good install program.  We prefer a C program (faster),
3789# so one script is as good as another.  But avoid the broken or
3790# incompatible versions:
3791# SysV /etc/install, /usr/sbin/install
3792# SunOS /usr/etc/install
3793# IRIX /sbin/install
3794# AIX /bin/install
3795# AmigaOS /C/install, which installs bootblocks on floppy discs
3796# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3797# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3798# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3799# OS/2's system install, which has a completely different semantic
3800# ./install, which can be erroneously created by make from ./install.sh.
3801echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3802echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3803if test -z "$INSTALL"; then
3804if test "${ac_cv_path_install+set}" = set; then
3805  echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810  IFS=$as_save_IFS
3811  test -z "$as_dir" && as_dir=.
3812  # Account for people who put trailing slashes in PATH elements.
3813case $as_dir/ in
3814  ./ | .// | /cC/* | \
3815  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3816  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3817  /usr/ucb/* ) ;;
3818  *)
3819    # OSF1 and SCO ODT 3.0 have their own names for install.
3820    # Don't use installbsd from OSF since it installs stuff as root
3821    # by default.
3822    for ac_prog in ginstall scoinst install; do
3823      for ac_exec_ext in '' $ac_executable_extensions; do
3824        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3825          if test $ac_prog = install &&
3826            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3827            # AIX install.  It has an incompatible calling convention.
3828            :
3829          elif test $ac_prog = install &&
3830            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3831            # program-specific install script used by HP pwplus--don't use.
3832            :
3833          else
3834            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3835            break 3
3836          fi
3837        fi
3838      done
3839    done
3840    ;;
3841esac
3842done
3843
3844
3845fi
3846  if test "${ac_cv_path_install+set}" = set; then
3847    INSTALL=$ac_cv_path_install
3848  else
3849    # As a last resort, use the slow shell script.  We don't cache a
3850    # path for INSTALL within a source directory, because that will
3851    # break other packages using the cache if that directory is
3852    # removed, or if the path is relative.
3853    INSTALL=$ac_install_sh
3854  fi
3855fi
3856echo "$as_me:$LINENO: result: $INSTALL" >&5
3857echo "${ECHO_T}$INSTALL" >&6
3858
3859# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3860# It thinks the first close brace ends the variable substitution.
3861test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3862
3863test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3864
3865test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3866
3867echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3868echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3869# Just in case
3870sleep 1
3871echo timestamp > conftest.file
3872# Do `set' in a subshell so we don't clobber the current shell's
3873# arguments.  Must try -L first in case configure is actually a
3874# symlink; some systems play weird games with the mod time of symlinks
3875# (eg FreeBSD returns the mod time of the symlink's containing
3876# directory).
3877if (
3878   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3879   if test "$*" = "X"; then
3880      # -L didn't work.
3881      set X `ls -t $srcdir/configure conftest.file`
3882   fi
3883   rm -f conftest.file
3884   if test "$*" != "X $srcdir/configure conftest.file" \
3885      && test "$*" != "X conftest.file $srcdir/configure"; then
3886
3887      # If neither matched, then we have a broken ls.  This can happen
3888      # if, for instance, CONFIG_SHELL is bash and it inherits a
3889      # broken ls alias from the environment.  This has actually
3890      # happened.  Such a system could not be considered "sane".
3891      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3892alias in your environment" >&5
3893echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3894alias in your environment" >&2;}
3895   { (exit 1); exit 1; }; }
3896   fi
3897
3898   test "$2" = conftest.file
3899   )
3900then
3901   # Ok.
3902   :
3903else
3904   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3905Check your system clock" >&5
3906echo "$as_me: error: newly created file is older than distributed files!
3907Check your system clock" >&2;}
3908   { (exit 1); exit 1; }; }
3909fi
3910echo "$as_me:$LINENO: result: yes" >&5
3911echo "${ECHO_T}yes" >&6
3912test "$program_prefix" != NONE &&
3913  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3914# Use a double $ so make ignores it.
3915test "$program_suffix" != NONE &&
3916  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3917# Double any \ or $.  echo might interpret backslashes.
3918# By default was `s,x,x', remove it if useless.
3919cat <<\_ACEOF >conftest.sed
3920s/[\\$]/&&/g;s/;s,x,x,$//
3921_ACEOF
3922program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3923rm conftest.sed
3924
3925# expand $ac_aux_dir to an absolute path
3926am_aux_dir=`cd $ac_aux_dir && pwd`
3927
3928test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3929# Use eval to expand $SHELL
3930if eval "$MISSING --run true"; then
3931  am_missing_run="$MISSING --run "
3932else
3933  am_missing_run=
3934  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3935echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3936fi
3937
3938if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3939  # We used to keeping the `.' as first argument, in order to
3940  # allow $(mkdir_p) to be used without argument.  As in
3941  #   $(mkdir_p) $(somedir)
3942  # where $(somedir) is conditionally defined.  However this is wrong
3943  # for two reasons:
3944  #  1. if the package is installed by a user who cannot write `.'
3945  #     make install will fail,
3946  #  2. the above comment should most certainly read
3947  #     $(mkdir_p) $(DESTDIR)$(somedir)
3948  #     so it does not work when $(somedir) is undefined and
3949  #     $(DESTDIR) is not.
3950  #  To support the latter case, we have to write
3951  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3952  #  so the `.' trick is pointless.
3953  mkdir_p='mkdir -p --'
3954else
3955  # On NextStep and OpenStep, the `mkdir' command does not
3956  # recognize any option.  It will interpret all options as
3957  # directories to create, and then abort because `.' already
3958  # exists.
3959  for d in ./-p ./--version;
3960  do
3961    test -d $d && rmdir $d
3962  done
3963  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3964  if test -f "$ac_aux_dir/mkinstalldirs"; then
3965    mkdir_p='$(mkinstalldirs)'
3966  else
3967    mkdir_p='$(install_sh) -d'
3968  fi
3969fi
3970
3971for ac_prog in gawk mawk nawk awk
3972do
3973  # Extract the first word of "$ac_prog", so it can be a program name with args.
3974set dummy $ac_prog; ac_word=$2
3975echo "$as_me:$LINENO: checking for $ac_word" >&5
3976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3977if test "${ac_cv_prog_AWK+set}" = set; then
3978  echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980  if test -n "$AWK"; then
3981  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3982else
3983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH
3985do
3986  IFS=$as_save_IFS
3987  test -z "$as_dir" && as_dir=.
3988  for ac_exec_ext in '' $ac_executable_extensions; do
3989  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3990    ac_cv_prog_AWK="$ac_prog"
3991    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992    break 2
3993  fi
3994done
3995done
3996
3997fi
3998fi
3999AWK=$ac_cv_prog_AWK
4000if test -n "$AWK"; then
4001  echo "$as_me:$LINENO: result: $AWK" >&5
4002echo "${ECHO_T}$AWK" >&6
4003else
4004  echo "$as_me:$LINENO: result: no" >&5
4005echo "${ECHO_T}no" >&6
4006fi
4007
4008  test -n "$AWK" && break
4009done
4010
4011echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4012echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4013set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4014if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4015  echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
4017  cat >conftest.make <<\_ACEOF
4018all:
4019        @echo 'ac_maketemp="$(MAKE)"'
4020_ACEOF
4021# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4022eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4023if test -n "$ac_maketemp"; then
4024  eval ac_cv_prog_make_${ac_make}_set=yes
4025else
4026  eval ac_cv_prog_make_${ac_make}_set=no
4027fi
4028rm -f conftest.make
4029fi
4030if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4031  echo "$as_me:$LINENO: result: yes" >&5
4032echo "${ECHO_T}yes" >&6
4033  SET_MAKE=
4034else
4035  echo "$as_me:$LINENO: result: no" >&5
4036echo "${ECHO_T}no" >&6
4037  SET_MAKE="MAKE=${MAKE-make}"
4038fi
4039
4040rm -rf .tst 2>/dev/null
4041mkdir .tst 2>/dev/null
4042if test -d .tst; then
4043  am__leading_dot=.
4044else
4045  am__leading_dot=_
4046fi
4047rmdir .tst 2>/dev/null
4048
4049DEPDIR="${am__leading_dot}deps"
4050
4051          ac_config_commands="$ac_config_commands depfiles"
4052
4053
4054am_make=${MAKE-make}
4055cat > confinc << 'END'
4056am__doit:
4057        @echo done
4058.PHONY: am__doit
4059END
4060# If we don't find an include directive, just comment out the code.
4061echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4062echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4063am__include="#"
4064am__quote=
4065_am_result=none
4066# First try GNU make style include.
4067echo "include confinc" > confmf
4068# We grep out `Entering directory' and `Leaving directory'
4069# messages which can occur if `w' ends up in MAKEFLAGS.
4070# In particular we don't look at `^make:' because GNU make might
4071# be invoked under some other name (usually "gmake"), in which
4072# case it prints its new name instead of `make'.
4073if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4074   am__include=include
4075   am__quote=
4076   _am_result=GNU
4077fi
4078# Now try BSD make style include.
4079if test "$am__include" = "#"; then
4080   echo '.include "confinc"' > confmf
4081   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4082      am__include=.include
4083      am__quote="\""
4084      _am_result=BSD
4085   fi
4086fi
4087
4088
4089echo "$as_me:$LINENO: result: $_am_result" >&5
4090echo "${ECHO_T}$_am_result" >&6
4091rm -f confinc confmf
4092
4093# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4094if test "${enable_dependency_tracking+set}" = set; then
4095  enableval="$enable_dependency_tracking"
4096
4097fi;
4098if test "x$enable_dependency_tracking" != xno; then
4099  am_depcomp="$ac_aux_dir/depcomp"
4100  AMDEPBACKSLASH='\'
4101fi
4102
4103
4104if test "x$enable_dependency_tracking" != xno; then
4105  AMDEP_TRUE=
4106  AMDEP_FALSE='#'
4107else
4108  AMDEP_TRUE='#'
4109  AMDEP_FALSE=
4110fi
4111
4112
4113
4114
4115
4116# AC_MSG_NOTICE([Beginning automake initialisation.])
4117# Stuff for automake
4118# test to see if srcdir already configured
4119if test "`cd $srcdir && pwd`" != "`pwd`" &&
4120   test -f $srcdir/config.status; then
4121  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4122echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4123   { (exit 1); exit 1; }; }
4124fi
4125
4126# test whether we have cygpath
4127if test -z "$CYGPATH_W"; then
4128  if (cygpath --version) >/dev/null 2>/dev/null; then
4129    CYGPATH_W='cygpath -w'
4130  else
4131    CYGPATH_W=echo
4132  fi
4133fi
4134
4135
4136# Define the identity of the package.
4137 PACKAGE='thirdpartyhsl'
4138 VERSION='0.0'
4139
4140
4141cat >>confdefs.h <<_ACEOF
4142#define PACKAGE "$PACKAGE"
4143_ACEOF
4144
4145
4146cat >>confdefs.h <<_ACEOF
4147#define VERSION "$VERSION"
4148_ACEOF
4149
4150# Some tools Automake needs.
4151
4152ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4153
4154
4155AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4156
4157
4158AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4159
4160
4161AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4162
4163
4164MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4165
4166install_sh=${install_sh-"$am_aux_dir/install-sh"}
4167
4168# Installed binaries are usually stripped using `strip' when the user
4169# run `make install-strip'.  However `strip' might not be the right
4170# tool to use in cross-compilation environments, therefore Automake
4171# will honor the `STRIP' environment variable to overrule this program.
4172if test "$cross_compiling" != no; then
4173  if test -n "$ac_tool_prefix"; then
4174  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4175set dummy ${ac_tool_prefix}strip; ac_word=$2
4176echo "$as_me:$LINENO: checking for $ac_word" >&5
4177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178if test "${ac_cv_prog_STRIP+set}" = set; then
4179  echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181  if test -n "$STRIP"; then
4182  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4183else
4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH
4186do
4187  IFS=$as_save_IFS
4188  test -z "$as_dir" && as_dir=.
4189  for ac_exec_ext in '' $ac_executable_extensions; do
4190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193    break 2
4194  fi
4195done
4196done
4197
4198fi
4199fi
4200STRIP=$ac_cv_prog_STRIP
4201if test -n "$STRIP"; then
4202  echo "$as_me:$LINENO: result: $STRIP" >&5
4203echo "${ECHO_T}$STRIP" >&6
4204else
4205  echo "$as_me:$LINENO: result: no" >&5
4206echo "${ECHO_T}no" >&6
4207fi
4208
4209fi
4210if test -z "$ac_cv_prog_STRIP"; then
4211  ac_ct_STRIP=$STRIP
4212  # Extract the first word of "strip", so it can be a program name with args.
4213set dummy strip; ac_word=$2
4214echo "$as_me:$LINENO: checking for $ac_word" >&5
4215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4217  echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219  if test -n "$ac_ct_STRIP"; then
4220  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4221else
4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225  IFS=$as_save_IFS
4226  test -z "$as_dir" && as_dir=.
4227  for ac_exec_ext in '' $ac_executable_extensions; do
4228  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229    ac_cv_prog_ac_ct_STRIP="strip"
4230    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231    break 2
4232  fi
4233done
4234done
4235
4236  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4237fi
4238fi
4239ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4240if test -n "$ac_ct_STRIP"; then
4241  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4242echo "${ECHO_T}$ac_ct_STRIP" >&6
4243else
4244  echo "$as_me:$LINENO: result: no" >&5
4245echo "${ECHO_T}no" >&6
4246fi
4247
4248  STRIP=$ac_ct_STRIP
4249else
4250  STRIP="$ac_cv_prog_STRIP"
4251fi
4252
4253fi
4254INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4255
4256# We need awk for the "check" target.  The system "awk" is bad on
4257# some platforms.
4258# Always define AMTAR for backward compatibility.
4259
4260AMTAR=${AMTAR-"${am_missing_run}tar"}
4261
4262am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4263
4264
4265
4266
4267depcc="$CC"   am_compiler_list=
4268
4269echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4270echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4271if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4272  echo $ECHO_N "(cached) $ECHO_C" >&6
4273else
4274  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4275  # We make a subdir and do the tests there.  Otherwise we can end up
4276  # making bogus files that we don't know about and never remove.  For
4277  # instance it was reported that on HP-UX the gcc test will end up
4278  # making a dummy file named `D' -- because `-MD' means `put the output
4279  # in D'.
4280  mkdir conftest.dir
4281  # Copy depcomp to subdir because otherwise we won't find it if we're
4282  # using a relative directory.
4283  cp "$am_depcomp" conftest.dir
4284  cd conftest.dir
4285  # We will build objects and dependencies in a subdirectory because
4286  # it helps to detect inapplicable dependency modes.  For instance
4287  # both Tru64's cc and ICC support -MD to output dependencies as a
4288  # side effect of compilation, but ICC will put the dependencies in
4289  # the current directory while Tru64 will put them in the object
4290  # directory.
4291  mkdir sub
4292
4293  am_cv_CC_dependencies_compiler_type=none
4294  if test "$am_compiler_list" = ""; then
4295     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4296  fi
4297  for depmode in $am_compiler_list; do
4298    # Setup a source with many dependencies, because some compilers
4299    # like to wrap large dependency lists on column 80 (with \), and
4300    # we should not choose a depcomp mode which is confused by this.
4301    #
4302    # We need to recreate these files for each test, as the compiler may
4303    # overwrite some of them when testing with obscure command lines.
4304    # This happens at least with the AIX C compiler.
4305    : > sub/conftest.c
4306    for i in 1 2 3 4 5 6; do
4307      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4308      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4309      # Solaris 8's {/usr,}/bin/sh.
4310      touch sub/conftst$i.h
4311    done
4312    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4313
4314    case $depmode in
4315    nosideeffect)
4316      # after this tag, mechanisms are not by side-effect, so they'll
4317      # only be used when explicitly requested
4318      if test "x$enable_dependency_tracking" = xyes; then
4319        continue
4320      else
4321        break
4322      fi
4323      ;;
4324    none) break ;;
4325    esac
4326    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4327    # mode.  It turns out that the SunPro C++ compiler does not properly
4328    # handle `-M -o', and we need to detect this.
4329    if depmode=$depmode \
4330       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4331       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4332       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4333         >/dev/null 2>conftest.err &&
4334       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4335       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4336       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4337      # icc doesn't choke on unknown options, it will just issue warnings
4338      # or remarks (even with -Werror).  So we grep stderr for any message
4339      # that says an option was ignored or not supported.
4340      # When given -MP, icc 7.0 and 7.1 complain thusly:
4341      #   icc: Command line warning: ignoring option '-M'; no argument required
4342      # The diagnosis changed in icc 8.0:
4343      #   icc: Command line remark: option '-MP' not supported
4344      if (grep 'ignoring option' conftest.err ||
4345          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4346        am_cv_CC_dependencies_compiler_type=$depmode
4347        break
4348      fi
4349    fi
4350  done
4351
4352  cd ..
4353  rm -rf conftest.dir
4354else
4355  am_cv_CC_dependencies_compiler_type=none
4356fi
4357
4358fi
4359echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4360echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4361CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4362
4363
4364
4365if
4366  test "x$enable_dependency_tracking" != xno \
4367  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4368  am__fastdepCC_TRUE=
4369  am__fastdepCC_FALSE='#'
4370else
4371  am__fastdepCC_TRUE='#'
4372  am__fastdepCC_FALSE=
4373fi
4374
4375
4376
4377echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4378echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4379    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4380if test "${enable_maintainer_mode+set}" = set; then
4381  enableval="$enable_maintainer_mode"
4382  USE_MAINTAINER_MODE=$enableval
4383else
4384  USE_MAINTAINER_MODE=no
4385fi;
4386  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4387echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4388
4389
4390if test $USE_MAINTAINER_MODE = yes; then
4391  MAINTAINER_MODE_TRUE=
4392  MAINTAINER_MODE_FALSE='#'
4393else
4394  MAINTAINER_MODE_TRUE='#'
4395  MAINTAINER_MODE_FALSE=
4396fi
4397
4398  MAINT=$MAINTAINER_MODE_TRUE
4399
4400
4401
4402coin_have_externals=no
4403if test "$enable_maintainer_mode" = yes; then
4404
4405  # If maintainer mode is chosen, we make sure that the correct versions
4406  # of the tools are used, and that we know where libtool.m4 is (to
4407  # recreate acinclude.m4)
4408
4409
4410  LIBTOOLM4=
4411  # Normally, $HOME
4412  AUTOTOOLS_DFLT=$HOME
4413
4414  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4415echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4416if test "${ac_cv_use_correct_autotools+set}" = set; then
4417  echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419  ac_cv_use_correct_autotools=check
4420fi
4421echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4422echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4423
4424  if test $ac_cv_use_correct_autotools = check; then
4425    ac_cv_use_correct_autotools=yes
4426    # Check if we have autoconf
4427    # Extract the first word of "autoconf", so it can be a program name with args.
4428set dummy autoconf; ac_word=$2
4429echo "$as_me:$LINENO: checking for $ac_word" >&5
4430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4431if test "${ac_cv_prog_have_autoconf+set}" = set; then
4432  echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434  if test -n "$have_autoconf"; then
4435  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440  IFS=$as_save_IFS
4441  test -z "$as_dir" && as_dir=.
4442  for ac_exec_ext in '' $ac_executable_extensions; do
4443  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444    ac_cv_prog_have_autoconf="yes"
4445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446    break 2
4447  fi
4448done
4449done
4450
4451  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4452fi
4453fi
4454have_autoconf=$ac_cv_prog_have_autoconf
4455if test -n "$have_autoconf"; then
4456  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4457echo "${ECHO_T}$have_autoconf" >&6
4458else
4459  echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6
4461fi
4462
4463    if test $have_autoconf = no; then
4464      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4465echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4466   { (exit 1); exit 1; }; }
4467    fi
4468
4469    # Check whether autoconf is the correct version
4470    correct_version='2.59'
4471    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4472    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4473echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4474    autoconf --version > confauto.out 2>&1
4475    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4476      echo "$as_me:$LINENO: result: yes" >&5
4477echo "${ECHO_T}yes" >&6
4478    else
4479      rm -f confauto.out
4480      echo "$as_me:$LINENO: result: no" >&5
4481echo "${ECHO_T}no" >&6
4482      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4483echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4484   { (exit 1); exit 1; }; }
4485    fi
4486    rm -f confauto.out
4487
4488    # Check if the executable autoconf is picked up from the correct location
4489    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4490echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4491    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4492    autoconf_dir=`cd $autoconf_dir; pwd`
4493    if test x$AUTOTOOLS_DIR = x; then
4494      want_dir=$AUTOTOOLS_DFLT/bin
4495    else
4496      want_dir=$AUTOTOOLS_DIR/bin
4497    fi
4498    if test $autoconf_dir = `cd $want_dir; pwd`; then
4499      echo "$as_me:$LINENO: result: yes" >&5
4500echo "${ECHO_T}yes" >&6
4501    else
4502      rm -f confauto.out
4503      echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6
4505      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4506echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4507   { (exit 1); exit 1; }; }
4508    fi
4509
4510    # Check if we have automake
4511    # Extract the first word of "automake", so it can be a program name with args.
4512set dummy automake; ac_word=$2
4513echo "$as_me:$LINENO: checking for $ac_word" >&5
4514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4515if test "${ac_cv_prog_have_automake+set}" = set; then
4516  echo $ECHO_N "(cached) $ECHO_C" >&6
4517else
4518  if test -n "$have_automake"; then
4519  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4520else
4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH
4523do
4524  IFS=$as_save_IFS
4525  test -z "$as_dir" && as_dir=.
4526  for ac_exec_ext in '' $ac_executable_extensions; do
4527  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528    ac_cv_prog_have_automake="yes"
4529    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530    break 2
4531  fi
4532done
4533done
4534
4535  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4536fi
4537fi
4538have_automake=$ac_cv_prog_have_automake
4539if test -n "$have_automake"; then
4540  echo "$as_me:$LINENO: result: $have_automake" >&5
4541echo "${ECHO_T}$have_automake" >&6
4542else
4543  echo "$as_me:$LINENO: result: no" >&5
4544echo "${ECHO_T}no" >&6
4545fi
4546
4547    if test $have_automake = no; then
4548      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4549echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4550   { (exit 1); exit 1; }; }
4551    fi
4552
4553    # Check whether automake is the correct version
4554    correct_version='1.9.6'
4555    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4556    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4557echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4558    automake --version > confauto.out 2>&1
4559    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4560      echo "$as_me:$LINENO: result: yes" >&5
4561echo "${ECHO_T}yes" >&6
4562    else
4563      rm -f confauto.out
4564      echo "$as_me:$LINENO: result: no" >&5
4565echo "${ECHO_T}no" >&6
4566      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4567echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4568   { (exit 1); exit 1; }; }
4569    fi
4570    rm -f confauto.out
4571
4572    # Check if the executable automake is picked up from the correct location
4573    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4574echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4575    automake_dir=`which automake | sed -e 's=/automake=='`
4576    automake_dir=`cd $automake_dir; pwd`
4577    if test x$AUTOTOOLS_DIR = x; then
4578      want_dir=$AUTOTOOLS_DFLT/bin
4579    else
4580      want_dir=$AUTOTOOLS_DIR/bin
4581    fi
4582    if test $automake_dir = `cd $want_dir; pwd`; then
4583      echo "$as_me:$LINENO: result: yes" >&5
4584echo "${ECHO_T}yes" >&6
4585    else
4586      rm -f confauto.out
4587      echo "$as_me:$LINENO: result: no" >&5
4588echo "${ECHO_T}no" >&6
4589      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4590echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4591   { (exit 1); exit 1; }; }
4592    fi
4593
4594    # Check if this is the correct version of libtool (with escaped dots)
4595    if test x$AUTOTOOLS_DIR = x; then
4596      want_dir=$AUTOTOOLS_DFLT/share
4597    else
4598      want_dir=$AUTOTOOLS_DIR/share
4599    fi
4600    correct_version='1.5.22'
4601    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4602    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4603echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4604echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4605if eval "test \"\${$as_ac_File+set}\" = set"; then
4606  echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608  test "$cross_compiling" = yes &&
4609  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4610echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4611   { (exit 1); exit 1; }; }
4612if test -r "$want_dir/libtool/ltmain.sh"; then
4613  eval "$as_ac_File=yes"
4614else
4615  eval "$as_ac_File=no"
4616fi
4617fi
4618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4619echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4620if test `eval echo '${'$as_ac_File'}'` = yes; then
4621  have_ltmain=yes
4622else
4623  have_ltmain=no
4624fi
4625
4626    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4627echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4628    if test $have_ltmain = yes; then
4629    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4630        echo "$as_me:$LINENO: result: yes" >&5
4631echo "${ECHO_T}yes" >&6
4632      else
4633        echo "$as_me:$LINENO: result: no" >&5
4634echo "${ECHO_T}no" >&6
4635        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4636echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4637   { (exit 1); exit 1; }; }
4638      fi
4639    else
4640      echo "$as_me:$LINENO: result: no" >&5
4641echo "${ECHO_T}no" >&6
4642      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4643echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4644   { (exit 1); exit 1; }; }
4645    fi
4646  fi
4647
4648  # Check if we can find the libtool file
4649  if test x$AUTOTOOLS_DIR = x; then
4650    want_dir=$AUTOTOOLS_DFLT/share
4651  else
4652    want_dir=$AUTOTOOLS_DIR/share
4653  fi
4654  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4655echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4656echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4657if eval "test \"\${$as_ac_File+set}\" = set"; then
4658  echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660  test "$cross_compiling" = yes &&
4661  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4662echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4663   { (exit 1); exit 1; }; }
4664if test -r "$want_dir/aclocal/libtool.m4"; then
4665  eval "$as_ac_File=yes"
4666else
4667  eval "$as_ac_File=no"
4668fi
4669fi
4670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4671echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4672if test `eval echo '${'$as_ac_File'}'` = yes; then
4673  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4674else
4675  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4676echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4677   { (exit 1); exit 1; }; }
4678fi
4679
4680
4681  # Check if we have an Externals file
4682  if test -r $srcdir/Externals; then
4683    coin_have_externals=yes
4684  fi
4685  # Check if subversion is installed and understands https
4686  # Extract the first word of "svn", so it can be a program name with args.
4687set dummy svn; ac_word=$2
4688echo "$as_me:$LINENO: checking for $ac_word" >&5
4689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4690if test "${ac_cv_prog_have_svn+set}" = set; then
4691  echo $ECHO_N "(cached) $ECHO_C" >&6
4692else
4693  if test -n "$have_svn"; then
4694  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4695else
4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699  IFS=$as_save_IFS
4700  test -z "$as_dir" && as_dir=.
4701  for ac_exec_ext in '' $ac_executable_extensions; do
4702  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703    ac_cv_prog_have_svn="yes"
4704    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705    break 2
4706  fi
4707done
4708done
4709
4710  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4711fi
4712fi
4713have_svn=$ac_cv_prog_have_svn
4714if test -n "$have_svn"; then
4715  echo "$as_me:$LINENO: result: $have_svn" >&5
4716echo "${ECHO_T}$have_svn" >&6
4717else
4718  echo "$as_me:$LINENO: result: no" >&5
4719echo "${ECHO_T}no" >&6
4720fi
4721
4722  if test x$have_svn = xyes; then
4723    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4724echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4725if test "${ac_cv_svn_understands_https+set}" = set; then
4726  echo $ECHO_N "(cached) $ECHO_C" >&6
4727else
4728  svn --version > confauto.out 2>&1
4729                    if $EGREP https confauto.out >/dev/null 2>&1; then
4730                      ac_cv_svn_understands_https=yes
4731                    else
4732                      ac_cv_svn_understands_https=no
4733                      have_svn=no
4734                      ac_cv_prog_have_svn=no
4735                    fi
4736                    rm -f confauto.out
4737fi
4738echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4739echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4740  fi
4741
4742  # Find the location of the BuildTools directory
4743  BUILDTOOLSDIR=
4744  if test -r $srcdir/BuildTools/coin.m4; then
4745    BUILDTOOLSDIR=$srcdir/BuildTools
4746  else
4747    if test -r $srcdir/../BuildTools/coin.m4; then
4748      BUILDTOOLSDIR=$srcdir/../BuildTools
4749    else
4750      if test -r $srcdir/../../BuildTools/coin.m4; then
4751        BUILDTOOLSDIR=$srcdir/../../BuildTools
4752      else
4753        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4754echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4755   { (exit 1); exit 1; }; }
4756      fi
4757    fi
4758  fi
4759
4760
4761  # The following variable is set to the name of the directory where
4762  # the autotool scripts are located
4763
4764  AUX_DIR=$ac_aux_dir
4765fi
4766
4767# helpful variable for the base directory of this package
4768abs_source_dir=`cd $srcdir; pwd`
4769
4770
4771# Stuff for example Makefiles
4772if test x$prefix = xNONE; then
4773  full_prefix=$ac_default_prefix
4774else
4775  full_prefix=$prefix
4776fi
4777full_prefix=`cd $full_prefix ; pwd`
4778
4779abs_lib_dir=$full_prefix/lib
4780
4781abs_include_dir=$full_prefix/include
4782
4783abs_bin_dir=$full_prefix/bin
4784
4785
4786
4787if test $coin_have_externals = yes && test x$have_svn = xyes; then
4788  HAVE_EXTERNALS_TRUE=
4789  HAVE_EXTERNALS_FALSE='#'
4790else
4791  HAVE_EXTERNALS_TRUE='#'
4792  HAVE_EXTERNALS_FALSE=
4793fi
4794
4795
4796# AC_MSG_NOTICE([End automake initialisation.])
4797
4798
4799
4800unset ac_cv_file__________libtool
4801unset ac_cv_file_______libtool
4802unset ac_cv_file____libtool
4803
4804LIBTOOL=
4805echo "$as_me:$LINENO: checking for ../libtool" >&5
4806echo $ECHO_N "checking for ../libtool... $ECHO_C" >&6
4807if test "${ac_cv_file____libtool+set}" = set; then
4808  echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810  test "$cross_compiling" = yes &&
4811  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4812echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4813   { (exit 1); exit 1; }; }
4814if test -r "../libtool"; then
4815  ac_cv_file____libtool=yes
4816else
4817  ac_cv_file____libtool=no
4818fi
4819fi
4820echo "$as_me:$LINENO: result: $ac_cv_file____libtool" >&5
4821echo "${ECHO_T}$ac_cv_file____libtool" >&6
4822if test $ac_cv_file____libtool = yes; then
4823  coin_config_dir=..
4824               LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4825fi
4826
4827if test "x$LIBTOOL" = x; then
4828  echo "$as_me:$LINENO: checking for ../../libtool" >&5
4829echo $ECHO_N "checking for ../../libtool... $ECHO_C" >&6
4830if test "${ac_cv_file_______libtool+set}" = set; then
4831  echo $ECHO_N "(cached) $ECHO_C" >&6
4832else
4833  test "$cross_compiling" = yes &&
4834  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4835echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4836   { (exit 1); exit 1; }; }
4837if test -r "../../libtool"; then
4838  ac_cv_file_______libtool=yes
4839else
4840  ac_cv_file_______libtool=no
4841fi
4842fi
4843echo "$as_me:$LINENO: result: $ac_cv_file_______libtool" >&5
4844echo "${ECHO_T}$ac_cv_file_______libtool" >&6
4845if test $ac_cv_file_______libtool = yes; then
4846  coin_config_dir=../..
4847                 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4848fi
4849
4850fi
4851# if test "x$LIBTOOL" = x; then
4852#   AC_CHECK_FILE([../../../libtool],
4853#                 [coin_config_dir=../../..
4854#                  LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool'])
4855# fi
4856
4857if test "x$LIBTOOL" = x; then
4858# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4859  # Stuff for libtool
4860  # Check whether --enable-shared or --disable-shared was given.
4861if test "${enable_shared+set}" = set; then
4862  enableval="$enable_shared"
4863  p=${PACKAGE-default}
4864    case $enableval in
4865    yes) enable_shared=yes ;;
4866    no) enable_shared=no ;;
4867    *)
4868      enable_shared=no
4869      # Look at the argument we got.  We use all the common list separators.
4870      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4871      for pkg in $enableval; do
4872        IFS="$lt_save_ifs"
4873        if test "X$pkg" = "X$p"; then
4874          enable_shared=yes
4875        fi
4876      done
4877      IFS="$lt_save_ifs"
4878      ;;
4879    esac
4880else
4881  enable_shared=yes
4882fi;
4883
4884# Check whether --enable-fast-install or --disable-fast-install was given.
4885if test "${enable_fast_install+set}" = set; then
4886  enableval="$enable_fast_install"
4887  p=${PACKAGE-default}
4888    case $enableval in
4889    yes) enable_fast_install=yes ;;
4890    no) enable_fast_install=no ;;
4891    *)
4892      enable_fast_install=no
4893      # Look at the argument we got.  We use all the common list separators.
4894      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4895      for pkg in $enableval; do
4896        IFS="$lt_save_ifs"
4897        if test "X$pkg" = "X$p"; then
4898          enable_fast_install=yes
4899        fi
4900      done
4901      IFS="$lt_save_ifs"
4902      ;;
4903    esac
4904else
4905  enable_fast_install=yes
4906fi;
4907
4908echo "$as_me:$LINENO: checking host system type" >&5
4909echo $ECHO_N "checking host system type... $ECHO_C" >&6
4910if test "${ac_cv_host+set}" = set; then
4911  echo $ECHO_N "(cached) $ECHO_C" >&6
4912else
4913  ac_cv_host_alias=$host_alias
4914test -z "$ac_cv_host_alias" &&
4915  ac_cv_host_alias=$ac_cv_build_alias
4916ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4917  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4918echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4919   { (exit 1); exit 1; }; }
4920
4921fi
4922echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4923echo "${ECHO_T}$ac_cv_host" >&6
4924host=$ac_cv_host
4925host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4926host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4927host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4928
4929
4930echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4931echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4932if test "${lt_cv_path_SED+set}" = set; then
4933  echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935  # Loop through the user's path and test for sed and gsed.
4936# Then use that list of sed's as ones to test for truncation.
4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940  IFS=$as_save_IFS
4941  test -z "$as_dir" && as_dir=.
4942  for lt_ac_prog in sed gsed; do
4943    for ac_exec_ext in '' $ac_executable_extensions; do
4944      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4945        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4946      fi
4947    done
4948  done
4949done
4950lt_ac_max=0
4951lt_ac_count=0
4952# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4953# along with /bin/sed that truncates output.
4954for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4955  test ! -f $lt_ac_sed && continue
4956  cat /dev/null > conftest.in
4957  lt_ac_count=0
4958  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4959  # Check for GNU sed and select it if it is found.
4960  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4961    lt_cv_path_SED=$lt_ac_sed
4962    break
4963  fi
4964  while true; do
4965    cat conftest.in conftest.in >conftest.tmp
4966    mv conftest.tmp conftest.in
4967    cp conftest.in conftest.nl
4968    echo >>conftest.nl
4969    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4970    cmp -s conftest.out conftest.nl || break
4971    # 10000 chars as input seems more than enough
4972    test $lt_ac_count -gt 10 && break
4973    lt_ac_count=`expr $lt_ac_count + 1`
4974    if test $lt_ac_count -gt $lt_ac_max; then
4975      lt_ac_max=$lt_ac_count
4976      lt_cv_path_SED=$lt_ac_sed
4977    fi
4978  done
4979done
4980
4981fi
4982
4983SED=$lt_cv_path_SED
4984echo "$as_me:$LINENO: result: $SED" >&5
4985echo "${ECHO_T}$SED" >&6
4986
4987
4988# Check whether --with-gnu-ld or --without-gnu-ld was given.
4989if test "${with_gnu_ld+set}" = set; then
4990  withval="$with_gnu_ld"
4991  test "$withval" = no || with_gnu_ld=yes
4992else
4993  with_gnu_ld=no
4994fi;
4995ac_prog=ld
4996if test "$GCC" = yes; then
4997  # Check if gcc -print-prog-name=ld gives a path.
4998  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4999echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5000  case $host in
5001  *-*-mingw*)
5002    # gcc leaves a trailing carriage return which upsets mingw
5003    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5004  *)
5005    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5006  esac
5007  case $ac_prog in
5008    # Accept absolute paths.
5009    [\\/]* | ?:[\\/]*)
5010      re_direlt='/[^/][^/]*/\.\./'
5011      # Canonicalize the pathname of ld
5012      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5013      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5014        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5015      done
5016      test -z "$LD" && LD="$ac_prog"
5017      ;;
5018  "")
5019    # If it fails, then pretend we aren't using GCC.
5020    ac_prog=ld
5021    ;;
5022  *)
5023    # If it is relative, then search for the first ld in PATH.
5024    with_gnu_ld=unknown
5025    ;;
5026  esac
5027elif test "$with_gnu_ld" = yes; then
5028  echo "$as_me:$LINENO: checking for GNU ld" >&5
5029echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5030else
5031  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5032echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5033fi
5034if test "${lt_cv_path_LD+set}" = set; then
5035  echo $ECHO_N "(cached) $ECHO_C" >&6
5036else
5037  if test -z "$LD"; then
5038  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5039  for ac_dir in $PATH; do
5040    IFS="$lt_save_ifs"
5041    test -z "$ac_dir" && ac_dir=.
5042    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5043      lt_cv_path_LD="$ac_dir/$ac_prog"
5044      # Check to see if the program is GNU ld.  I'd rather use --version,
5045      # but apparently some variants of GNU ld only accept -v.
5046      # Break only if it was the GNU/non-GNU ld that we prefer.
5047      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5048      *GNU* | *'with BFD'*)
5049        test "$with_gnu_ld" != no && break
5050        ;;
5051      *)
5052        test "$with_gnu_ld" != yes && break
5053        ;;
5054      esac
5055    fi
5056  done
5057  IFS="$lt_save_ifs"
5058else
5059  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5060fi
5061fi
5062
5063LD="$lt_cv_path_LD"
5064if test -n "$LD"; then
5065  echo "$as_me:$LINENO: result: $LD" >&5
5066echo "${ECHO_T}$LD" >&6
5067else
5068  echo "$as_me:$LINENO: result: no" >&5
5069echo "${ECHO_T}no" >&6
5070fi
5071test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5072echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5073   { (exit 1); exit 1; }; }
5074echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5075echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5076if test "${lt_cv_prog_gnu_ld+set}" = set; then
5077  echo $ECHO_N "(cached) $ECHO_C" >&6
5078else
5079  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5080case `$LD -v 2>&1 </dev/null` in
5081*GNU* | *'with BFD'*)
5082  lt_cv_prog_gnu_ld=yes
5083  ;;
5084*)
5085  lt_cv_prog_gnu_ld=no
5086  ;;
5087esac
5088fi
5089echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5090echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5091with_gnu_ld=$lt_cv_prog_gnu_ld
5092
5093
5094echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5095echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5096if test "${lt_cv_ld_reload_flag+set}" = set; then
5097  echo $ECHO_N "(cached) $ECHO_C" >&6
5098else
5099  lt_cv_ld_reload_flag='-r'
5100fi
5101echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5102echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5103reload_flag=$lt_cv_ld_reload_flag
5104case $reload_flag in
5105"" | " "*) ;;
5106*) reload_flag=" $reload_flag" ;;
5107esac
5108reload_cmds='$LD$reload_flag -o $output$reload_objs'
5109case $host_os in
5110  darwin*)
5111    if test "$GCC" = yes; then
5112      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5113    else
5114      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5115    fi
5116    ;;
5117esac
5118
5119echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5120echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5121if test "${lt_cv_path_NM+set}" = set; then
5122  echo $ECHO_N "(cached) $ECHO_C" >&6
5123else
5124  if test -n "$NM"; then
5125  # Let the user override the test.
5126  lt_cv_path_NM="$NM"
5127else
5128  lt_nm_to_check="${ac_tool_prefix}nm"
5129  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5130    lt_nm_to_check="$lt_nm_to_check nm"
5131  fi
5132  for lt_tmp_nm in $lt_nm_to_check; do
5133    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5134    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5135      IFS="$lt_save_ifs"
5136      test -z "$ac_dir" && ac_dir=.
5137      tmp_nm="$ac_dir/$lt_tmp_nm"
5138      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5139        # Check to see if the nm accepts a BSD-compat flag.
5140        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5141        #   nm: unknown option "B" ignored
5142        # Tru64's nm complains that /dev/null is an invalid object file
5143        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5144        */dev/null* | *'Invalid file or object type'*)
5145          lt_cv_path_NM="$tmp_nm -B"
5146          break
5147          ;;
5148        *)
5149          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5150          */dev/null*)
5151            lt_cv_path_NM="$tmp_nm -p"
5152            break
5153            ;;
5154          *)
5155            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5156            continue # so that we can try to find one that supports BSD flags
5157            ;;
5158          esac
5159          ;;
5160        esac
5161      fi
5162    done
5163    IFS="$lt_save_ifs"
5164  done
5165  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5166fi
5167fi
5168echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5169echo "${ECHO_T}$lt_cv_path_NM" >&6
5170NM="$lt_cv_path_NM"
5171
5172echo "$as_me:$LINENO: checking whether ln -s works" >&5
5173echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5174LN_S=$as_ln_s
5175if test "$LN_S" = "ln -s"; then
5176  echo "$as_me:$LINENO: result: yes" >&5
5177echo "${ECHO_T}yes" >&6
5178else
5179  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5180echo "${ECHO_T}no, using $LN_S" >&6
5181fi
5182
5183echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5184echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5185if test "${lt_cv_deplibs_check_method+set}" = set; then
5186  echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188  lt_cv_file_magic_cmd='$MAGIC_CMD'
5189lt_cv_file_magic_test_file=
5190lt_cv_deplibs_check_method='unknown'
5191# Need to set the preceding variable on all platforms that support
5192# interlibrary dependencies.
5193# 'none' -- dependencies not supported.
5194# `unknown' -- same as none, but documents that we really don't know.
5195# 'pass_all' -- all dependencies passed with no checks.
5196# 'test_compile' -- check by making test program.
5197# 'file_magic [[regex]]' -- check by looking for files in library path
5198# which responds to the $file_magic_cmd with a given extended regex.
5199# If you have `file' or equivalent on your system and you're not sure
5200# whether `pass_all' will *always* work, you probably want this one.
5201
5202case $host_os in
5203aix4* | aix5*)
5204  lt_cv_deplibs_check_method=pass_all
5205  ;;
5206
5207beos*)
5208  lt_cv_deplibs_check_method=pass_all
5209  ;;
5210
5211bsdi[45]*)
5212  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5213  lt_cv_file_magic_cmd='/usr/bin/file -L'
5214  lt_cv_file_magic_test_file=/shlib/libc.so
5215  ;;
5216
5217cygwin*)
5218  # func_win32_libid is a shell function defined in ltmain.sh
5219  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5220  lt_cv_file_magic_cmd='func_win32_libid'
5221  ;;
5222
5223mingw* | pw32*)
5224  # Base MSYS/MinGW do not provide the 'file' command needed by
5225  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5226  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5227  lt_cv_file_magic_cmd='$OBJDUMP -f'
5228  ;;
5229
5230darwin* | rhapsody*)
5231  lt_cv_deplibs_check_method=pass_all
5232  ;;
5233
5234freebsd* | kfreebsd*-gnu | dragonfly*)
5235  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5236    case $host_cpu in
5237    i*86 )
5238      # Not sure whether the presence of OpenBSD here was a mistake.
5239      # Let's accept both of them until this is cleared up.
5240      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5241      lt_cv_file_magic_cmd=/usr/bin/file
5242      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5243      ;;
5244    esac
5245  else
5246    lt_cv_deplibs_check_method=pass_all
5247  fi
5248  ;;
5249
5250gnu*)
5251  lt_cv_deplibs_check_method=pass_all
5252  ;;
5253
5254hpux10.20* | hpux11*)
5255  lt_cv_file_magic_cmd=/usr/bin/file
5256  case $host_cpu in
5257  ia64*)
5258    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5259    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5260    ;;
5261  hppa*64*)
5262    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]'
5263    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5264    ;;
5265  *)
5266    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5267    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5268    ;;
5269  esac
5270  ;;
5271
5272interix3*)
5273  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5274  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5275  ;;
5276
5277irix5* | irix6* | nonstopux*)
5278  case $LD in
5279  *-32|*"-32 ") libmagic=32-bit;;
5280  *-n32|*"-n32 ") libmagic=N32;;
5281  *-64|*"-64 ") libmagic=64-bit;;
5282  *) libmagic=never-match;;
5283  esac
5284  lt_cv_deplibs_check_method=pass_all
5285  ;;
5286
5287# This must be Linux ELF.
5288linux*)
5289  lt_cv_deplibs_check_method=pass_all
5290  ;;
5291
5292netbsd*)
5293  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5294    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5295  else
5296    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5297  fi
5298  ;;
5299
5300newos6*)
5301  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5302  lt_cv_file_magic_cmd=/usr/bin/file
5303  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5304  ;;
5305
5306nto-qnx*)
5307  lt_cv_deplibs_check_method=unknown
5308  ;;
5309
5310openbsd*)
5311  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5312    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5313  else
5314    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5315  fi
5316  ;;
5317
5318osf3* | osf4* | osf5*)
5319  lt_cv_deplibs_check_method=pass_all
5320  ;;
5321
5322solaris*)
5323  lt_cv_deplibs_check_method=pass_all
5324  ;;
5325
5326sysv4 | sysv4.3*)
5327  case $host_vendor in
5328  motorola)
5329    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]'
5330    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5331    ;;
5332  ncr)
5333    lt_cv_deplibs_check_method=pass_all
5334    ;;
5335  sequent)
5336    lt_cv_file_magic_cmd='/bin/file'
5337    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5338    ;;
5339  sni)
5340    lt_cv_file_magic_cmd='/bin/file'
5341    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5342    lt_cv_file_magic_test_file=/lib/libc.so
5343    ;;
5344  siemens)
5345    lt_cv_deplibs_check_method=pass_all
5346    ;;
5347  pc)
5348    lt_cv_deplibs_check_method=pass_all
5349    ;;
5350  esac
5351  ;;
5352
5353sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5354  lt_cv_deplibs_check_method=pass_all
5355  ;;
5356esac
5357
5358fi
5359echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5360echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5361file_magic_cmd=$lt_cv_file_magic_cmd
5362deplibs_check_method=$lt_cv_deplibs_check_method
5363test -z "$deplibs_check_method" && deplibs_check_method=unknown
5364
5365
5366
5367
5368# If no C compiler was specified, use CC.
5369LTCC=${LTCC-"$CC"}
5370
5371# If no C compiler flags were specified, use CFLAGS.
5372LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5373
5374# Allow CC to be a program name with arguments.
5375compiler=$CC
5376
5377# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5378if test "${enable_libtool_lock+set}" = set; then
5379  enableval="$enable_libtool_lock"
5380
5381fi;
5382test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5383
5384# Some flags need to be propagated to the compiler or linker for good
5385# libtool support.
5386case $host in
5387ia64-*-hpux*)
5388  # Find out which ABI we are using.
5389  echo 'int i;' > conftest.$ac_ext
5390  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5391  (eval $ac_compile) 2>&5
5392  ac_status=$?
5393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394  (exit $ac_status); }; then
5395    case `/usr/bin/file conftest.$ac_objext` in
5396    *ELF-32*)
5397      HPUX_IA64_MODE="32"
5398      ;;
5399    *ELF-64*)
5400      HPUX_IA64_MODE="64"
5401      ;;
5402    esac
5403  fi
5404  rm -rf conftest*
5405  ;;
5406*-*-irix6*)
5407  # Find out which ABI we are using.
5408  echo '#line 5408 "configure"' > conftest.$ac_ext
5409  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5410  (eval $ac_compile) 2>&5
5411  ac_status=$?
5412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413  (exit $ac_status); }; then
5414   if test "$lt_cv_prog_gnu_ld" = yes; then
5415    case `/usr/bin/file conftest.$ac_objext` in
5416    *32-bit*)
5417      LD="${LD-ld} -melf32bsmip"
5418      ;;
5419    *N32*)
5420      LD="${LD-ld} -melf32bmipn32"
5421      ;;
5422    *64-bit*)
5423      LD="${LD-ld} -melf64bmip"
5424      ;;
5425    esac
5426   else
5427    case `/usr/bin/file conftest.$ac_objext` in
5428    *32-bit*)
5429      LD="${LD-ld} -32"
5430      ;;
5431    *N32*)
5432      LD="${LD-ld} -n32"
5433      ;;
5434    *64-bit*)
5435      LD="${LD-ld} -64"
5436      ;;
5437    esac
5438   fi
5439  fi
5440  rm -rf conftest*
5441  ;;
5442
5443x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5444  # Find out which ABI we are using.
5445  echo 'int i;' > conftest.$ac_ext
5446  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447  (eval $ac_compile) 2>&5
5448  ac_status=$?
5449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450  (exit $ac_status); }; then
5451    case `/usr/bin/file conftest.o` in
5452    *32-bit*)
5453      case $host in
5454        x86_64-*linux*)
5455          LD="${LD-ld} -m elf_i386"
5456          ;;
5457        ppc64-*linux*|powerpc64-*linux*)
5458          LD="${LD-ld} -m elf32ppclinux"
5459          ;;
5460        s390x-*linux*)
5461          LD="${LD-ld} -m elf_s390"
5462          ;;
5463        sparc64-*linux*)
5464          LD="${LD-ld} -m elf32_sparc"
5465          ;;
5466      esac
5467      ;;
5468    *64-bit*)
5469      case $host in
5470        x86_64-*linux*)
5471          LD="${LD-ld} -m elf_x86_64"
5472          ;;
5473        ppc*-*linux*|powerpc*-*linux*)
5474          LD="${LD-ld} -m elf64ppc"
5475          ;;
5476        s390*-*linux*)
5477          LD="${LD-ld} -m elf64_s390"
5478          ;;
5479        sparc*-*linux*)
5480          LD="${LD-ld} -m elf64_sparc"
5481          ;;
5482      esac
5483      ;;
5484    esac
5485  fi
5486  rm -rf conftest*
5487  ;;
5488
5489*-*-sco3.2v5*)
5490  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5491  SAVE_CFLAGS="$CFLAGS"
5492  CFLAGS="$CFLAGS -belf"
5493  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5494echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5495if test "${lt_cv_cc_needs_belf+set}" = set; then
5496  echo $ECHO_N "(cached) $ECHO_C" >&6
5497else
5498  ac_ext=c
5499ac_cpp='$CPP $CPPFLAGS'
5500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5502ac_compiler_gnu=$ac_cv_c_compiler_gnu
5503
5504     cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h.  */
5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h.  */
5510
5511int
5512main ()
5513{
5514
5515  ;
5516  return 0;
5517}
5518_ACEOF
5519rm -f conftest.$ac_objext conftest$ac_exeext
5520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521  (eval $ac_link) 2>conftest.er1
5522  ac_status=$?
5523  grep -v '^ *+' conftest.er1 >conftest.err
5524  rm -f conftest.er1
5525  cat conftest.err >&5
5526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527  (exit $ac_status); } &&
5528         { ac_try='test -z "$ac_c_werror_flag"
5529                         || test ! -s conftest.err'
5530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531  (eval $ac_try) 2>&5
5532  ac_status=$?
5533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534  (exit $ac_status); }; } &&
5535         { ac_try='test -s conftest$ac_exeext'
5536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537  (eval $ac_try) 2>&5
5538  ac_status=$?
5539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540  (exit $ac_status); }; }; then
5541  lt_cv_cc_needs_belf=yes
5542else
5543  echo "$as_me: failed program was:" >&5
5544sed 's/^/| /' conftest.$ac_ext >&5
5545
5546lt_cv_cc_needs_belf=no
5547fi
5548rm -f conftest.err conftest.$ac_objext \
5549      conftest$ac_exeext conftest.$ac_ext
5550     ac_ext=c
5551ac_cpp='$CPP $CPPFLAGS'
5552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555
5556fi
5557echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5558echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5559  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5560    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5561    CFLAGS="$SAVE_CFLAGS"
5562  fi
5563  ;;
5564sparc*-*solaris*)
5565  # Find out which ABI we are using.
5566  echo 'int i;' > conftest.$ac_ext
5567  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568  (eval $ac_compile) 2>&5
5569  ac_status=$?
5570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571  (exit $ac_status); }; then
5572    case `/usr/bin/file conftest.o` in
5573    *64-bit*)
5574      case $lt_cv_prog_gnu_ld in
5575      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5576      *)    LD="${LD-ld} -64" ;;
5577      esac
5578      ;;
5579    esac
5580  fi
5581  rm -rf conftest*
5582  ;;
5583
5584
5585esac
5586
5587need_locks="$enable_libtool_lock"
5588
5589
5590ac_ext=c
5591ac_cpp='$CPP $CPPFLAGS'
5592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594ac_compiler_gnu=$ac_cv_c_compiler_gnu
5595echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5596echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5597# On Suns, sometimes $CPP names a directory.
5598if test -n "$CPP" && test -d "$CPP"; then
5599  CPP=
5600fi
5601if test -z "$CPP"; then
5602  if test "${ac_cv_prog_CPP+set}" = set; then
5603  echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605      # Double quotes because CPP needs to be expanded
5606    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5607    do
5608      ac_preproc_ok=false
5609for ac_c_preproc_warn_flag in '' yes
5610do
5611  # Use a header file that comes with gcc, so configuring glibc
5612  # with a fresh cross-compiler works.
5613  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5614  # <limits.h> exists even on freestanding compilers.
5615  # On the NeXT, cc -E runs the code through the compiler's parser,
5616  # not just through cpp. "Syntax error" is here to catch this case.
5617  cat >conftest.$ac_ext <<_ACEOF
5618/* confdefs.h.  */
5619_ACEOF
5620cat confdefs.h >>conftest.$ac_ext
5621cat >>conftest.$ac_ext <<_ACEOF
5622/* end confdefs.h.  */
5623#ifdef __STDC__
5624# include <limits.h>
5625#else
5626# include <assert.h>
5627#endif
5628                     Syntax error
5629_ACEOF
5630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5631  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5632  ac_status=$?
5633  grep -v '^ *+' conftest.er1 >conftest.err
5634  rm -f conftest.er1
5635  cat conftest.err >&5
5636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637  (exit $ac_status); } >/dev/null; then
5638  if test -s conftest.err; then
5639    ac_cpp_err=$ac_c_preproc_warn_flag
5640    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5641  else
5642    ac_cpp_err=
5643  fi
5644else
5645  ac_cpp_err=yes
5646fi
5647if test -z "$ac_cpp_err"; then
5648  :
5649else
5650  echo "$as_me: failed program was:" >&5
5651sed 's/^/| /' conftest.$ac_ext >&5
5652
5653  # Broken: fails on valid input.
5654continue
5655fi
5656rm -f conftest.err conftest.$ac_ext
5657
5658  # OK, works on sane cases.  Now check whether non-existent headers
5659  # can be detected and how.
5660  cat >conftest.$ac_ext <<_ACEOF
5661/* confdefs.h.  */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h.  */
5666#include <ac_nonexistent.h>
5667_ACEOF
5668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5669  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5670  ac_status=$?
5671  grep -v '^ *+' conftest.er1 >conftest.err
5672  rm -f conftest.er1
5673  cat conftest.err >&5
5674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675  (exit $ac_status); } >/dev/null; then
5676  if test -s conftest.err; then
5677    ac_cpp_err=$ac_c_preproc_warn_flag
5678    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5679  else
5680    ac_cpp_err=
5681  fi
5682else
5683  ac_cpp_err=yes
5684fi
5685if test -z "$ac_cpp_err"; then
5686  # Broken: success on invalid input.
5687continue
5688else
5689  echo "$as_me: failed program was:" >&5
5690sed 's/^/| /' conftest.$ac_ext >&5
5691
5692  # Passes both tests.
5693ac_preproc_ok=:
5694break
5695fi
5696rm -f conftest.err conftest.$ac_ext
5697
5698done
5699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5700rm -f conftest.err conftest.$ac_ext
5701if $ac_preproc_ok; then
5702  break
5703fi
5704
5705    done
5706    ac_cv_prog_CPP=$CPP
5707
5708fi
5709  CPP=$ac_cv_prog_CPP
5710else
5711  ac_cv_prog_CPP=$CPP
5712fi
5713echo "$as_me:$LINENO: result: $CPP" >&5
5714echo "${ECHO_T}$CPP" >&6
5715ac_preproc_ok=false
5716for ac_c_preproc_warn_flag in '' yes
5717do
5718  # Use a header file that comes with gcc, so configuring glibc
5719  # with a fresh cross-compiler works.
5720  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5721  # <limits.h> exists even on freestanding compilers.
5722  # On the NeXT, cc -E runs the code through the compiler's parser,
5723  # not just through cpp. "Syntax error" is here to catch this case.
5724  cat >conftest.$ac_ext <<_ACEOF
5725/* confdefs.h.  */
5726_ACEOF
5727cat confdefs.h >>conftest.$ac_ext
5728cat >>conftest.$ac_ext <<_ACEOF
5729/* end confdefs.h.  */
5730#ifdef __STDC__
5731# include <limits.h>
5732#else
5733# include <assert.h>
5734#endif
5735                     Syntax error
5736_ACEOF
5737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5738  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5739  ac_status=$?
5740  grep -v '^ *+' conftest.er1 >conftest.err
5741  rm -f conftest.er1
5742  cat conftest.err >&5
5743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744  (exit $ac_status); } >/dev/null; then
5745  if test -s conftest.err; then
5746    ac_cpp_err=$ac_c_preproc_warn_flag
5747    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5748  else
5749    ac_cpp_err=
5750  fi
5751else
5752  ac_cpp_err=yes
5753fi
5754if test -z "$ac_cpp_err"; then
5755  :
5756else
5757  echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760  # Broken: fails on valid input.
5761continue
5762fi
5763rm -f conftest.err conftest.$ac_ext
5764
5765  # OK, works on sane cases.  Now check whether non-existent headers
5766  # can be detected and how.
5767  cat >conftest.$ac_ext <<_ACEOF
5768/* confdefs.h.  */
5769_ACEOF
5770cat confdefs.h >>conftest.$ac_ext
5771cat >>conftest.$ac_ext <<_ACEOF
5772/* end confdefs.h.  */
5773#include <ac_nonexistent.h>
5774_ACEOF
5775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5776  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5777  ac_status=$?
5778  grep -v '^ *+' conftest.er1 >conftest.err
5779  rm -f conftest.er1
5780  cat conftest.err >&5
5781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782  (exit $ac_status); } >/dev/null; then
5783  if test -s conftest.err; then
5784    ac_cpp_err=$ac_c_preproc_warn_flag
5785    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5786  else
5787    ac_cpp_err=
5788  fi
5789else
5790  ac_cpp_err=yes
5791fi
5792if test -z "$ac_cpp_err"; then
5793  # Broken: success on invalid input.
5794continue
5795else
5796  echo "$as_me: failed program was:" >&5
5797sed 's/^/| /' conftest.$ac_ext >&5
5798
5799  # Passes both tests.
5800ac_preproc_ok=:
5801break
5802fi
5803rm -f conftest.err conftest.$ac_ext
5804
5805done
5806# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5807rm -f conftest.err conftest.$ac_ext
5808if $ac_preproc_ok; then
5809  :
5810else
5811  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5812See \`config.log' for more details." >&5
5813echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5814See \`config.log' for more details." >&2;}
5815   { (exit 1); exit 1; }; }
5816fi
5817
5818ac_ext=c
5819ac_cpp='$CPP $CPPFLAGS'
5820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822ac_compiler_gnu=$ac_cv_c_compiler_gnu
5823
5824
5825echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5826echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5827if test "${ac_cv_header_stdc+set}" = set; then
5828  echo $ECHO_N "(cached) $ECHO_C" >&6
5829else
5830  cat >conftest.$ac_ext <<_ACEOF
5831/* confdefs.h.  */
5832_ACEOF
5833cat confdefs.h >>conftest.$ac_ext
5834cat >>conftest.$ac_ext <<_ACEOF
5835/* end confdefs.h.  */
5836#include <stdlib.h>
5837#include <stdarg.h>
5838#include <string.h>
5839#include <float.h>
5840
5841int
5842main ()
5843{
5844
5845  ;
5846  return 0;
5847}
5848_ACEOF
5849rm -f conftest.$ac_objext
5850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5851  (eval $ac_compile) 2>conftest.er1
5852  ac_status=$?
5853  grep -v '^ *+' conftest.er1 >conftest.err
5854  rm -f conftest.er1
5855  cat conftest.err >&5
5856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857  (exit $ac_status); } &&
5858         { ac_try='test -z "$ac_c_werror_flag"
5859                         || test ! -s conftest.err'
5860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861  (eval $ac_try) 2>&5
5862  ac_status=$?
5863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864  (exit $ac_status); }; } &&
5865         { ac_try='test -s conftest.$ac_objext'
5866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867  (eval $ac_try) 2>&5
5868  ac_status=$?
5869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870  (exit $ac_status); }; }; then
5871  ac_cv_header_stdc=yes
5872else
5873  echo "$as_me: failed program was:" >&5
5874sed 's/^/| /' conftest.$ac_ext >&5
5875
5876ac_cv_header_stdc=no
5877fi
5878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5879
5880if test $ac_cv_header_stdc = yes; then
5881  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5882  cat >conftest.$ac_ext <<_ACEOF
5883/* confdefs.h.  */
5884_ACEOF
5885cat confdefs.h >>conftest.$ac_ext
5886cat >>conftest.$ac_ext <<_ACEOF
5887/* end confdefs.h.  */
5888#include <string.h>
5889
5890_ACEOF
5891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5892  $EGREP "memchr" >/dev/null 2>&1; then
5893  :
5894else
5895  ac_cv_header_stdc=no
5896fi
5897rm -f conftest*
5898
5899fi
5900
5901if test $ac_cv_header_stdc = yes; then
5902  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5903  cat >conftest.$ac_ext <<_ACEOF
5904/* confdefs.h.  */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h.  */
5909#include <stdlib.h>
5910
5911_ACEOF
5912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5913  $EGREP "free" >/dev/null 2>&1; then
5914  :
5915else
5916  ac_cv_header_stdc=no
5917fi
5918rm -f conftest*
5919
5920fi
5921
5922if test $ac_cv_header_stdc = yes; then
5923  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5924  if test "$cross_compiling" = yes; then
5925  :
5926else
5927  cat >conftest.$ac_ext <<_ACEOF
5928/* confdefs.h.  */
5929_ACEOF
5930cat confdefs.h >>conftest.$ac_ext
5931cat >>conftest.$ac_ext <<_ACEOF
5932/* end confdefs.h.  */
5933#include <ctype.h>
5934#if ((' ' & 0x0FF) == 0x020)
5935# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5936# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5937#else
5938# define ISLOWER(c) \
5939                   (('a' <= (c) && (c) <= 'i') \
5940                     || ('j' <= (c) && (c) <= 'r') \
5941                     || ('s' <= (c) && (c) <= 'z'))
5942# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5943#endif
5944
5945#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5946int
5947main ()
5948{
5949  int i;
5950  for (i = 0; i < 256; i++)
5951    if (XOR (islower (i), ISLOWER (i))
5952        || toupper (i) != TOUPPER (i))
5953      exit(2);
5954  exit (0);
5955}
5956_ACEOF
5957rm -f conftest$ac_exeext
5958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959  (eval $ac_link) 2>&5
5960  ac_status=$?
5961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964  (eval $ac_try) 2>&5
5965  ac_status=$?
5966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967  (exit $ac_status); }; }; then
5968  :
5969else
5970  echo "$as_me: program exited with status $ac_status" >&5
5971echo "$as_me: failed program was:" >&5
5972sed 's/^/| /' conftest.$ac_ext >&5
5973
5974( exit $ac_status )
5975ac_cv_header_stdc=no
5976fi
5977rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5978fi
5979fi
5980fi
5981echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5982echo "${ECHO_T}$ac_cv_header_stdc" >&6
5983if test $ac_cv_header_stdc = yes; then
5984
5985cat >>confdefs.h <<\_ACEOF
5986#define STDC_HEADERS 1
5987_ACEOF
5988
5989fi
5990
5991# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6002                  inttypes.h stdint.h unistd.h
6003do
6004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6005echo "$as_me:$LINENO: checking for $ac_header" >&5
6006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6007if eval "test \"\${$as_ac_Header+set}\" = set"; then
6008  echo $ECHO_N "(cached) $ECHO_C" >&6
6009else
6010  cat >conftest.$ac_ext <<_ACEOF
6011/* confdefs.h.  */
6012_ACEOF
6013cat confdefs.h >>conftest.$ac_ext
6014cat >>conftest.$ac_ext <<_ACEOF
6015/* end confdefs.h.  */
6016$ac_includes_default
6017
6018#include <$ac_header>
6019_ACEOF
6020rm -f conftest.$ac_objext
6021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022  (eval $ac_compile) 2>conftest.er1
6023  ac_status=$?
6024  grep -v '^ *+' conftest.er1 >conftest.err
6025  rm -f conftest.er1
6026  cat conftest.err >&5
6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028  (exit $ac_status); } &&
6029         { ac_try='test -z "$ac_c_werror_flag"
6030                         || test ! -s conftest.err'
6031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032  (eval $ac_try) 2>&5
6033  ac_status=$?
6034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035  (exit $ac_status); }; } &&
6036         { ac_try='test -s conftest.$ac_objext'
6037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038  (eval $ac_try) 2>&5
6039  ac_status=$?
6040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041  (exit $ac_status); }; }; then
6042  eval "$as_ac_Header=yes"
6043else
6044  echo "$as_me: failed program was:" >&5
6045sed 's/^/| /' conftest.$ac_ext >&5
6046
6047eval "$as_ac_Header=no"
6048fi
6049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6050fi
6051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6053if test `eval echo '${'$as_ac_Header'}'` = yes; then
6054  cat >>confdefs.h <<_ACEOF
6055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6056_ACEOF
6057
6058fi
6059
6060done
6061
6062
6063
6064for ac_header in dlfcn.h
6065do
6066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6067if eval "test \"\${$as_ac_Header+set}\" = set"; then
6068  echo "$as_me:$LINENO: checking for $ac_header" >&5
6069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6070if eval "test \"\${$as_ac_Header+set}\" = set"; then
6071  echo $ECHO_N "(cached) $ECHO_C" >&6
6072fi
6073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6075else
6076  # Is the header compilable?
6077echo "$as_me:$LINENO: checking $ac_header usability" >&5
6078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6079cat >conftest.$ac_ext <<_ACEOF
6080/* confdefs.h.  */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h.  */
6085$ac_includes_default
6086#include <$ac_header>
6087_ACEOF
6088rm -f conftest.$ac_objext
6089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090  (eval $ac_compile) 2>conftest.er1
6091  ac_status=$?
6092  grep -v '^ *+' conftest.er1 >conftest.err
6093  rm -f conftest.er1
6094  cat conftest.err >&5
6095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096  (exit $ac_status); } &&
6097         { ac_try='test -z "$ac_c_werror_flag"
6098                         || test ! -s conftest.err'
6099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100  (eval $ac_try) 2>&5
6101  ac_status=$?
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); }; } &&
6104         { ac_try='test -s conftest.$ac_objext'
6105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106  (eval $ac_try) 2>&5
6107  ac_status=$?
6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); }; }; then
6110  ac_header_compiler=yes
6111else
6112  echo "$as_me: failed program was:" >&5
6113sed 's/^/| /' conftest.$ac_ext >&5
6114
6115ac_header_compiler=no
6116fi
6117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6119echo "${ECHO_T}$ac_header_compiler" >&6
6120
6121# Is the header present?
6122echo "$as_me:$LINENO: checking $ac_header presence" >&5
6123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6124cat >conftest.$ac_ext <<_ACEOF
6125/* confdefs.h.  */
6126_ACEOF
6127cat confdefs.h >>conftest.$ac_ext
6128cat >>conftest.$ac_ext <<_ACEOF
6129/* end confdefs.h.  */
6130#include <$ac_header>
6131_ACEOF
6132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6133  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6134  ac_status=$?
6135  grep -v '^ *+' conftest.er1 >conftest.err
6136  rm -f conftest.er1
6137  cat conftest.err >&5
6138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139  (exit $ac_status); } >/dev/null; then
6140  if test -s conftest.err; then
6141    ac_cpp_err=$ac_c_preproc_warn_flag
6142    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6143  else
6144    ac_cpp_err=
6145  fi
6146else
6147  ac_cpp_err=yes
6148fi
6149if test -z "$ac_cpp_err"; then
6150  ac_header_preproc=yes
6151else
6152  echo "$as_me: failed program was:" >&5
6153sed 's/^/| /' conftest.$ac_ext >&5
6154
6155  ac_header_preproc=no
6156fi
6157rm -f conftest.err conftest.$ac_ext
6158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6159echo "${ECHO_T}$ac_header_preproc" >&6
6160
6161# So?  What about this header?
6162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6163  yes:no: )
6164    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6166    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6168    ac_header_preproc=yes
6169    ;;
6170  no:yes:* )
6171    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6173    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6174echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6175    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6177    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6178echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6179    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6181    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6183    (
6184      cat <<\_ASBOX
6185## --------------------------------------------------------------- ##
6186## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6187## --------------------------------------------------------------- ##
6188_ASBOX
6189    ) |
6190      sed "s/^/$as_me: WARNING:     /" >&2
6191    ;;
6192esac
6193echo "$as_me:$LINENO: checking for $ac_header" >&5
6194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6195if eval "test \"\${$as_ac_Header+set}\" = set"; then
6196  echo $ECHO_N "(cached) $ECHO_C" >&6
6197else
6198  eval "$as_ac_Header=\$ac_header_preproc"
6199fi
6200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6202
6203fi
6204if test `eval echo '${'$as_ac_Header'}'` = yes; then
6205  cat >>confdefs.h <<_ACEOF
6206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6207_ACEOF
6208
6209fi
6210
6211done
6212
6213ac_ext=cc
6214ac_cpp='$CXXCPP $CPPFLAGS'
6215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6218if test -n "$ac_tool_prefix"; then
6219  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6220  do
6221    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6222set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6223echo "$as_me:$LINENO: checking for $ac_word" >&5
6224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6225if test "${ac_cv_prog_CXX+set}" = set; then
6226  echo $ECHO_N "(cached) $ECHO_C" >&6
6227else
6228  if test -n "$CXX"; then
6229  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6230else
6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234  IFS=$as_save_IFS
6235  test -z "$as_dir" && as_dir=.
6236  for ac_exec_ext in '' $ac_executable_extensions; do
6237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240    break 2
6241  fi
6242done
6243done
6244
6245fi
6246fi
6247CXX=$ac_cv_prog_CXX
6248if test -n "$CXX"; then
6249  echo "$as_me:$LINENO: result: $CXX" >&5
6250echo "${ECHO_T}$CXX" >&6
6251else
6252  echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6
6254fi
6255
6256    test -n "$CXX" && break
6257  done
6258fi
6259if test -z "$CXX"; then
6260  ac_ct_CXX=$CXX
6261  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6262do
6263  # Extract the first word of "$ac_prog", so it can be a program name with args.
6264set dummy $ac_prog; ac_word=$2
6265echo "$as_me:$LINENO: checking for $ac_word" >&5
6266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6267if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6268  echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270  if test -n "$ac_ct_CXX"; then
6271  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276  IFS=$as_save_IFS
6277  test -z "$as_dir" && as_dir=.
6278  for ac_exec_ext in '' $ac_executable_extensions; do
6279  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280    ac_cv_prog_ac_ct_CXX="$ac_prog"
6281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282    break 2
6283  fi
6284done
6285done
6286
6287fi
6288fi
6289ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6290if test -n "$ac_ct_CXX"; then
6291  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6292echo "${ECHO_T}$ac_ct_CXX" >&6
6293else
6294  echo "$as_me:$LINENO: result: no" >&5
6295echo "${ECHO_T}no" >&6
6296fi
6297
6298  test -n "$ac_ct_CXX" && break
6299done
6300test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6301
6302  CXX=$ac_ct_CXX
6303fi
6304
6305
6306# Provide some information about the compiler.
6307echo "$as_me:$LINENO:" \
6308     "checking for C++ compiler version" >&5
6309ac_compiler=`set X $ac_compile; echo $2`
6310{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6311  (eval $ac_compiler --version </dev/null >&5) 2>&5
6312  ac_status=$?
6313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314  (exit $ac_status); }
6315{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6316  (eval $ac_compiler -v </dev/null >&5) 2>&5
6317  ac_status=$?
6318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319  (exit $ac_status); }
6320{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6321  (eval $ac_compiler -V </dev/null >&5) 2>&5
6322  ac_status=$?
6323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324  (exit $ac_status); }
6325
6326echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6327echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6328if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6329  echo $ECHO_N "(cached) $ECHO_C" >&6
6330else
6331  cat >conftest.$ac_ext <<_ACEOF
6332/* confdefs.h.  */
6333_ACEOF
6334cat confdefs.h >>conftest.$ac_ext
6335cat >>conftest.$ac_ext <<_ACEOF
6336/* end confdefs.h.  */
6337
6338int
6339main ()
6340{
6341#ifndef __GNUC__
6342       choke me
6343#endif
6344
6345  ;
6346  return 0;
6347}
6348_ACEOF
6349rm -f conftest.$ac_objext
6350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6351  (eval $ac_compile) 2>conftest.er1
6352  ac_status=$?
6353  grep -v '^ *+' conftest.er1 >conftest.err
6354  rm -f conftest.er1
6355  cat conftest.err >&5
6356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357  (exit $ac_status); } &&
6358         { ac_try='test -z "$ac_cxx_werror_flag"
6359                         || test ! -s conftest.err'
6360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361  (eval $ac_try) 2>&5
6362  ac_status=$?
6363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364  (exit $ac_status); }; } &&
6365         { ac_try='test -s conftest.$ac_objext'
6366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367  (eval $ac_try) 2>&5
6368  ac_status=$?
6369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370  (exit $ac_status); }; }; then
6371  ac_compiler_gnu=yes
6372else
6373  echo "$as_me: failed program was:" >&5
6374sed 's/^/| /' conftest.$ac_ext >&5
6375
6376ac_compiler_gnu=no
6377fi
6378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6379ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6380
6381fi
6382echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6383echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6384GXX=`test $ac_compiler_gnu = yes && echo yes`
6385ac_test_CXXFLAGS=${CXXFLAGS+set}
6386ac_save_CXXFLAGS=$CXXFLAGS
6387CXXFLAGS="-g"
6388echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6389echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6390if test "${ac_cv_prog_cxx_g+set}" = set; then
6391  echo $ECHO_N "(cached) $ECHO_C" >&6
6392else
6393  cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h.  */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
6398/* end confdefs.h.  */
6399
6400int
6401main ()
6402{
6403
6404  ;
6405  return 0;
6406}
6407_ACEOF
6408rm -f conftest.$ac_objext
6409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410  (eval $ac_compile) 2>conftest.er1
6411  ac_status=$?
6412  grep -v '^ *+' conftest.er1 >conftest.err
6413  rm -f conftest.er1
6414  cat conftest.err >&5
6415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416  (exit $ac_status); } &&
6417         { ac_try='test -z "$ac_cxx_werror_flag"
6418                         || test ! -s conftest.err'
6419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420  (eval $ac_try) 2>&5
6421  ac_status=$?
6422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423  (exit $ac_status); }; } &&
6424         { ac_try='test -s conftest.$ac_objext'
6425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426  (eval $ac_try) 2>&5
6427  ac_status=$?
6428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429  (exit $ac_status); }; }; then
6430  ac_cv_prog_cxx_g=yes
6431else
6432  echo "$as_me: failed program was:" >&5
6433sed 's/^/| /' conftest.$ac_ext >&5
6434
6435ac_cv_prog_cxx_g=no
6436fi
6437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438fi
6439echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6440echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6441if test "$ac_test_CXXFLAGS" = set; then
6442  CXXFLAGS=$ac_save_CXXFLAGS
6443elif test $ac_cv_prog_cxx_g = yes; then
6444  if test "$GXX" = yes; then
6445    CXXFLAGS="-g -O2"
6446  else
6447    CXXFLAGS="-g"
6448  fi
6449else
6450  if test "$GXX" = yes; then
6451    CXXFLAGS="-O2"
6452  else
6453    CXXFLAGS=
6454  fi
6455fi
6456for ac_declaration in \
6457   '' \
6458   'extern "C" void std::exit (int) throw (); using std::exit;' \
6459   'extern "C" void std::exit (int); using std::exit;' \
6460   'extern "C" void exit (int) throw ();' \
6461   'extern "C" void exit (int);' \
6462   'void exit (int);'
6463do
6464  cat >conftest.$ac_ext <<_ACEOF
6465/* confdefs.h.  */
6466_ACEOF
6467cat confdefs.h >>conftest.$ac_ext
6468cat >>conftest.$ac_ext <<_ACEOF
6469/* end confdefs.h.  */
6470$ac_declaration
6471#include <stdlib.h>
6472int
6473main ()
6474{
6475exit (42);
6476  ;
6477  return 0;
6478}
6479_ACEOF
6480rm -f conftest.$ac_objext
6481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482  (eval $ac_compile) 2>conftest.er1
6483  ac_status=$?
6484  grep -v '^ *+' conftest.er1 >conftest.err
6485  rm -f conftest.er1
6486  cat conftest.err >&5
6487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488  (exit $ac_status); } &&
6489         { ac_try='test -z "$ac_cxx_werror_flag"
6490                         || test ! -s conftest.err'
6491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492  (eval $ac_try) 2>&5
6493  ac_status=$?
6494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495  (exit $ac_status); }; } &&
6496         { ac_try='test -s conftest.$ac_objext'
6497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498  (eval $ac_try) 2>&5
6499  ac_status=$?
6500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501  (exit $ac_status); }; }; then
6502  :
6503else
6504  echo "$as_me: failed program was:" >&5
6505sed 's/^/| /' conftest.$ac_ext >&5
6506
6507continue
6508fi
6509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6510  cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h.  */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h.  */
6516$ac_declaration
6517int
6518main ()
6519{
6520exit (42);
6521  ;
6522  return 0;
6523}
6524_ACEOF
6525rm -f conftest.$ac_objext
6526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527  (eval $ac_compile) 2>conftest.er1
6528  ac_status=$?
6529  grep -v '^ *+' conftest.er1 >conftest.err
6530  rm -f conftest.er1
6531  cat conftest.err >&5
6532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533  (exit $ac_status); } &&
6534         { ac_try='test -z "$ac_cxx_werror_flag"
6535                         || test ! -s conftest.err'
6536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537  (eval $ac_try) 2>&5
6538  ac_status=$?
6539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540  (exit $ac_status); }; } &&
6541         { ac_try='test -s conftest.$ac_objext'
6542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543  (eval $ac_try) 2>&5
6544  ac_status=$?
6545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546  (exit $ac_status); }; }; then
6547  break
6548else
6549  echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552fi
6553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6554done
6555rm -f conftest*
6556if test -n "$ac_declaration"; then
6557  echo '#ifdef __cplusplus' >>confdefs.h
6558  echo $ac_declaration      >>confdefs.h
6559  echo '#endif'             >>confdefs.h
6560fi
6561
6562ac_ext=cc
6563ac_cpp='$CXXCPP $CPPFLAGS'
6564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6567
6568depcc="$CXX"  am_compiler_list=
6569
6570echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6571echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6572if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6573  echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6576  # We make a subdir and do the tests there.  Otherwise we can end up
6577  # making bogus files that we don't know about and never remove.  For
6578  # instance it was reported that on HP-UX the gcc test will end up
6579  # making a dummy file named `D' -- because `-MD' means `put the output
6580  # in D'.
6581  mkdir conftest.dir
6582  # Copy depcomp to subdir because otherwise we won't find it if we're
6583  # using a relative directory.
6584  cp "$am_depcomp" conftest.dir
6585  cd conftest.dir
6586  # We will build objects and dependencies in a subdirectory because
6587  # it helps to detect inapplicable dependency modes.  For instance
6588  # both Tru64's cc and ICC support -MD to output dependencies as a
6589  # side effect of compilation, but ICC will put the dependencies in
6590  # the current directory while Tru64 will put them in the object
6591  # directory.
6592  mkdir sub
6593
6594  am_cv_CXX_dependencies_compiler_type=none
6595  if test "$am_compiler_list" = ""; then
6596     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6597  fi
6598  for depmode in $am_compiler_list; do
6599    # Setup a source with many dependencies, because some compilers
6600    # like to wrap large dependency lists on column 80 (with \), and
6601    # we should not choose a depcomp mode which is confused by this.
6602    #
6603    # We need to recreate these files for each test, as the compiler may
6604    # overwrite some of them when testing with obscure command lines.
6605    # This happens at least with the AIX C compiler.
6606    : > sub/conftest.c
6607    for i in 1 2 3 4 5 6; do
6608      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6609      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6610      # Solaris 8's {/usr,}/bin/sh.
6611      touch sub/conftst$i.h
6612    done
6613    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6614
6615    case $depmode in
6616    nosideeffect)
6617      # after this tag, mechanisms are not by side-effect, so they'll
6618      # only be used when explicitly requested
6619      if test "x$enable_dependency_tracking" = xyes; then
6620        continue
6621      else
6622        break
6623      fi
6624      ;;
6625    none) break ;;
6626    esac
6627    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6628    # mode.  It turns out that the SunPro C++ compiler does not properly
6629    # handle `-M -o', and we need to detect this.
6630    if depmode=$depmode \
6631       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6632       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6633       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6634         >/dev/null 2>conftest.err &&
6635       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6636       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6637       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6638      # icc doesn't choke on unknown options, it will just issue warnings
6639      # or remarks (even with -Werror).  So we grep stderr for any message
6640      # that says an option was ignored or not supported.
6641      # When given -MP, icc 7.0 and 7.1 complain thusly:
6642      #   icc: Command line warning: ignoring option '-M'; no argument required
6643      # The diagnosis changed in icc 8.0:
6644      #   icc: Command line remark: option '-MP' not supported
6645      if (grep 'ignoring option' conftest.err ||
6646          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6647        am_cv_CXX_dependencies_compiler_type=$depmode
6648        break
6649      fi
6650    fi
6651  done
6652
6653  cd ..
6654  rm -rf conftest.dir
6655else
6656  am_cv_CXX_dependencies_compiler_type=none
6657fi
6658
6659fi
6660echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6661echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6662CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6663
6664
6665
6666if
6667  test "x$enable_dependency_tracking" != xno \
6668  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6669  am__fastdepCXX_TRUE=
6670  am__fastdepCXX_FALSE='#'
6671else
6672  am__fastdepCXX_TRUE='#'
6673  am__fastdepCXX_FALSE=
6674fi
6675
6676
6677
6678
6679if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6680    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6681    (test "X$CXX" != "Xg++"))) ; then
6682  ac_ext=cc
6683ac_cpp='$CXXCPP $CPPFLAGS'
6684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6687echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6688echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6689if test -z "$CXXCPP"; then
6690  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6691  echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693      # Double quotes because CXXCPP needs to be expanded
6694    for CXXCPP in "$CXX -E" "/lib/cpp"
6695    do
6696      ac_preproc_ok=false
6697for ac_cxx_preproc_warn_flag in '' yes
6698do
6699  # Use a header file that comes with gcc, so configuring glibc
6700  # with a fresh cross-compiler works.
6701  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6702  # <limits.h> exists even on freestanding compilers.
6703  # On the NeXT, cc -E runs the code through the compiler's parser,
6704  # not just through cpp. "Syntax error" is here to catch this case.
6705  cat >conftest.$ac_ext <<_ACEOF
6706/* confdefs.h.  */
6707_ACEOF
6708cat confdefs.h >>conftest.$ac_ext
6709cat >>conftest.$ac_ext <<_ACEOF
6710/* end confdefs.h.  */
6711#ifdef __STDC__
6712# include <limits.h>
6713#else
6714# include <assert.h>
6715#endif
6716                     Syntax error
6717_ACEOF
6718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6719  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6720  ac_status=$?
6721  grep -v '^ *+' conftest.er1 >conftest.err
6722  rm -f conftest.er1
6723  cat conftest.err >&5
6724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725  (exit $ac_status); } >/dev/null; then
6726  if test -s conftest.err; then
6727    ac_cpp_err=$ac_cxx_preproc_warn_flag
6728    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6729  else
6730    ac_cpp_err=
6731  fi
6732else
6733  ac_cpp_err=yes
6734fi
6735if test -z "$ac_cpp_err"; then
6736  :
6737else
6738  echo "$as_me: failed program was:" >&5
6739sed 's/^/| /' conftest.$ac_ext >&5
6740
6741  # Broken: fails on valid input.
6742continue
6743fi
6744rm -f conftest.err conftest.$ac_ext
6745
6746  # OK, works on sane cases.  Now check whether non-existent headers
6747  # can be detected and how.
6748  cat >conftest.$ac_ext <<_ACEOF
6749/* confdefs.h.  */
6750_ACEOF
6751cat confdefs.h >>conftest.$ac_ext
6752cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h.  */
6754#include <ac_nonexistent.h>
6755_ACEOF
6756if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6757  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6758  ac_status=$?
6759  grep -v '^ *+' conftest.er1 >conftest.err
6760  rm -f conftest.er1
6761  cat conftest.err >&5
6762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763  (exit $ac_status); } >/dev/null; then
6764  if test -s conftest.err; then
6765    ac_cpp_err=$ac_cxx_preproc_warn_flag
6766    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6767  else
6768    ac_cpp_err=
6769  fi
6770else
6771  ac_cpp_err=yes
6772fi
6773if test -z "$ac_cpp_err"; then
6774  # Broken: success on invalid input.
6775continue
6776else
6777  echo "$as_me: failed program was:" >&5
6778sed 's/^/| /' conftest.$ac_ext >&5
6779
6780  # Passes both tests.
6781ac_preproc_ok=:
6782break
6783fi
6784rm -f conftest.err conftest.$ac_ext
6785
6786done
6787# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6788rm -f conftest.err conftest.$ac_ext
6789if $ac_preproc_ok; then
6790  break
6791fi
6792
6793    done
6794    ac_cv_prog_CXXCPP=$CXXCPP
6795
6796fi
6797  CXXCPP=$ac_cv_prog_CXXCPP
6798else
6799  ac_cv_prog_CXXCPP=$CXXCPP
6800fi
6801echo "$as_me:$LINENO: result: $CXXCPP" >&5
6802echo "${ECHO_T}$CXXCPP" >&6
6803ac_preproc_ok=false
6804for ac_cxx_preproc_warn_flag in '' yes
6805do
6806  # Use a header file that comes with gcc, so configuring glibc
6807  # with a fresh cross-compiler works.
6808  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6809  # <limits.h> exists even on freestanding compilers.
6810  # On the NeXT, cc -E runs the code through the compiler's parser,
6811  # not just through cpp. "Syntax error" is here to catch this case.
6812  cat >conftest.$ac_ext <<_ACEOF
6813/* confdefs.h.  */
6814_ACEOF
6815cat confdefs.h >>conftest.$ac_ext
6816cat >>conftest.$ac_ext <<_ACEOF
6817/* end confdefs.h.  */
6818#ifdef __STDC__
6819# include <limits.h>
6820#else
6821# include <assert.h>
6822#endif
6823                     Syntax error
6824_ACEOF
6825if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6826  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6827  ac_status=$?
6828  grep -v '^ *+' conftest.er1 >conftest.err
6829  rm -f conftest.er1
6830  cat conftest.err >&5
6831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832  (exit $ac_status); } >/dev/null; then
6833  if test -s conftest.err; then
6834    ac_cpp_err=$ac_cxx_preproc_warn_flag
6835    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6836  else
6837    ac_cpp_err=
6838  fi
6839else
6840  ac_cpp_err=yes
6841fi
6842if test -z "$ac_cpp_err"; then
6843  :
6844else
6845  echo "$as_me: failed program was:" >&5
6846sed 's/^/| /' conftest.$ac_ext >&5
6847
6848  # Broken: fails on valid input.
6849continue
6850fi
6851rm -f conftest.err conftest.$ac_ext
6852
6853  # OK, works on sane cases.  Now check whether non-existent headers
6854  # can be detected and how.
6855  cat >conftest.$ac_ext <<_ACEOF
6856/* confdefs.h.  */
6857_ACEOF
6858cat confdefs.h >>conftest.$ac_ext
6859cat >>conftest.$ac_ext <<_ACEOF
6860/* end confdefs.h.  */
6861#include <ac_nonexistent.h>
6862_ACEOF
6863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6864  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6865  ac_status=$?
6866  grep -v '^ *+' conftest.er1 >conftest.err
6867  rm -f conftest.er1
6868  cat conftest.err >&5
6869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870  (exit $ac_status); } >/dev/null; then
6871  if test -s conftest.err; then
6872    ac_cpp_err=$ac_cxx_preproc_warn_flag
6873    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6874  else
6875    ac_cpp_err=
6876  fi
6877else
6878  ac_cpp_err=yes
6879fi
6880if test -z "$ac_cpp_err"; then
6881  # Broken: success on invalid input.
6882continue
6883else
6884  echo "$as_me: failed program was:" >&5
6885sed 's/^/| /' conftest.$ac_ext >&5
6886
6887  # Passes both tests.
6888ac_preproc_ok=:
6889break
6890fi
6891rm -f conftest.err conftest.$ac_ext
6892
6893done
6894# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6895rm -f conftest.err conftest.$ac_ext
6896if $ac_preproc_ok; then
6897  :
6898else
6899  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6900See \`config.log' for more details." >&5
6901echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6902See \`config.log' for more details." >&2;}
6903   { (exit 1); exit 1; }; }
6904fi
6905
6906ac_ext=cc
6907ac_cpp='$CXXCPP $CPPFLAGS'
6908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6911
6912fi
6913
6914
6915
6916# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6917
6918# find the maximum length of command line arguments
6919echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6920echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6921if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6922  echo $ECHO_N "(cached) $ECHO_C" >&6
6923else
6924    i=0
6925  teststring="ABCD"
6926
6927  case $build_os in
6928  msdosdjgpp*)
6929    # On DJGPP, this test can blow up pretty badly due to problems in libc
6930    # (any single argument exceeding 2000 bytes causes a buffer overrun
6931    # during glob expansion).  Even if it were fixed, the result of this
6932    # check would be larger than it should be.
6933    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6934    ;;
6935
6936  gnu*)
6937    # Under GNU Hurd, this test is not required because there is
6938    # no limit to the length of command line arguments.
6939    # Libtool will interpret -1 as no limit whatsoever
6940    lt_cv_sys_max_cmd_len=-1;
6941    ;;
6942
6943  cygwin* | mingw*)
6944    # On Win9x/ME, this test blows up -- it succeeds, but takes
6945    # about 5 minutes as the teststring grows exponentially.
6946    # Worse, since 9x/ME are not pre-emptively multitasking,
6947    # you end up with a "frozen" computer, even though with patience
6948    # the test eventually succeeds (with a max line length of 256k).
6949    # Instead, let's just punt: use the minimum linelength reported by
6950    # all of the supported platforms: 8192 (on NT/2K/XP).
6951    lt_cv_sys_max_cmd_len=8192;
6952    ;;
6953
6954  amigaos*)
6955    # On AmigaOS with pdksh, this test takes hours, literally.
6956    # So we just punt and use a minimum line length of 8192.
6957    lt_cv_sys_max_cmd_len=8192;
6958    ;;
6959
6960  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6961    # This has been around since 386BSD, at least.  Likely further.
6962    if test -x /sbin/sysctl; then
6963      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6964    elif test -x /usr/sbin/sysctl; then
6965      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6966    else
6967      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6968    fi
6969    # And add a safety zone
6970    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6971    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6972    ;;
6973
6974  interix*)
6975    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6976    lt_cv_sys_max_cmd_len=196608
6977    ;;
6978
6979  osf*)
6980    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6981    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6982    # nice to cause kernel panics so lets avoid the loop below.
6983    # First set a reasonable default.
6984    lt_cv_sys_max_cmd_len=16384
6985    #
6986    if test -x /sbin/sysconfig; then
6987      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6988        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6989      esac
6990    fi
6991    ;;
6992  sco3.2v5*)
6993    lt_cv_sys_max_cmd_len=102400
6994    ;;
6995  sysv5* | sco5v6* | sysv4.2uw2*)
6996    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6997    if test -n "$kargmax"; then
6998      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6999    else
7000      lt_cv_sys_max_cmd_len=32768
7001    fi
7002    ;;
7003  *)
7004    # If test is not a shell built-in, we'll probably end up computing a
7005    # maximum length that is only half of the actual maximum length, but
7006    # we can't tell.
7007    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7008    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7009               = "XX$teststring") >/dev/null 2>&1 &&
7010            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7011            lt_cv_sys_max_cmd_len=$new_result &&
7012            test $i != 17 # 1/2 MB should be enough
7013    do
7014      i=`expr $i + 1`
7015      teststring=$teststring$teststring
7016    done
7017    teststring=
7018    # Add a significant safety factor because C++ compilers can tack on massive
7019    # amounts of additional arguments before passing them to the linker.
7020    # It appears as though 1/2 is a usable value.
7021    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7022    ;;
7023  esac
7024
7025fi
7026
7027if test -n $lt_cv_sys_max_cmd_len ; then
7028  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7029echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7030else
7031  echo "$as_me:$LINENO: result: none" >&5
7032echo "${ECHO_T}none" >&6
7033fi
7034
7035
7036
7037
7038# Check for command to grab the raw symbol name followed by C symbol from nm.
7039echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7040echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7041if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7042  echo $ECHO_N "(cached) $ECHO_C" >&6
7043else
7044
7045# These are sane defaults that work on at least a few old systems.
7046# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7047
7048# Character class describing NM global symbol codes.
7049symcode='[BCDEGRST]'
7050
7051# Regexp to match symbols that can be accessed directly from C.
7052sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7053
7054# Transform an extracted symbol line into a proper C declaration
7055lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7056
7057# Transform an extracted symbol line into symbol name and symbol address
7058lt_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'"
7059
7060# Define system-specific variables.
7061case $host_os in
7062aix*)
7063  symcode='[BCDT]'
7064  ;;
7065cygwin* | mingw* | pw32*)
7066  symcode='[ABCDGISTW]'
7067  ;;
7068hpux*) # Its linker distinguishes data from code symbols
7069  if test "$host_cpu" = ia64; then
7070    symcode='[ABCDEGRST]'
7071  fi
7072  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7073  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'"
7074  ;;
7075linux*)
7076  if test "$host_cpu" = ia64; then
7077    symcode='[ABCDGIRSTW]'
7078    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7079    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'"
7080  fi
7081  ;;
7082irix* | nonstopux*)
7083  symcode='[BCDEGRST]'
7084  ;;
7085osf*)
7086  symcode='[BCDEGQRST]'
7087  ;;
7088solaris*)
7089  symcode='[BDRT]'
7090  ;;
7091sco3.2v5*)
7092  symcode='[DT]'
7093  ;;
7094sysv4.2uw2*)
7095  symcode='[DT]'
7096  ;;
7097sysv5* | sco5v6* | unixware* | OpenUNIX*)
7098  symcode='[ABDT]'
7099  ;;
7100sysv4)
7101  symcode='[DFNSTU]'
7102  ;;
7103esac
7104
7105# Handle CRLF in mingw tool chain
7106opt_cr=
7107case $build_os in
7108mingw*)
7109  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7110  ;;
7111esac
7112
7113# If we're using GNU nm, then use its standard symbol codes.
7114case `$NM -V 2>&1` in
7115*GNU* | *'with BFD'*)
7116  symcode='[ABCDGIRSTW]' ;;
7117esac
7118
7119# Try without a prefix undercore, then with it.
7120for ac_symprfx in "" "_"; do
7121
7122  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7123  symxfrm="\\1 $ac_symprfx\\2 \\2"
7124
7125  # Write the raw and C identifiers.
7126  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7127
7128  # Check to see that the pipe works correctly.
7129  pipe_works=no
7130
7131  rm -f conftest*
7132  cat > conftest.$ac_ext <<EOF
7133#ifdef __cplusplus
7134extern "C" {
7135#endif
7136char nm_test_var;
7137void nm_test_func(){}
7138#ifdef __cplusplus
7139}
7140#endif
7141int main(){nm_test_var='a';nm_test_func();return(0);}
7142EOF
7143
7144  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7145  (eval $ac_compile) 2>&5
7146  ac_status=$?
7147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148  (exit $ac_status); }; then
7149    # Now try to grab the symbols.
7150    nlist=conftest.nm
7151    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7152  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7153  ac_status=$?
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); } && test -s "$nlist"; then
7156      # Try sorting and uniquifying the output.
7157      if sort "$nlist" | uniq > "$nlist"T; then
7158        mv -f "$nlist"T "$nlist"
7159      else
7160        rm -f "$nlist"T
7161      fi
7162
7163      # Make sure that we snagged all the symbols we need.
7164      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7165        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7166          cat <<EOF > conftest.$ac_ext
7167#ifdef __cplusplus
7168extern "C" {
7169#endif
7170
7171EOF
7172          # Now generate the symbol file.
7173          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7174
7175          cat <<EOF >> conftest.$ac_ext
7176#if defined (__STDC__) && __STDC__
7177# define lt_ptr_t void *
7178#else
7179# define lt_ptr_t char *
7180# define const
7181#endif
7182
7183/* The mapping between symbol names and symbols. */
7184const struct {
7185  const char *name;
7186  lt_ptr_t address;
7187}
7188lt_preloaded_symbols[] =
7189{
7190EOF
7191          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7192          cat <<\EOF >> conftest.$ac_ext
7193  {0, (lt_ptr_t) 0}
7194};
7195
7196#ifdef __cplusplus
7197}
7198#endif
7199EOF
7200          # Now try linking the two files.
7201          mv conftest.$ac_objext conftstm.$ac_objext
7202          lt_save_LIBS="$LIBS"
7203          lt_save_CFLAGS="$CFLAGS"
7204          LIBS="conftstm.$ac_objext"
7205          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7206          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7207  (eval $ac_link) 2>&5
7208  ac_status=$?
7209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7211            pipe_works=yes
7212          fi
7213          LIBS="$lt_save_LIBS"
7214          CFLAGS="$lt_save_CFLAGS"
7215        else
7216          echo "cannot find nm_test_func in $nlist" >&5
7217        fi
7218      else
7219        echo "cannot find nm_test_var in $nlist" >&5
7220      fi
7221    else
7222      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7223    fi
7224  else
7225    echo "$progname: failed program was:" >&5
7226    cat conftest.$ac_ext >&5
7227  fi
7228  rm -f conftest* conftst*
7229
7230  # Do not use the global_symbol_pipe unless it works.
7231  if test "$pipe_works" = yes; then
7232    break
7233  else
7234    lt_cv_sys_global_symbol_pipe=
7235  fi
7236done
7237
7238fi
7239
7240if test -z "$lt_cv_sys_global_symbol_pipe"; then
7241  lt_cv_sys_global_symbol_to_cdecl=
7242fi
7243if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7244  echo "$as_me:$LINENO: result: failed" >&5
7245echo "${ECHO_T}failed" >&6
7246else
7247  echo "$as_me:$LINENO: result: ok" >&5
7248echo "${ECHO_T}ok" >&6
7249fi
7250
7251echo "$as_me:$LINENO: checking for objdir" >&5
7252echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7253if test "${lt_cv_objdir+set}" = set; then
7254  echo $ECHO_N "(cached) $ECHO_C" >&6
7255else
7256  rm -f .libs 2>/dev/null
7257mkdir .libs 2>/dev/null
7258if test -d .libs; then
7259  lt_cv_objdir=.libs
7260else
7261  # MS-DOS does not allow filenames that begin with a dot.
7262  lt_cv_objdir=_libs
7263fi
7264rmdir .libs 2>/dev/null
7265fi
7266echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7267echo "${ECHO_T}$lt_cv_objdir" >&6
7268objdir=$lt_cv_objdir
7269
7270
7271
7272
7273
7274case $host_os in
7275aix3*)
7276  # AIX sometimes has problems with the GCC collect2 program.  For some
7277  # reason, if we set the COLLECT_NAMES environment variable, the problems
7278  # vanish in a puff of smoke.
7279  if test "X${COLLECT_NAMES+set}" != Xset; then
7280    COLLECT_NAMES=
7281    export COLLECT_NAMES
7282  fi
7283  ;;
7284esac
7285
7286# Sed substitution that helps us do robust quoting.  It backslashifies
7287# metacharacters that are still active within double-quoted strings.
7288Xsed='sed -e 1s/^X//'
7289sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7290
7291# Same as above, but do not quote variable references.
7292double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7293
7294# Sed substitution to delay expansion of an escaped shell variable in a
7295# double_quote_subst'ed string.
7296delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7297
7298# Sed substitution to avoid accidental globbing in evaled expressions
7299no_glob_subst='s/\*/\\\*/g'
7300
7301# Constants:
7302rm="rm -f"
7303
7304# Global variables:
7305default_ofile=libtool
7306can_build_shared=yes
7307
7308# All known linkers require a `.a' archive for static linking (except MSVC,
7309# which needs '.lib').
7310libext=a
7311ltmain="$ac_aux_dir/ltmain.sh"
7312ofile="$default_ofile"
7313with_gnu_ld="$lt_cv_prog_gnu_ld"
7314
7315if test -n "$ac_tool_prefix"; then
7316  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7317set dummy ${ac_tool_prefix}ar; ac_word=$2
7318echo "$as_me:$LINENO: checking for $ac_word" >&5
7319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7320if test "${ac_cv_prog_AR+set}" = set; then
7321  echo $ECHO_N "(cached) $ECHO_C" >&6
7322else
7323  if test -n "$AR"; then
7324  ac_cv_prog_AR="$AR" # Let the user override the test.
7325else
7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329  IFS=$as_save_IFS
7330  test -z "$as_dir" && as_dir=.
7331  for ac_exec_ext in '' $ac_executable_extensions; do
7332  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333    ac_cv_prog_AR="${ac_tool_prefix}ar"
7334    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335    break 2
7336  fi
7337done
7338done
7339
7340fi
7341fi
7342AR=$ac_cv_prog_AR
7343if test -n "$AR"; then
7344  echo "$as_me:$LINENO: result: $AR" >&5
7345echo "${ECHO_T}$AR" >&6
7346else
7347  echo "$as_me:$LINENO: result: no" >&5
7348echo "${ECHO_T}no" >&6
7349fi
7350
7351fi
7352if test -z "$ac_cv_prog_AR"; then
7353  ac_ct_AR=$AR
7354  # Extract the first word of "ar", so it can be a program name with args.
7355set dummy ar; ac_word=$2
7356echo "$as_me:$LINENO: checking for $ac_word" >&5
7357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7358if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7359  echo $ECHO_N "(cached) $ECHO_C" >&6
7360else
7361  if test -n "$ac_ct_AR"; then
7362  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7363else
7364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367  IFS=$as_save_IFS
7368  test -z "$as_dir" && as_dir=.
7369  for ac_exec_ext in '' $ac_executable_extensions; do
7370  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371    ac_cv_prog_ac_ct_AR="ar"
7372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373    break 2
7374  fi
7375done
7376done
7377
7378  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7379fi
7380fi
7381ac_ct_AR=$ac_cv_prog_ac_ct_AR
7382if test -n "$ac_ct_AR"; then
7383  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7384echo "${ECHO_T}$ac_ct_AR" >&6
7385else
7386  echo "$as_me:$LINENO: result: no" >&5
7387echo "${ECHO_T}no" >&6
7388fi
7389
7390  AR=$ac_ct_AR
7391else
7392  AR="$ac_cv_prog_AR"
7393fi
7394
7395if test -n "$ac_tool_prefix"; then
7396  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7397set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7398echo "$as_me:$LINENO: checking for $ac_word" >&5
7399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7400if test "${ac_cv_prog_RANLIB+set}" = set; then
7401  echo $ECHO_N "(cached) $ECHO_C" >&6
7402else
7403  if test -n "$RANLIB"; then
7404  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7405else
7406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409  IFS=$as_save_IFS
7410  test -z "$as_dir" && as_dir=.
7411  for ac_exec_ext in '' $ac_executable_extensions; do
7412  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7414    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415    break 2
7416  fi
7417done
7418done
7419
7420fi
7421fi
7422RANLIB=$ac_cv_prog_RANLIB
7423if test -n "$RANLIB"; then
7424  echo "$as_me:$LINENO: result: $RANLIB" >&5
7425echo "${ECHO_T}$RANLIB" >&6
7426else
7427  echo "$as_me:$LINENO: result: no" >&5
7428echo "${ECHO_T}no" >&6
7429fi
7430
7431fi
7432if test -z "$ac_cv_prog_RANLIB"; then
7433  ac_ct_RANLIB=$RANLIB
7434  # Extract the first word of "ranlib", so it can be a program name with args.
7435set dummy ranlib; ac_word=$2
7436echo "$as_me:$LINENO: checking for $ac_word" >&5
7437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7438if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7439  echo $ECHO_N "(cached) $ECHO_C" >&6
7440else
7441  if test -n "$ac_ct_RANLIB"; then
7442  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447  IFS=$as_save_IFS
7448  test -z "$as_dir" && as_dir=.
7449  for ac_exec_ext in '' $ac_executable_extensions; do
7450  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451    ac_cv_prog_ac_ct_RANLIB="ranlib"
7452    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453    break 2
7454  fi
7455done
7456done
7457
7458  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7459fi
7460fi
7461ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7462if test -n "$ac_ct_RANLIB"; then
7463  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7464echo "${ECHO_T}$ac_ct_RANLIB" >&6
7465else
7466  echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
7468fi
7469
7470  RANLIB=$ac_ct_RANLIB
7471else
7472  RANLIB="$ac_cv_prog_RANLIB"
7473fi
7474
7475if test -n "$ac_tool_prefix"; then
7476  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7477set dummy ${ac_tool_prefix}strip; ac_word=$2
7478echo "$as_me:$LINENO: checking for $ac_word" >&5
7479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7480if test "${ac_cv_prog_STRIP+set}" = set; then
7481  echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
7483  if test -n "$STRIP"; then
7484  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7485else
7486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489  IFS=$as_save_IFS
7490  test -z "$as_dir" && as_dir=.
7491  for ac_exec_ext in '' $ac_executable_extensions; do
7492  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7494    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495    break 2
7496  fi
7497done
7498done
7499
7500fi
7501fi
7502STRIP=$ac_cv_prog_STRIP
7503if test -n "$STRIP"; then
7504  echo "$as_me:$LINENO: result: $STRIP" >&5
7505echo "${ECHO_T}$STRIP" >&6
7506else
7507  echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6
7509fi
7510
7511fi
7512if test -z "$ac_cv_prog_STRIP"; then
7513  ac_ct_STRIP=$STRIP
7514  # Extract the first word of "strip", so it can be a program name with args.
7515set dummy strip; ac_word=$2
7516echo "$as_me:$LINENO: checking for $ac_word" >&5
7517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7518if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7519  echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521  if test -n "$ac_ct_STRIP"; then
7522  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7523else
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527  IFS=$as_save_IFS
7528  test -z "$as_dir" && as_dir=.
7529  for ac_exec_ext in '' $ac_executable_extensions; do
7530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531    ac_cv_prog_ac_ct_STRIP="strip"
7532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533    break 2
7534  fi
7535done
7536done
7537
7538  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7539fi
7540fi
7541ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7542if test -n "$ac_ct_STRIP"; then
7543  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7544echo "${ECHO_T}$ac_ct_STRIP" >&6
7545else
7546  echo "$as_me:$LINENO: result: no" >&5
7547echo "${ECHO_T}no" >&6
7548fi
7549
7550  STRIP=$ac_ct_STRIP
7551else
7552  STRIP="$ac_cv_prog_STRIP"
7553fi
7554
7555
7556old_CC="$CC"
7557old_CFLAGS="$CFLAGS"
7558
7559# Set sane defaults for various variables
7560test -z "$AR" && AR=ar
7561test -z "$AR_FLAGS" && AR_FLAGS=cru
7562test -z "$AS" && AS=as
7563test -z "$CC" && CC=cc
7564test -z "$LTCC" && LTCC=$CC
7565test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7566test -z "$DLLTOOL" && DLLTOOL=dlltool
7567test -z "$LD" && LD=ld
7568test -z "$LN_S" && LN_S="ln -s"
7569test -z "$MAGIC_CMD" && MAGIC_CMD=file
7570test -z "$NM" && NM=nm
7571test -z "$SED" && SED=sed
7572test -z "$OBJDUMP" && OBJDUMP=objdump
7573test -z "$RANLIB" && RANLIB=:
7574test -z "$STRIP" && STRIP=:
7575test -z "$ac_objext" && ac_objext=o
7576
7577# Determine commands to create old-style static archives.
7578old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7579old_postinstall_cmds='chmod 644 $oldlib'
7580old_postuninstall_cmds=
7581
7582if test -n "$RANLIB"; then
7583  case $host_os in
7584  openbsd*)
7585    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7586    ;;
7587  *)
7588    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7589    ;;
7590  esac
7591  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7592fi
7593
7594for cc_temp in $compiler""; do
7595  case $cc_temp in
7596    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7597    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7598    \-*) ;;
7599    *) break;;
7600  esac
7601done
7602cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7603
7604
7605# Only perform the check for file, if the check method requires it
7606case $deplibs_check_method in
7607file_magic*)
7608  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7609    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7610echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7611if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7612  echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614  case $MAGIC_CMD in
7615[\\/*] |  ?:[\\/]*)
7616  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7617  ;;
7618*)
7619  lt_save_MAGIC_CMD="$MAGIC_CMD"
7620  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7621  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7622  for ac_dir in $ac_dummy; do
7623    IFS="$lt_save_ifs"
7624    test -z "$ac_dir" && ac_dir=.
7625    if test -f $ac_dir/${ac_tool_prefix}file; then
7626      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7627      if test -n "$file_magic_test_file"; then
7628        case $deplibs_check_method in
7629        "file_magic "*)
7630          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7631          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7632          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7633            $EGREP "$file_magic_regex" > /dev/null; then
7634            :
7635          else
7636            cat <<EOF 1>&2
7637
7638*** Warning: the command libtool uses to detect shared libraries,
7639*** $file_magic_cmd, produces output that libtool cannot recognize.
7640*** The result is that libtool may fail to recognize shared libraries
7641*** as such.  This will affect the creation of libtool libraries that
7642*** depend on shared libraries, but programs linked with such libtool
7643*** libraries will work regardless of this problem.  Nevertheless, you
7644*** may want to report the problem to your system manager and/or to
7645*** bug-libtool@gnu.org
7646
7647EOF
7648          fi ;;
7649        esac
7650      fi
7651      break
7652    fi
7653  done
7654  IFS="$lt_save_ifs"
7655  MAGIC_CMD="$lt_save_MAGIC_CMD"
7656  ;;
7657esac
7658fi
7659
7660MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7661if test -n "$MAGIC_CMD"; then
7662  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7663echo "${ECHO_T}$MAGIC_CMD" >&6
7664else
7665  echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6
7667fi
7668
7669if test -z "$lt_cv_path_MAGIC_CMD"; then
7670  if test -n "$ac_tool_prefix"; then
7671    echo "$as_me:$LINENO: checking for file" >&5
7672echo $ECHO_N "checking for file... $ECHO_C" >&6
7673if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7674  echo $ECHO_N "(cached) $ECHO_C" >&6
7675else
7676  case $MAGIC_CMD in
7677[\\/*] |  ?:[\\/]*)
7678  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7679  ;;
7680*)
7681  lt_save_MAGIC_CMD="$MAGIC_CMD"
7682  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7683  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7684  for ac_dir in $ac_dummy; do
7685    IFS="$lt_save_ifs"
7686    test -z "$ac_dir" && ac_dir=.
7687    if test -f $ac_dir/file; then
7688      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7689      if test -n "$file_magic_test_file"; then
7690        case $deplibs_check_method in
7691        "file_magic "*)
7692          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7693          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7694          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7695            $EGREP "$file_magic_regex" > /dev/null; then
7696            :
7697          else
7698            cat <<EOF 1>&2
7699
7700*** Warning: the command libtool uses to detect shared libraries,
7701*** $file_magic_cmd, produces output that libtool cannot recognize.
7702*** The result is that libtool may fail to recognize shared libraries
7703*** as such.  This will affect the creation of libtool libraries that
7704*** depend on shared libraries, but programs linked with such libtool
7705*** libraries will work regardless of this problem.  Nevertheless, you
7706*** may want to report the problem to your system manager and/or to
7707*** bug-libtool@gnu.org
7708
7709EOF
7710          fi ;;
7711        esac
7712      fi
7713      break
7714    fi
7715  done
7716  IFS="$lt_save_ifs"
7717  MAGIC_CMD="$lt_save_MAGIC_CMD"
7718  ;;
7719esac
7720fi
7721
7722MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7723if test -n "$MAGIC_CMD"; then
7724  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7725echo "${ECHO_T}$MAGIC_CMD" >&6
7726else
7727  echo "$as_me:$LINENO: result: no" >&5
7728echo "${ECHO_T}no" >&6
7729fi
7730
7731  else
7732    MAGIC_CMD=:
7733  fi
7734fi
7735
7736  fi
7737  ;;
7738esac
7739
7740enable_dlopen=no
7741enable_win32_dll=no
7742
7743# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7744if test "${enable_libtool_lock+set}" = set; then
7745  enableval="$enable_libtool_lock"
7746
7747fi;
7748test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7749
7750
7751# Check whether --with-pic or --without-pic was given.
7752if test "${with_pic+set}" = set; then
7753  withval="$with_pic"
7754  pic_mode="$withval"
7755else
7756  pic_mode=default
7757fi;
7758test -z "$pic_mode" && pic_mode=default
7759
7760# Use C for the default configuration in the libtool script
7761tagname=
7762lt_save_CC="$CC"
7763ac_ext=c
7764ac_cpp='$CPP $CPPFLAGS'
7765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7767ac_compiler_gnu=$ac_cv_c_compiler_gnu
7768
7769
7770# Source file extension for C test sources.
7771ac_ext=c
7772
7773# Object file extension for compiled C test sources.
7774objext=o
7775objext=$objext
7776
7777# Code to be used in simple compile tests
7778lt_simple_compile_test_code="int some_variable = 0;\n"
7779
7780# Code to be used in simple link tests
7781lt_simple_link_test_code='int main(){return(0);}\n'
7782
7783
7784# If no C compiler was specified, use CC.
7785LTCC=${LTCC-"$CC"}
7786
7787# If no C compiler flags were specified, use CFLAGS.
7788LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7789
7790# Allow CC to be a program name with arguments.
7791compiler=$CC
7792
7793
7794# save warnings/boilerplate of simple test code
7795ac_outfile=conftest.$ac_objext
7796printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7797eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7798_lt_compiler_boilerplate=`cat conftest.err`
7799$rm conftest*
7800
7801ac_outfile=conftest.$ac_objext
7802printf "$lt_simple_link_test_code" >conftest.$ac_ext
7803eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7804_lt_linker_boilerplate=`cat conftest.err`
7805$rm conftest*
7806
7807
7808## CAVEAT EMPTOR:
7809## There is no encapsulation within the following macros, do not change
7810## the running order or otherwise move them around unless you know exactly
7811## what you are doing...
7812
7813lt_prog_compiler_no_builtin_flag=
7814
7815if test "$GCC" = yes; then
7816  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7817
7818
7819echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7820echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7821if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7822  echo $ECHO_N "(cached) $ECHO_C" >&6
7823else
7824  lt_cv_prog_compiler_rtti_exceptions=no
7825  ac_outfile=conftest.$ac_objext
7826   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7827   lt_compiler_flag="-fno-rtti -fno-exceptions"
7828   # Insert the option either (1) after the last *FLAGS variable, or
7829   # (2) before a word containing "conftest.", or (3) at the end.
7830   # Note that $ac_compile itself does not contain backslashes and begins
7831   # with a dollar sign (not a hyphen), so the echo should work correctly.
7832   # The option is referenced via a variable to avoid confusing sed.
7833   lt_compile=`echo "$ac_compile" | $SED \
7834   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7835   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7836   -e 's:$: $lt_compiler_flag:'`
7837   (eval echo "\"\$as_me:7837: $lt_compile\"" >&5)
7838   (eval "$lt_compile" 2>conftest.err)
7839   ac_status=$?
7840   cat conftest.err >&5
7841   echo "$as_me:7841: \$? = $ac_status" >&5
7842   if (exit $ac_status) && test -s "$ac_outfile"; then
7843     # The compiler can only warn and ignore the option if not recognized
7844     # So say no if there are warnings other than the usual output.
7845     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7846     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7847     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7848       lt_cv_prog_compiler_rtti_exceptions=yes
7849     fi
7850   fi
7851   $rm conftest*
7852
7853fi
7854echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7855echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7856
7857if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7858    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7859else
7860    :
7861fi
7862
7863fi
7864
7865lt_prog_compiler_wl=
7866lt_prog_compiler_pic=
7867lt_prog_compiler_static=
7868
7869echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7870echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7871
7872  if test "$GCC" = yes; then
7873    lt_prog_compiler_wl='-Wl,'
7874    lt_prog_compiler_static='-static'
7875
7876    case $host_os in
7877      aix*)
7878      # All AIX code is PIC.
7879      if test "$host_cpu" = ia64; then
7880        # AIX 5 now supports IA64 processor
7881        lt_prog_compiler_static='-Bstatic'
7882      fi
7883      ;;
7884
7885    amigaos*)
7886      # FIXME: we need at least 68020 code to build shared libraries, but
7887      # adding the `-m68020' flag to GCC prevents building anything better,
7888      # like `-m68040'.
7889      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7890      ;;
7891
7892    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7893      # PIC is the default for these OSes.
7894      ;;
7895
7896    mingw* | pw32* | os2*)
7897      # This hack is so that the source file can tell whether it is being
7898      # built for inclusion in a dll (and should export symbols for example).
7899      lt_prog_compiler_pic='-DDLL_EXPORT'
7900      ;;
7901
7902    darwin* | rhapsody*)
7903      # PIC is the default on this platform
7904      # Common symbols not allowed in MH_DYLIB files
7905      lt_prog_compiler_pic='-fno-common'
7906      ;;
7907
7908    interix3*)
7909      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7910      # Instead, we relocate shared libraries at runtime.
7911      ;;
7912
7913    msdosdjgpp*)
7914      # Just because we use GCC doesn't mean we suddenly get shared libraries
7915      # on systems that don't support them.
7916      lt_prog_compiler_can_build_shared=no
7917      enable_shared=no
7918      ;;
7919
7920    sysv4*MP*)
7921      if test -d /usr/nec; then
7922        lt_prog_compiler_pic=-Kconform_pic
7923      fi
7924      ;;
7925
7926    hpux*)
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='-fPIC'
7935        ;;
7936      esac
7937      ;;
7938
7939    *)
7940      lt_prog_compiler_pic='-fPIC'
7941      ;;
7942    esac
7943  else
7944    # PORTME Check for flag to pass linker flags through the system compiler.
7945    case $host_os in
7946    aix*)
7947      lt_prog_compiler_wl='-Wl,'
7948      if test "$host_cpu" = ia64; then
7949        # AIX 5 now supports IA64 processor
7950        lt_prog_compiler_static='-Bstatic'
7951      else
7952        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7953      fi
7954      ;;
7955      darwin*)
7956        # PIC is the default on this platform
7957        # Common symbols not allowed in MH_DYLIB files
7958       case $cc_basename in
7959         xlc*)
7960         lt_prog_compiler_pic='-qnocommon'
7961         lt_prog_compiler_wl='-Wl,'
7962         ;;
7963       esac
7964       ;;
7965
7966    mingw* | pw32* | os2*)
7967      # This hack is so that the source file can tell whether it is being
7968      # built for inclusion in a dll (and should export symbols for example).
7969      lt_prog_compiler_pic='-DDLL_EXPORT'
7970      ;;
7971
7972    hpux9* | hpux10* | hpux11*)
7973      lt_prog_compiler_wl='-Wl,'
7974      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7975      # not for PA HP-UX.
7976      case $host_cpu in
7977      hppa*64*|ia64*)
7978        # +Z the default
7979        ;;
7980      *)
7981        lt_prog_compiler_pic='+Z'
7982        ;;
7983      esac
7984      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7985      lt_prog_compiler_static='${wl}-a ${wl}archive'
7986      ;;
7987
7988    irix5* | irix6* | nonstopux*)
7989      lt_prog_compiler_wl='-Wl,'
7990      # PIC (with -KPIC) is the default.
7991      lt_prog_compiler_static='-non_shared'
7992      ;;
7993
7994    newsos6)
7995      lt_prog_compiler_pic='-KPIC'
7996      lt_prog_compiler_static='-Bstatic'
7997      ;;
7998
7999    linux*)
8000      case $cc_basename in
8001      icc* | ecc*)
8002        lt_prog_compiler_wl='-Wl,'
8003        lt_prog_compiler_pic='-KPIC'
8004        lt_prog_compiler_static='-static'
8005        ;;
8006      pgcc* | pgf77* | pgf90* | pgf95*)
8007        # Portland Group compilers (*not* the Pentium gcc compiler,
8008        # which looks to be a dead project)
8009        lt_prog_compiler_wl='-Wl,'
8010        lt_prog_compiler_pic='-fpic'
8011        lt_prog_compiler_static='-Bstatic'
8012        ;;
8013      ccc*)
8014        lt_prog_compiler_wl='-Wl,'
8015        # All Alpha code is PIC.
8016        lt_prog_compiler_static='-non_shared'
8017        ;;
8018      esac
8019      ;;
8020
8021    osf3* | osf4* | osf5*)
8022      lt_prog_compiler_wl='-Wl,'
8023      # All OSF/1 code is PIC.
8024      lt_prog_compiler_static='-non_shared'
8025      ;;
8026
8027    solaris*)
8028      lt_prog_compiler_pic='-KPIC'
8029      lt_prog_compiler_static='-Bstatic'
8030      case $cc_basename in
8031      f77* | f90* | f95*)
8032        lt_prog_compiler_wl='-Qoption ld ';;
8033      *)
8034        lt_prog_compiler_wl='-Wl,';;
8035      esac
8036      ;;
8037
8038    sunos4*)
8039      lt_prog_compiler_wl='-Qoption ld '
8040      lt_prog_compiler_pic='-PIC'
8041      lt_prog_compiler_static='-Bstatic'
8042      ;;
8043
8044    sysv4 | sysv4.2uw2* | sysv4.3*)
8045      lt_prog_compiler_wl='-Wl,'
8046      lt_prog_compiler_pic='-KPIC'
8047      lt_prog_compiler_static='-Bstatic'
8048      ;;
8049
8050    sysv4*MP*)
8051      if test -d /usr/nec ;then
8052        lt_prog_compiler_pic='-Kconform_pic'
8053        lt_prog_compiler_static='-Bstatic'
8054      fi
8055      ;;
8056
8057    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8058      lt_prog_compiler_wl='-Wl,'
8059      lt_prog_compiler_pic='-KPIC'
8060      lt_prog_compiler_static='-Bstatic'
8061      ;;
8062
8063    unicos*)
8064      lt_prog_compiler_wl='-Wl,'
8065      lt_prog_compiler_can_build_shared=no
8066      ;;
8067
8068    uts4*)
8069      lt_prog_compiler_pic='-pic'
8070      lt_prog_compiler_static='-Bstatic'
8071      ;;
8072
8073    *)
8074      lt_prog_compiler_can_build_shared=no
8075      ;;
8076    esac
8077  fi
8078
8079echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8080echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8081
8082#
8083# Check to make sure the PIC flag actually works.
8084#
8085if test -n "$lt_prog_compiler_pic"; then
8086
8087echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8088echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8089if test "${lt_prog_compiler_pic_works+set}" = set; then
8090  echo $ECHO_N "(cached) $ECHO_C" >&6
8091else
8092  lt_prog_compiler_pic_works=no
8093  ac_outfile=conftest.$ac_objext
8094   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8095   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8096   # Insert the option either (1) after the last *FLAGS variable, or
8097   # (2) before a word containing "conftest.", or (3) at the end.
8098   # Note that $ac_compile itself does not contain backslashes and begins
8099   # with a dollar sign (not a hyphen), so the echo should work correctly.
8100   # The option is referenced via a variable to avoid confusing sed.
8101   lt_compile=`echo "$ac_compile" | $SED \
8102   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8103   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8104   -e 's:$: $lt_compiler_flag:'`
8105   (eval echo "\"\$as_me:8105: $lt_compile\"" >&5)
8106   (eval "$lt_compile" 2>conftest.err)
8107   ac_status=$?
8108   cat conftest.err >&5
8109   echo "$as_me:8109: \$? = $ac_status" >&5
8110   if (exit $ac_status) && test -s "$ac_outfile"; then
8111     # The compiler can only warn and ignore the option if not recognized
8112     # So say no if there are warnings other than the usual output.
8113     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8114     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8115     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8116       lt_prog_compiler_pic_works=yes
8117     fi
8118   fi
8119   $rm conftest*
8120
8121fi
8122echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8123echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8124
8125if test x"$lt_prog_compiler_pic_works" = xyes; then
8126    case $lt_prog_compiler_pic in
8127     "" | " "*) ;;
8128     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8129     esac
8130else
8131    lt_prog_compiler_pic=
8132     lt_prog_compiler_can_build_shared=no
8133fi
8134
8135fi
8136case $host_os in
8137  # For platforms which do not support PIC, -DPIC is meaningless:
8138  *djgpp*)
8139    lt_prog_compiler_pic=
8140    ;;
8141  *)
8142    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8143    ;;
8144esac
8145
8146#
8147# Check to make sure the static flag actually works.
8148#
8149wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8150echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8151echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8152if test "${lt_prog_compiler_static_works+set}" = set; then
8153  echo $ECHO_N "(cached) $ECHO_C" >&6
8154else
8155  lt_prog_compiler_static_works=no
8156   save_LDFLAGS="$LDFLAGS"
8157   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8158   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8159   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8160     # The linker can only warn and ignore the option if not recognized
8161     # So say no if there are warnings
8162     if test -s conftest.err; then
8163       # Append any errors to the config.log.
8164       cat conftest.err 1>&5
8165       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8166       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8167       if diff conftest.exp conftest.er2 >/dev/null; then
8168         lt_prog_compiler_static_works=yes
8169       fi
8170     else
8171       lt_prog_compiler_static_works=yes
8172     fi
8173   fi
8174   $rm conftest*
8175   LDFLAGS="$save_LDFLAGS"
8176
8177fi
8178echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8179echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8180
8181if test x"$lt_prog_compiler_static_works" = xyes; then
8182    :
8183else
8184    lt_prog_compiler_static=
8185fi
8186
8187
8188echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8189echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8190if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8191  echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193  lt_cv_prog_compiler_c_o=no
8194   $rm -r conftest 2>/dev/null
8195   mkdir conftest
8196   cd conftest
8197   mkdir out
8198   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8199
8200   lt_compiler_flag="-o out/conftest2.$ac_objext"
8201   # Insert the option either (1) after the last *FLAGS variable, or
8202   # (2) before a word containing "conftest.", or (3) at the end.
8203   # Note that $ac_compile itself does not contain backslashes and begins
8204   # with a dollar sign (not a hyphen), so the echo should work correctly.
8205   lt_compile=`echo "$ac_compile" | $SED \
8206   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8207   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8208   -e 's:$: $lt_compiler_flag:'`
8209   (eval echo "\"\$as_me:8209: $lt_compile\"" >&5)
8210   (eval "$lt_compile" 2>out/conftest.err)
8211   ac_status=$?
8212   cat out/conftest.err >&5
8213   echo "$as_me:8213: \$? = $ac_status" >&5
8214   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8215   then
8216     # The compiler can only warn and ignore the option if not recognized
8217     # So say no if there are warnings
8218     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8219     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8220     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8221       lt_cv_prog_compiler_c_o=yes
8222     fi
8223   fi
8224   chmod u+w . 2>&5
8225   $rm conftest*
8226   # SGI C++ compiler will create directory out/ii_files/ for
8227   # template instantiation
8228   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8229   $rm out/* && rmdir out
8230   cd ..
8231   rmdir conftest
8232   $rm conftest*
8233
8234fi
8235echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8236echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8237
8238
8239hard_links="nottested"
8240if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8241  # do not overwrite the value of need_locks provided by the user
8242  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8243echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8244  hard_links=yes
8245  $rm conftest*
8246  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8247  touch conftest.a
8248  ln conftest.a conftest.b 2>&5 || hard_links=no
8249  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8250  echo "$as_me:$LINENO: result: $hard_links" >&5
8251echo "${ECHO_T}$hard_links" >&6
8252  if test "$hard_links" = no; then
8253    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8254echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8255    need_locks=warn
8256  fi
8257else
8258  need_locks=no
8259fi
8260
8261echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8262echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8263
8264  runpath_var=
8265  allow_undefined_flag=
8266  enable_shared_with_static_runtimes=no
8267  archive_cmds=
8268  archive_expsym_cmds=
8269  old_archive_From_new_cmds=
8270  old_archive_from_expsyms_cmds=
8271  export_dynamic_flag_spec=
8272  whole_archive_flag_spec=
8273  thread_safe_flag_spec=
8274  hardcode_libdir_flag_spec=
8275  hardcode_libdir_flag_spec_ld=
8276  hardcode_libdir_separator=
8277  hardcode_direct=no
8278  hardcode_minus_L=no
8279  hardcode_shlibpath_var=unsupported
8280  link_all_deplibs=unknown
8281  hardcode_automatic=no
8282  module_cmds=
8283  module_expsym_cmds=
8284  always_export_symbols=no
8285  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8286  # include_expsyms should be a list of space-separated symbols to be *always*
8287  # included in the symbol list
8288  include_expsyms=
8289  # exclude_expsyms can be an extended regexp of symbols to exclude
8290  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8291  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8292  # as well as any symbol that contains `d'.
8293  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8294  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8295  # platforms (ab)use it in PIC code, but their linkers get confused if
8296  # the symbol is explicitly referenced.  Since portable code cannot
8297  # rely on this symbol name, it's probably fine to never include it in
8298  # preloaded symbol tables.
8299  extract_expsyms_cmds=
8300  # Just being paranoid about ensuring that cc_basename is set.
8301  for cc_temp in $compiler""; do
8302  case $cc_temp in
8303    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8304    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8305    \-*) ;;
8306    *) break;;
8307  esac
8308done
8309cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8310
8311  case $host_os in
8312  cygwin* | mingw* | pw32*)
8313    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8314    # When not using gcc, we currently assume that we are using
8315    # Microsoft Visual C++.
8316    if test "$GCC" != yes; then
8317      with_gnu_ld=no
8318    fi
8319    ;;
8320  interix*)
8321    # we just hope/assume this is gcc and not c89 (= MSVC++)
8322    with_gnu_ld=yes
8323    ;;
8324  openbsd*)
8325    with_gnu_ld=no
8326    ;;
8327  esac
8328
8329  ld_shlibs=yes
8330  if test "$with_gnu_ld" = yes; then
8331    # If archive_cmds runs LD, not CC, wlarc should be empty
8332    wlarc='${wl}'
8333
8334    # Set some defaults for GNU ld with shared library support. These
8335    # are reset later if shared libraries are not supported. Putting them
8336    # here allows them to be overridden if necessary.
8337    runpath_var=LD_RUN_PATH
8338    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8339    export_dynamic_flag_spec='${wl}--export-dynamic'
8340    # ancient GNU ld didn't support --whole-archive et. al.
8341    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8342        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8343      else
8344        whole_archive_flag_spec=
8345    fi
8346    supports_anon_versioning=no
8347    case `$LD -v 2>/dev/null` in
8348      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8349      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8350      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8351      *\ 2.11.*) ;; # other 2.11 versions
8352      *) supports_anon_versioning=yes ;;
8353    esac
8354
8355    # See if GNU ld supports shared libraries.
8356    case $host_os in
8357    aix3* | aix4* | aix5*)
8358      # On AIX/PPC, the GNU linker is very broken
8359      if test "$host_cpu" != ia64; then
8360        ld_shlibs=no
8361        cat <<EOF 1>&2
8362
8363*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8364*** to be unable to reliably create shared libraries on AIX.
8365*** Therefore, libtool is disabling shared libraries support.  If you
8366*** really care for shared libraries, you may want to modify your PATH
8367*** so that a non-GNU linker is found, and then restart.
8368
8369EOF
8370      fi
8371      ;;
8372
8373    amigaos*)
8374      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)'
8375      hardcode_libdir_flag_spec='-L$libdir'
8376      hardcode_minus_L=yes
8377
8378      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8379      # that the semantics of dynamic libraries on AmigaOS, at least up
8380      # to version 4, is to share data among multiple programs linked
8381      # with the same dynamic library.  Since this doesn't match the
8382      # behavior of shared libraries on other platforms, we can't use
8383      # them.
8384      ld_shlibs=no
8385      ;;
8386
8387    beos*)
8388      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8389        allow_undefined_flag=unsupported
8390        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8391        # support --undefined.  This deserves some investigation.  FIXME
8392        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8393      else
8394        ld_shlibs=no
8395      fi
8396      ;;
8397
8398    cygwin* | mingw* | pw32*)
8399      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8400      # as there is no search path for DLLs.
8401      hardcode_libdir_flag_spec='-L$libdir'
8402      allow_undefined_flag=unsupported
8403      always_export_symbols=no
8404      enable_shared_with_static_runtimes=yes
8405      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8406
8407      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8408        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8409        # If the export-symbols file already is a .def file (1st line
8410        # is EXPORTS), use it as is; otherwise, prepend...
8411        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8412          cp $export_symbols $output_objdir/$soname.def;
8413        else
8414          echo EXPORTS > $output_objdir/$soname.def;
8415          cat $export_symbols >> $output_objdir/$soname.def;
8416        fi~
8417        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8418      else
8419        ld_shlibs=no
8420      fi
8421      ;;
8422
8423    interix3*)
8424      hardcode_direct=no
8425      hardcode_shlibpath_var=no
8426      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8427      export_dynamic_flag_spec='${wl}-E'
8428      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8429      # Instead, shared libraries are loaded at an image base (0x10000000 by
8430      # default) and relocated if they conflict, which is a slow very memory
8431      # consuming and fragmenting process.  To avoid this, we pick a random,
8432      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8433      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8434      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8435      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'
8436      ;;
8437
8438    linux*)
8439      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8440        tmp_addflag=
8441        case $cc_basename,$host_cpu in
8442        pgcc*)                          # Portland Group C compiler
8443          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'
8444          tmp_addflag=' $pic_flag'
8445          ;;
8446        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8447          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'
8448          tmp_addflag=' $pic_flag -Mnomain' ;;
8449        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8450          tmp_addflag=' -i_dynamic' ;;
8451        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8452          tmp_addflag=' -i_dynamic -nofor_main' ;;
8453        ifc* | ifort*)                  # Intel Fortran compiler
8454          tmp_addflag=' -nofor_main' ;;
8455        esac
8456        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8457
8458        if test $supports_anon_versioning = yes; then
8459          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8460  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8461  $echo "local: *; };" >> $output_objdir/$libname.ver~
8462          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8463        fi
8464      else
8465        ld_shlibs=no
8466      fi
8467      ;;
8468
8469    netbsd*)
8470      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8471        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8472        wlarc=
8473      else
8474        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8475        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8476      fi
8477      ;;
8478
8479    solaris*)
8480      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8481        ld_shlibs=no
8482        cat <<EOF 1>&2
8483
8484*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8485*** create shared libraries on Solaris systems.  Therefore, libtool
8486*** is disabling shared libraries support.  We urge you to upgrade GNU
8487*** binutils to release 2.9.1 or newer.  Another option is to modify
8488*** your PATH or compiler configuration so that the native linker is
8489*** used, and then restart.
8490
8491EOF
8492      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8493        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8494        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8495      else
8496        ld_shlibs=no
8497      fi
8498      ;;
8499
8500    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8501      case `$LD -v 2>&1` in
8502        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8503        ld_shlibs=no
8504        cat <<_LT_EOF 1>&2
8505
8506*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8507*** reliably create shared libraries on SCO systems.  Therefore, libtool
8508*** is disabling shared libraries support.  We urge you to upgrade GNU
8509*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8510*** your PATH or compiler configuration so that the native linker is
8511*** used, and then restart.
8512
8513_LT_EOF
8514        ;;
8515        *)
8516          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8517            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8518            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8519            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8520          else
8521            ld_shlibs=no
8522          fi
8523        ;;
8524      esac
8525      ;;
8526
8527    sunos4*)
8528      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8529      wlarc=
8530      hardcode_direct=yes
8531      hardcode_shlibpath_var=no
8532      ;;
8533
8534    *)
8535      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8536        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8537        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8538      else
8539        ld_shlibs=no
8540      fi
8541      ;;
8542    esac
8543
8544    if test "$ld_shlibs" = no; then
8545      runpath_var=
8546      hardcode_libdir_flag_spec=
8547      export_dynamic_flag_spec=
8548      whole_archive_flag_spec=
8549    fi
8550  else
8551    # PORTME fill in a description of your system's linker (not GNU ld)
8552    case $host_os in
8553    aix3*)
8554      allow_undefined_flag=unsupported
8555      always_export_symbols=yes
8556      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'
8557      # Note: this linker hardcodes the directories in LIBPATH if there
8558      # are no directories specified by -L.
8559      hardcode_minus_L=yes
8560      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8561        # Neither direct hardcoding nor static linking is supported with a
8562        # broken collect2.
8563        hardcode_direct=unsupported
8564      fi
8565      ;;
8566
8567    aix4* | aix5*)
8568      if test "$host_cpu" = ia64; then
8569        # On IA64, the linker does run time linking by default, so we don't
8570        # have to do anything special.
8571        aix_use_runtimelinking=no
8572        exp_sym_flag='-Bexport'
8573        no_entry_flag=""
8574      else
8575        # If we're using GNU nm, then we don't want the "-C" option.
8576        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8577        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8578          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'
8579        else
8580          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'
8581        fi
8582        aix_use_runtimelinking=no
8583
8584        # Test if we are trying to use run time linking or normal
8585        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8586        # need to do runtime linking.
8587        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8588          for ld_flag in $LDFLAGS; do
8589          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8590            aix_use_runtimelinking=yes
8591            break
8592          fi
8593          done
8594          ;;
8595        esac
8596
8597        exp_sym_flag='-bexport'
8598        no_entry_flag='-bnoentry'
8599      fi
8600
8601      # When large executables or shared objects are built, AIX ld can
8602      # have problems creating the table of contents.  If linking a library
8603      # or program results in "error TOC overflow" add -mminimal-toc to
8604      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8605      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8606
8607      archive_cmds=''
8608      hardcode_direct=yes
8609      hardcode_libdir_separator=':'
8610      link_all_deplibs=yes
8611
8612      if test "$GCC" = yes; then
8613        case $host_os in aix4.[012]|aix4.[012].*)
8614        # We only want to do this on AIX 4.2 and lower, the check
8615        # below for broken collect2 doesn't work under 4.3+
8616          collect2name=`${CC} -print-prog-name=collect2`
8617          if test -f "$collect2name" && \
8618           strings "$collect2name" | grep resolve_lib_name >/dev/null
8619          then
8620          # We have reworked collect2
8621          hardcode_direct=yes
8622          else
8623          # We have old collect2
8624          hardcode_direct=unsupported
8625          # It fails to find uninstalled libraries when the uninstalled
8626          # path is not listed in the libpath.  Setting hardcode_minus_L
8627          # to unsupported forces relinking
8628          hardcode_minus_L=yes
8629          hardcode_libdir_flag_spec='-L$libdir'
8630          hardcode_libdir_separator=
8631          fi
8632          ;;
8633        esac
8634        shared_flag='-shared'
8635        if test "$aix_use_runtimelinking" = yes; then
8636          shared_flag="$shared_flag "'${wl}-G'
8637        fi
8638      else
8639        # not using gcc
8640        if test "$host_cpu" = ia64; then
8641        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8642        # chokes on -Wl,-G. The following line is correct:
8643          shared_flag='-G'
8644        else
8645          if test "$aix_use_runtimelinking" = yes; then
8646            shared_flag='${wl}-G'
8647          else
8648            shared_flag='${wl}-bM:SRE'
8649          fi
8650        fi
8651      fi
8652
8653      # It seems that -bexpall does not export symbols beginning with
8654      # underscore (_), so it is better to generate a list of symbols to export.
8655      always_export_symbols=yes
8656      if test "$aix_use_runtimelinking" = yes; then
8657        # Warning - without using the other runtime loading flags (-brtl),
8658        # -berok will link without error, but may produce a broken library.
8659        allow_undefined_flag='-berok'
8660       # Determine the default libpath from the value encoded in an empty executable.
8661       cat >conftest.$ac_ext <<_ACEOF
8662/* confdefs.h.  */
8663_ACEOF
8664cat confdefs.h >>conftest.$ac_ext
8665cat >>conftest.$ac_ext <<_ACEOF
8666/* end confdefs.h.  */
8667
8668int
8669main ()
8670{
8671
8672  ;
8673  return 0;
8674}
8675_ACEOF
8676rm -f conftest.$ac_objext conftest$ac_exeext
8677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678  (eval $ac_link) 2>conftest.er1
8679  ac_status=$?
8680  grep -v '^ *+' conftest.er1 >conftest.err
8681  rm -f conftest.er1
8682  cat conftest.err >&5
8683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684  (exit $ac_status); } &&
8685         { ac_try='test -z "$ac_c_werror_flag"
8686                         || test ! -s conftest.err'
8687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688  (eval $ac_try) 2>&5
8689  ac_status=$?
8690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691  (exit $ac_status); }; } &&
8692         { ac_try='test -s conftest$ac_exeext'
8693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694  (eval $ac_try) 2>&5
8695  ac_status=$?
8696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697  (exit $ac_status); }; }; then
8698
8699aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8700}'`
8701# Check for a 64-bit object if we didn't find anything.
8702if 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; }
8703}'`; fi
8704else
8705  echo "$as_me: failed program was:" >&5
8706sed 's/^/| /' conftest.$ac_ext >&5
8707
8708fi
8709rm -f conftest.err conftest.$ac_objext \
8710      conftest$ac_exeext conftest.$ac_ext
8711if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8712
8713       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8714        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"
8715       else
8716        if test "$host_cpu" = ia64; then
8717          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8718          allow_undefined_flag="-z nodefs"
8719          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"
8720        else
8721         # Determine the default libpath from the value encoded in an empty executable.
8722         cat >conftest.$ac_ext <<_ACEOF
8723/* confdefs.h.  */
8724_ACEOF
8725cat confdefs.h >>conftest.$ac_ext
8726cat >>conftest.$ac_ext <<_ACEOF
8727/* end confdefs.h.  */
8728
8729int
8730main ()
8731{
8732
8733  ;
8734  return 0;
8735}
8736_ACEOF
8737rm -f conftest.$ac_objext conftest$ac_exeext
8738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8739  (eval $ac_link) 2>conftest.er1
8740  ac_status=$?
8741  grep -v '^ *+' conftest.er1 >conftest.err
8742  rm -f conftest.er1
8743  cat conftest.err >&5
8744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745  (exit $ac_status); } &&
8746         { ac_try='test -z "$ac_c_werror_flag"
8747                         || test ! -s conftest.err'
8748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749  (eval $ac_try) 2>&5
8750  ac_status=$?
8751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752  (exit $ac_status); }; } &&
8753         { ac_try='test -s conftest$ac_exeext'
8754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755  (eval $ac_try) 2>&5
8756  ac_status=$?
8757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758  (exit $ac_status); }; }; then
8759
8760aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8761}'`
8762# Check for a 64-bit object if we didn't find anything.
8763if 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; }
8764}'`; fi
8765else
8766  echo "$as_me: failed program was:" >&5
8767sed 's/^/| /' conftest.$ac_ext >&5
8768
8769fi
8770rm -f conftest.err conftest.$ac_objext \
8771      conftest$ac_exeext conftest.$ac_ext
8772if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8773
8774         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8775          # Warning - without using the other run time loading flags,
8776          # -berok will link without error, but may produce a broken library.
8777          no_undefined_flag=' ${wl}-bernotok'
8778          allow_undefined_flag=' ${wl}-berok'
8779          # Exported symbols can be pulled into shared objects from archives
8780          whole_archive_flag_spec='$convenience'
8781          archive_cmds_need_lc=yes
8782          # This is similar to how AIX traditionally builds its shared libraries.
8783          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'
8784        fi
8785      fi
8786      ;;
8787
8788    amigaos*)
8789      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)'
8790      hardcode_libdir_flag_spec='-L$libdir'
8791      hardcode_minus_L=yes
8792      # see comment about different semantics on the GNU ld section
8793      ld_shlibs=no
8794      ;;
8795
8796    bsdi[45]*)
8797      export_dynamic_flag_spec=-rdynamic
8798      ;;
8799
8800    cygwin* | mingw* | pw32*)
8801      # When not using gcc, we currently assume that we are using
8802      # Microsoft Visual C++.
8803      # hardcode_libdir_flag_spec is actually meaningless, as there is
8804      # no search path for DLLs.
8805      hardcode_libdir_flag_spec=' '
8806      allow_undefined_flag=unsupported
8807      # Tell ltmain to make .lib files, not .a files.
8808      libext=lib
8809      # Tell ltmain to make .dll files, not .so files.
8810      shrext_cmds=".dll"
8811      # FIXME: Setting linknames here is a bad hack.
8812      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8813      # The linker will automatically build a .lib file if we build a DLL.
8814      old_archive_From_new_cmds='true'
8815      # FIXME: Should let the user specify the lib program.
8816      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8817      fix_srcfile_path='`cygpath -w "$srcfile"`'
8818      enable_shared_with_static_runtimes=yes
8819      ;;
8820
8821    darwin* | rhapsody*)
8822      case $host_os in
8823        rhapsody* | darwin1.[012])
8824         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8825         ;;
8826       *) # Darwin 1.3 on
8827         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8828           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8829         else
8830           case ${MACOSX_DEPLOYMENT_TARGET} in
8831             10.[012])
8832               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8833               ;;
8834             10.*)
8835               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8836               ;;
8837           esac
8838         fi
8839         ;;
8840      esac
8841      archive_cmds_need_lc=no
8842      hardcode_direct=no
8843      hardcode_automatic=yes
8844      hardcode_shlibpath_var=unsupported
8845      whole_archive_flag_spec=''
8846      link_all_deplibs=yes
8847    if test "$GCC" = yes ; then
8848        output_verbose_link_cmd='echo'
8849        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8850      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8851      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8852      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}'
8853      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}'
8854    else
8855      case $cc_basename in
8856        xlc*)
8857         output_verbose_link_cmd='echo'
8858         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8859         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8860          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8861         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}'
8862          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}'
8863          ;;
8864       *)
8865         ld_shlibs=no
8866          ;;
8867      esac
8868    fi
8869      ;;
8870
8871    dgux*)
8872      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873      hardcode_libdir_flag_spec='-L$libdir'
8874      hardcode_shlibpath_var=no
8875      ;;
8876
8877    freebsd1*)
8878      ld_shlibs=no
8879      ;;
8880
8881    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8882    # support.  Future versions do this automatically, but an explicit c++rt0.o
8883    # does not break anything, and helps significantly (at the cost of a little
8884    # extra space).
8885    freebsd2.2*)
8886      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8887      hardcode_libdir_flag_spec='-R$libdir'
8888      hardcode_direct=yes
8889      hardcode_shlibpath_var=no
8890      ;;
8891
8892    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8893    freebsd2*)
8894      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8895      hardcode_direct=yes
8896      hardcode_minus_L=yes
8897      hardcode_shlibpath_var=no
8898      ;;
8899
8900    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8901    freebsd* | kfreebsd*-gnu | dragonfly*)
8902      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8903      hardcode_libdir_flag_spec='-R$libdir'
8904      hardcode_direct=yes
8905      hardcode_shlibpath_var=no
8906      ;;
8907
8908    hpux9*)
8909      if test "$GCC" = yes; then
8910        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'
8911      else
8912        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'
8913      fi
8914      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8915      hardcode_libdir_separator=:
8916      hardcode_direct=yes
8917
8918      # hardcode_minus_L: Not really in the search PATH,
8919      # but as the default location of the library.
8920      hardcode_minus_L=yes
8921      export_dynamic_flag_spec='${wl}-E'
8922      ;;
8923
8924    hpux10*)
8925      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8926        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8927      else
8928        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8929      fi
8930      if test "$with_gnu_ld" = no; then
8931        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8932        hardcode_libdir_separator=:
8933
8934        hardcode_direct=yes
8935        export_dynamic_flag_spec='${wl}-E'
8936
8937        # hardcode_minus_L: Not really in the search PATH,
8938        # but as the default location of the library.
8939        hardcode_minus_L=yes
8940      fi
8941      ;;
8942
8943    hpux11*)
8944      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8945        case $host_cpu in
8946        hppa*64*)
8947          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8948          ;;
8949        ia64*)
8950          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8951          ;;
8952        *)
8953          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8954          ;;
8955        esac
8956      else
8957        case $host_cpu in
8958        hppa*64*)
8959          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8960          ;;
8961        ia64*)
8962          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8963          ;;
8964        *)
8965          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8966          ;;
8967        esac
8968      fi
8969      if test "$with_gnu_ld" = no; then
8970        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8971        hardcode_libdir_separator=:
8972
8973        case $host_cpu in
8974        hppa*64*|ia64*)
8975          hardcode_libdir_flag_spec_ld='+b $libdir'
8976          hardcode_direct=no
8977          hardcode_shlibpath_var=no
8978          ;;
8979        *)
8980          hardcode_direct=yes
8981          export_dynamic_flag_spec='${wl}-E'
8982
8983          # hardcode_minus_L: Not really in the search PATH,
8984          # but as the default location of the library.
8985          hardcode_minus_L=yes
8986          ;;
8987        esac
8988      fi
8989      ;;
8990
8991    irix5* | irix6* | nonstopux*)
8992      if test "$GCC" = yes; then
8993        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'
8994      else
8995        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'
8996        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8997      fi
8998      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8999      hardcode_libdir_separator=:
9000      link_all_deplibs=yes
9001      ;;
9002
9003    netbsd*)
9004      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9005        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9006      else
9007        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9008      fi
9009      hardcode_libdir_flag_spec='-R$libdir'
9010      hardcode_direct=yes
9011      hardcode_shlibpath_var=no
9012      ;;
9013
9014    newsos6)
9015      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016      hardcode_direct=yes
9017      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9018      hardcode_libdir_separator=:
9019      hardcode_shlibpath_var=no
9020      ;;
9021
9022    openbsd*)
9023      hardcode_direct=yes
9024      hardcode_shlibpath_var=no
9025      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9026        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9027        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9028        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9029        export_dynamic_flag_spec='${wl}-E'
9030      else
9031       case $host_os in
9032         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9033           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9034           hardcode_libdir_flag_spec='-R$libdir'
9035           ;;
9036         *)
9037           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9038           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9039           ;;
9040       esac
9041      fi
9042      ;;
9043
9044    os2*)
9045      hardcode_libdir_flag_spec='-L$libdir'
9046      hardcode_minus_L=yes
9047      allow_undefined_flag=unsupported
9048      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'
9049      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9050      ;;
9051
9052    osf3*)
9053      if test "$GCC" = yes; then
9054        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9055        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'
9056      else
9057        allow_undefined_flag=' -expect_unresolved \*'
9058        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'
9059      fi
9060      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9061      hardcode_libdir_separator=:
9062      ;;
9063
9064    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9065      if test "$GCC" = yes; then
9066        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9067        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'
9068        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069      else
9070        allow_undefined_flag=' -expect_unresolved \*'
9071        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'
9072        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9073        $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'
9074
9075        # Both c and cxx compiler support -rpath directly
9076        hardcode_libdir_flag_spec='-rpath $libdir'
9077      fi
9078      hardcode_libdir_separator=:
9079      ;;
9080
9081    solaris*)
9082      no_undefined_flag=' -z text'
9083      if test "$GCC" = yes; then
9084        wlarc='${wl}'
9085        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9086        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9087          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9088      else
9089        wlarc=''
9090        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9091        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9092        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9093      fi
9094      hardcode_libdir_flag_spec='-R$libdir'
9095      hardcode_shlibpath_var=no
9096      case $host_os in
9097      solaris2.[0-5] | solaris2.[0-5].*) ;;
9098      *)
9099        # The compiler driver will combine linker options so we
9100        # cannot just pass the convience library names through
9101        # without $wl, iff we do not link with $LD.
9102        # Luckily, gcc supports the same syntax we need for Sun Studio.
9103        # Supported since Solaris 2.6 (maybe 2.5.1?)
9104        case $wlarc in
9105        '')
9106          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9107        *)
9108          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' ;;
9109        esac ;;
9110      esac
9111      link_all_deplibs=yes
9112      ;;
9113
9114    sunos4*)
9115      if test "x$host_vendor" = xsequent; then
9116        # Use $CC to link under sequent, because it throws in some extra .o
9117        # files that make .init and .fini sections work.
9118        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9119      else
9120        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9121      fi
9122      hardcode_libdir_flag_spec='-L$libdir'
9123      hardcode_direct=yes
9124      hardcode_minus_L=yes
9125      hardcode_shlibpath_var=no
9126      ;;
9127
9128    sysv4)
9129      case $host_vendor in
9130        sni)
9131          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9132          hardcode_direct=yes # is this really true???
9133        ;;
9134        siemens)
9135          ## LD is ld it makes a PLAMLIB
9136          ## CC just makes a GrossModule.
9137          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9138          reload_cmds='$CC -r -o $output$reload_objs'
9139          hardcode_direct=no
9140        ;;
9141        motorola)
9142          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9143          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9144        ;;
9145      esac
9146      runpath_var='LD_RUN_PATH'
9147      hardcode_shlibpath_var=no
9148      ;;
9149
9150    sysv4.3*)
9151      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9152      hardcode_shlibpath_var=no
9153      export_dynamic_flag_spec='-Bexport'
9154      ;;
9155
9156    sysv4*MP*)
9157      if test -d /usr/nec; then
9158        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9159        hardcode_shlibpath_var=no
9160        runpath_var=LD_RUN_PATH
9161        hardcode_runpath_var=yes
9162        ld_shlibs=yes
9163      fi
9164      ;;
9165
9166    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9167      no_undefined_flag='${wl}-z,text'
9168      archive_cmds_need_lc=no
9169      hardcode_shlibpath_var=no
9170      runpath_var='LD_RUN_PATH'
9171
9172      if test "$GCC" = yes; then
9173        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9174        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9175      else
9176        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9177        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9178      fi
9179      ;;
9180
9181    sysv5* | sco3.2v5* | sco5v6*)
9182      # Note: We can NOT use -z defs as we might desire, because we do not
9183      # link with -lc, and that would cause any symbols used from libc to
9184      # always be unresolved, which means just about no library would
9185      # ever link correctly.  If we're not using GNU ld we use -z text
9186      # though, which does catch some bad symbols but isn't as heavy-handed
9187      # as -z defs.
9188      no_undefined_flag='${wl}-z,text'
9189      allow_undefined_flag='${wl}-z,nodefs'
9190      archive_cmds_need_lc=no
9191      hardcode_shlibpath_var=no
9192      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9193      hardcode_libdir_separator=':'
9194      link_all_deplibs=yes
9195      export_dynamic_flag_spec='${wl}-Bexport'
9196      runpath_var='LD_RUN_PATH'
9197
9198      if test "$GCC" = yes; then
9199        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9200        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9201      else
9202        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9203        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204      fi
9205      ;;
9206
9207    uts4*)
9208      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9209      hardcode_libdir_flag_spec='-L$libdir'
9210      hardcode_shlibpath_var=no
9211      ;;
9212
9213    *)
9214      ld_shlibs=no
9215      ;;
9216    esac
9217  fi
9218
9219echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9220echo "${ECHO_T}$ld_shlibs" >&6
9221test "$ld_shlibs" = no && can_build_shared=no
9222
9223#
9224# Do we need to explicitly link libc?
9225#
9226case "x$archive_cmds_need_lc" in
9227x|xyes)
9228  # Assume -lc should be added
9229  archive_cmds_need_lc=yes
9230
9231  if test "$enable_shared" = yes && test "$GCC" = yes; then
9232    case $archive_cmds in
9233    *'~'*)
9234      # FIXME: we may have to deal with multi-command sequences.
9235      ;;
9236    '$CC '*)
9237      # Test whether the compiler implicitly links with -lc since on some
9238      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9239      # to ld, don't add -lc before -lgcc.
9240      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9241echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9242      $rm conftest*
9243      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9244
9245      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246  (eval $ac_compile) 2>&5
9247  ac_status=$?
9248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249  (exit $ac_status); } 2>conftest.err; then
9250        soname=conftest
9251        lib=conftest
9252        libobjs=conftest.$ac_objext
9253        deplibs=
9254        wl=$lt_prog_compiler_wl
9255        pic_flag=$lt_prog_compiler_pic
9256        compiler_flags=-v
9257        linker_flags=-v
9258        verstring=
9259        output_objdir=.
9260        libname=conftest
9261        lt_save_allow_undefined_flag=$allow_undefined_flag
9262        allow_undefined_flag=
9263        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9264  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9265  ac_status=$?
9266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267  (exit $ac_status); }
9268        then
9269          archive_cmds_need_lc=no
9270        else
9271          archive_cmds_need_lc=yes
9272        fi
9273        allow_undefined_flag=$lt_save_allow_undefined_flag
9274      else
9275        cat conftest.err 1>&5
9276      fi
9277      $rm conftest*
9278      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9279echo "${ECHO_T}$archive_cmds_need_lc" >&6
9280      ;;
9281    esac
9282  fi
9283  ;;
9284esac
9285
9286echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9287echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9288library_names_spec=
9289libname_spec='lib$name'
9290soname_spec=
9291shrext_cmds=".so"
9292postinstall_cmds=
9293postuninstall_cmds=
9294finish_cmds=
9295finish_eval=
9296shlibpath_var=
9297shlibpath_overrides_runpath=unknown
9298version_type=none
9299dynamic_linker="$host_os ld.so"
9300sys_lib_dlsearch_path_spec="/lib /usr/lib"
9301if test "$GCC" = yes; then
9302  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9303  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9304    # if the path contains ";" then we assume it to be the separator
9305    # otherwise default to the standard path separator (i.e. ":") - it is
9306    # assumed that no part of a normal pathname contains ";" but that should
9307    # okay in the real world where ";" in dirpaths is itself problematic.
9308    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9309  else
9310    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9311  fi
9312else
9313  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9314fi
9315need_lib_prefix=unknown
9316hardcode_into_libs=no
9317
9318# when you set need_version to no, make sure it does not cause -set_version
9319# flags to be left without arguments
9320need_version=unknown
9321
9322case $host_os in
9323aix3*)
9324  version_type=linux
9325  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9326  shlibpath_var=LIBPATH
9327
9328  # AIX 3 has no versioning support, so we append a major version to the name.
9329  soname_spec='${libname}${release}${shared_ext}$major'
9330  ;;
9331
9332aix4* | aix5*)
9333  version_type=linux
9334  need_lib_prefix=no
9335  need_version=no
9336  hardcode_into_libs=yes
9337  if test "$host_cpu" = ia64; then
9338    # AIX 5 supports IA64
9339    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9340    shlibpath_var=LD_LIBRARY_PATH
9341  else
9342    # With GCC up to 2.95.x, collect2 would create an import file
9343    # for dependence libraries.  The import file would start with
9344    # the line `#! .'.  This would cause the generated library to
9345    # depend on `.', always an invalid library.  This was fixed in
9346    # development snapshots of GCC prior to 3.0.
9347    case $host_os in
9348      aix4 | aix4.[01] | aix4.[01].*)
9349      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9350           echo ' yes '
9351           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9352        :
9353      else
9354        can_build_shared=no
9355      fi
9356      ;;
9357    esac
9358    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9359    # soname into executable. Probably we can add versioning support to
9360    # collect2, so additional links can be useful in future.
9361    if test "$aix_use_runtimelinking" = yes; then
9362      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9363      # instead of lib<name>.a to let people know that these are not
9364      # typical AIX shared libraries.
9365      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366    else
9367      # We preserve .a as extension for shared libraries through AIX4.2
9368      # and later when we are not doing run time linking.
9369      library_names_spec='${libname}${release}.a $libname.a'
9370      soname_spec='${libname}${release}${shared_ext}$major'
9371    fi
9372    shlibpath_var=LIBPATH
9373  fi
9374  ;;
9375
9376amigaos*)
9377  library_names_spec='$libname.ixlibrary $libname.a'
9378  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9379  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'
9380  ;;
9381
9382beos*)
9383  library_names_spec='${libname}${shared_ext}'
9384  dynamic_linker="$host_os ld.so"
9385  shlibpath_var=LIBRARY_PATH
9386  ;;
9387
9388bsdi[45]*)
9389  version_type=linux
9390  need_version=no
9391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392  soname_spec='${libname}${release}${shared_ext}$major'
9393  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9394  shlibpath_var=LD_LIBRARY_PATH
9395  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9396  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9397  # the default ld.so.conf also contains /usr/contrib/lib and
9398  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9399  # libtool to hard-code these into programs
9400  ;;
9401
9402cygwin* | mingw* | pw32*)
9403  version_type=windows
9404  shrext_cmds=".dll"
9405  need_version=no
9406  need_lib_prefix=no
9407
9408  case $GCC,$host_os in
9409  yes,cygwin* | yes,mingw* | yes,pw32*)
9410    library_names_spec='$libname.dll.a'
9411    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9412    postinstall_cmds='base_file=`basename \${file}`~
9413      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9414      dldir=$destdir/`dirname \$dlpath`~
9415      test -d \$dldir || mkdir -p \$dldir~
9416      $install_prog $dir/$dlname \$dldir/$dlname~
9417      chmod a+x \$dldir/$dlname'
9418    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9419      dlpath=$dir/\$dldll~
9420       $rm \$dlpath'
9421    shlibpath_overrides_runpath=yes
9422
9423    case $host_os in
9424    cygwin*)
9425      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9426      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9427      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9428      ;;
9429    mingw*)
9430      # MinGW DLLs use traditional 'lib' prefix
9431      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9432      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9433      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9434        # It is most probably a Windows format PATH printed by
9435        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9436        # path with ; separators, and with drive letters. We can handle the
9437        # drive letters (cygwin fileutils understands them), so leave them,
9438        # especially as we might pass files found there to a mingw objdump,
9439        # which wouldn't understand a cygwinified path. Ahh.
9440        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9441      else
9442        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9443      fi
9444      ;;
9445    pw32*)
9446      # pw32 DLLs use 'pw' prefix rather than 'lib'
9447      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9448      ;;
9449    esac
9450    ;;
9451
9452  *)
9453    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9454    ;;
9455  esac
9456  dynamic_linker='Win32 ld.exe'
9457  # FIXME: first we should search . and the directory the executable is in
9458  shlibpath_var=PATH
9459  ;;
9460
9461darwin* | rhapsody*)
9462  dynamic_linker="$host_os dyld"
9463  version_type=darwin
9464  need_lib_prefix=no
9465  need_version=no
9466  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9467  soname_spec='${libname}${release}${major}$shared_ext'
9468  shlibpath_overrides_runpath=yes
9469  shlibpath_var=DYLD_LIBRARY_PATH
9470  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9471  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9472  if test "$GCC" = yes; then
9473    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"`
9474  else
9475    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9476  fi
9477  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9478  ;;
9479
9480dgux*)
9481  version_type=linux
9482  need_lib_prefix=no
9483  need_version=no
9484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9485  soname_spec='${libname}${release}${shared_ext}$major'
9486  shlibpath_var=LD_LIBRARY_PATH
9487  ;;
9488
9489freebsd1*)
9490  dynamic_linker=no
9491  ;;
9492
9493kfreebsd*-gnu)
9494  version_type=linux
9495  need_lib_prefix=no
9496  need_version=no
9497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9498  soname_spec='${libname}${release}${shared_ext}$major'
9499  shlibpath_var=LD_LIBRARY_PATH
9500  shlibpath_overrides_runpath=no
9501  hardcode_into_libs=yes
9502  dynamic_linker='GNU ld.so'
9503  ;;
9504
9505freebsd* | dragonfly*)
9506  # DragonFly does not have aout.  When/if they implement a new
9507  # versioning mechanism, adjust this.
9508  if test -x /usr/bin/objformat; then
9509    objformat=`/usr/bin/objformat`
9510  else
9511    case $host_os in
9512    freebsd[123]*) objformat=aout ;;
9513    *) objformat=elf ;;
9514    esac
9515  fi
9516  version_type=freebsd-$objformat
9517  case $version_type in
9518    freebsd-elf*)
9519      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9520      need_version=no
9521      need_lib_prefix=no
9522      ;;
9523    freebsd-*)
9524      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9525      need_version=yes
9526      ;;
9527  esac
9528  shlibpath_var=LD_LIBRARY_PATH
9529  case $host_os in
9530  freebsd2*)
9531    shlibpath_overrides_runpath=yes
9532    ;;
9533  freebsd3.[01]* | freebsdelf3.[01]*)
9534    shlibpath_overrides_runpath=yes
9535    hardcode_into_libs=yes
9536    ;;
9537  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9538  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9539    shlibpath_overrides_runpath=no
9540    hardcode_into_libs=yes
9541    ;;
9542  freebsd*) # from 4.6 on
9543    shlibpath_overrides_runpath=yes
9544    hardcode_into_libs=yes
9545    ;;
9546  esac
9547  ;;
9548
9549gnu*)
9550  version_type=linux
9551  need_lib_prefix=no
9552  need_version=no
9553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9554  soname_spec='${libname}${release}${shared_ext}$major'
9555  shlibpath_var=LD_LIBRARY_PATH
9556  hardcode_into_libs=yes
9557  ;;
9558
9559hpux9* | hpux10* | hpux11*)
9560  # Give a soname corresponding to the major version so that dld.sl refuses to
9561  # link against other versions.
9562  version_type=sunos
9563  need_lib_prefix=no
9564  need_version=no
9565  case $host_cpu in
9566  ia64*)
9567    shrext_cmds='.so'
9568    hardcode_into_libs=yes
9569    dynamic_linker="$host_os dld.so"
9570    shlibpath_var=LD_LIBRARY_PATH
9571    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9572    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573    soname_spec='${libname}${release}${shared_ext}$major'
9574    if test "X$HPUX_IA64_MODE" = X32; then
9575      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9576    else
9577      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9578    fi
9579    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9580    ;;
9581   hppa*64*)
9582     shrext_cmds='.sl'
9583     hardcode_into_libs=yes
9584     dynamic_linker="$host_os dld.sl"
9585     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9586     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588     soname_spec='${libname}${release}${shared_ext}$major'
9589     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9590     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9591     ;;
9592   *)
9593    shrext_cmds='.sl'
9594    dynamic_linker="$host_os dld.sl"
9595    shlibpath_var=SHLIB_PATH
9596    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598    soname_spec='${libname}${release}${shared_ext}$major'
9599    ;;
9600  esac
9601  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9602  postinstall_cmds='chmod 555 $lib'
9603  ;;
9604
9605interix3*)
9606  version_type=linux
9607  need_lib_prefix=no
9608  need_version=no
9609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9610  soname_spec='${libname}${release}${shared_ext}$major'
9611  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9612  shlibpath_var=LD_LIBRARY_PATH
9613  shlibpath_overrides_runpath=no
9614  hardcode_into_libs=yes
9615  ;;
9616
9617irix5* | irix6* | nonstopux*)
9618  case $host_os in
9619    nonstopux*) version_type=nonstopux ;;
9620    *)
9621        if test "$lt_cv_prog_gnu_ld" = yes; then
9622                version_type=linux
9623        else
9624                version_type=irix
9625        fi ;;
9626  esac
9627  need_lib_prefix=no
9628  need_version=no
9629  soname_spec='${libname}${release}${shared_ext}$major'
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9631  case $host_os in
9632  irix5* | nonstopux*)
9633    libsuff= shlibsuff=
9634    ;;
9635  *)
9636    case $LD in # libtool.m4 will add one of these switches to LD
9637    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9638      libsuff= shlibsuff= libmagic=32-bit;;
9639    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9640      libsuff=32 shlibsuff=N32 libmagic=N32;;
9641    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9642      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9643    *) libsuff= shlibsuff= libmagic=never-match;;
9644    esac
9645    ;;
9646  esac
9647  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9648  shlibpath_overrides_runpath=no
9649  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9650  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9651  hardcode_into_libs=yes
9652  ;;
9653
9654# No shared lib support for Linux oldld, aout, or coff.
9655linux*oldld* | linux*aout* | linux*coff*)
9656  dynamic_linker=no
9657  ;;
9658
9659# This must be Linux ELF.
9660linux*)
9661  version_type=linux
9662  need_lib_prefix=no
9663  need_version=no
9664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665  soname_spec='${libname}${release}${shared_ext}$major'
9666  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9667  shlibpath_var=LD_LIBRARY_PATH
9668  shlibpath_overrides_runpath=no
9669  # This implies no fast_install, which is unacceptable.
9670  # Some rework will be needed to allow for fast_install
9671  # before this can be enabled.
9672  hardcode_into_libs=yes
9673
9674  # Append ld.so.conf contents to the search path
9675  if test -f /etc/ld.so.conf; then
9676    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' ' '`
9677    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9678  fi
9679
9680  # We used to test for /lib/ld.so.1 and disable shared libraries on
9681  # powerpc, because MkLinux only supported shared libraries with the
9682  # GNU dynamic linker.  Since this was broken with cross compilers,
9683  # most powerpc-linux boxes support dynamic linking these days and
9684  # people can always --disable-shared, the test was removed, and we
9685  # assume the GNU/Linux dynamic linker is in use.
9686  dynamic_linker='GNU/Linux ld.so'
9687  ;;
9688
9689knetbsd*-gnu)
9690  version_type=linux
9691  need_lib_prefix=no
9692  need_version=no
9693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9694  soname_spec='${libname}${release}${shared_ext}$major'
9695  shlibpath_var=LD_LIBRARY_PATH
9696  shlibpath_overrides_runpath=no
9697  hardcode_into_libs=yes
9698  dynamic_linker='GNU ld.so'
9699  ;;
9700
9701netbsd*)
9702  version_type=sunos
9703  need_lib_prefix=no
9704  need_version=no
9705  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9706    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9707    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9708    dynamic_linker='NetBSD (a.out) ld.so'
9709  else
9710    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9711    soname_spec='${libname}${release}${shared_ext}$major'
9712    dynamic_linker='NetBSD ld.elf_so'
9713  fi
9714  shlibpath_var=LD_LIBRARY_PATH
9715  shlibpath_overrides_runpath=yes
9716  hardcode_into_libs=yes
9717  ;;
9718
9719newsos6)
9720  version_type=linux
9721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722  shlibpath_var=LD_LIBRARY_PATH
9723  shlibpath_overrides_runpath=yes
9724  ;;
9725
9726nto-qnx*)
9727  version_type=linux
9728  need_lib_prefix=no
9729  need_version=no
9730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731  soname_spec='${libname}${release}${shared_ext}$major'
9732  shlibpath_var=LD_LIBRARY_PATH
9733  shlibpath_overrides_runpath=yes
9734  ;;
9735
9736openbsd*)
9737  version_type=sunos
9738  sys_lib_dlsearch_path_spec="/usr/lib"
9739  need_lib_prefix=no
9740  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9741  case $host_os in
9742    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9743    *)                         need_version=no  ;;
9744  esac
9745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9746  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9747  shlibpath_var=LD_LIBRARY_PATH
9748  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9749    case $host_os in
9750      openbsd2.[89] | openbsd2.[89].*)
9751        shlibpath_overrides_runpath=no
9752        ;;
9753      *)
9754        shlibpath_overrides_runpath=yes
9755        ;;
9756      esac
9757  else
9758    shlibpath_overrides_runpath=yes
9759  fi
9760  ;;
9761
9762os2*)
9763  libname_spec='$name'
9764  shrext_cmds=".dll"
9765  need_lib_prefix=no
9766  library_names_spec='$libname${shared_ext} $libname.a'
9767  dynamic_linker='OS/2 ld.exe'
9768  shlibpath_var=LIBPATH
9769  ;;
9770
9771osf3* | osf4* | osf5*)
9772  version_type=osf
9773  need_lib_prefix=no
9774  need_version=no
9775  soname_spec='${libname}${release}${shared_ext}$major'
9776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9777  shlibpath_var=LD_LIBRARY_PATH
9778  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9779  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9780  ;;
9781
9782solaris*)
9783  version_type=linux
9784  need_lib_prefix=no
9785  need_version=no
9786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787  soname_spec='${libname}${release}${shared_ext}$major'
9788  shlibpath_var=LD_LIBRARY_PATH
9789  shlibpath_overrides_runpath=yes
9790  hardcode_into_libs=yes
9791  # ldd complains unless libraries are executable
9792  postinstall_cmds='chmod +x $lib'
9793  ;;
9794
9795sunos4*)
9796  version_type=sunos
9797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9798  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9799  shlibpath_var=LD_LIBRARY_PATH
9800  shlibpath_overrides_runpath=yes
9801  if test "$with_gnu_ld" = yes; then
9802    need_lib_prefix=no
9803  fi
9804  need_version=yes
9805  ;;
9806
9807sysv4 | sysv4.3*)
9808  version_type=linux
9809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810  soname_spec='${libname}${release}${shared_ext}$major'
9811  shlibpath_var=LD_LIBRARY_PATH
9812  case $host_vendor in
9813    sni)
9814      shlibpath_overrides_runpath=no
9815      need_lib_prefix=no
9816      export_dynamic_flag_spec='${wl}-Blargedynsym'
9817      runpath_var=LD_RUN_PATH
9818      ;;
9819    siemens)
9820      need_lib_prefix=no
9821      ;;
9822    motorola)
9823      need_lib_prefix=no
9824      need_version=no
9825      shlibpath_overrides_runpath=no
9826      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9827      ;;
9828  esac
9829  ;;
9830
9831sysv4*MP*)
9832  if test -d /usr/nec ;then
9833    version_type=linux
9834    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9835    soname_spec='$libname${shared_ext}.$major'
9836    shlibpath_var=LD_LIBRARY_PATH
9837  fi
9838  ;;
9839
9840sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9841  version_type=freebsd-elf
9842  need_lib_prefix=no
9843  need_version=no
9844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9845  soname_spec='${libname}${release}${shared_ext}$major'
9846  shlibpath_var=LD_LIBRARY_PATH
9847  hardcode_into_libs=yes
9848  if test "$with_gnu_ld" = yes; then
9849    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9850    shlibpath_overrides_runpath=no
9851  else
9852    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9853    shlibpath_overrides_runpath=yes
9854    case $host_os in
9855      sco3.2v5*)
9856        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9857        ;;
9858    esac
9859  fi
9860  sys_lib_dlsearch_path_spec='/usr/lib'
9861  ;;
9862
9863uts4*)
9864  version_type=linux
9865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866  soname_spec='${libname}${release}${shared_ext}$major'
9867  shlibpath_var=LD_LIBRARY_PATH
9868  ;;
9869
9870*)
9871  dynamic_linker=no
9872  ;;
9873esac
9874echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9875echo "${ECHO_T}$dynamic_linker" >&6
9876test "$dynamic_linker" = no && can_build_shared=no
9877
9878variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9879if test "$GCC" = yes; then
9880  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9881fi
9882
9883echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9884echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9885hardcode_action=
9886if test -n "$hardcode_libdir_flag_spec" || \
9887   test -n "$runpath_var" || \
9888   test "X$hardcode_automatic" = "Xyes" ; then
9889
9890  # We can hardcode non-existant directories.
9891  if test "$hardcode_direct" != no &&
9892     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9893     # have to relink, otherwise we might link with an installed library
9894     # when we should be linking with a yet-to-be-installed one
9895     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9896     test "$hardcode_minus_L" != no; then
9897    # Linking always hardcodes the temporary library directory.
9898    hardcode_action=relink
9899  else
9900    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9901    hardcode_action=immediate
9902  fi
9903else
9904  # We cannot hardcode anything, or else we can only hardcode existing
9905  # directories.
9906  hardcode_action=unsupported
9907fi
9908echo "$as_me:$LINENO: result: $hardcode_action" >&5
9909echo "${ECHO_T}$hardcode_action" >&6
9910
9911if test "$hardcode_action" = relink; then
9912  # Fast installation is not supported
9913  enable_fast_install=no
9914elif test "$shlibpath_overrides_runpath" = yes ||
9915     test "$enable_shared" = no; then
9916  # Fast installation is not necessary
9917  enable_fast_install=needless
9918fi
9919
9920striplib=
9921old_striplib=
9922echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9923echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9924if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9925  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9926  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9927  echo "$as_me:$LINENO: result: yes" >&5
9928echo "${ECHO_T}yes" >&6
9929else
9930# FIXME - insert some real tests, host_os isn't really good enough
9931  case $host_os in
9932   darwin*)
9933       if test -n "$STRIP" ; then
9934         striplib="$STRIP -x"
9935         echo "$as_me:$LINENO: result: yes" >&5
9936echo "${ECHO_T}yes" >&6
9937       else
9938  echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
9940fi
9941       ;;
9942   *)
9943  echo "$as_me:$LINENO: result: no" >&5
9944echo "${ECHO_T}no" >&6
9945    ;;
9946  esac
9947fi
9948
9949if test "x$enable_dlopen" != xyes; then
9950  enable_dlopen=unknown
9951  enable_dlopen_self=unknown
9952  enable_dlopen_self_static=unknown
9953else
9954  lt_cv_dlopen=no
9955  lt_cv_dlopen_libs=
9956
9957  case $host_os in
9958  beos*)
9959    lt_cv_dlopen="load_add_on"
9960    lt_cv_dlopen_libs=
9961    lt_cv_dlopen_self=yes
9962    ;;
9963
9964  mingw* | pw32*)
9965    lt_cv_dlopen="LoadLibrary"
9966    lt_cv_dlopen_libs=
9967   ;;
9968
9969  cygwin*)
9970    lt_cv_dlopen="dlopen"
9971    lt_cv_dlopen_libs=
9972   ;;
9973
9974  darwin*)
9975  # if libdl is installed we need to link against it
9976    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9977echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9978if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9979  echo $ECHO_N "(cached) $ECHO_C" >&6
9980else
9981  ac_check_lib_save_LIBS=$LIBS
9982LIBS="-ldl  $LIBS"
9983cat >conftest.$ac_ext <<_ACEOF
9984/* confdefs.h.  */
9985_ACEOF
9986cat confdefs.h >>conftest.$ac_ext
9987cat >>conftest.$ac_ext <<_ACEOF
9988/* end confdefs.h.  */
9989
9990/* Override any gcc2 internal prototype to avoid an error.  */
9991#ifdef __cplusplus
9992extern "C"
9993#endif
9994/* We use char because int might match the return type of a gcc2
9995   builtin and then its argument prototype would still apply.  */
9996char dlopen ();
9997int
9998main ()
9999{
10000dlopen ();
10001  ;
10002  return 0;
10003}
10004_ACEOF
10005rm -f conftest.$ac_objext conftest$ac_exeext
10006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10007  (eval $ac_link) 2>conftest.er1
10008  ac_status=$?
10009  grep -v '^ *+' conftest.er1 >conftest.err
10010  rm -f conftest.er1
10011  cat conftest.err >&5
10012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013  (exit $ac_status); } &&
10014         { ac_try='test -z "$ac_c_werror_flag"
10015                         || test ! -s conftest.err'
10016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017  (eval $ac_try) 2>&5
10018  ac_status=$?
10019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020  (exit $ac_status); }; } &&
10021         { ac_try='test -s conftest$ac_exeext'
10022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023  (eval $ac_try) 2>&5
10024  ac_status=$?
10025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026  (exit $ac_status); }; }; then
10027  ac_cv_lib_dl_dlopen=yes
10028else
10029  echo "$as_me: failed program was:" >&5
10030sed 's/^/| /' conftest.$ac_ext >&5
10031
10032ac_cv_lib_dl_dlopen=no
10033fi
10034rm -f conftest.err conftest.$ac_objext \
10035      conftest$ac_exeext conftest.$ac_ext
10036LIBS=$ac_check_lib_save_LIBS
10037fi
10038echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10039echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10040if test $ac_cv_lib_dl_dlopen = yes; then
10041  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10042else
10043
10044    lt_cv_dlopen="dyld"
10045    lt_cv_dlopen_libs=
10046    lt_cv_dlopen_self=yes
10047
10048fi
10049
10050   ;;
10051
10052  *)
10053    echo "$as_me:$LINENO: checking for shl_load" >&5
10054echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10055if test "${ac_cv_func_shl_load+set}" = set; then
10056  echo $ECHO_N "(cached) $ECHO_C" >&6
10057else
10058  cat >conftest.$ac_ext <<_ACEOF
10059/* confdefs.h.  */
10060_ACEOF
10061cat confdefs.h >>conftest.$ac_ext
10062cat >>conftest.$ac_ext <<_ACEOF
10063/* end confdefs.h.  */
10064/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10065   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10066#define shl_load innocuous_shl_load
10067
10068/* System header to define __stub macros and hopefully few prototypes,
10069    which can conflict with char shl_load (); below.
10070    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10071    <limits.h> exists even on freestanding compilers.  */
10072
10073#ifdef __STDC__
10074# include <limits.h>
10075#else
10076# include <assert.h>
10077#endif
10078
10079#undef shl_load
10080
10081/* Override any gcc2 internal prototype to avoid an error.  */
10082#ifdef __cplusplus
10083extern "C"
10084{
10085#endif
10086/* We use char because int might match the return type of a gcc2
10087   builtin and then its argument prototype would still apply.  */
10088char shl_load ();
10089/* The GNU C library defines this for functions which it implements
10090    to always fail with ENOSYS.  Some functions are actually named
10091    something starting with __ and the normal name is an alias.  */
10092#if defined (__stub_shl_load) || defined (__stub___shl_load)
10093choke me
10094#else
10095char (*f) () = shl_load;
10096#endif
10097#ifdef __cplusplus
10098}
10099#endif
10100
10101int
10102main ()
10103{
10104return f != shl_load;
10105  ;
10106  return 0;
10107}
10108_ACEOF
10109rm -f conftest.$ac_objext conftest$ac_exeext
10110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10111  (eval $ac_link) 2>conftest.er1
10112  ac_status=$?
10113  grep -v '^ *+' conftest.er1 >conftest.err
10114  rm -f conftest.er1
10115  cat conftest.err >&5
10116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117  (exit $ac_status); } &&
10118         { ac_try='test -z "$ac_c_werror_flag"
10119                         || test ! -s conftest.err'
10120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121  (eval $ac_try) 2>&5
10122  ac_status=$?
10123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124  (exit $ac_status); }; } &&
10125         { ac_try='test -s conftest$ac_exeext'
10126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127  (eval $ac_try) 2>&5
10128  ac_status=$?
10129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130  (exit $ac_status); }; }; then
10131  ac_cv_func_shl_load=yes
10132else
10133  echo "$as_me: failed program was:" >&5
10134sed 's/^/| /' conftest.$ac_ext >&5
10135
10136ac_cv_func_shl_load=no
10137fi
10138rm -f conftest.err conftest.$ac_objext \
10139      conftest$ac_exeext conftest.$ac_ext
10140fi
10141echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10142echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10143if test $ac_cv_func_shl_load = yes; then
10144  lt_cv_dlopen="shl_load"
10145else
10146  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10147echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10148if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10149  echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151  ac_check_lib_save_LIBS=$LIBS
10152LIBS="-ldld  $LIBS"
10153cat >conftest.$ac_ext <<_ACEOF
10154/* confdefs.h.  */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h.  */
10159
10160/* Override any gcc2 internal prototype to avoid an error.  */
10161#ifdef __cplusplus
10162extern "C"
10163#endif
10164/* We use char because int might match the return type of a gcc2
10165   builtin and then its argument prototype would still apply.  */
10166char shl_load ();
10167int
10168main ()
10169{
10170shl_load ();
10171  ;
10172  return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext conftest$ac_exeext
10176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177  (eval $ac_link) 2>conftest.er1
10178  ac_status=$?
10179  grep -v '^ *+' conftest.er1 >conftest.err
10180  rm -f conftest.er1
10181  cat conftest.err >&5
10182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183  (exit $ac_status); } &&
10184         { ac_try='test -z "$ac_c_werror_flag"
10185                         || test ! -s conftest.err'
10186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187  (eval $ac_try) 2>&5
10188  ac_status=$?
10189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190  (exit $ac_status); }; } &&
10191         { ac_try='test -s conftest$ac_exeext'
10192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193  (eval $ac_try) 2>&5
10194  ac_status=$?
10195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196  (exit $ac_status); }; }; then
10197  ac_cv_lib_dld_shl_load=yes
10198else
10199  echo "$as_me: failed program was:" >&5
10200sed 's/^/| /' conftest.$ac_ext >&5
10201
10202ac_cv_lib_dld_shl_load=no
10203fi
10204rm -f conftest.err conftest.$ac_objext \
10205      conftest$ac_exeext conftest.$ac_ext
10206LIBS=$ac_check_lib_save_LIBS
10207fi
10208echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10209echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10210if test $ac_cv_lib_dld_shl_load = yes; then
10211  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10212else
10213  echo "$as_me:$LINENO: checking for dlopen" >&5
10214echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10215if test "${ac_cv_func_dlopen+set}" = set; then
10216  echo $ECHO_N "(cached) $ECHO_C" >&6
10217else
10218  cat >conftest.$ac_ext <<_ACEOF
10219/* confdefs.h.  */
10220_ACEOF
10221cat confdefs.h >>conftest.$ac_ext
10222cat >>conftest.$ac_ext <<_ACEOF
10223/* end confdefs.h.  */
10224/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10225   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10226#define dlopen innocuous_dlopen
10227
10228/* System header to define __stub macros and hopefully few prototypes,
10229    which can conflict with char dlopen (); below.
10230    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10231    <limits.h> exists even on freestanding compilers.  */
10232
10233#ifdef __STDC__
10234# include <limits.h>
10235#else
10236# include <assert.h>
10237#endif
10238
10239#undef dlopen
10240
10241/* Override any gcc2 internal prototype to avoid an error.  */
10242#ifdef __cplusplus
10243extern "C"
10244{
10245#endif
10246/* We use char because int might match the return type of a gcc2
10247   builtin and then its argument prototype would still apply.  */
10248char dlopen ();
10249/* The GNU C library defines this for functions which it implements
10250    to always fail with ENOSYS.  Some functions are actually named
10251    something starting with __ and the normal name is an alias.  */
10252#if defined (__stub_dlopen) || defined (__stub___dlopen)
10253choke me
10254#else
10255char (*f) () = dlopen;
10256#endif
10257#ifdef __cplusplus
10258}
10259#endif
10260
10261int
10262main ()
10263{
10264return f != dlopen;
10265  ;
10266  return 0;
10267}
10268_ACEOF
10269rm -f conftest.$ac_objext conftest$ac_exeext
10270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10271  (eval $ac_link) 2>conftest.er1
10272  ac_status=$?
10273  grep -v '^ *+' conftest.er1 >conftest.err
10274  rm -f conftest.er1
10275  cat conftest.err >&5
10276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277  (exit $ac_status); } &&
10278         { ac_try='test -z "$ac_c_werror_flag"
10279                         || test ! -s conftest.err'
10280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281  (eval $ac_try) 2>&5
10282  ac_status=$?
10283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284  (exit $ac_status); }; } &&
10285         { ac_try='test -s conftest$ac_exeext'
10286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287  (eval $ac_try) 2>&5
10288  ac_status=$?
10289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290  (exit $ac_status); }; }; then
10291  ac_cv_func_dlopen=yes
10292else
10293  echo "$as_me: failed program was:" >&5
10294sed 's/^/| /' conftest.$ac_ext >&5
10295
10296ac_cv_func_dlopen=no
10297fi
10298rm -f conftest.err conftest.$ac_objext \
10299      conftest$ac_exeext conftest.$ac_ext
10300fi
10301echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10302echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10303if test $ac_cv_func_dlopen = yes; then
10304  lt_cv_dlopen="dlopen"
10305else
10306  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10307echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10308if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10309  echo $ECHO_N "(cached) $ECHO_C" >&6
10310else
10311  ac_check_lib_save_LIBS=$LIBS
10312LIBS="-ldl  $LIBS"
10313cat >conftest.$ac_ext <<_ACEOF
10314/* confdefs.h.  */
10315_ACEOF
10316cat confdefs.h >>conftest.$ac_ext
10317cat >>conftest.$ac_ext <<_ACEOF
10318/* end confdefs.h.  */
10319
10320/* Override any gcc2 internal prototype to avoid an error.  */
10321#ifdef __cplusplus
10322extern "C"
10323#endif
10324/* We use char because int might match the return type of a gcc2
10325   builtin and then its argument prototype would still apply.  */
10326char dlopen ();
10327int
10328main ()
10329{
10330dlopen ();
10331  ;
10332  return 0;
10333}
10334_ACEOF
10335rm -f conftest.$ac_objext conftest$ac_exeext
10336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337  (eval $ac_link) 2>conftest.er1
10338  ac_status=$?
10339  grep -v '^ *+' conftest.er1 >conftest.err
10340  rm -f conftest.er1
10341  cat conftest.err >&5
10342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343  (exit $ac_status); } &&
10344         { ac_try='test -z "$ac_c_werror_flag"
10345                         || test ! -s conftest.err'
10346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347  (eval $ac_try) 2>&5
10348  ac_status=$?
10349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350  (exit $ac_status); }; } &&
10351         { ac_try='test -s conftest$ac_exeext'
10352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353  (eval $ac_try) 2>&5
10354  ac_status=$?
10355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356  (exit $ac_status); }; }; then
10357  ac_cv_lib_dl_dlopen=yes
10358else
10359  echo "$as_me: failed program was:" >&5
10360sed 's/^/| /' conftest.$ac_ext >&5
10361
10362ac_cv_lib_dl_dlopen=no
10363fi
10364rm -f conftest.err conftest.$ac_objext \
10365      conftest$ac_exeext conftest.$ac_ext
10366LIBS=$ac_check_lib_save_LIBS
10367fi
10368echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10369echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10370if test $ac_cv_lib_dl_dlopen = yes; then
10371  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10372else
10373  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10374echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10375if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10376  echo $ECHO_N "(cached) $ECHO_C" >&6
10377else
10378  ac_check_lib_save_LIBS=$LIBS
10379LIBS="-lsvld  $LIBS"
10380cat >conftest.$ac_ext <<_ACEOF
10381/* confdefs.h.  */
10382_ACEOF
10383cat confdefs.h >>conftest.$ac_ext
10384cat >>conftest.$ac_ext <<_ACEOF
10385/* end confdefs.h.  */
10386
10387/* Override any gcc2 internal prototype to avoid an error.  */
10388#ifdef __cplusplus
10389extern "C"
10390#endif
10391/* We use char because int might match the return type of a gcc2
10392   builtin and then its argument prototype would still apply.  */
10393char dlopen ();
10394int
10395main ()
10396{
10397dlopen ();
10398  ;
10399  return 0;
10400}
10401_ACEOF
10402rm -f conftest.$ac_objext conftest$ac_exeext
10403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10404  (eval $ac_link) 2>conftest.er1
10405  ac_status=$?
10406  grep -v '^ *+' conftest.er1 >conftest.err
10407  rm -f conftest.er1
10408  cat conftest.err >&5
10409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410  (exit $ac_status); } &&
10411         { ac_try='test -z "$ac_c_werror_flag"
10412                         || test ! -s conftest.err'
10413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414  (eval $ac_try) 2>&5
10415  ac_status=$?
10416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417  (exit $ac_status); }; } &&
10418         { ac_try='test -s conftest$ac_exeext'
10419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420  (eval $ac_try) 2>&5
10421  ac_status=$?
10422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423  (exit $ac_status); }; }; then
10424  ac_cv_lib_svld_dlopen=yes
10425else
10426  echo "$as_me: failed program was:" >&5
10427sed 's/^/| /' conftest.$ac_ext >&5
10428
10429ac_cv_lib_svld_dlopen=no
10430fi
10431rm -f conftest.err conftest.$ac_objext \
10432      conftest$ac_exeext conftest.$ac_ext
10433LIBS=$ac_check_lib_save_LIBS
10434fi
10435echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10436echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10437if test $ac_cv_lib_svld_dlopen = yes; then
10438  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10439else
10440  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10441echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10442if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10443  echo $ECHO_N "(cached) $ECHO_C" >&6
10444else
10445  ac_check_lib_save_LIBS=$LIBS
10446LIBS="-ldld  $LIBS"
10447cat >conftest.$ac_ext <<_ACEOF
10448/* confdefs.h.  */
10449_ACEOF
10450cat confdefs.h >>conftest.$ac_ext
10451cat >>conftest.$ac_ext <<_ACEOF
10452/* end confdefs.h.  */
10453
10454/* Override any gcc2 internal prototype to avoid an error.  */
10455#ifdef __cplusplus
10456extern "C"
10457#endif
10458/* We use char because int might match the return type of a gcc2
10459   builtin and then its argument prototype would still apply.  */
10460char dld_link ();
10461int
10462main ()
10463{
10464dld_link ();
10465  ;
10466  return 0;
10467}
10468_ACEOF
10469rm -f conftest.$ac_objext conftest$ac_exeext
10470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10471  (eval $ac_link) 2>conftest.er1
10472  ac_status=$?
10473  grep -v '^ *+' conftest.er1 >conftest.err
10474  rm -f conftest.er1
10475  cat conftest.err >&5
10476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477  (exit $ac_status); } &&
10478         { ac_try='test -z "$ac_c_werror_flag"
10479                         || test ! -s conftest.err'
10480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481  (eval $ac_try) 2>&5
10482  ac_status=$?
10483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484  (exit $ac_status); }; } &&
10485         { ac_try='test -s conftest$ac_exeext'
10486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487  (eval $ac_try) 2>&5
10488  ac_status=$?
10489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490  (exit $ac_status); }; }; then
10491  ac_cv_lib_dld_dld_link=yes
10492else
10493  echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
10496ac_cv_lib_dld_dld_link=no
10497fi
10498rm -f conftest.err conftest.$ac_objext \
10499      conftest$ac_exeext conftest.$ac_ext
10500LIBS=$ac_check_lib_save_LIBS
10501fi
10502echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10503echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10504if test $ac_cv_lib_dld_dld_link = yes; then
10505  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10506fi
10507
10508
10509fi
10510
10511
10512fi
10513
10514
10515fi
10516
10517
10518fi
10519
10520
10521fi
10522
10523    ;;
10524  esac
10525
10526  if test "x$lt_cv_dlopen" != xno; then
10527    enable_dlopen=yes
10528  else
10529    enable_dlopen=no
10530  fi
10531
10532  case $lt_cv_dlopen in
10533  dlopen)
10534    save_CPPFLAGS="$CPPFLAGS"
10535    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10536
10537    save_LDFLAGS="$LDFLAGS"
10538    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10539
10540    save_LIBS="$LIBS"
10541    LIBS="$lt_cv_dlopen_libs $LIBS"
10542
10543    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10544echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10545if test "${lt_cv_dlopen_self+set}" = set; then
10546  echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548          if test "$cross_compiling" = yes; then :
10549  lt_cv_dlopen_self=cross
10550else
10551  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10552  lt_status=$lt_dlunknown
10553  cat > conftest.$ac_ext <<EOF
10554#line 10554 "configure"
10555#include "confdefs.h"
10556
10557#if HAVE_DLFCN_H
10558#include <dlfcn.h>
10559#endif
10560
10561#include <stdio.h>
10562
10563#ifdef RTLD_GLOBAL
10564#  define LT_DLGLOBAL           RTLD_GLOBAL
10565#else
10566#  ifdef DL_GLOBAL
10567#    define LT_DLGLOBAL         DL_GLOBAL
10568#  else
10569#    define LT_DLGLOBAL         0
10570#  endif
10571#endif
10572
10573/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10574   find out it does not work in some platform. */
10575#ifndef LT_DLLAZY_OR_NOW
10576#  ifdef RTLD_LAZY
10577#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10578#  else
10579#    ifdef DL_LAZY
10580#      define LT_DLLAZY_OR_NOW          DL_LAZY
10581#    else
10582#      ifdef RTLD_NOW
10583#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10584#      else
10585#        ifdef DL_NOW
10586#          define LT_DLLAZY_OR_NOW      DL_NOW
10587#        else
10588#          define LT_DLLAZY_OR_NOW      0
10589#        endif
10590#      endif
10591#    endif
10592#  endif
10593#endif
10594
10595#ifdef __cplusplus
10596extern "C" void exit (int);
10597#endif
10598
10599void fnord() { int i=42;}
10600int main ()
10601{
10602  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10603  int status = $lt_dlunknown;
10604
10605  if (self)
10606    {
10607      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10608      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10609      /* dlclose (self); */
10610    }
10611  else
10612    puts (dlerror ());
10613
10614    exit (status);
10615}
10616EOF
10617  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618  (eval $ac_link) 2>&5
10619  ac_status=$?
10620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10622    (./conftest; exit; ) >&5 2>/dev/null
10623    lt_status=$?
10624    case x$lt_status in
10625      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10626      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10627      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10628    esac
10629  else :
10630    # compilation failed
10631    lt_cv_dlopen_self=no
10632  fi
10633fi
10634rm -fr conftest*
10635
10636
10637fi
10638echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10639echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10640
10641    if test "x$lt_cv_dlopen_self" = xyes; then
10642      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10643      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10644echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10645if test "${lt_cv_dlopen_self_static+set}" = set; then
10646  echo $ECHO_N "(cached) $ECHO_C" >&6
10647else
10648          if test "$cross_compiling" = yes; then :
10649  lt_cv_dlopen_self_static=cross
10650else
10651  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10652  lt_status=$lt_dlunknown
10653  cat > conftest.$ac_ext <<EOF
10654#line 10654 "configure"
10655#include "confdefs.h"
10656
10657#if HAVE_DLFCN_H
10658#include <dlfcn.h>
10659#endif
10660
10661#include <stdio.h>
10662
10663#ifdef RTLD_GLOBAL
10664#  define LT_DLGLOBAL           RTLD_GLOBAL
10665#else
10666#  ifdef DL_GLOBAL
10667#    define LT_DLGLOBAL         DL_GLOBAL
10668#  else
10669#    define LT_DLGLOBAL         0
10670#  endif
10671#endif
10672
10673/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10674   find out it does not work in some platform. */
10675#ifndef LT_DLLAZY_OR_NOW
10676#  ifdef RTLD_LAZY
10677#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10678#  else
10679#    ifdef DL_LAZY
10680#      define LT_DLLAZY_OR_NOW          DL_LAZY
10681#    else
10682#      ifdef RTLD_NOW
10683#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10684#      else
10685#        ifdef DL_NOW
10686#          define LT_DLLAZY_OR_NOW      DL_NOW
10687#        else
10688#          define LT_DLLAZY_OR_NOW      0
10689#        endif
10690#      endif
10691#    endif
10692#  endif
10693#endif
10694
10695#ifdef __cplusplus
10696extern "C" void exit (int);
10697#endif
10698
10699void fnord() { int i=42;}
10700int main ()
10701{
10702  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10703  int status = $lt_dlunknown;
10704
10705  if (self)
10706    {
10707      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10708      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10709      /* dlclose (self); */
10710    }
10711  else
10712    puts (dlerror ());
10713
10714    exit (status);
10715}
10716EOF
10717  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10718  (eval $ac_link) 2>&5
10719  ac_status=$?
10720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10722    (./conftest; exit; ) >&5 2>/dev/null
10723    lt_status=$?
10724    case x$lt_status in
10725      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10726      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10727      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10728    esac
10729  else :
10730    # compilation failed
10731    lt_cv_dlopen_self_static=no
10732  fi
10733fi
10734rm -fr conftest*
10735
10736
10737fi
10738echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10739echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10740    fi
10741
10742    CPPFLAGS="$save_CPPFLAGS"
10743    LDFLAGS="$save_LDFLAGS"
10744    LIBS="$save_LIBS"
10745    ;;
10746  esac
10747
10748  case $lt_cv_dlopen_self in
10749  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10750  *) enable_dlopen_self=unknown ;;
10751  esac
10752
10753  case $lt_cv_dlopen_self_static in
10754  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10755  *) enable_dlopen_self_static=unknown ;;
10756  esac
10757fi
10758
10759
10760# Report which library types will actually be built
10761echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10762echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10763echo "$as_me:$LINENO: result: $can_build_shared" >&5
10764echo "${ECHO_T}$can_build_shared" >&6
10765
10766echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10767echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10768test "$can_build_shared" = "no" && enable_shared=no
10769
10770# On AIX, shared libraries and static libraries use the same namespace, and
10771# are all built from PIC.
10772case $host_os in
10773aix3*)
10774  test "$enable_shared" = yes && enable_static=no
10775  if test -n "$RANLIB"; then
10776    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10777    postinstall_cmds='$RANLIB $lib'
10778  fi
10779  ;;
10780
10781aix4* | aix5*)
10782  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10783    test "$enable_shared" = yes && enable_static=no
10784  fi
10785    ;;
10786esac
10787echo "$as_me:$LINENO: result: $enable_shared" >&5
10788echo "${ECHO_T}$enable_shared" >&6
10789
10790echo "$as_me:$LINENO: checking whether to build static libraries" >&5