source: ThirdParty/HSL/trunk/configure @ 904

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

reran autotools with latest updates (for Intel icl compiler)

  • Property svn:executable set to *
File size: 705.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyHSL 1.0trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyHSL'
431PACKAGE_TARNAME='thirdpartyhsl'
432PACKAGE_VERSION='1.0trunk'
433PACKAGE_STRING='ThirdPartyHSL 1.0trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="configure.ac"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyHSL 1.0trunk to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyHSL 1.0trunk:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-hsl compile this project (HSL) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS. Set to mingw to use gcc/g++/ld with
1077                          -mno-cygwin. Set to msvc to use cl/link (or
1078                          icl/link). Default when mentioned: mingw. Default
1079                          when not mentioned: disabled.
1080  --enable-static[=PKGS]
1081                          build static libraries [default=no]
1082  --disable-dependency-tracking  speeds up one-time build
1083  --enable-dependency-tracking   do not reject slow dependency extractors
1084  --enable-maintainer-mode  enable make rules and dependencies not useful
1085                          (and sometimes confusing) to the casual installer
1086  --enable-shared[=PKGS]
1087                          build shared libraries [default=yes]
1088  --enable-fast-install[=PKGS]
1089                          optimize for fast installation [default=yes]
1090  --disable-libtool-lock  avoid locking (might break parallel builds)
1091
1092Optional Packages:
1093  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1094  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1095  --with-hsl-verbosity specify the debug verbosity level for project HSL
1096  --with-hsl-checklevel specify the sanity check level for project HSL
1097  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1098  --with-pic              try to use only PIC/non-PIC objects [default=use
1099                          both]
1100  --with-tags[=TAGS]
1101                          include additional configurations [automatic]
1102
1103Some influential environment variables:
1104  CDEFS       Additional -D flags to be used when compiling C code.
1105  ADD_CFLAGS  Additional C compiler options
1106  DBG_CFLAGS  Debug C compiler options
1107  OPT_CFLAGS  Optimize C compiler options
1108  CC          C compiler command
1109  CFLAGS      C compiler flags
1110  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1111              nonstandard directory <lib dir>
1112  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1113              headers in a nonstandard directory <include dir>
1114  MPICC       C MPI Compiler
1115  ADD_FFLAGS  Additional Fortran compiler options
1116  DBG_FFLAGS  Debug Fortran compiler options
1117  OPT_FFLAGS  Optimize Fortran compiler options
1118  F77         Fortran 77 compiler command
1119  FFLAGS      Fortran 77 compiler flags
1120  MPIF77      Fortran MPI Compiler
1121  CPP         C preprocessor
1122  CXX         C++ compiler command
1123  CXXFLAGS    C++ compiler flags
1124  CXXCPP      C++ preprocessor
1125
1126Use these variables to override the choices made by `configure' or to help
1127it to find libraries and programs with nonstandard names/locations.
1128
1129Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1130_ACEOF
1131fi
1132
1133if test "$ac_init_help" = "recursive"; then
1134  # If there are subdirs, report their specific --help.
1135  ac_popdir=`pwd`
1136  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1137    test -d $ac_dir || continue
1138    ac_builddir=.
1139
1140if test "$ac_dir" != .; then
1141  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1142  # A "../" for each directory in $ac_dir_suffix.
1143  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1144else
1145  ac_dir_suffix= ac_top_builddir=
1146fi
1147
1148case $srcdir in
1149  .)  # No --srcdir option.  We are building in place.
1150    ac_srcdir=.
1151    if test -z "$ac_top_builddir"; then
1152       ac_top_srcdir=.
1153    else
1154       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1155    fi ;;
1156  [\\/]* | ?:[\\/]* )  # Absolute path.
1157    ac_srcdir=$srcdir$ac_dir_suffix;
1158    ac_top_srcdir=$srcdir ;;
1159  *) # Relative path.
1160    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1161    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1162esac
1163
1164# Do not use `cd foo && pwd` to compute absolute paths, because
1165# the directories may not exist.
1166case `pwd` in
1167.) ac_abs_builddir="$ac_dir";;
1168*)
1169  case "$ac_dir" in
1170  .) ac_abs_builddir=`pwd`;;
1171  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1172  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1173  esac;;
1174esac
1175case $ac_abs_builddir in
1176.) ac_abs_top_builddir=${ac_top_builddir}.;;
1177*)
1178  case ${ac_top_builddir}. in
1179  .) ac_abs_top_builddir=$ac_abs_builddir;;
1180  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1181  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1182  esac;;
1183esac
1184case $ac_abs_builddir in
1185.) ac_abs_srcdir=$ac_srcdir;;
1186*)
1187  case $ac_srcdir in
1188  .) ac_abs_srcdir=$ac_abs_builddir;;
1189  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1190  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1191  esac;;
1192esac
1193case $ac_abs_builddir in
1194.) ac_abs_top_srcdir=$ac_top_srcdir;;
1195*)
1196  case $ac_top_srcdir in
1197  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1198  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1199  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1200  esac;;
1201esac
1202
1203    cd $ac_dir
1204    # Check for guested configure; otherwise get Cygnus style configure.
1205    if test -f $ac_srcdir/configure.gnu; then
1206      echo
1207      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1208    elif test -f $ac_srcdir/configure; then
1209      echo
1210      $SHELL $ac_srcdir/configure  --help=recursive
1211    elif test -f $ac_srcdir/configure.ac ||
1212           test -f $ac_srcdir/configure.in; then
1213      echo
1214      $ac_configure --help
1215    else
1216      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1217    fi
1218    cd $ac_popdir
1219  done
1220fi
1221
1222test -n "$ac_init_help" && exit 0
1223if $ac_init_version; then
1224  cat <<\_ACEOF
1225ThirdPartyHSL configure 1.0trunk
1226generated by GNU Autoconf 2.59
1227
1228Copyright (C) 2003 Free Software Foundation, Inc.
1229This configure script is free software; the Free Software Foundation
1230gives unlimited permission to copy, distribute and modify it.
1231
1232
1233Copyright 2006 International Business Machines and others.
1234All Rights Reserved.
1235This file is part of the open source package Coin which is distributed
1236under the Common Public License.
1237_ACEOF
1238  exit 0
1239fi
1240exec 5>config.log
1241cat >&5 <<_ACEOF
1242This file contains any messages produced by compilers while
1243running configure, to aid debugging if configure makes a mistake.
1244
1245It was created by ThirdPartyHSL $as_me 1.0trunk, which was
1246generated by GNU Autoconf 2.59.  Invocation command line was
1247
1248  $ $0 $@
1249
1250_ACEOF
1251{
1252cat <<_ASUNAME
1253## --------- ##
1254## Platform. ##
1255## --------- ##
1256
1257hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1258uname -m = `(uname -m) 2>/dev/null || echo unknown`
1259uname -r = `(uname -r) 2>/dev/null || echo unknown`
1260uname -s = `(uname -s) 2>/dev/null || echo unknown`
1261uname -v = `(uname -v) 2>/dev/null || echo unknown`
1262
1263/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1264/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1265
1266/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1267/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1268/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1269hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1270/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1271/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1272/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1273
1274_ASUNAME
1275
1276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1277for as_dir in $PATH
1278do
1279  IFS=$as_save_IFS
1280  test -z "$as_dir" && as_dir=.
1281  echo "PATH: $as_dir"
1282done
1283
1284} >&5
1285
1286cat >&5 <<_ACEOF
1287
1288
1289## ----------- ##
1290## Core tests. ##
1291## ----------- ##
1292
1293_ACEOF
1294
1295
1296# Keep a trace of the command line.
1297# Strip out --no-create and --no-recursion so they do not pile up.
1298# Strip out --silent because we don't want to record it for future runs.
1299# Also quote any args containing shell meta-characters.
1300# Make two passes to allow for proper duplicate-argument suppression.
1301ac_configure_args=
1302ac_configure_args0=
1303ac_configure_args1=
1304ac_sep=
1305ac_must_keep_next=false
1306for ac_pass in 1 2
1307do
1308  for ac_arg
1309  do
1310    case $ac_arg in
1311    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1312    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1313    | -silent | --silent | --silen | --sile | --sil)
1314      continue ;;
1315    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1316      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1317    esac
1318    case $ac_pass in
1319    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1320    2)
1321      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1322      if test $ac_must_keep_next = true; then
1323        ac_must_keep_next=false # Got value, back to normal.
1324      else
1325        case $ac_arg in
1326          *=* | --config-cache | -C | -disable-* | --disable-* \
1327          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1328          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1329          | -with-* | --with-* | -without-* | --without-* | --x)
1330            case "$ac_configure_args0 " in
1331              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1332            esac
1333            ;;
1334          -* ) ac_must_keep_next=true ;;
1335        esac
1336      fi
1337      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1338      # Get rid of the leading space.
1339      ac_sep=" "
1340      ;;
1341    esac
1342  done
1343done
1344$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1345$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1346
1347# When interrupted or exit'd, cleanup temporary files, and complete
1348# config.log.  We remove comments because anyway the quotes in there
1349# would cause problems or look ugly.
1350# WARNING: Be sure not to use single quotes in there, as some shells,
1351# such as our DU 5.0 friend, will then `close' the trap.
1352trap 'exit_status=$?
1353  # Save into config.log some information that might help in debugging.
1354  {
1355    echo
1356
1357    cat <<\_ASBOX
1358## ---------------- ##
1359## Cache variables. ##
1360## ---------------- ##
1361_ASBOX
1362    echo
1363    # The following way of writing the cache mishandles newlines in values,
1364{
1365  (set) 2>&1 |
1366    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1367    *ac_space=\ *)
1368      sed -n \
1369        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1370          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1371      ;;
1372    *)
1373      sed -n \
1374        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1375      ;;
1376    esac;
1377}
1378    echo
1379
1380    cat <<\_ASBOX
1381## ----------------- ##
1382## Output variables. ##
1383## ----------------- ##
1384_ASBOX
1385    echo
1386    for ac_var in $ac_subst_vars
1387    do
1388      eval ac_val=$`echo $ac_var`
1389      echo "$ac_var='"'"'$ac_val'"'"'"
1390    done | sort
1391    echo
1392
1393    if test -n "$ac_subst_files"; then
1394      cat <<\_ASBOX
1395## ------------- ##
1396## Output files. ##
1397## ------------- ##
1398_ASBOX
1399      echo
1400      for ac_var in $ac_subst_files
1401      do
1402        eval ac_val=$`echo $ac_var`
1403        echo "$ac_var='"'"'$ac_val'"'"'"
1404      done | sort
1405      echo
1406    fi
1407
1408    if test -s confdefs.h; then
1409      cat <<\_ASBOX
1410## ----------- ##
1411## confdefs.h. ##
1412## ----------- ##
1413_ASBOX
1414      echo
1415      sed "/^$/d" confdefs.h | sort
1416      echo
1417    fi
1418    test "$ac_signal" != 0 &&
1419      echo "$as_me: caught signal $ac_signal"
1420    echo "$as_me: exit $exit_status"
1421  } >&5
1422  rm -f core *.core &&
1423  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1424    exit $exit_status
1425     ' 0
1426for ac_signal in 1 2 13 15; do
1427  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1428done
1429ac_signal=0
1430
1431# confdefs.h avoids OS command line length limits that DEFS can exceed.
1432rm -rf conftest* confdefs.h
1433# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1434echo >confdefs.h
1435
1436# Predefined preprocessor variables.
1437
1438cat >>confdefs.h <<_ACEOF
1439#define PACKAGE_NAME "$PACKAGE_NAME"
1440_ACEOF
1441
1442
1443cat >>confdefs.h <<_ACEOF
1444#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1445_ACEOF
1446
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_VERSION "$PACKAGE_VERSION"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_STRING "$PACKAGE_STRING"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1460_ACEOF
1461
1462
1463# Let the site file select an alternate cache file if it wants to.
1464# Prefer explicitly selected file to automatically selected ones.
1465if test -z "$CONFIG_SITE"; then
1466  if test "x$prefix" != xNONE; then
1467    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1468  else
1469    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1470  fi
1471fi
1472for ac_site_file in $CONFIG_SITE; do
1473  if test -r "$ac_site_file"; then
1474    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1475echo "$as_me: loading site script $ac_site_file" >&6;}
1476    sed 's/^/| /' "$ac_site_file" >&5
1477    . "$ac_site_file"
1478  fi
1479done
1480
1481if test -r "$cache_file"; then
1482  # Some versions of bash will fail to source /dev/null (special
1483  # files actually), so we avoid doing that.
1484  if test -f "$cache_file"; then
1485    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1486echo "$as_me: loading cache $cache_file" >&6;}
1487    case $cache_file in
1488      [\\/]* | ?:[\\/]* ) . $cache_file;;
1489      *)                      . ./$cache_file;;
1490    esac
1491  fi
1492else
1493  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1494echo "$as_me: creating cache $cache_file" >&6;}
1495  >$cache_file
1496fi
1497
1498# Check that the precious variables saved in the cache have kept the same
1499# value.
1500ac_cache_corrupted=false
1501for ac_var in `(set) 2>&1 |
1502               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1503  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1504  eval ac_new_set=\$ac_env_${ac_var}_set
1505  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1506  eval ac_new_val="\$ac_env_${ac_var}_value"
1507  case $ac_old_set,$ac_new_set in
1508    set,)
1509      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1510echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1511      ac_cache_corrupted=: ;;
1512    ,set)
1513      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1514echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1515      ac_cache_corrupted=: ;;
1516    ,);;
1517    *)
1518      if test "x$ac_old_val" != "x$ac_new_val"; then
1519        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1520echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1521        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1522echo "$as_me:   former value:  $ac_old_val" >&2;}
1523        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1524echo "$as_me:   current value: $ac_new_val" >&2;}
1525        ac_cache_corrupted=:
1526      fi;;
1527  esac
1528  # Pass precious variables to config.status.
1529  if test "$ac_new_set" = set; then
1530    case $ac_new_val in
1531    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1532      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1533    *) ac_arg=$ac_var=$ac_new_val ;;
1534    esac
1535    case " $ac_configure_args " in
1536      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1537      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1538    esac
1539  fi
1540done
1541if $ac_cache_corrupted; then
1542  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1543echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1544  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1545echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1546   { (exit 1); exit 1; }; }
1547fi
1548
1549ac_ext=c
1550ac_cpp='$CPP $CPPFLAGS'
1551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1553ac_compiler_gnu=$ac_cv_c_compiler_gnu
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584# List one file in the package so that the configure script can test
1585# whether the package is actually there
1586# Here we don't know yet which files are actually provided...
1587
1588
1589# Where should everything be installed by default?  Here, we want it
1590# to be installed directly in 'bin', 'lib', 'include' subdirectories
1591# of the directory where configure is run.  The default would be
1592# /usr/local.
1593
1594
1595# Initialize the ADDLIBS variable
1596ADDLIBS="-lm $LIBS"
1597
1598
1599# Initialize the FADDLIBS variable (which is to be used with a fortran
1600# compiler and will not include FLIBS)
1601FADDLIBS="$LIBS"
1602
1603
1604# A useful makefile conditional that is always false
1605
1606
1607if false; then
1608  ALWAYS_FALSE_TRUE=
1609  ALWAYS_FALSE_FALSE='#'
1610else
1611  ALWAYS_FALSE_TRUE='#'
1612  ALWAYS_FALSE_FALSE=
1613fi
1614
1615
1616# We set the following variable so that we know later in AC_COIN_FINALIZE
1617# that we are in a project main directory
1618coin_projectdir=yes
1619
1620
1621#############################################################################
1622#                         Standard build tool stuff                         #
1623#############################################################################
1624
1625# Get the system type
1626ac_aux_dir=
1627for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1628  if test -f $ac_dir/install-sh; then
1629    ac_aux_dir=$ac_dir
1630    ac_install_sh="$ac_aux_dir/install-sh -c"
1631    break
1632  elif test -f $ac_dir/install.sh; then
1633    ac_aux_dir=$ac_dir
1634    ac_install_sh="$ac_aux_dir/install.sh -c"
1635    break
1636  elif test -f $ac_dir/shtool; then
1637    ac_aux_dir=$ac_dir
1638    ac_install_sh="$ac_aux_dir/shtool install -c"
1639    break
1640  fi
1641done
1642if test -z "$ac_aux_dir"; then
1643  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1644echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1645   { (exit 1); exit 1; }; }
1646fi
1647ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1648ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1649ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1650
1651# Make sure we can run config.sub.
1652$ac_config_sub sun4 >/dev/null 2>&1 ||
1653  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1654echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1655   { (exit 1); exit 1; }; }
1656
1657echo "$as_me:$LINENO: checking build system type" >&5
1658echo $ECHO_N "checking build system type... $ECHO_C" >&6
1659if test "${ac_cv_build+set}" = set; then
1660  echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662  ac_cv_build_alias=$build_alias
1663test -z "$ac_cv_build_alias" &&
1664  ac_cv_build_alias=`$ac_config_guess`
1665test -z "$ac_cv_build_alias" &&
1666  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1667echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1668   { (exit 1); exit 1; }; }
1669ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1670  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1671echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1672   { (exit 1); exit 1; }; }
1673
1674fi
1675echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1676echo "${ECHO_T}$ac_cv_build" >&6
1677build=$ac_cv_build
1678build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681
1682
1683
1684#turn off warnings and pedantic mode since they could make trouble on some platforms,
1685#and we couldn't fix them anyway
1686coin_skip_warn_fflags=yes
1687
1688# Check if user wants to produce debugging code
1689
1690echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1691echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1692
1693# Check whether --enable-debug or --disable-debug was given.
1694if test "${enable_debug+set}" = set; then
1695  enableval="$enable_debug"
1696  case "${enableval}" in
1697   yes) coin_debug_compile=true
1698        if test "${enable_shared+set}" = set; then :; else
1699          enable_shared=no
1700        fi
1701        ;;
1702   no)  coin_debug_compile=false
1703        ;;
1704   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1705echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1706   { (exit 1); exit 1; }; }
1707        ;;
1708esac
1709else
1710  coin_debug_compile=false
1711fi;
1712
1713# Check whether --enable-debug-hsl or --disable-debug-hsl was given.
1714if test "${enable_debug_hsl+set}" = set; then
1715  enableval="$enable_debug_hsl"
1716  case "${enableval}" in
1717    yes) coin_debug_compile=true
1718         enable_shared=no
1719         ;;
1720    no)  coin_debug_compile=false
1721         ;;
1722    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-hsl" >&5
1723echo "$as_me: error: bad value ${enableval} for --enable-debug-hsl" >&2;}
1724   { (exit 1); exit 1; }; }
1725         ;;
1726 esac
1727else
1728  :
1729fi;
1730
1731 # m4_ifvaln([HSL],
1732
1733if test $coin_debug_compile = true; then
1734  echo "$as_me:$LINENO: result: yes" >&5
1735echo "${ECHO_T}yes" >&6
1736else
1737  echo "$as_me:$LINENO: result: no" >&5
1738echo "${ECHO_T}no" >&6
1739fi
1740
1741
1742# Check whether --with-hsl-verbosity or --without-hsl-verbosity was given.
1743if test "${with_hsl_verbosity+set}" = set; then
1744  withval="$with_hsl_verbosity"
1745  if test "$withval" = yes; then
1746                withval=1
1747              fi
1748              coin_hsl_verbosity=$withval
1749else
1750  coin_hsl_verbosity=0
1751fi;
1752
1753cat >>confdefs.h <<_ACEOF
1754#define COIN_HSL_VERBOSITY $coin_hsl_verbosity
1755_ACEOF
1756
1757
1758
1759# Check whether --with-hsl-checklevel or --without-hsl-checklevel was given.
1760if test "${with_hsl_checklevel+set}" = set; then
1761  withval="$with_hsl_checklevel"
1762  if test "$withval" = yes; then
1763                withval=1
1764              fi
1765              coin_hsl_checklevel=$withval
1766else
1767  coin_hsl_checklevel=0
1768fi;
1769
1770cat >>confdefs.h <<_ACEOF
1771#define COIN_HSL_CHECKLEVEL $coin_hsl_checklevel
1772_ACEOF
1773
1774
1775# We use the following variable to have a string with the upper case
1776# version of the project name
1777COIN_PRJCT=HSL
1778
1779
1780 # m4_ifvaln([HSL],
1781
1782
1783
1784# Get the name of the C compiler (for a dummy program)
1785case $build in
1786  *-mingw*)
1787    if test "${LD+set}" = set; then :; else
1788      LD=link
1789    fi
1790    ;;
1791 esac
1792 case $enable_doscompile in
1793   msvc)
1794     if test "x${LD+set}" = xset; then :; else
1795       LD=link
1796     fi
1797     ;;
1798 esac
1799
1800
1801 # Check whether --enable-doscompile or --disable-doscompile was given.
1802if test "${enable_doscompile+set}" = set; then
1803  enableval="$enable_doscompile"
1804  if test "$enable_doscompile" != no; then
1805     case $build in
1806       *-cygwin* | *-mingw*) ;;
1807       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1808echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1809   { (exit 1); exit 1; }; } ;;
1810     esac
1811   fi
1812else
1813  enable_doscompile=no
1814fi;
1815 case "$enable_doscompile" in
1816   mingw)
1817     case $build in
1818       *-mingw*) enable_doscompile=no ;;
1819     esac
1820     ;;
1821   msvc|no) ;;
1822   yes) enable_doscompile=mingw ;;
1823   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1824                    Try configure --help=recursive." >&5
1825echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1826                    Try configure --help=recursive." >&2;}
1827   { (exit 1); exit 1; }; }
1828      ;;
1829  esac
1830  if test "$enable_doscompile" != no ; then
1831    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1832echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1833  fi
1834
1835
1836
1837
1838ac_ext=c
1839ac_cpp='$CPP $CPPFLAGS'
1840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1842ac_compiler_gnu=$ac_cv_c_compiler_gnu
1843
1844
1845# For consistency, we set the C compiler to the same value of the C++
1846# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1847if test x"$CXX" != x; then
1848  case "$CXX" in
1849    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1850      if test x"$CC" = x; then
1851        CC="$CXX"
1852        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1853echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1854      fi
1855      ;;
1856  esac
1857fi
1858
1859
1860
1861
1862
1863
1864coin_has_cc=yes
1865
1866save_cflags="$CFLAGS"
1867
1868# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1869# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1870# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1871# compiler. In this case, put cc after gcc.
1872
1873case $build in
1874  *-cygwin* | *-mingw*)
1875             if test "$enable_doscompile" = msvc ; then
1876               comps="icl cl"
1877             else
1878               comps="gcc cl"
1879             fi ;;
1880  *-*-solaris*)
1881             # Extract the first word of "cc", so it can be a program name with args.
1882set dummy cc; ac_word=$2
1883echo "$as_me:$LINENO: checking for $ac_word" >&5
1884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1886  echo $ECHO_N "(cached) $ECHO_C" >&6
1887else
1888  if test -n "$sol_cc_compiler"; then
1889  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1890else
1891  ac_prog_rejected=no
1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895  IFS=$as_save_IFS
1896  test -z "$as_dir" && as_dir=.
1897  for ac_exec_ext in '' $ac_executable_extensions; do
1898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1900       ac_prog_rejected=yes
1901       continue
1902     fi
1903    ac_cv_prog_sol_cc_compiler="cc"
1904    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905    break 2
1906  fi
1907done
1908done
1909
1910if test $ac_prog_rejected = yes; then
1911  # We found a bogon in the path, so make sure we never use it.
1912  set dummy $ac_cv_prog_sol_cc_compiler
1913  shift
1914  if test $# != 0; then
1915    # We chose a different compiler from the bogus one.
1916    # However, it has the same basename, so the bogon will be chosen
1917    # first if we set sol_cc_compiler to just the basename; use the full file name.
1918    shift
1919    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1920  fi
1921fi
1922fi
1923fi
1924sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1925if test -n "$sol_cc_compiler"; then
1926  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1927echo "${ECHO_T}$sol_cc_compiler" >&6
1928else
1929  echo "$as_me:$LINENO: result: no" >&5
1930echo "${ECHO_T}no" >&6
1931fi
1932
1933             if test "$sol_cc_compiler" = "cc" ; then
1934               comps="cc xlc gcc pgcc icc"
1935             else
1936               comps="xlc gcc pgcc icc cc"
1937             fi
1938             ;;
1939  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1940  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1941esac
1942
1943# We delete the cached value, since the test might not have been
1944# performed with our choice of compilers earlier
1945$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1946# AC_MSG_NOTICE([C compiler candidates: $comps])
1947ac_ext=c
1948ac_cpp='$CPP $CPPFLAGS'
1949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952if test -n "$ac_tool_prefix"; then
1953  for ac_prog in $comps
1954  do
1955    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1956set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1957echo "$as_me:$LINENO: checking for $ac_word" >&5
1958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959if test "${ac_cv_prog_CC+set}" = set; then
1960  echo $ECHO_N "(cached) $ECHO_C" >&6
1961else
1962  if test -n "$CC"; then
1963  ac_cv_prog_CC="$CC" # Let the user override the test.
1964else
1965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966for as_dir in $PATH
1967do
1968  IFS=$as_save_IFS
1969  test -z "$as_dir" && as_dir=.
1970  for ac_exec_ext in '' $ac_executable_extensions; do
1971  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1972    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974    break 2
1975  fi
1976done
1977done
1978
1979fi
1980fi
1981CC=$ac_cv_prog_CC
1982if test -n "$CC"; then
1983  echo "$as_me:$LINENO: result: $CC" >&5
1984echo "${ECHO_T}$CC" >&6
1985else
1986  echo "$as_me:$LINENO: result: no" >&5
1987echo "${ECHO_T}no" >&6
1988fi
1989
1990    test -n "$CC" && break
1991  done
1992fi
1993if test -z "$CC"; then
1994  ac_ct_CC=$CC
1995  for ac_prog in $comps
1996do
1997  # Extract the first word of "$ac_prog", so it can be a program name with args.
1998set dummy $ac_prog; ac_word=$2
1999echo "$as_me:$LINENO: checking for $ac_word" >&5
2000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002  echo $ECHO_N "(cached) $ECHO_C" >&6
2003else
2004  if test -n "$ac_ct_CC"; then
2005  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006else
2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008for as_dir in $PATH
2009do
2010  IFS=$as_save_IFS
2011  test -z "$as_dir" && as_dir=.
2012  for ac_exec_ext in '' $ac_executable_extensions; do
2013  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014    ac_cv_prog_ac_ct_CC="$ac_prog"
2015    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016    break 2
2017  fi
2018done
2019done
2020
2021fi
2022fi
2023ac_ct_CC=$ac_cv_prog_ac_ct_CC
2024if test -n "$ac_ct_CC"; then
2025  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026echo "${ECHO_T}$ac_ct_CC" >&6
2027else
2028  echo "$as_me:$LINENO: result: no" >&5
2029echo "${ECHO_T}no" >&6
2030fi
2031
2032  test -n "$ac_ct_CC" && break
2033done
2034
2035  CC=$ac_ct_CC
2036fi
2037
2038
2039test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2040See \`config.log' for more details." >&5
2041echo "$as_me: error: no acceptable C compiler found in \$PATH
2042See \`config.log' for more details." >&2;}
2043   { (exit 1); exit 1; }; }
2044
2045# Provide some information about the compiler.
2046echo "$as_me:$LINENO:" \
2047     "checking for C compiler version" >&5
2048ac_compiler=`set X $ac_compile; echo $2`
2049{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2050  (eval $ac_compiler --version </dev/null >&5) 2>&5
2051  ac_status=$?
2052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053  (exit $ac_status); }
2054{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2055  (eval $ac_compiler -v </dev/null >&5) 2>&5
2056  ac_status=$?
2057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058  (exit $ac_status); }
2059{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2060  (eval $ac_compiler -V </dev/null >&5) 2>&5
2061  ac_status=$?
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); }
2064
2065cat >conftest.$ac_ext <<_ACEOF
2066/* confdefs.h.  */
2067_ACEOF
2068cat confdefs.h >>conftest.$ac_ext
2069cat >>conftest.$ac_ext <<_ACEOF
2070/* end confdefs.h.  */
2071
2072int
2073main ()
2074{
2075
2076  ;
2077  return 0;
2078}
2079_ACEOF
2080ac_clean_files_save=$ac_clean_files
2081ac_clean_files="$ac_clean_files a.out a.exe b.out"
2082# Try to create an executable without -o first, disregard a.out.
2083# It will help us diagnose broken compilers, and finding out an intuition
2084# of exeext.
2085echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2086echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2087ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2088if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2089  (eval $ac_link_default) 2>&5
2090  ac_status=$?
2091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092  (exit $ac_status); }; then
2093  # Find the output, starting from the most likely.  This scheme is
2094# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2095# resort.
2096
2097# Be careful to initialize this variable, since it used to be cached.
2098# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2099ac_cv_exeext=
2100# b.out is created by i960 compilers.
2101for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2102do
2103  test -f "$ac_file" || continue
2104  case $ac_file in
2105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2106        ;;
2107    conftest.$ac_ext )
2108        # This is the source file.
2109        ;;
2110    [ab].out )
2111        # We found the default executable, but exeext='' is most
2112        # certainly right.
2113        break;;
2114    *.* )
2115        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2116        # FIXME: I believe we export ac_cv_exeext for Libtool,
2117        # but it would be cool to find out if it's true.  Does anybody
2118        # maintain Libtool? --akim.
2119        export ac_cv_exeext
2120        break;;
2121    * )
2122        break;;
2123  esac
2124done
2125else
2126  echo "$as_me: failed program was:" >&5
2127sed 's/^/| /' conftest.$ac_ext >&5
2128
2129{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2130See \`config.log' for more details." >&5
2131echo "$as_me: error: C compiler cannot create executables
2132See \`config.log' for more details." >&2;}
2133   { (exit 77); exit 77; }; }
2134fi
2135
2136ac_exeext=$ac_cv_exeext
2137echo "$as_me:$LINENO: result: $ac_file" >&5
2138echo "${ECHO_T}$ac_file" >&6
2139
2140# Check the compiler produces executables we can run.  If not, either
2141# the compiler is broken, or we cross compile.
2142echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2143echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2144# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2145# If not cross compiling, check that we can run a simple program.
2146if test "$cross_compiling" != yes; then
2147  if { ac_try='./$ac_file'
2148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149  (eval $ac_try) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }; }; then
2153    cross_compiling=no
2154  else
2155    if test "$cross_compiling" = maybe; then
2156        cross_compiling=yes
2157    else
2158        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2159If you meant to cross compile, use \`--host'.
2160See \`config.log' for more details." >&5
2161echo "$as_me: error: cannot run C compiled programs.
2162If you meant to cross compile, use \`--host'.
2163See \`config.log' for more details." >&2;}
2164   { (exit 1); exit 1; }; }
2165    fi
2166  fi
2167fi
2168echo "$as_me:$LINENO: result: yes" >&5
2169echo "${ECHO_T}yes" >&6
2170
2171rm -f a.out a.exe conftest$ac_cv_exeext b.out
2172ac_clean_files=$ac_clean_files_save
2173# Check the compiler produces executables we can run.  If not, either
2174# the compiler is broken, or we cross compile.
2175echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2176echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2177echo "$as_me:$LINENO: result: $cross_compiling" >&5
2178echo "${ECHO_T}$cross_compiling" >&6
2179
2180echo "$as_me:$LINENO: checking for suffix of executables" >&5
2181echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2183  (eval $ac_link) 2>&5
2184  ac_status=$?
2185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186  (exit $ac_status); }; then
2187  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2188# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2189# work properly (i.e., refer to `conftest.exe'), while it won't with
2190# `rm'.
2191for ac_file in conftest.exe conftest conftest.*; do
2192  test -f "$ac_file" || continue
2193  case $ac_file in
2194    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2195    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196          export ac_cv_exeext
2197          break;;
2198    * ) break;;
2199  esac
2200done
2201else
2202  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2203See \`config.log' for more details." >&5
2204echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2205See \`config.log' for more details." >&2;}
2206   { (exit 1); exit 1; }; }
2207fi
2208
2209rm -f conftest$ac_cv_exeext
2210echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2211echo "${ECHO_T}$ac_cv_exeext" >&6
2212
2213rm -f conftest.$ac_ext
2214EXEEXT=$ac_cv_exeext
2215ac_exeext=$EXEEXT
2216echo "$as_me:$LINENO: checking for suffix of object files" >&5
2217echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2218if test "${ac_cv_objext+set}" = set; then
2219  echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221  cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h.  */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h.  */
2227
2228int
2229main ()
2230{
2231
2232  ;
2233  return 0;
2234}
2235_ACEOF
2236rm -f conftest.o conftest.obj
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238  (eval $ac_compile) 2>&5
2239  ac_status=$?
2240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241  (exit $ac_status); }; then
2242  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2243  case $ac_file in
2244    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2245    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2246       break;;
2247  esac
2248done
2249else
2250  echo "$as_me: failed program was:" >&5
2251sed 's/^/| /' conftest.$ac_ext >&5
2252
2253{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2254See \`config.log' for more details." >&5
2255echo "$as_me: error: cannot compute suffix of object files: cannot compile
2256See \`config.log' for more details." >&2;}
2257   { (exit 1); exit 1; }; }
2258fi
2259
2260rm -f conftest.$ac_cv_objext conftest.$ac_ext
2261fi
2262echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2263echo "${ECHO_T}$ac_cv_objext" >&6
2264OBJEXT=$ac_cv_objext
2265ac_objext=$OBJEXT
2266echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2267echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2268if test "${ac_cv_c_compiler_gnu+set}" = set; then
2269  echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
2271  cat >conftest.$ac_ext <<_ACEOF
2272/* confdefs.h.  */
2273_ACEOF
2274cat confdefs.h >>conftest.$ac_ext
2275cat >>conftest.$ac_ext <<_ACEOF
2276/* end confdefs.h.  */
2277
2278int
2279main ()
2280{
2281#ifndef __GNUC__
2282       choke me
2283#endif
2284
2285  ;
2286  return 0;
2287}
2288_ACEOF
2289rm -f conftest.$ac_objext
2290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291  (eval $ac_compile) 2>conftest.er1
2292  ac_status=$?
2293  grep -v '^ *+' conftest.er1 >conftest.err
2294  rm -f conftest.er1
2295  cat conftest.err >&5
2296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297  (exit $ac_status); } &&
2298         { ac_try='test -z "$ac_c_werror_flag"
2299                         || test ! -s conftest.err'
2300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301  (eval $ac_try) 2>&5
2302  ac_status=$?
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); }; } &&
2305         { ac_try='test -s conftest.$ac_objext'
2306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307  (eval $ac_try) 2>&5
2308  ac_status=$?
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); }; }; then
2311  ac_compiler_gnu=yes
2312else
2313  echo "$as_me: failed program was:" >&5
2314sed 's/^/| /' conftest.$ac_ext >&5
2315
2316ac_compiler_gnu=no
2317fi
2318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2319ac_cv_c_compiler_gnu=$ac_compiler_gnu
2320
2321fi
2322echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2323echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2324GCC=`test $ac_compiler_gnu = yes && echo yes`
2325ac_test_CFLAGS=${CFLAGS+set}
2326ac_save_CFLAGS=$CFLAGS
2327CFLAGS="-g"
2328echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2329echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2330if test "${ac_cv_prog_cc_g+set}" = set; then
2331  echo $ECHO_N "(cached) $ECHO_C" >&6
2332else
2333  cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h.  */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h.  */
2339
2340int
2341main ()
2342{
2343
2344  ;
2345  return 0;
2346}
2347_ACEOF
2348rm -f conftest.$ac_objext
2349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350  (eval $ac_compile) 2>conftest.er1
2351  ac_status=$?
2352  grep -v '^ *+' conftest.er1 >conftest.err
2353  rm -f conftest.er1
2354  cat conftest.err >&5
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); } &&
2357         { ac_try='test -z "$ac_c_werror_flag"
2358                         || test ! -s conftest.err'
2359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360  (eval $ac_try) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; } &&
2364         { ac_try='test -s conftest.$ac_objext'
2365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366  (eval $ac_try) 2>&5
2367  ac_status=$?
2368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369  (exit $ac_status); }; }; then
2370  ac_cv_prog_cc_g=yes
2371else
2372  echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375ac_cv_prog_cc_g=no
2376fi
2377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2378fi
2379echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2380echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2381if test "$ac_test_CFLAGS" = set; then
2382  CFLAGS=$ac_save_CFLAGS
2383elif test $ac_cv_prog_cc_g = yes; then
2384  if test "$GCC" = yes; then
2385    CFLAGS="-g -O2"
2386  else
2387    CFLAGS="-g"
2388  fi
2389else
2390  if test "$GCC" = yes; then
2391    CFLAGS="-O2"
2392  else
2393    CFLAGS=
2394  fi
2395fi
2396echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2397echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2398if test "${ac_cv_prog_cc_stdc+set}" = set; then
2399  echo $ECHO_N "(cached) $ECHO_C" >&6
2400else
2401  ac_cv_prog_cc_stdc=no
2402ac_save_CC=$CC
2403cat >conftest.$ac_ext <<_ACEOF
2404/* confdefs.h.  */
2405_ACEOF
2406cat confdefs.h >>conftest.$ac_ext
2407cat >>conftest.$ac_ext <<_ACEOF
2408/* end confdefs.h.  */
2409#include <stdarg.h>
2410#include <stdio.h>
2411#include <sys/types.h>
2412#include <sys/stat.h>
2413/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2414struct buf { int x; };
2415FILE * (*rcsopen) (struct buf *, struct stat *, int);
2416static char *e (p, i)
2417     char **p;
2418     int i;
2419{
2420  return p[i];
2421}
2422static char *f (char * (*g) (char **, int), char **p, ...)
2423{
2424  char *s;
2425  va_list v;
2426  va_start (v,p);
2427  s = g (p, va_arg (v,int));
2428  va_end (v);
2429  return s;
2430}
2431
2432/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2433   function prototypes and stuff, but not '\xHH' hex character constants.
2434   These don't provoke an error unfortunately, instead are silently treated
2435   as 'x'.  The following induces an error, until -std1 is added to get
2436   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2437   array size at least.  It's necessary to write '\x00'==0 to get something
2438   that's true only with -std1.  */
2439int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2440
2441int test (int i, double x);
2442struct s1 {int (*f) (int a);};
2443struct s2 {int (*f) (double a);};
2444int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2445int argc;
2446char **argv;
2447int
2448main ()
2449{
2450return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2451  ;
2452  return 0;
2453}
2454_ACEOF
2455# Don't try gcc -ansi; that turns off useful extensions and
2456# breaks some systems' header files.
2457# AIX                   -qlanglvl=ansi
2458# Ultrix and OSF/1      -std1
2459# HP-UX 10.20 and later -Ae
2460# HP-UX older versions  -Aa -D_HPUX_SOURCE
2461# SVR4                  -Xc -D__EXTENSIONS__
2462for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2463do
2464  CC="$ac_save_CC $ac_arg"
2465  rm -f conftest.$ac_objext
2466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467  (eval $ac_compile) 2>conftest.er1
2468  ac_status=$?
2469  grep -v '^ *+' conftest.er1 >conftest.err
2470  rm -f conftest.er1
2471  cat conftest.err >&5
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); } &&
2474         { ac_try='test -z "$ac_c_werror_flag"
2475                         || test ! -s conftest.err'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; } &&
2481         { ac_try='test -s conftest.$ac_objext'
2482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483  (eval $ac_try) 2>&5
2484  ac_status=$?
2485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486  (exit $ac_status); }; }; then
2487  ac_cv_prog_cc_stdc=$ac_arg
2488break
2489else
2490  echo "$as_me: failed program was:" >&5
2491sed 's/^/| /' conftest.$ac_ext >&5
2492
2493fi
2494rm -f conftest.err conftest.$ac_objext
2495done
2496rm -f conftest.$ac_ext conftest.$ac_objext
2497CC=$ac_save_CC
2498
2499fi
2500
2501case "x$ac_cv_prog_cc_stdc" in
2502  x|xno)
2503    echo "$as_me:$LINENO: result: none needed" >&5
2504echo "${ECHO_T}none needed" >&6 ;;
2505  *)
2506    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2507echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2508    CC="$CC $ac_cv_prog_cc_stdc" ;;
2509esac
2510
2511# Some people use a C++ compiler to compile C.  Since we use `exit',
2512# in C++ we need to declare it.  In case someone uses the same compiler
2513# for both compiling C and C++ we need to have the C++ compiler decide
2514# the declaration of exit, since it's the most demanding environment.
2515cat >conftest.$ac_ext <<_ACEOF
2516#ifndef __cplusplus
2517  choke me
2518#endif
2519_ACEOF
2520rm -f conftest.$ac_objext
2521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522  (eval $ac_compile) 2>conftest.er1
2523  ac_status=$?
2524  grep -v '^ *+' conftest.er1 >conftest.err
2525  rm -f conftest.er1
2526  cat conftest.err >&5
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); } &&
2529         { ac_try='test -z "$ac_c_werror_flag"
2530                         || test ! -s conftest.err'
2531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532  (eval $ac_try) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; } &&
2536         { ac_try='test -s conftest.$ac_objext'
2537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538  (eval $ac_try) 2>&5
2539  ac_status=$?
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); }; }; then
2542  for ac_declaration in \
2543   '' \
2544   'extern "C" void std::exit (int) throw (); using std::exit;' \
2545   'extern "C" void std::exit (int); using std::exit;' \
2546   'extern "C" void exit (int) throw ();' \
2547   'extern "C" void exit (int);' \
2548   'void exit (int);'
2549do
2550  cat >conftest.$ac_ext <<_ACEOF
2551/* confdefs.h.  */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h.  */
2556$ac_declaration
2557#include <stdlib.h>
2558int
2559main ()
2560{
2561exit (42);
2562  ;
2563  return 0;
2564}
2565_ACEOF
2566rm -f conftest.$ac_objext
2567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568  (eval $ac_compile) 2>conftest.er1
2569  ac_status=$?
2570  grep -v '^ *+' conftest.er1 >conftest.err
2571  rm -f conftest.er1
2572  cat conftest.err >&5
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); } &&
2575         { ac_try='test -z "$ac_c_werror_flag"
2576                         || test ! -s conftest.err'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; } &&
2582         { ac_try='test -s conftest.$ac_objext'
2583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584  (eval $ac_try) 2>&5
2585  ac_status=$?
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); }; }; then
2588  :
2589else
2590  echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593continue
2594fi
2595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596  cat >conftest.$ac_ext <<_ACEOF
2597/* confdefs.h.  */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h.  */
2602$ac_declaration
2603int
2604main ()
2605{
2606exit (42);
2607  ;
2608  return 0;
2609}
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613  (eval $ac_compile) 2>conftest.er1
2614  ac_status=$?
2615  grep -v '^ *+' conftest.er1 >conftest.err
2616  rm -f conftest.er1
2617  cat conftest.err >&5
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); } &&
2620         { ac_try='test -z "$ac_c_werror_flag"
2621                         || test ! -s conftest.err'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; } &&
2627         { ac_try='test -s conftest.$ac_objext'
2628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629  (eval $ac_try) 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); }; }; then
2633  break
2634else
2635  echo "$as_me: failed program was:" >&5
2636sed 's/^/| /' conftest.$ac_ext >&5
2637
2638fi
2639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2640done
2641rm -f conftest*
2642if test -n "$ac_declaration"; then
2643  echo '#ifdef __cplusplus' >>confdefs.h
2644  echo $ac_declaration      >>confdefs.h
2645  echo '#endif'             >>confdefs.h
2646fi
2647
2648else
2649  echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652fi
2653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2654ac_ext=c
2655ac_cpp='$CPP $CPPFLAGS'
2656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660if test -z "$CC" ; then
2661  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2662echo "$as_me: error: Failed to find a C compiler!" >&2;}
2663   { (exit 1); exit 1; }; }
2664fi
2665# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2666case "$CC" in
2667  cl* | */cl* | CL* | */CL* )
2668    if test "$ac_cv_prog_cc_g" = yes ; then
2669      ac_cv_prog_cc_g=no
2670      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2671echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2672    fi ;;
2673esac
2674CFLAGS="$save_cflags"
2675
2676# Check if a project specific CFLAGS variable has been set
2677if test x$COIN_PRJCT != x; then
2678  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2679  if test x$coin_tmp = xset; then
2680    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2681  fi
2682fi
2683
2684if test x"$CFLAGS" = x; then
2685
2686  coin_add_cflags=
2687  coin_opt_cflags=
2688  coin_dbg_cflags=
2689  coin_warn_cflags=
2690
2691  if test "$GCC" = "yes"; then
2692    case "$CC" in
2693      icc* | */icc*)
2694        ;;
2695      *)
2696        coin_opt_cflags="-O3 -fomit-frame-pointer"
2697        coin_add_cflags="-pipe"
2698        coin_dbg_cflags="-g"
2699        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2700        case $enable_doscompile in
2701          mingw)
2702            CFLAGS="-mno-cygwin"
2703            cat >conftest.$ac_ext <<_ACEOF
2704/* confdefs.h.  */
2705_ACEOF
2706cat confdefs.h >>conftest.$ac_ext
2707cat >>conftest.$ac_ext <<_ACEOF
2708/* end confdefs.h.  */
2709
2710int
2711main ()
2712{
2713int i=0; i++;
2714  ;
2715  return 0;
2716}
2717_ACEOF
2718rm -f conftest.$ac_objext conftest$ac_exeext
2719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2720  (eval $ac_link) 2>conftest.er1
2721  ac_status=$?
2722  grep -v '^ *+' conftest.er1 >conftest.err
2723  rm -f conftest.er1
2724  cat conftest.err >&5
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); } &&
2727         { ac_try='test -z "$ac_c_werror_flag"
2728                         || test ! -s conftest.err'
2729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730  (eval $ac_try) 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }; } &&
2734         { ac_try='test -s conftest$ac_exeext'
2735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736  (eval $ac_try) 2>&5
2737  ac_status=$?
2738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739  (exit $ac_status); }; }; then
2740  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2741else
2742  echo "$as_me: failed program was:" >&5
2743sed 's/^/| /' conftest.$ac_ext >&5
2744
2745fi
2746rm -f conftest.err conftest.$ac_objext \
2747      conftest$ac_exeext conftest.$ac_ext
2748            CFLAGS=
2749          ;;
2750        esac
2751    esac
2752  fi
2753  if test -z "$coin_opt_cflags"; then
2754    case $build in
2755      *-cygwin* | *-mingw*)
2756        case "$CC" in
2757          cl* | */cl* | CL* | */CL*)
2758            coin_opt_cflags='-MT -O2'
2759            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2760            coin_dbg_cflags='-MTd'
2761            ;;
2762          icl* | */icl* | ICL* | */ICL*)
2763            coin_opt_cflags='-MT -Ox'
2764            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2765            coin_dbg_cflags='-MTd -debug'
2766            ;;
2767        esac
2768        ;;
2769      *-linux-*)
2770        case "$CC" in
2771          icc* | */icc*)
2772            coin_opt_cflags="-O3 -ip"
2773            coin_add_cflags=""
2774            coin_dbg_cflags="-g"
2775            # Check if -i_dynamic is necessary (for new glibc library)
2776            CFLAGS=
2777            cat >conftest.$ac_ext <<_ACEOF
2778/* confdefs.h.  */
2779_ACEOF
2780cat confdefs.h >>conftest.$ac_ext
2781cat >>conftest.$ac_ext <<_ACEOF
2782/* end confdefs.h.  */
2783
2784int
2785main ()
2786{
2787int i=0; i++;
2788  ;
2789  return 0;
2790}
2791_ACEOF
2792rm -f conftest.$ac_objext conftest$ac_exeext
2793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2794  (eval $ac_link) 2>conftest.er1
2795  ac_status=$?
2796  grep -v '^ *+' conftest.er1 >conftest.err
2797  rm -f conftest.er1
2798  cat conftest.err >&5
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); } &&
2801         { ac_try='test -z "$ac_c_werror_flag"
2802                         || test ! -s conftest.err'
2803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804  (eval $ac_try) 2>&5
2805  ac_status=$?
2806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807  (exit $ac_status); }; } &&
2808         { ac_try='test -s conftest$ac_exeext'
2809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810  (eval $ac_try) 2>&5
2811  ac_status=$?
2812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813  (exit $ac_status); }; }; then
2814  :
2815else
2816  echo "$as_me: failed program was:" >&5
2817sed 's/^/| /' conftest.$ac_ext >&5
2818
2819coin_add_cflags="-i_dynamic $coin_add_cflags"
2820fi
2821rm -f conftest.err conftest.$ac_objext \
2822      conftest$ac_exeext conftest.$ac_ext
2823            ;;
2824          pgcc* | */pgcc*)
2825            coin_opt_cflags="-fast"
2826            coin_add_cflags="-Kieee -pc 64"
2827            coin_dbg_cflags="-g"
2828            ;;
2829        esac
2830        ;;
2831      *-ibm-*)
2832        case "$CC" in
2833          xlc* | */xlc* | mpxlc* | */mpxlc*)
2834            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2835            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2836            coin_dbg_cflags="-g"
2837          ;;
2838        esac
2839        ;;
2840      *-hp-*)
2841        coin_opt_cflags="-O"
2842        coin_add_cflags="-Ae"
2843        coin_dbg_cflags="-g"
2844        ;;
2845      *-*-solaris*)
2846        coin_opt_cflags="-xO4"
2847        coin_dbg_cflags="-g"
2848        ;;
2849      *-sgi-*)
2850        coin_opt_cflags="-O -OPT:Olimit=0"
2851        coin_dbg_cflags="-g"
2852        ;;
2853    esac
2854  fi
2855
2856  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2857    coin_dbg_cflags="-g"
2858  fi
2859
2860  if test -z "$coin_opt_cflags"; then
2861    # Try if -O option works if nothing else is set
2862    CFLAGS="-O"
2863    cat >conftest.$ac_ext <<_ACEOF
2864/* confdefs.h.  */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h.  */
2869
2870int
2871main ()
2872{
2873int i=0; i++;
2874  ;
2875  return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext conftest$ac_exeext
2879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2880  (eval $ac_link) 2>conftest.er1
2881  ac_status=$?
2882  grep -v '^ *+' conftest.er1 >conftest.err
2883  rm -f conftest.er1
2884  cat conftest.err >&5
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); } &&
2887         { ac_try='test -z "$ac_c_werror_flag"
2888                         || test ! -s conftest.err'
2889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890  (eval $ac_try) 2>&5
2891  ac_status=$?
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); }; } &&
2894         { ac_try='test -s conftest$ac_exeext'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; }; then
2900  coin_opt_cflags="-O"
2901else
2902  echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905fi
2906rm -f conftest.err conftest.$ac_objext \
2907      conftest$ac_exeext conftest.$ac_ext
2908  fi
2909
2910  # if PM doesn't want the warning messages, take them out
2911  if test x"$coin_skip_warn_cflags" = xyes; then
2912    coin_warn_cflags=
2913  fi
2914
2915  if test x${DBG_CFLAGS+set} != xset; then
2916    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2917  fi
2918  if test x${OPT_CFLAGS+set} != xset; then
2919    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2920  fi
2921
2922  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2923  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2924
2925  if test "$coin_debug_compile" = "true"; then
2926    CFLAGS="$DBG_CFLAGS"
2927  else
2928    CFLAGS="$OPT_CFLAGS"
2929  fi
2930else
2931  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2932  if test x${DBG_CFLAGS+set} != xset; then
2933    DBG_CFLAGS="$CFLAGS"
2934  fi
2935  if test x${OPT_CFLAGS+set} != xset; then
2936    OPT_CFLAGS="$CFLAGS"
2937  fi
2938fi
2939
2940# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2941
2942case "$CFLAGS" in
2943  *-mno-cygwin*)
2944    if test x${CPPFLAGS+set} != xset ; then
2945      CPPFLAGS="-mno-cygwin"
2946    else
2947      case "$CPPFLAGS" in
2948        *-mno-cygwin*)
2949          ;;
2950        *)
2951          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2952          ;;
2953      esac
2954    fi ;;
2955esac
2956
2957# Try if CFLAGS works
2958save_CFLAGS="$CFLAGS"
2959cat >conftest.$ac_ext <<_ACEOF
2960/* confdefs.h.  */
2961_ACEOF
2962cat confdefs.h >>conftest.$ac_ext
2963cat >>conftest.$ac_ext <<_ACEOF
2964/* end confdefs.h.  */
2965
2966int
2967main ()
2968{
2969int i=0; i++;
2970  ;
2971  return 0;
2972}
2973_ACEOF
2974rm -f conftest.$ac_objext conftest$ac_exeext
2975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2976  (eval $ac_link) 2>conftest.er1
2977  ac_status=$?
2978  grep -v '^ *+' conftest.er1 >conftest.err
2979  rm -f conftest.er1
2980  cat conftest.err >&5
2981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982  (exit $ac_status); } &&
2983         { ac_try='test -z "$ac_c_werror_flag"
2984                         || test ! -s conftest.err'
2985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986  (eval $ac_try) 2>&5
2987  ac_status=$?
2988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989  (exit $ac_status); }; } &&
2990         { ac_try='test -s conftest$ac_exeext'
2991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992  (eval $ac_try) 2>&5
2993  ac_status=$?
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); }; }; then
2996  :
2997else
2998  echo "$as_me: failed program was:" >&5
2999sed 's/^/| /' conftest.$ac_ext >&5
3000
3001CFLAGS=
3002fi
3003rm -f conftest.err conftest.$ac_objext \
3004      conftest$ac_exeext conftest.$ac_ext
3005if test -z "$CFLAGS"; then
3006  { 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
3007echo "$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;}
3008  CFLAGS='-O'
3009  cat >conftest.$ac_ext <<_ACEOF
3010/* confdefs.h.  */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h.  */
3015
3016int
3017main ()
3018{
3019int i=0; i++;
3020  ;
3021  return 0;
3022}
3023_ACEOF
3024rm -f conftest.$ac_objext conftest$ac_exeext
3025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3026  (eval $ac_link) 2>conftest.er1
3027  ac_status=$?
3028  grep -v '^ *+' conftest.er1 >conftest.err
3029  rm -f conftest.er1
3030  cat conftest.err >&5
3031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032  (exit $ac_status); } &&
3033         { ac_try='test -z "$ac_c_werror_flag"
3034                         || test ! -s conftest.err'
3035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036  (eval $ac_try) 2>&5
3037  ac_status=$?
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); }; } &&
3040         { ac_try='test -s conftest$ac_exeext'
3041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042  (eval $ac_try) 2>&5
3043  ac_status=$?
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); }; }; then
3046  :
3047else
3048  echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051CFLAGS=
3052fi
3053rm -f conftest.err conftest.$ac_objext \
3054      conftest$ac_exeext conftest.$ac_ext
3055  if test -z "$CFLAGS"; then
3056    { 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
3057echo "$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;}
3058  fi
3059fi
3060
3061{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3062echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3063
3064
3065if test x"$MPICC" = x; then :; else
3066  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3067echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3068  CC="$MPICC"
3069fi
3070
3071# Correct ADDLIBS initialization if we are using the MS compiler
3072case "$CC" in
3073  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3074    ADDLIBS=
3075    case $build in
3076  *-mingw*)
3077    if test "${LD+set}" = set; then :; else
3078      LD=link
3079    fi
3080    ;;
3081 esac
3082 case $enable_doscompile in
3083   msvc)
3084     if test "x${LD+set}" = xset; then :; else
3085       LD=link
3086     fi
3087     ;;
3088 esac
3089
3090    ;;
3091esac
3092
3093ac_ext=c
3094ac_cpp='$CPP $CPPFLAGS'
3095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098
3099
3100
3101# Get the name of the Fortran compiler and appropriate compiler options
3102case $build in
3103  *-cygwin* | *-mingw*)
3104     if test "$enable_doscompile" = msvc ; then
3105       coin_f77_comps="ifort fl32 compile_f2c"
3106     else
3107       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3108     fi ;;
3109  *-*-solaris*)
3110     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3111  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3112 esac
3113
3114
3115
3116
3117
3118
3119ac_ext=f
3120ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3121ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3123
3124
3125
3126
3127
3128
3129coin_has_f77=yes
3130
3131save_fflags="$FFLAGS"
3132
3133# We delete the cached value, since the test might not have been
3134# performed with our choice of compilers earlier
3135$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3136
3137# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3138# coin_f77_comps to see if there's a program that matches one of the names.
3139# If there's no such program, F77 = unavailable. If we match the name,
3140# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3141# compiler.
3142# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3143
3144
3145{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3146echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3147for ac_prog in $coin_f77_comps
3148do
3149  # Extract the first word of "$ac_prog", so it can be a program name with args.
3150set dummy $ac_prog; ac_word=$2
3151echo "$as_me:$LINENO: checking for $ac_word" >&5
3152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153if test "${ac_cv_prog_F77+set}" = set; then
3154  echo $ECHO_N "(cached) $ECHO_C" >&6
3155else
3156  if test -n "$F77"; then
3157  ac_cv_prog_F77="$F77" # Let the user override the test.
3158else
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162  IFS=$as_save_IFS
3163  test -z "$as_dir" && as_dir=.
3164  for ac_exec_ext in '' $ac_executable_extensions; do
3165  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166    ac_cv_prog_F77="$ac_prog"
3167    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168    break 2
3169  fi
3170done
3171done
3172
3173fi
3174fi
3175F77=$ac_cv_prog_F77
3176if test -n "$F77"; then
3177  echo "$as_me:$LINENO: result: $F77" >&5
3178echo "${ECHO_T}$F77" >&6
3179else
3180  echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
3182fi
3183
3184  test -n "$F77" && break
3185done
3186test -n "$F77" || F77="unavailable"
3187
3188
3189if test "$F77" != "unavailable" ; then
3190  ac_ext=f
3191ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3192ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3194if test -n "$ac_tool_prefix"; then
3195  for ac_prog in $coin_f77_comps
3196  do
3197    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3198set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3199echo "$as_me:$LINENO: checking for $ac_word" >&5
3200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3201if test "${ac_cv_prog_F77+set}" = set; then
3202  echo $ECHO_N "(cached) $ECHO_C" >&6
3203else
3204  if test -n "$F77"; then
3205  ac_cv_prog_F77="$F77" # Let the user override the test.
3206else
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210  IFS=$as_save_IFS
3211  test -z "$as_dir" && as_dir=.
3212  for ac_exec_ext in '' $ac_executable_extensions; do
3213  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3215    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216    break 2
3217  fi
3218done
3219done
3220
3221fi
3222fi
3223F77=$ac_cv_prog_F77
3224if test -n "$F77"; then
3225  echo "$as_me:$LINENO: result: $F77" >&5
3226echo "${ECHO_T}$F77" >&6
3227else
3228  echo "$as_me:$LINENO: result: no" >&5
3229echo "${ECHO_T}no" >&6
3230fi
3231
3232    test -n "$F77" && break
3233  done
3234fi
3235if test -z "$F77"; then
3236  ac_ct_F77=$F77
3237  for ac_prog in $coin_f77_comps
3238do
3239  # Extract the first word of "$ac_prog", so it can be a program name with args.
3240set dummy $ac_prog; ac_word=$2
3241echo "$as_me:$LINENO: checking for $ac_word" >&5
3242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3243if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3244  echo $ECHO_N "(cached) $ECHO_C" >&6
3245else
3246  if test -n "$ac_ct_F77"; then
3247  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3248else
3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250for as_dir in $PATH
3251do
3252  IFS=$as_save_IFS
3253  test -z "$as_dir" && as_dir=.
3254  for ac_exec_ext in '' $ac_executable_extensions; do
3255  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256    ac_cv_prog_ac_ct_F77="$ac_prog"
3257    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258    break 2
3259  fi
3260done
3261done
3262
3263fi
3264fi
3265ac_ct_F77=$ac_cv_prog_ac_ct_F77
3266if test -n "$ac_ct_F77"; then
3267  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3268echo "${ECHO_T}$ac_ct_F77" >&6
3269else
3270  echo "$as_me:$LINENO: result: no" >&5
3271echo "${ECHO_T}no" >&6
3272fi
3273
3274  test -n "$ac_ct_F77" && break
3275done
3276
3277  F77=$ac_ct_F77
3278fi
3279
3280
3281# Provide some information about the compiler.
3282echo "$as_me:3282:" \
3283     "checking for Fortran 77 compiler version" >&5
3284ac_compiler=`set X $ac_compile; echo $2`
3285{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3286  (eval $ac_compiler --version </dev/null >&5) 2>&5
3287  ac_status=$?
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); }
3290{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3291  (eval $ac_compiler -v </dev/null >&5) 2>&5
3292  ac_status=$?
3293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294  (exit $ac_status); }
3295{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3296  (eval $ac_compiler -V </dev/null >&5) 2>&5
3297  ac_status=$?
3298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299  (exit $ac_status); }
3300rm -f a.out
3301
3302# If we don't use `.F' as extension, the preprocessor is not run on the
3303# input file.  (Note that this only needs to work for GNU compilers.)
3304ac_save_ext=$ac_ext
3305ac_ext=F
3306echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3307echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3308if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3309  echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
3311  cat >conftest.$ac_ext <<_ACEOF
3312      program main
3313#ifndef __GNUC__
3314       choke me
3315#endif
3316
3317      end
3318_ACEOF
3319rm -f conftest.$ac_objext
3320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3321  (eval $ac_compile) 2>conftest.er1
3322  ac_status=$?
3323  grep -v '^ *+' conftest.er1 >conftest.err
3324  rm -f conftest.er1
3325  cat conftest.err >&5
3326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327  (exit $ac_status); } &&
3328         { ac_try='test -z "$ac_f77_werror_flag"
3329                         || test ! -s conftest.err'
3330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331  (eval $ac_try) 2>&5
3332  ac_status=$?
3333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334  (exit $ac_status); }; } &&
3335         { ac_try='test -s conftest.$ac_objext'
3336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337  (eval $ac_try) 2>&5
3338  ac_status=$?
3339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340  (exit $ac_status); }; }; then
3341  ac_compiler_gnu=yes
3342else
3343  echo "$as_me: failed program was:" >&5
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
3346ac_compiler_gnu=no
3347fi
3348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3349ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3350
3351fi
3352echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3353echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3354ac_ext=$ac_save_ext
3355ac_test_FFLAGS=${FFLAGS+set}
3356ac_save_FFLAGS=$FFLAGS
3357FFLAGS=
3358echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3359echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3360if test "${ac_cv_prog_f77_g+set}" = set; then
3361  echo $ECHO_N "(cached) $ECHO_C" >&6
3362else
3363  FFLAGS=-g
3364cat >conftest.$ac_ext <<_ACEOF
3365      program main
3366
3367      end
3368_ACEOF
3369rm -f conftest.$ac_objext
3370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3371  (eval $ac_compile) 2>conftest.er1
3372  ac_status=$?
3373  grep -v '^ *+' conftest.er1 >conftest.err
3374  rm -f conftest.er1
3375  cat conftest.err >&5
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); } &&
3378         { ac_try='test -z "$ac_f77_werror_flag"
3379                         || test ! -s conftest.err'
3380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381  (eval $ac_try) 2>&5
3382  ac_status=$?
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); }; } &&
3385         { ac_try='test -s conftest.$ac_objext'
3386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387  (eval $ac_try) 2>&5
3388  ac_status=$?
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); }; }; then
3391  ac_cv_prog_f77_g=yes
3392else
3393  echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396ac_cv_prog_f77_g=no
3397fi
3398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3399
3400fi
3401echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3402echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3403if test "$ac_test_FFLAGS" = set; then
3404  FFLAGS=$ac_save_FFLAGS
3405elif test $ac_cv_prog_f77_g = yes; then
3406  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3407    FFLAGS="-g -O2"
3408  else
3409    FFLAGS="-g"
3410  fi
3411else
3412  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3413    FFLAGS="-O2"
3414  else
3415    FFLAGS=
3416  fi
3417fi
3418
3419G77=`test $ac_compiler_gnu = yes && echo yes`
3420ac_ext=f
3421ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3422ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3424
3425else
3426  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3427echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3428fi
3429
3430FFLAGS="$save_fflags"
3431
3432# Check if a project specific FFLAGS variable has been set
3433if test x$COIN_PRJCT != x; then
3434  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3435  if test x$coin_tmp = xset; then
3436    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3437  fi
3438fi
3439
3440if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3441
3442  coin_add_fflags=
3443  coin_opt_fflags=
3444  coin_dbg_fflags=
3445  coin_warn_fflags=
3446
3447  if test "$G77" = "yes"; then
3448    coin_opt_fflags="-O3 -fomit-frame-pointer"
3449    coin_add_fflags="-pipe"
3450    coin_dbg_fflags="-g"
3451    case $enable_doscompile in
3452      mingw)
3453        FFLAGS="-mno-cygwin"
3454        cat >conftest.$ac_ext <<_ACEOF
3455      program main
3456      write(*,*) 'Hello world'
3457      end
3458_ACEOF
3459rm -f conftest.$ac_objext conftest$ac_exeext
3460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3461  (eval $ac_link) 2>conftest.er1
3462  ac_status=$?
3463  grep -v '^ *+' conftest.er1 >conftest.err
3464  rm -f conftest.er1
3465  cat conftest.err >&5
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); } &&
3468         { ac_try='test -z "$ac_f77_werror_flag"
3469                         || test ! -s conftest.err'
3470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471  (eval $ac_try) 2>&5
3472  ac_status=$?
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); }; } &&
3475         { ac_try='test -s conftest$ac_exeext'
3476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477  (eval $ac_try) 2>&5
3478  ac_status=$?
3479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480  (exit $ac_status); }; }; then
3481  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3482else
3483  echo "$as_me: failed program was:" >&5
3484sed 's/^/| /' conftest.$ac_ext >&5
3485
3486fi
3487rm -f conftest.err conftest.$ac_objext \
3488      conftest$ac_exeext conftest.$ac_ext
3489        FFLAGS=
3490      ;;
3491    esac
3492  else
3493    case $build in
3494      *-cygwin* | *-mingw*)
3495        case $F77 in
3496          ifort* | */ifort* | IFORT* | */IFORT* )
3497            coin_opt_fflags='-O3'
3498            coin_add_fflags='-fpp -nologo -MT'
3499            coin_dbg_fflags='-debug'
3500          ;;
3501          compile_f2c*)
3502            coin_opt_fflags='-MT -O2'
3503            coin_add_fflags='-nologo -wd4996'
3504            coin_dbg_fflags='-MTd'
3505          ;;
3506        esac
3507        ;;
3508      *-linux-*)
3509        case $F77 in
3510          ifc* | */ifc* | ifort* | */ifort*)
3511            coin_opt_fflags="-O3 -ip"
3512            coin_add_fflags="-cm -w90 -w95"
3513            coin_dbg_fflags="-g -CA -CB -CS"
3514            # Check if -i_dynamic is necessary (for new glibc library)
3515            FFLAGS=
3516            cat >conftest.$ac_ext <<_ACEOF
3517      program main
3518      write(*,*) 'Hello world'
3519      end
3520_ACEOF
3521rm -f conftest.$ac_objext conftest$ac_exeext
3522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3523  (eval $ac_link) 2>conftest.er1
3524  ac_status=$?
3525  grep -v '^ *+' conftest.er1 >conftest.err
3526  rm -f conftest.er1
3527  cat conftest.err >&5
3528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529  (exit $ac_status); } &&
3530         { ac_try='test -z "$ac_f77_werror_flag"
3531                         || test ! -s conftest.err'
3532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533  (eval $ac_try) 2>&5
3534  ac_status=$?
3535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536  (exit $ac_status); }; } &&
3537         { ac_try='test -s conftest$ac_exeext'
3538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539  (eval $ac_try) 2>&5
3540  ac_status=$?
3541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542  (exit $ac_status); }; }; then
3543  :
3544else
3545  echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548coin_add_fflags="-i_dynamic $coin_add_fflags"
3549fi
3550rm -f conftest.err conftest.$ac_objext \
3551      conftest$ac_exeext conftest.$ac_ext
3552            ;;
3553          pgf77* | */pgf77* | pgf90* | */pgf90*)
3554            coin_opt_fflags="-fast"
3555            coin_add_fflags="-Kieee -pc 64"
3556            coin_dbg_fflags="-g"
3557          ;;
3558        esac
3559        ;;
3560      *-ibm-*)
3561        case "$F77" in
3562          xlf* | */xlf* | mpxlf* | */mpxlf* )
3563            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3564            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3565            coin_dbg_fflags="-g -C"
3566            ;;
3567        esac
3568        ;;
3569      *-hp-*)
3570        coin_opt_fflags="+O3"
3571        coin_add_fflags="+U77"
3572        coin_dbg_fflags="-C -g"
3573        ;;
3574      *-*-solaris*)
3575        coin_opt_fflags="-O4"
3576        coin_dbg_fflags="-g"
3577        ;;
3578      *-sgi-*)
3579        coin_opt_fflags="-O5 -OPT:Olimit=0"
3580        coin_dbg_fflags="-g"
3581        ;;
3582    esac
3583  fi
3584
3585  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3586    coin_dbg_fflags="-g"
3587  fi
3588
3589  if test -z "$coin_opt_fflags"; then
3590    # Try if -O option works if nothing else is set
3591    FFLAGS=-O
3592    cat >conftest.$ac_ext <<_ACEOF
3593      program main
3594      integer i
3595      end
3596_ACEOF
3597rm -f conftest.$ac_objext conftest$ac_exeext
3598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3599  (eval $ac_link) 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } &&
3606         { ac_try='test -z "$ac_f77_werror_flag"
3607                         || test ! -s conftest.err'
3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609  (eval $ac_try) 2>&5
3610  ac_status=$?
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); }; } &&
3613         { ac_try='test -s conftest$ac_exeext'
3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615  (eval $ac_try) 2>&5
3616  ac_status=$?
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); }; }; then
3619  coin_opt_fflags="-O"
3620else
3621  echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624fi
3625rm -f conftest.err conftest.$ac_objext \
3626      conftest$ac_exeext conftest.$ac_ext
3627  fi
3628
3629  # if PM doesn't want the warning messages, take them out
3630  if test x"$coin_skip_warn_fflags" = xyes; then
3631    coin_warn_fflags=
3632  fi
3633
3634  if test x${DBG_FFLAGS+set} != xset; then
3635    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3636  fi
3637  if test x${OPT_FFLAGS+set} != xset; then
3638    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3639  fi
3640
3641  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3642  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3643
3644  if test "$coin_debug_compile" = "true"; then
3645    FFLAGS="$DBG_FFLAGS"
3646  else
3647    FFLAGS="$OPT_FFLAGS"
3648  fi
3649else
3650  FFLAGS="$FFLAGS $ADD_FFLAGS"
3651  if test x${DBG_FFLAGS+set} != xset; then
3652    DBG_FFLAGS="$FFLAGS"
3653  fi
3654  if test x${OPT_FFLAGS+set} != xset; then
3655    OPT_FFLAGS="$FFLAGS"
3656  fi
3657fi
3658
3659# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3660case "$FFLAGS" in
3661  *-mno-cygwin*)
3662    if test x${CPPFLAGS+set} != xset ; then
3663      CPPFLAGS="-mno-cygwin"
3664    else
3665      case "$CPPFLAGS" in
3666        *-mno-cygwin*)
3667          ;;
3668        *)
3669          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3670          ;;
3671      esac
3672    fi ;;
3673esac
3674
3675# Try if FFLAGS works
3676if test "$F77" != "unavailable" ; then
3677  cat >conftest.$ac_ext <<_ACEOF
3678      program main
3679      integer i
3680      end
3681_ACEOF
3682rm -f conftest.$ac_objext conftest$ac_exeext
3683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3684  (eval $ac_link) 2>conftest.er1
3685  ac_status=$?
3686  grep -v '^ *+' conftest.er1 >conftest.err
3687  rm -f conftest.er1
3688  cat conftest.err >&5
3689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690  (exit $ac_status); } &&
3691         { ac_try='test -z "$ac_f77_werror_flag"
3692                         || test ! -s conftest.err'
3693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694  (eval $ac_try) 2>&5
3695  ac_status=$?
3696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697  (exit $ac_status); }; } &&
3698         { ac_try='test -s conftest$ac_exeext'
3699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700  (eval $ac_try) 2>&5
3701  ac_status=$?
3702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703  (exit $ac_status); }; }; then
3704  :
3705else
3706  echo "$as_me: failed program was:" >&5
3707sed 's/^/| /' conftest.$ac_ext >&5
3708
3709FFLAGS=
3710fi
3711rm -f conftest.err conftest.$ac_objext \
3712      conftest$ac_exeext conftest.$ac_ext
3713  if test -z "$FFLAGS"; then
3714    { 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
3715echo "$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;}
3716    FFLAGS='-O'
3717    cat >conftest.$ac_ext <<_ACEOF
3718      program main
3719      integer i
3720      end
3721_ACEOF
3722rm -f conftest.$ac_objext conftest$ac_exeext
3723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724  (eval $ac_link) 2>conftest.er1
3725  ac_status=$?
3726  grep -v '^ *+' conftest.er1 >conftest.err
3727  rm -f conftest.er1
3728  cat conftest.err >&5
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); } &&
3731         { ac_try='test -z "$ac_f77_werror_flag"
3732                         || test ! -s conftest.err'
3733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734  (eval $ac_try) 2>&5
3735  ac_status=$?
3736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737  (exit $ac_status); }; } &&
3738         { ac_try='test -s conftest$ac_exeext'
3739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740  (eval $ac_try) 2>&5
3741  ac_status=$?
3742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743  (exit $ac_status); }; }; then
3744  :
3745else
3746  echo "$as_me: failed program was:" >&5
3747sed 's/^/| /' conftest.$ac_ext >&5
3748
3749FFLAGS=
3750fi
3751rm -f conftest.err conftest.$ac_objext \
3752      conftest$ac_exeext conftest.$ac_ext
3753    if test -z "$FFLAGS"; then
3754      { 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
3755echo "$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;}
3756    fi
3757  fi
3758fi
3759
3760{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3761echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3762
3763
3764if test x"$MPIF77" = x; then :; else
3765  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3766echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3767  F77="$MPIF77"
3768fi
3769
3770case "$F77" in
3771  ifort* | */ifort* | IFORT* | */IFORT*)
3772    case $build in
3773  *-mingw*)
3774    if test "${LD+set}" = set; then :; else
3775      LD=link
3776    fi
3777    ;;
3778 esac
3779 case $enable_doscompile in
3780   msvc)
3781     if test "x${LD+set}" = xset; then :; else
3782       LD=link
3783     fi
3784     ;;
3785 esac
3786
3787    ;;
3788esac
3789
3790ac_ext=c
3791ac_cpp='$CPP $CPPFLAGS'
3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795
3796
3797
3798# Need egrep later on
3799echo "$as_me:$LINENO: checking for egrep" >&5
3800echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3801if test "${ac_cv_prog_egrep+set}" = set; then
3802  echo $ECHO_N "(cached) $ECHO_C" >&6
3803else
3804  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3805    then ac_cv_prog_egrep='grep -E'
3806    else ac_cv_prog_egrep='egrep'
3807    fi
3808fi
3809echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3810echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3811 EGREP=$ac_cv_prog_egrep
3812
3813
3814
3815# Initialize autotools
3816{
3817
3818
3819
3820# START
3821
3822# On Cygwin and AIX, building DLLs doesn't work
3823case $build in
3824  *-cygwin*)
3825    coin_disable_shared=yes
3826    platform=Cygwin
3827  ;;
3828  *-aix*)
3829    coin_disable_shared=yes
3830    platform=AIX
3831  ;;
3832  *-mingw*)
3833    coin_disable_shared=yes
3834    platform="Msys"
3835#    case "$CXX" in
3836#      cl*)
3837#        coin_disable_shared=yes
3838#        platform="Msys with cl"
3839#    ;;
3840#    esac
3841  ;;
3842esac
3843if test x"$coin_disable_shared" = xyes; then
3844  if test x"$enable_shared" = xyes; then
3845    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3846echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3847  fi
3848  enable_shared=no
3849fi
3850# By default, we only want the shared objects to be compiled
3851# Check whether --enable-static or --disable-static was given.
3852if test "${enable_static+set}" = set; then
3853  enableval="$enable_static"
3854  p=${PACKAGE-default}
3855    case $enableval in
3856    yes) enable_static=yes ;;
3857    no) enable_static=no ;;
3858    *)
3859     enable_static=no
3860      # Look at the argument we got.  We use all the common list separators.
3861      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3862      for pkg in $enableval; do
3863        IFS="$lt_save_ifs"
3864        if test "X$pkg" = "X$p"; then
3865          enable_static=yes
3866        fi
3867      done
3868      IFS="$lt_save_ifs"
3869      ;;
3870    esac
3871else
3872  enable_static=no
3873fi;
3874
3875
3876
3877
3878# Initialize automake
3879am__api_version="1.9"
3880# Find a good install program.  We prefer a C program (faster),
3881# so one script is as good as another.  But avoid the broken or
3882# incompatible versions:
3883# SysV /etc/install, /usr/sbin/install
3884# SunOS /usr/etc/install
3885# IRIX /sbin/install
3886# AIX /bin/install
3887# AmigaOS /C/install, which installs bootblocks on floppy discs
3888# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3889# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3890# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3891# OS/2's system install, which has a completely different semantic
3892# ./install, which can be erroneously created by make from ./install.sh.
3893echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3894echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3895if test -z "$INSTALL"; then
3896if test "${ac_cv_path_install+set}" = set; then
3897  echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902  IFS=$as_save_IFS
3903  test -z "$as_dir" && as_dir=.
3904  # Account for people who put trailing slashes in PATH elements.
3905case $as_dir/ in
3906  ./ | .// | /cC/* | \
3907  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3908  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3909  /usr/ucb/* ) ;;
3910  *)
3911    # OSF1 and SCO ODT 3.0 have their own names for install.
3912    # Don't use installbsd from OSF since it installs stuff as root
3913    # by default.
3914    for ac_prog in ginstall scoinst install; do
3915      for ac_exec_ext in '' $ac_executable_extensions; do
3916        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3917          if test $ac_prog = install &&
3918            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3919            # AIX install.  It has an incompatible calling convention.
3920            :
3921          elif test $ac_prog = install &&
3922            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3923            # program-specific install script used by HP pwplus--don't use.
3924            :
3925          else
3926            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3927            break 3
3928          fi
3929        fi
3930      done
3931    done
3932    ;;
3933esac
3934done
3935
3936
3937fi
3938  if test "${ac_cv_path_install+set}" = set; then
3939    INSTALL=$ac_cv_path_install
3940  else
3941    # As a last resort, use the slow shell script.  We don't cache a
3942    # path for INSTALL within a source directory, because that will
3943    # break other packages using the cache if that directory is
3944    # removed, or if the path is relative.
3945    INSTALL=$ac_install_sh
3946  fi
3947fi
3948echo "$as_me:$LINENO: result: $INSTALL" >&5
3949echo "${ECHO_T}$INSTALL" >&6
3950
3951# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3952# It thinks the first close brace ends the variable substitution.
3953test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3954
3955test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3956
3957test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3958
3959echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3960echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3961# Just in case
3962sleep 1
3963echo timestamp > conftest.file
3964# Do `set' in a subshell so we don't clobber the current shell's
3965# arguments.  Must try -L first in case configure is actually a
3966# symlink; some systems play weird games with the mod time of symlinks
3967# (eg FreeBSD returns the mod time of the symlink's containing
3968# directory).
3969if (
3970   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3971   if test "$*" = "X"; then
3972      # -L didn't work.
3973      set X `ls -t $srcdir/configure conftest.file`
3974   fi
3975   rm -f conftest.file
3976   if test "$*" != "X $srcdir/configure conftest.file" \
3977      && test "$*" != "X conftest.file $srcdir/configure"; then
3978
3979      # If neither matched, then we have a broken ls.  This can happen
3980      # if, for instance, CONFIG_SHELL is bash and it inherits a
3981      # broken ls alias from the environment.  This has actually
3982      # happened.  Such a system could not be considered "sane".
3983      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3984alias in your environment" >&5
3985echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3986alias in your environment" >&2;}
3987   { (exit 1); exit 1; }; }
3988   fi
3989
3990   test "$2" = conftest.file
3991   )
3992then
3993   # Ok.
3994   :
3995else
3996   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3997Check your system clock" >&5
3998echo "$as_me: error: newly created file is older than distributed files!
3999Check your system clock" >&2;}
4000   { (exit 1); exit 1; }; }
4001fi
4002echo "$as_me:$LINENO: result: yes" >&5
4003echo "${ECHO_T}yes" >&6
4004test "$program_prefix" != NONE &&
4005  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4006# Use a double $ so make ignores it.
4007test "$program_suffix" != NONE &&
4008  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4009# Double any \ or $.  echo might interpret backslashes.
4010# By default was `s,x,x', remove it if useless.
4011cat <<\_ACEOF >conftest.sed
4012s/[\\$]/&&/g;s/;s,x,x,$//
4013_ACEOF
4014program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4015rm conftest.sed
4016
4017# expand $ac_aux_dir to an absolute path
4018am_aux_dir=`cd $ac_aux_dir && pwd`
4019
4020test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4021# Use eval to expand $SHELL
4022if eval "$MISSING --run true"; then
4023  am_missing_run="$MISSING --run "
4024else
4025  am_missing_run=
4026  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4027echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4028fi
4029
4030if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4031  # We used to keeping the `.' as first argument, in order to
4032  # allow $(mkdir_p) to be used without argument.  As in
4033  #   $(mkdir_p) $(somedir)
4034  # where $(somedir) is conditionally defined.  However this is wrong
4035  # for two reasons:
4036  #  1. if the package is installed by a user who cannot write `.'
4037  #     make install will fail,
4038  #  2. the above comment should most certainly read
4039  #     $(mkdir_p) $(DESTDIR)$(somedir)
4040  #     so it does not work when $(somedir) is undefined and
4041  #     $(DESTDIR) is not.
4042  #  To support the latter case, we have to write
4043  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4044  #  so the `.' trick is pointless.
4045  mkdir_p='mkdir -p --'
4046else
4047  # On NextStep and OpenStep, the `mkdir' command does not
4048  # recognize any option.  It will interpret all options as
4049  # directories to create, and then abort because `.' already
4050  # exists.
4051  for d in ./-p ./--version;
4052  do
4053    test -d $d && rmdir $d
4054  done
4055  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4056  if test -f "$ac_aux_dir/mkinstalldirs"; then
4057    mkdir_p='$(mkinstalldirs)'
4058  else
4059    mkdir_p='$(install_sh) -d'
4060  fi
4061fi
4062
4063for ac_prog in gawk mawk nawk awk
4064do
4065  # Extract the first word of "$ac_prog", so it can be a program name with args.
4066set dummy $ac_prog; ac_word=$2
4067echo "$as_me:$LINENO: checking for $ac_word" >&5
4068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069if test "${ac_cv_prog_AWK+set}" = set; then
4070  echo $ECHO_N "(cached) $ECHO_C" >&6
4071else
4072  if test -n "$AWK"; then
4073  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4074else
4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076for as_dir in $PATH
4077do
4078  IFS=$as_save_IFS
4079  test -z "$as_dir" && as_dir=.
4080  for ac_exec_ext in '' $ac_executable_extensions; do
4081  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082    ac_cv_prog_AWK="$ac_prog"
4083    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084    break 2
4085  fi
4086done
4087done
4088
4089fi
4090fi
4091AWK=$ac_cv_prog_AWK
4092if test -n "$AWK"; then
4093  echo "$as_me:$LINENO: result: $AWK" >&5
4094echo "${ECHO_T}$AWK" >&6
4095else
4096  echo "$as_me:$LINENO: result: no" >&5
4097echo "${ECHO_T}no" >&6
4098fi
4099
4100  test -n "$AWK" && break
4101done
4102
4103echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4104echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4105set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4106if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4107  echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109  cat >conftest.make <<\_ACEOF
4110all:
4111        @echo 'ac_maketemp="$(MAKE)"'
4112_ACEOF
4113# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4114eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4115if test -n "$ac_maketemp"; then
4116  eval ac_cv_prog_make_${ac_make}_set=yes
4117else
4118  eval ac_cv_prog_make_${ac_make}_set=no
4119fi
4120rm -f conftest.make
4121fi
4122if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4123  echo "$as_me:$LINENO: result: yes" >&5
4124echo "${ECHO_T}yes" >&6
4125  SET_MAKE=
4126else
4127  echo "$as_me:$LINENO: result: no" >&5
4128echo "${ECHO_T}no" >&6
4129  SET_MAKE="MAKE=${MAKE-make}"
4130fi
4131
4132rm -rf .tst 2>/dev/null
4133mkdir .tst 2>/dev/null
4134if test -d .tst; then
4135  am__leading_dot=.
4136else
4137  am__leading_dot=_
4138fi
4139rmdir .tst 2>/dev/null
4140
4141DEPDIR="${am__leading_dot}deps"
4142
4143          ac_config_commands="$ac_config_commands depfiles"
4144
4145
4146am_make=${MAKE-make}
4147cat > confinc << 'END'
4148am__doit:
4149        @echo done
4150.PHONY: am__doit
4151END
4152# If we don't find an include directive, just comment out the code.
4153echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4154echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4155am__include="#"
4156am__quote=
4157_am_result=none
4158# First try GNU make style include.
4159echo "include confinc" > confmf
4160# We grep out `Entering directory' and `Leaving directory'
4161# messages which can occur if `w' ends up in MAKEFLAGS.
4162# In particular we don't look at `^make:' because GNU make might
4163# be invoked under some other name (usually "gmake"), in which
4164# case it prints its new name instead of `make'.
4165if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4166   am__include=include
4167   am__quote=
4168   _am_result=GNU
4169fi
4170# Now try BSD make style include.
4171if test "$am__include" = "#"; then
4172   echo '.include "confinc"' > confmf
4173   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4174      am__include=.include
4175      am__quote="\""
4176      _am_result=BSD
4177   fi
4178fi
4179
4180
4181echo "$as_me:$LINENO: result: $_am_result" >&5
4182echo "${ECHO_T}$_am_result" >&6
4183rm -f confinc confmf
4184
4185# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4186if test "${enable_dependency_tracking+set}" = set; then
4187  enableval="$enable_dependency_tracking"
4188
4189fi;
4190if test "x$enable_dependency_tracking" != xno; then
4191  am_depcomp="$ac_aux_dir/depcomp"
4192  AMDEPBACKSLASH='\'
4193fi
4194
4195
4196if test "x$enable_dependency_tracking" != xno; then
4197  AMDEP_TRUE=
4198  AMDEP_FALSE='#'
4199else
4200  AMDEP_TRUE='#'
4201  AMDEP_FALSE=
4202fi
4203
4204
4205
4206
4207
4208# AC_MSG_NOTICE([Beginning automake initialisation.])
4209# Stuff for automake
4210# test to see if srcdir already configured
4211if test "`cd $srcdir && pwd`" != "`pwd`" &&
4212   test -f $srcdir/config.status; then
4213  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4214echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4215   { (exit 1); exit 1; }; }
4216fi
4217
4218# test whether we have cygpath
4219if test -z "$CYGPATH_W"; then
4220  if (cygpath --version) >/dev/null 2>/dev/null; then
4221    CYGPATH_W='cygpath -w'
4222  else
4223    CYGPATH_W=echo
4224  fi
4225fi
4226
4227
4228# Define the identity of the package.
4229 PACKAGE='thirdpartyhsl'
4230 VERSION='1.0trunk'
4231
4232
4233cat >>confdefs.h <<_ACEOF
4234#define PACKAGE "$PACKAGE"
4235_ACEOF
4236
4237
4238cat >>confdefs.h <<_ACEOF
4239#define VERSION "$VERSION"
4240_ACEOF
4241
4242# Some tools Automake needs.
4243
4244ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4245
4246
4247AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4248
4249
4250AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4251
4252
4253AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4254
4255
4256MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4257
4258install_sh=${install_sh-"$am_aux_dir/install-sh"}
4259
4260# Installed binaries are usually stripped using `strip' when the user
4261# run `make install-strip'.  However `strip' might not be the right
4262# tool to use in cross-compilation environments, therefore Automake
4263# will honor the `STRIP' environment variable to overrule this program.
4264if test "$cross_compiling" != no; then
4265  if test -n "$ac_tool_prefix"; then
4266  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4267set dummy ${ac_tool_prefix}strip; ac_word=$2
4268echo "$as_me:$LINENO: checking for $ac_word" >&5
4269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270if test "${ac_cv_prog_STRIP+set}" = set; then
4271  echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273  if test -n "$STRIP"; then
4274  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4275else
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279  IFS=$as_save_IFS
4280  test -z "$as_dir" && as_dir=.
4281  for ac_exec_ext in '' $ac_executable_extensions; do
4282  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285    break 2
4286  fi
4287done
4288done
4289
4290fi
4291fi
4292STRIP=$ac_cv_prog_STRIP
4293if test -n "$STRIP"; then
4294  echo "$as_me:$LINENO: result: $STRIP" >&5
4295echo "${ECHO_T}$STRIP" >&6
4296else
4297  echo "$as_me:$LINENO: result: no" >&5
4298echo "${ECHO_T}no" >&6
4299fi
4300
4301fi
4302if test -z "$ac_cv_prog_STRIP"; then
4303  ac_ct_STRIP=$STRIP
4304  # Extract the first word of "strip", so it can be a program name with args.
4305set dummy strip; ac_word=$2
4306echo "$as_me:$LINENO: checking for $ac_word" >&5
4307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4308if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4309  echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311  if test -n "$ac_ct_STRIP"; then
4312  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4313else
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317  IFS=$as_save_IFS
4318  test -z "$as_dir" && as_dir=.
4319  for ac_exec_ext in '' $ac_executable_extensions; do
4320  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321    ac_cv_prog_ac_ct_STRIP="strip"
4322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323    break 2
4324  fi
4325done
4326done
4327
4328  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4329fi
4330fi
4331ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4332if test -n "$ac_ct_STRIP"; then
4333  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4334echo "${ECHO_T}$ac_ct_STRIP" >&6
4335else
4336  echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6
4338fi
4339
4340  STRIP=$ac_ct_STRIP
4341else
4342  STRIP="$ac_cv_prog_STRIP"
4343fi
4344
4345fi
4346INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4347
4348# We need awk for the "check" target.  The system "awk" is bad on
4349# some platforms.
4350# Always define AMTAR for backward compatibility.
4351
4352AMTAR=${AMTAR-"${am_missing_run}tar"}
4353
4354am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4355
4356
4357
4358
4359depcc="$CC"   am_compiler_list=
4360
4361echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4362echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4363if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4364  echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4367  # We make a subdir and do the tests there.  Otherwise we can end up
4368  # making bogus files that we don't know about and never remove.  For
4369  # instance it was reported that on HP-UX the gcc test will end up
4370  # making a dummy file named `D' -- because `-MD' means `put the output
4371  # in D'.
4372  mkdir conftest.dir
4373  # Copy depcomp to subdir because otherwise we won't find it if we're
4374  # using a relative directory.
4375  cp "$am_depcomp" conftest.dir
4376  cd conftest.dir
4377  # We will build objects and dependencies in a subdirectory because
4378  # it helps to detect inapplicable dependency modes.  For instance
4379  # both Tru64's cc and ICC support -MD to output dependencies as a
4380  # side effect of compilation, but ICC will put the dependencies in
4381  # the current directory while Tru64 will put them in the object
4382  # directory.
4383  mkdir sub
4384
4385  am_cv_CC_dependencies_compiler_type=none
4386  if test "$am_compiler_list" = ""; then
4387     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4388  fi
4389  for depmode in $am_compiler_list; do
4390    # Setup a source with many dependencies, because some compilers
4391    # like to wrap large dependency lists on column 80 (with \), and
4392    # we should not choose a depcomp mode which is confused by this.
4393    #
4394    # We need to recreate these files for each test, as the compiler may
4395    # overwrite some of them when testing with obscure command lines.
4396    # This happens at least with the AIX C compiler.
4397    : > sub/conftest.c
4398    for i in 1 2 3 4 5 6; do
4399      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4400      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4401      # Solaris 8's {/usr,}/bin/sh.
4402      touch sub/conftst$i.h
4403    done
4404    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4405
4406    case $depmode in
4407    nosideeffect)
4408      # after this tag, mechanisms are not by side-effect, so they'll
4409      # only be used when explicitly requested
4410      if test "x$enable_dependency_tracking" = xyes; then
4411        continue
4412      else
4413        break
4414      fi
4415      ;;
4416    none) break ;;
4417    esac
4418    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4419    # mode.  It turns out that the SunPro C++ compiler does not properly
4420    # handle `-M -o', and we need to detect this.
4421    if depmode=$depmode \
4422       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4423       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4424       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4425         >/dev/null 2>conftest.err &&
4426       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4427       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4428       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4429      # icc doesn't choke on unknown options, it will just issue warnings
4430      # or remarks (even with -Werror).  So we grep stderr for any message
4431      # that says an option was ignored or not supported.
4432      # When given -MP, icc 7.0 and 7.1 complain thusly:
4433      #   icc: Command line warning: ignoring option '-M'; no argument required
4434      # The diagnosis changed in icc 8.0:
4435      #   icc: Command line remark: option '-MP' not supported
4436      if (grep 'ignoring option' conftest.err ||
4437          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4438        am_cv_CC_dependencies_compiler_type=$depmode
4439        break
4440      fi
4441    fi
4442  done
4443
4444  cd ..
4445  rm -rf conftest.dir
4446else
4447  am_cv_CC_dependencies_compiler_type=none
4448fi
4449
4450fi
4451echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4452echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4453CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4454
4455
4456
4457if
4458  test "x$enable_dependency_tracking" != xno \
4459  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4460  am__fastdepCC_TRUE=
4461  am__fastdepCC_FALSE='#'
4462else
4463  am__fastdepCC_TRUE='#'
4464  am__fastdepCC_FALSE=
4465fi
4466
4467
4468
4469echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4470echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4471    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4472if test "${enable_maintainer_mode+set}" = set; then
4473  enableval="$enable_maintainer_mode"
4474  USE_MAINTAINER_MODE=$enableval
4475else
4476  USE_MAINTAINER_MODE=no
4477fi;
4478  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4479echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4480
4481
4482if test $USE_MAINTAINER_MODE = yes; then
4483  MAINTAINER_MODE_TRUE=
4484  MAINTAINER_MODE_FALSE='#'
4485else
4486  MAINTAINER_MODE_TRUE='#'
4487  MAINTAINER_MODE_FALSE=
4488fi
4489
4490  MAINT=$MAINTAINER_MODE_TRUE
4491
4492
4493
4494coin_have_externals=no
4495if test "$enable_maintainer_mode" = yes; then
4496
4497  # If maintainer mode is chosen, we make sure that the correct versions
4498  # of the tools are used, and that we know where libtool.m4 is (to
4499  # recreate acinclude.m4)
4500
4501
4502  LIBTOOLM4=
4503  # Normally, $HOME
4504  AUTOTOOLS_DFLT=$HOME
4505
4506  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4507echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4508if test "${ac_cv_use_correct_autotools+set}" = set; then
4509  echo $ECHO_N "(cached) $ECHO_C" >&6
4510else
4511  ac_cv_use_correct_autotools=check
4512fi
4513echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4514echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4515
4516  if test $ac_cv_use_correct_autotools = check; then
4517    ac_cv_use_correct_autotools=yes
4518    # Check if we have autoconf
4519    # Extract the first word of "autoconf", so it can be a program name with args.
4520set dummy autoconf; ac_word=$2
4521echo "$as_me:$LINENO: checking for $ac_word" >&5
4522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4523if test "${ac_cv_prog_have_autoconf+set}" = set; then
4524  echo $ECHO_N "(cached) $ECHO_C" >&6
4525else
4526  if test -n "$have_autoconf"; then
4527  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4528else
4529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH
4531do
4532  IFS=$as_save_IFS
4533  test -z "$as_dir" && as_dir=.
4534  for ac_exec_ext in '' $ac_executable_extensions; do
4535  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536    ac_cv_prog_have_autoconf="yes"
4537    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538    break 2
4539  fi
4540done
4541done
4542
4543  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4544fi
4545fi
4546have_autoconf=$ac_cv_prog_have_autoconf
4547if test -n "$have_autoconf"; then
4548  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4549echo "${ECHO_T}$have_autoconf" >&6
4550else
4551  echo "$as_me:$LINENO: result: no" >&5
4552echo "${ECHO_T}no" >&6
4553fi
4554
4555    if test $have_autoconf = no; then
4556      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4557echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4558   { (exit 1); exit 1; }; }
4559    fi
4560
4561    # Check whether autoconf is the correct version
4562    correct_version='2.59'
4563    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4564    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4565echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4566    autoconf --version > confauto.out 2>&1
4567    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4568      echo "$as_me:$LINENO: result: yes" >&5
4569echo "${ECHO_T}yes" >&6
4570    else
4571      rm -f confauto.out
4572      echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4575echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4576   { (exit 1); exit 1; }; }
4577    fi
4578    rm -f confauto.out
4579
4580    # Check if the executable autoconf is picked up from the correct location
4581    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4582echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4583    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4584    autoconf_dir=`cd $autoconf_dir; pwd`
4585    if test x$AUTOTOOLS_DIR = x; then
4586      want_dir=$AUTOTOOLS_DFLT/bin
4587    else
4588      want_dir=$AUTOTOOLS_DIR/bin
4589    fi
4590    if test $autoconf_dir = `cd $want_dir; pwd`; then
4591      echo "$as_me:$LINENO: result: yes" >&5
4592echo "${ECHO_T}yes" >&6
4593    else
4594      rm -f confauto.out
4595      echo "$as_me:$LINENO: result: no" >&5
4596echo "${ECHO_T}no" >&6
4597      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4598echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4599   { (exit 1); exit 1; }; }
4600    fi
4601
4602    # Check if we have automake
4603    # Extract the first word of "automake", so it can be a program name with args.
4604set dummy automake; ac_word=$2
4605echo "$as_me:$LINENO: checking for $ac_word" >&5
4606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4607if test "${ac_cv_prog_have_automake+set}" = set; then
4608  echo $ECHO_N "(cached) $ECHO_C" >&6
4609else
4610  if test -n "$have_automake"; then
4611  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4612else
4613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH
4615do
4616  IFS=$as_save_IFS
4617  test -z "$as_dir" && as_dir=.
4618  for ac_exec_ext in '' $ac_executable_extensions; do
4619  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620    ac_cv_prog_have_automake="yes"
4621    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622    break 2
4623  fi
4624done
4625done
4626
4627  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4628fi
4629fi
4630have_automake=$ac_cv_prog_have_automake
4631if test -n "$have_automake"; then
4632  echo "$as_me:$LINENO: result: $have_automake" >&5
4633echo "${ECHO_T}$have_automake" >&6
4634else
4635  echo "$as_me:$LINENO: result: no" >&5
4636echo "${ECHO_T}no" >&6
4637fi
4638
4639    if test $have_automake = no; then
4640      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4641echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4642   { (exit 1); exit 1; }; }
4643    fi
4644
4645    # Check whether automake is the correct version
4646    correct_version='1.9.6'
4647    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4648    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4649echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4650    automake --version > confauto.out 2>&1
4651    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4652      echo "$as_me:$LINENO: result: yes" >&5
4653echo "${ECHO_T}yes" >&6
4654    else
4655      rm -f confauto.out
4656      echo "$as_me:$LINENO: result: no" >&5
4657echo "${ECHO_T}no" >&6
4658      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4659echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4660   { (exit 1); exit 1; }; }
4661    fi
4662    rm -f confauto.out
4663
4664    # Check if the executable automake is picked up from the correct location
4665    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4666echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4667    automake_dir=`which automake | sed -e 's=/automake=='`
4668    automake_dir=`cd $automake_dir; pwd`
4669    if test x$AUTOTOOLS_DIR = x; then
4670      want_dir=$AUTOTOOLS_DFLT/bin
4671    else
4672      want_dir=$AUTOTOOLS_DIR/bin
4673    fi
4674    if test $automake_dir = `cd $want_dir; pwd`; then
4675      echo "$as_me:$LINENO: result: yes" >&5
4676echo "${ECHO_T}yes" >&6
4677    else
4678      rm -f confauto.out
4679      echo "$as_me:$LINENO: result: no" >&5
4680echo "${ECHO_T}no" >&6
4681      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4682echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4683   { (exit 1); exit 1; }; }
4684    fi
4685
4686    # Check if this is the correct version of libtool (with escaped dots)
4687    if test x$AUTOTOOLS_DIR = x; then
4688      want_dir=$AUTOTOOLS_DFLT/share
4689    else
4690      want_dir=$AUTOTOOLS_DIR/share
4691    fi
4692    correct_version='1.5.22'
4693    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4694    if test -r $want_dir/libtool/ltmain.sh; then
4695  have_ltmain=yes
4696  :
4697else
4698  have_ltmain=no
4699  :
4700fi
4701
4702    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4703echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4704    if test $have_ltmain = yes; then
4705    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4706        echo "$as_me:$LINENO: result: yes" >&5
4707echo "${ECHO_T}yes" >&6
4708      else
4709        echo "$as_me:$LINENO: result: no" >&5
4710echo "${ECHO_T}no" >&6
4711        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4712echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4713   { (exit 1); exit 1; }; }
4714      fi
4715    else
4716      echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6
4718      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4719echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4720   { (exit 1); exit 1; }; }
4721    fi
4722  fi
4723
4724  # Check if we can find the libtool file
4725  if test x$AUTOTOOLS_DIR = x; then
4726    want_dir=$AUTOTOOLS_DFLT/share
4727  else
4728    want_dir=$AUTOTOOLS_DIR/share
4729  fi
4730  if test -r $want_dir/aclocal/libtool.m4; then
4731  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4732  :
4733else
4734  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4735echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4736   { (exit 1); exit 1; }; }
4737  :
4738fi
4739
4740
4741  # Check if we have an Externals file
4742  if test -r $srcdir/Externals; then
4743    coin_have_externals=yes
4744  fi
4745  # Check if subversion is installed and understands https
4746  # Extract the first word of "svn", so it can be a program name with args.
4747set dummy svn; ac_word=$2
4748echo "$as_me:$LINENO: checking for $ac_word" >&5
4749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4750if test "${ac_cv_prog_have_svn+set}" = set; then
4751  echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753  if test -n "$have_svn"; then
4754  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4755else
4756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759  IFS=$as_save_IFS
4760  test -z "$as_dir" && as_dir=.
4761  for ac_exec_ext in '' $ac_executable_extensions; do
4762  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763    ac_cv_prog_have_svn="yes"
4764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765    break 2
4766  fi
4767done
4768done
4769
4770  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4771fi
4772fi
4773have_svn=$ac_cv_prog_have_svn
4774if test -n "$have_svn"; then
4775  echo "$as_me:$LINENO: result: $have_svn" >&5
4776echo "${ECHO_T}$have_svn" >&6
4777else
4778  echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6
4780fi
4781
4782  if test x$have_svn = xyes; then
4783    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4784echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4785if test "${ac_cv_svn_understands_https+set}" = set; then
4786  echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788  svn --version > confauto.out 2>&1
4789                    if $EGREP https confauto.out >/dev/null 2>&1; then
4790                      ac_cv_svn_understands_https=yes
4791                    else
4792                      ac_cv_svn_understands_https=no
4793                      have_svn=no
4794                      ac_cv_prog_have_svn=no
4795                    fi
4796                    rm -f confauto.out
4797fi
4798echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4799echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4800  fi
4801
4802  # Find the location of the BuildTools directory
4803  BUILDTOOLSDIR=
4804  if test -r $srcdir/BuildTools/coin.m4; then
4805    BUILDTOOLSDIR=$srcdir/BuildTools
4806  else
4807    if test -r $srcdir/../BuildTools/coin.m4; then
4808      BUILDTOOLSDIR=$srcdir/../BuildTools
4809    else
4810      if test -r $srcdir/../../BuildTools/coin.m4; then
4811        BUILDTOOLSDIR=$srcdir/../../BuildTools
4812      else
4813        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4814echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4815   { (exit 1); exit 1; }; }
4816      fi
4817    fi
4818  fi
4819
4820
4821  # The following variable is set to the name of the directory where
4822  # the autotool scripts are located
4823
4824  AUX_DIR=$ac_aux_dir
4825fi
4826
4827# helpful variable for the base directory of this package
4828abs_source_dir=`cd $srcdir; pwd`
4829
4830
4831# Stuff for example Makefiles
4832if test x$prefix = xNONE; then
4833  full_prefix=$ac_default_prefix
4834else
4835  full_prefix=$prefix
4836fi
4837full_prefix=`cd $full_prefix ; pwd`
4838
4839abs_lib_dir=$full_prefix/lib
4840
4841abs_include_dir=$full_prefix/include
4842
4843abs_bin_dir=$full_prefix/bin
4844
4845
4846
4847if test $coin_have_externals = yes && test x$have_svn = xyes; then
4848  HAVE_EXTERNALS_TRUE=
4849  HAVE_EXTERNALS_FALSE='#'
4850else
4851  HAVE_EXTERNALS_TRUE='#'
4852  HAVE_EXTERNALS_FALSE=
4853fi
4854
4855
4856# AC_MSG_NOTICE([End automake initialisation.])
4857
4858
4859
4860LIBTOOL=
4861if test -r ../libtool; then
4862  coin_config_dir=..
4863  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4864fi
4865if test "x$LIBTOOL" = x; then
4866  if test -r ../../libtool; then
4867    coin_config_dir=../..
4868    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4869  fi
4870fi
4871
4872if test "x$LIBTOOL" = x; then
4873# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4874  # Stuff for libtool
4875  # Check whether --enable-shared or --disable-shared was given.
4876if test "${enable_shared+set}" = set; then
4877  enableval="$enable_shared"
4878  p=${PACKAGE-default}
4879    case $enableval in
4880    yes) enable_shared=yes ;;
4881    no) enable_shared=no ;;
4882    *)
4883      enable_shared=no
4884      # Look at the argument we got.  We use all the common list separators.
4885      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4886      for pkg in $enableval; do
4887        IFS="$lt_save_ifs"
4888        if test "X$pkg" = "X$p"; then
4889          enable_shared=yes
4890        fi
4891      done
4892      IFS="$lt_save_ifs"
4893      ;;
4894    esac
4895else
4896  enable_shared=yes
4897fi;
4898
4899# Check whether --enable-fast-install or --disable-fast-install was given.
4900if test "${enable_fast_install+set}" = set; then
4901  enableval="$enable_fast_install"
4902  p=${PACKAGE-default}
4903    case $enableval in
4904    yes) enable_fast_install=yes ;;
4905    no) enable_fast_install=no ;;
4906    *)
4907      enable_fast_install=no
4908      # Look at the argument we got.  We use all the common list separators.
4909      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4910      for pkg in $enableval; do
4911        IFS="$lt_save_ifs"
4912        if test "X$pkg" = "X$p"; then
4913          enable_fast_install=yes
4914        fi
4915      done
4916      IFS="$lt_save_ifs"
4917      ;;
4918    esac
4919else
4920  enable_fast_install=yes
4921fi;
4922
4923echo "$as_me:$LINENO: checking host system type" >&5
4924echo $ECHO_N "checking host system type... $ECHO_C" >&6
4925if test "${ac_cv_host+set}" = set; then
4926  echo $ECHO_N "(cached) $ECHO_C" >&6
4927else
4928  ac_cv_host_alias=$host_alias
4929test -z "$ac_cv_host_alias" &&
4930  ac_cv_host_alias=$ac_cv_build_alias
4931ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4932  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4933echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4934   { (exit 1); exit 1; }; }
4935
4936fi
4937echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4938echo "${ECHO_T}$ac_cv_host" >&6
4939host=$ac_cv_host
4940host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4941host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4942host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4943
4944
4945echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4946echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4947if test "${lt_cv_path_SED+set}" = set; then
4948  echo $ECHO_N "(cached) $ECHO_C" >&6
4949else
4950  # Loop through the user's path and test for sed and gsed.
4951# Then use that list of sed's as ones to test for truncation.
4952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953for as_dir in $PATH
4954do
4955  IFS=$as_save_IFS
4956  test -z "$as_dir" && as_dir=.
4957  for lt_ac_prog in sed gsed; do
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4960        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4961      fi
4962    done
4963  done
4964done
4965lt_ac_max=0
4966lt_ac_count=0
4967# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4968# along with /bin/sed that truncates output.
4969for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4970  test ! -f $lt_ac_sed && continue
4971  cat /dev/null > conftest.in
4972  lt_ac_count=0
4973  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4974  # Check for GNU sed and select it if it is found.
4975  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4976    lt_cv_path_SED=$lt_ac_sed
4977    break
4978  fi
4979  while true; do
4980    cat conftest.in conftest.in >conftest.tmp
4981    mv conftest.tmp conftest.in
4982    cp conftest.in conftest.nl
4983    echo >>conftest.nl
4984    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4985    cmp -s conftest.out conftest.nl || break
4986    # 10000 chars as input seems more than enough
4987    test $lt_ac_count -gt 10 && break
4988    lt_ac_count=`expr $lt_ac_count + 1`
4989    if test $lt_ac_count -gt $lt_ac_max; then
4990      lt_ac_max=$lt_ac_count
4991      lt_cv_path_SED=$lt_ac_sed
4992    fi
4993  done
4994done
4995
4996fi
4997
4998SED=$lt_cv_path_SED
4999echo "$as_me:$LINENO: result: $SED" >&5
5000echo "${ECHO_T}$SED" >&6
5001
5002
5003# Check whether --with-gnu-ld or --without-gnu-ld was given.
5004if test "${with_gnu_ld+set}" = set; then
5005  withval="$with_gnu_ld"
5006  test "$withval" = no || with_gnu_ld=yes
5007else
5008  with_gnu_ld=no
5009fi;
5010ac_prog=ld
5011if test "$GCC" = yes; then
5012  # Check if gcc -print-prog-name=ld gives a path.
5013  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5014echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5015  case $host in
5016  *-*-mingw*)
5017    # gcc leaves a trailing carriage return which upsets mingw
5018    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5019  *)
5020    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5021  esac
5022  case $ac_prog in
5023    # Accept absolute paths.
5024    [\\/]* | ?:[\\/]*)
5025      re_direlt='/[^/][^/]*/\.\./'
5026      # Canonicalize the pathname of ld
5027      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5028      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5029        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5030      done
5031      test -z "$LD" && LD="$ac_prog"
5032      ;;
5033  "")
5034    # If it fails, then pretend we aren't using GCC.
5035    ac_prog=ld
5036    ;;
5037  *)
5038    # If it is relative, then search for the first ld in PATH.
5039    with_gnu_ld=unknown
5040    ;;
5041  esac
5042elif test "$with_gnu_ld" = yes; then
5043  echo "$as_me:$LINENO: checking for GNU ld" >&5
5044echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5045else
5046  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5047echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5048fi
5049if test "${lt_cv_path_LD+set}" = set; then
5050  echo $ECHO_N "(cached) $ECHO_C" >&6
5051else
5052  if test -z "$LD"; then
5053  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5054  for ac_dir in $PATH; do
5055    IFS="$lt_save_ifs"
5056    test -z "$ac_dir" && ac_dir=.
5057    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5058      lt_cv_path_LD="$ac_dir/$ac_prog"
5059      # Check to see if the program is GNU ld.  I'd rather use --version,
5060      # but apparently some variants of GNU ld only accept -v.
5061      # Break only if it was the GNU/non-GNU ld that we prefer.
5062      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5063      *GNU* | *'with BFD'*)
5064        test "$with_gnu_ld" != no && break
5065        ;;
5066      *)
5067        test "$with_gnu_ld" != yes && break
5068        ;;
5069      esac
5070    fi
5071  done
5072  IFS="$lt_save_ifs"
5073else
5074  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5075fi
5076fi
5077
5078LD="$lt_cv_path_LD"
5079if test -n "$LD"; then
5080  echo "$as_me:$LINENO: result: $LD" >&5
5081echo "${ECHO_T}$LD" >&6
5082else
5083  echo "$as_me:$LINENO: result: no" >&5
5084echo "${ECHO_T}no" >&6
5085fi
5086test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5087echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5088   { (exit 1); exit 1; }; }
5089echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5090echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5091if test "${lt_cv_prog_gnu_ld+set}" = set; then
5092  echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5095case `$LD -v 2>&1 </dev/null` in
5096*GNU* | *'with BFD'*)
5097  lt_cv_prog_gnu_ld=yes
5098  ;;
5099*)
5100  lt_cv_prog_gnu_ld=no
5101  ;;
5102esac
5103fi
5104echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5105echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5106with_gnu_ld=$lt_cv_prog_gnu_ld
5107
5108
5109echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5110echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5111if test "${lt_cv_ld_reload_flag+set}" = set; then
5112  echo $ECHO_N "(cached) $ECHO_C" >&6
5113else
5114  lt_cv_ld_reload_flag='-r'
5115fi
5116echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5117echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5118reload_flag=$lt_cv_ld_reload_flag
5119case $reload_flag in
5120"" | " "*) ;;
5121*) reload_flag=" $reload_flag" ;;
5122esac
5123reload_cmds='$LD$reload_flag -o $output$reload_objs'
5124case $host_os in
5125  darwin*)
5126    if test "$GCC" = yes; then
5127      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5128    else
5129      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5130    fi
5131    ;;
5132esac
5133
5134echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5135echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5136if test "${lt_cv_path_NM+set}" = set; then
5137  echo $ECHO_N "(cached) $ECHO_C" >&6
5138else
5139  if test -n "$NM"; then
5140  # Let the user override the test.
5141  lt_cv_path_NM="$NM"
5142else
5143  lt_nm_to_check="${ac_tool_prefix}nm"
5144  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5145    lt_nm_to_check="$lt_nm_to_check nm"
5146  fi
5147  for lt_tmp_nm in $lt_nm_to_check; do
5148    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5149    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5150      IFS="$lt_save_ifs"
5151      test -z "$ac_dir" && ac_dir=.
5152      tmp_nm="$ac_dir/$lt_tmp_nm"
5153      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5154        # Check to see if the nm accepts a BSD-compat flag.
5155        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5156        #   nm: unknown option "B" ignored
5157        # Tru64's nm complains that /dev/null is an invalid object file
5158        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5159        */dev/null* | *'Invalid file or object type'*)
5160          lt_cv_path_NM="$tmp_nm -B"
5161          break
5162          ;;
5163        *)
5164          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5165          */dev/null*)
5166            lt_cv_path_NM="$tmp_nm -p"
5167            break
5168            ;;
5169          *)
5170            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5171            continue # so that we can try to find one that supports BSD flags
5172            ;;
5173          esac
5174          ;;
5175        esac
5176      fi
5177    done
5178    IFS="$lt_save_ifs"
5179  done
5180  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5181fi
5182fi
5183echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5184echo "${ECHO_T}$lt_cv_path_NM" >&6
5185NM="$lt_cv_path_NM"
5186
5187echo "$as_me:$LINENO: checking whether ln -s works" >&5
5188echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5189LN_S=$as_ln_s
5190if test "$LN_S" = "ln -s"; then
5191  echo "$as_me:$LINENO: result: yes" >&5
5192echo "${ECHO_T}yes" >&6
5193else
5194  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5195echo "${ECHO_T}no, using $LN_S" >&6
5196fi
5197
5198echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5199echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5200if test "${lt_cv_deplibs_check_method+set}" = set; then
5201  echo $ECHO_N "(cached) $ECHO_C" >&6
5202else
5203  lt_cv_file_magic_cmd='$MAGIC_CMD'
5204lt_cv_file_magic_test_file=
5205lt_cv_deplibs_check_method='unknown'
5206# Need to set the preceding variable on all platforms that support
5207# interlibrary dependencies.
5208# 'none' -- dependencies not supported.
5209# `unknown' -- same as none, but documents that we really don't know.
5210# 'pass_all' -- all dependencies passed with no checks.
5211# 'test_compile' -- check by making test program.
5212# 'file_magic [[regex]]' -- check by looking for files in library path
5213# which responds to the $file_magic_cmd with a given extended regex.
5214# If you have `file' or equivalent on your system and you're not sure
5215# whether `pass_all' will *always* work, you probably want this one.
5216
5217case $host_os in
5218aix4* | aix5*)
5219  lt_cv_deplibs_check_method=pass_all
5220  ;;
5221
5222beos*)
5223  lt_cv_deplibs_check_method=pass_all
5224  ;;
5225
5226bsdi[45]*)
5227  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5228  lt_cv_file_magic_cmd='/usr/bin/file -L'
5229  lt_cv_file_magic_test_file=/shlib/libc.so
5230  ;;
5231
5232cygwin*)
5233  # func_win32_libid is a shell function defined in ltmain.sh
5234  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5235  lt_cv_file_magic_cmd='func_win32_libid'
5236  ;;
5237
5238mingw* | pw32*)
5239  # Base MSYS/MinGW do not provide the 'file' command needed by
5240  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5241  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5242  lt_cv_file_magic_cmd='$OBJDUMP -f'
5243  ;;
5244
5245darwin* | rhapsody*)
5246  lt_cv_deplibs_check_method=pass_all
5247  ;;
5248
5249freebsd* | kfreebsd*-gnu | dragonfly*)
5250  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5251    case $host_cpu in
5252    i*86 )
5253      # Not sure whether the presence of OpenBSD here was a mistake.
5254      # Let's accept both of them until this is cleared up.
5255      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5256      lt_cv_file_magic_cmd=/usr/bin/file
5257      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5258      ;;
5259    esac
5260  else
5261    lt_cv_deplibs_check_method=pass_all
5262  fi
5263  ;;
5264
5265gnu*)
5266  lt_cv_deplibs_check_method=pass_all
5267  ;;
5268
5269hpux10.20* | hpux11*)
5270  lt_cv_file_magic_cmd=/usr/bin/file
5271  case $host_cpu in
5272  ia64*)
5273    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5274    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5275    ;;
5276  hppa*64*)
5277    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]'
5278    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5279    ;;
5280  *)
5281    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5282    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5283    ;;
5284  esac
5285  ;;
5286
5287interix3*)
5288  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5289  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5290  ;;
5291
5292irix5* | irix6* | nonstopux*)
5293  case $LD in
5294  *-32|*"-32 ") libmagic=32-bit;;
5295  *-n32|*"-n32 ") libmagic=N32;;
5296  *-64|*"-64 ") libmagic=64-bit;;
5297  *) libmagic=never-match;;
5298  esac
5299  lt_cv_deplibs_check_method=pass_all
5300  ;;
5301
5302# This must be Linux ELF.
5303linux*)
5304  lt_cv_deplibs_check_method=pass_all
5305  ;;
5306
5307netbsd*)
5308  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5309    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5310  else
5311    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5312  fi
5313  ;;
5314
5315newos6*)
5316  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5317  lt_cv_file_magic_cmd=/usr/bin/file
5318  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5319  ;;
5320
5321nto-qnx*)
5322  lt_cv_deplibs_check_method=unknown
5323  ;;
5324
5325openbsd*)
5326  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5327    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5328  else
5329    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5330  fi
5331  ;;
5332
5333osf3* | osf4* | osf5*)
5334  lt_cv_deplibs_check_method=pass_all
5335  ;;
5336
5337solaris*)
5338  lt_cv_deplibs_check_method=pass_all
5339  ;;
5340
5341sysv4 | sysv4.3*)
5342  case $host_vendor in
5343  motorola)
5344    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]'
5345    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5346    ;;
5347  ncr)
5348    lt_cv_deplibs_check_method=pass_all
5349    ;;
5350  sequent)
5351    lt_cv_file_magic_cmd='/bin/file'
5352    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5353    ;;
5354  sni)
5355    lt_cv_file_magic_cmd='/bin/file'
5356    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5357    lt_cv_file_magic_test_file=/lib/libc.so
5358    ;;
5359  siemens)
5360    lt_cv_deplibs_check_method=pass_all
5361    ;;
5362  pc)
5363    lt_cv_deplibs_check_method=pass_all
5364    ;;
5365  esac
5366  ;;
5367
5368sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5369  lt_cv_deplibs_check_method=pass_all
5370  ;;
5371esac
5372
5373fi
5374echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5375echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5376file_magic_cmd=$lt_cv_file_magic_cmd
5377deplibs_check_method=$lt_cv_deplibs_check_method
5378test -z "$deplibs_check_method" && deplibs_check_method=unknown
5379
5380
5381
5382
5383# If no C compiler was specified, use CC.
5384LTCC=${LTCC-"$CC"}
5385
5386# If no C compiler flags were specified, use CFLAGS.
5387LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5388
5389# Allow CC to be a program name with arguments.
5390compiler=$CC
5391
5392# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5393if test "${enable_libtool_lock+set}" = set; then
5394  enableval="$enable_libtool_lock"
5395
5396fi;
5397test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5398
5399# Some flags need to be propagated to the compiler or linker for good
5400# libtool support.
5401case $host in
5402ia64-*-hpux*)
5403  # Find out which ABI we are using.
5404  echo 'int i;' > conftest.$ac_ext
5405  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406  (eval $ac_compile) 2>&5
5407  ac_status=$?
5408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409  (exit $ac_status); }; then
5410    case `/usr/bin/file conftest.$ac_objext` in
5411    *ELF-32*)
5412      HPUX_IA64_MODE="32"
5413      ;;
5414    *ELF-64*)
5415      HPUX_IA64_MODE="64"
5416      ;;
5417    esac
5418  fi
5419  rm -rf conftest*
5420  ;;
5421*-*-irix6*)
5422  # Find out which ABI we are using.
5423  echo '#line 5423 "configure"' > conftest.$ac_ext
5424  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425  (eval $ac_compile) 2>&5
5426  ac_status=$?
5427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428  (exit $ac_status); }; then
5429   if test "$lt_cv_prog_gnu_ld" = yes; then
5430    case `/usr/bin/file conftest.$ac_objext` in
5431    *32-bit*)
5432      LD="${LD-ld} -melf32bsmip"
5433      ;;
5434    *N32*)
5435      LD="${LD-ld} -melf32bmipn32"
5436      ;;
5437    *64-bit*)
5438      LD="${LD-ld} -melf64bmip"
5439      ;;
5440    esac
5441   else
5442    case `/usr/bin/file conftest.$ac_objext` in
5443    *32-bit*)
5444      LD="${LD-ld} -32"
5445      ;;
5446    *N32*)
5447      LD="${LD-ld} -n32"
5448      ;;
5449    *64-bit*)
5450      LD="${LD-ld} -64"
5451      ;;
5452    esac
5453   fi
5454  fi
5455  rm -rf conftest*
5456  ;;
5457
5458x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5459  # Find out which ABI we are using.
5460  echo 'int i;' > conftest.$ac_ext
5461  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462  (eval $ac_compile) 2>&5
5463  ac_status=$?
5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); }; then
5466    case `/usr/bin/file conftest.o` in
5467    *32-bit*)
5468      case $host in
5469        x86_64-*linux*)
5470          LD="${LD-ld} -m elf_i386"
5471          ;;
5472        ppc64-*linux*|powerpc64-*linux*)
5473          LD="${LD-ld} -m elf32ppclinux"
5474          ;;
5475        s390x-*linux*)
5476          LD="${LD-ld} -m elf_s390"
5477          ;;
5478        sparc64-*linux*)
5479          LD="${LD-ld} -m elf32_sparc"
5480          ;;
5481      esac
5482      ;;
5483    *64-bit*)
5484      case $host in
5485        x86_64-*linux*)
5486          LD="${LD-ld} -m elf_x86_64"
5487          ;;
5488        ppc*-*linux*|powerpc*-*linux*)
5489          LD="${LD-ld} -m elf64ppc"
5490          ;;
5491        s390*-*linux*)
5492          LD="${LD-ld} -m elf64_s390"
5493          ;;
5494        sparc*-*linux*)
5495          LD="${LD-ld} -m elf64_sparc"
5496          ;;
5497      esac
5498      ;;
5499    esac
5500  fi
5501  rm -rf conftest*
5502  ;;
5503
5504*-*-sco3.2v5*)
5505  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5506  SAVE_CFLAGS="$CFLAGS"
5507  CFLAGS="$CFLAGS -belf"
5508  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5509echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5510if test "${lt_cv_cc_needs_belf+set}" = set; then
5511  echo $ECHO_N "(cached) $ECHO_C" >&6
5512else
5513  ac_ext=c
5514ac_cpp='$CPP $CPPFLAGS'
5515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517ac_compiler_gnu=$ac_cv_c_compiler_gnu
5518
5519     cat >conftest.$ac_ext <<_ACEOF
5520/* confdefs.h.  */
5521_ACEOF
5522cat confdefs.h >>conftest.$ac_ext
5523cat >>conftest.$ac_ext <<_ACEOF
5524/* end confdefs.h.  */
5525
5526int
5527main ()
5528{
5529
5530  ;
5531  return 0;
5532}
5533_ACEOF
5534rm -f conftest.$ac_objext conftest$ac_exeext
5535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536  (eval $ac_link) 2>conftest.er1
5537  ac_status=$?
5538  grep -v '^ *+' conftest.er1 >conftest.err
5539  rm -f conftest.er1
5540  cat conftest.err >&5
5541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542  (exit $ac_status); } &&
5543         { ac_try='test -z "$ac_c_werror_flag"
5544                         || test ! -s conftest.err'
5545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546  (eval $ac_try) 2>&5
5547  ac_status=$?
5548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549  (exit $ac_status); }; } &&
5550         { ac_try='test -s conftest$ac_exeext'
5551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552  (eval $ac_try) 2>&5
5553  ac_status=$?
5554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555  (exit $ac_status); }; }; then
5556  lt_cv_cc_needs_belf=yes
5557else
5558  echo "$as_me: failed program was:" >&5
5559sed 's/^/| /' conftest.$ac_ext >&5
5560
5561lt_cv_cc_needs_belf=no
5562fi
5563rm -f conftest.err conftest.$ac_objext \
5564      conftest$ac_exeext conftest.$ac_ext
5565     ac_ext=c
5566ac_cpp='$CPP $CPPFLAGS'
5567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5569ac_compiler_gnu=$ac_cv_c_compiler_gnu
5570
5571fi
5572echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5573echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5574  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5575    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5576    CFLAGS="$SAVE_CFLAGS"
5577  fi
5578  ;;
5579sparc*-*solaris*)
5580  # Find out which ABI we are using.
5581  echo 'int i;' > conftest.$ac_ext
5582  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583  (eval $ac_compile) 2>&5
5584  ac_status=$?
5585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586  (exit $ac_status); }; then
5587    case `/usr/bin/file conftest.o` in
5588    *64-bit*)
5589      case $lt_cv_prog_gnu_ld in
5590      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5591      *)    LD="${LD-ld} -64" ;;
5592      esac
5593      ;;
5594    esac
5595  fi
5596  rm -rf conftest*
5597  ;;
5598
5599
5600esac
5601
5602need_locks="$enable_libtool_lock"
5603
5604
5605ac_ext=c
5606ac_cpp='$CPP $CPPFLAGS'
5607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609ac_compiler_gnu=$ac_cv_c_compiler_gnu
5610echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5611echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5612# On Suns, sometimes $CPP names a directory.
5613if test -n "$CPP" && test -d "$CPP"; then
5614  CPP=
5615fi
5616if test -z "$CPP"; then
5617  if test "${ac_cv_prog_CPP+set}" = set; then
5618  echo $ECHO_N "(cached) $ECHO_C" >&6
5619else
5620      # Double quotes because CPP needs to be expanded
5621    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5622    do
5623      ac_preproc_ok=false
5624for ac_c_preproc_warn_flag in '' yes
5625do
5626  # Use a header file that comes with gcc, so configuring glibc
5627  # with a fresh cross-compiler works.
5628  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5629  # <limits.h> exists even on freestanding compilers.
5630  # On the NeXT, cc -E runs the code through the compiler's parser,
5631  # not just through cpp. "Syntax error" is here to catch this case.
5632  cat >conftest.$ac_ext <<_ACEOF
5633/* confdefs.h.  */
5634_ACEOF
5635cat confdefs.h >>conftest.$ac_ext
5636cat >>conftest.$ac_ext <<_ACEOF
5637/* end confdefs.h.  */
5638#ifdef __STDC__
5639# include <limits.h>
5640#else
5641# include <assert.h>
5642#endif
5643                     Syntax error
5644_ACEOF
5645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5646  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5647  ac_status=$?
5648  grep -v '^ *+' conftest.er1 >conftest.err
5649  rm -f conftest.er1
5650  cat conftest.err >&5
5651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652  (exit $ac_status); } >/dev/null; then
5653  if test -s conftest.err; then
5654    ac_cpp_err=$ac_c_preproc_warn_flag
5655    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5656  else
5657    ac_cpp_err=
5658  fi
5659else
5660  ac_cpp_err=yes
5661fi
5662if test -z "$ac_cpp_err"; then
5663  :
5664else
5665  echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668  # Broken: fails on valid input.
5669continue
5670fi
5671rm -f conftest.err conftest.$ac_ext
5672
5673  # OK, works on sane cases.  Now check whether non-existent headers
5674  # can be detected and how.
5675  cat >conftest.$ac_ext <<_ACEOF
5676/* confdefs.h.  */
5677_ACEOF
5678cat confdefs.h >>conftest.$ac_ext
5679cat >>conftest.$ac_ext <<_ACEOF
5680/* end confdefs.h.  */
5681#include <ac_nonexistent.h>
5682_ACEOF
5683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5684  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5685  ac_status=$?
5686  grep -v '^ *+' conftest.er1 >conftest.err
5687  rm -f conftest.er1
5688  cat conftest.err >&5
5689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690  (exit $ac_status); } >/dev/null; then
5691  if test -s conftest.err; then
5692    ac_cpp_err=$ac_c_preproc_warn_flag
5693    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5694  else
5695    ac_cpp_err=
5696  fi
5697else
5698  ac_cpp_err=yes
5699fi
5700if test -z "$ac_cpp_err"; then
5701  # Broken: success on invalid input.
5702continue
5703else
5704  echo "$as_me: failed program was:" >&5
5705sed 's/^/| /' conftest.$ac_ext >&5
5706
5707  # Passes both tests.
5708ac_preproc_ok=:
5709break
5710fi
5711rm -f conftest.err conftest.$ac_ext
5712
5713done
5714# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5715rm -f conftest.err conftest.$ac_ext
5716if $ac_preproc_ok; then
5717  break
5718fi
5719
5720    done
5721    ac_cv_prog_CPP=$CPP
5722
5723fi
5724  CPP=$ac_cv_prog_CPP
5725else
5726  ac_cv_prog_CPP=$CPP
5727fi
5728echo "$as_me:$LINENO: result: $CPP" >&5
5729echo "${ECHO_T}$CPP" >&6
5730ac_preproc_ok=false
5731for ac_c_preproc_warn_flag in '' yes
5732do
5733  # Use a header file that comes with gcc, so configuring glibc
5734  # with a fresh cross-compiler works.
5735  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5736  # <limits.h> exists even on freestanding compilers.
5737  # On the NeXT, cc -E runs the code through the compiler's parser,
5738  # not just through cpp. "Syntax error" is here to catch this case.
5739  cat >conftest.$ac_ext <<_ACEOF
5740/* confdefs.h.  */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h.  */
5745#ifdef __STDC__
5746# include <limits.h>
5747#else
5748# include <assert.h>
5749#endif
5750                     Syntax error
5751_ACEOF
5752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5753  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5754  ac_status=$?
5755  grep -v '^ *+' conftest.er1 >conftest.err
5756  rm -f conftest.er1
5757  cat conftest.err >&5
5758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759  (exit $ac_status); } >/dev/null; then
5760  if test -s conftest.err; then
5761    ac_cpp_err=$ac_c_preproc_warn_flag
5762    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5763  else
5764    ac_cpp_err=
5765  fi
5766else
5767  ac_cpp_err=yes
5768fi
5769if test -z "$ac_cpp_err"; then
5770  :
5771else
5772  echo "$as_me: failed program was:" >&5
5773sed 's/^/| /' conftest.$ac_ext >&5
5774
5775  # Broken: fails on valid input.
5776continue
5777fi
5778rm -f conftest.err conftest.$ac_ext
5779
5780  # OK, works on sane cases.  Now check whether non-existent headers
5781  # can be detected and how.
5782  cat >conftest.$ac_ext <<_ACEOF
5783/* confdefs.h.  */
5784_ACEOF
5785cat confdefs.h >>conftest.$ac_ext
5786cat >>conftest.$ac_ext <<_ACEOF
5787/* end confdefs.h.  */
5788#include <ac_nonexistent.h>
5789_ACEOF
5790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5791  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5792  ac_status=$?
5793  grep -v '^ *+' conftest.er1 >conftest.err
5794  rm -f conftest.er1
5795  cat conftest.err >&5
5796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797  (exit $ac_status); } >/dev/null; then
5798  if test -s conftest.err; then
5799    ac_cpp_err=$ac_c_preproc_warn_flag
5800    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5801  else
5802    ac_cpp_err=
5803  fi
5804else
5805  ac_cpp_err=yes
5806fi
5807if test -z "$ac_cpp_err"; then
5808  # Broken: success on invalid input.
5809continue
5810else
5811  echo "$as_me: failed program was:" >&5
5812sed 's/^/| /' conftest.$ac_ext >&5
5813
5814  # Passes both tests.
5815ac_preproc_ok=:
5816break
5817fi
5818rm -f conftest.err conftest.$ac_ext
5819
5820done
5821# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5822rm -f conftest.err conftest.$ac_ext
5823if $ac_preproc_ok; then
5824  :
5825else
5826  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5827See \`config.log' for more details." >&5
5828echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5829See \`config.log' for more details." >&2;}
5830   { (exit 1); exit 1; }; }
5831fi
5832
5833ac_ext=c
5834ac_cpp='$CPP $CPPFLAGS'
5835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5837ac_compiler_gnu=$ac_cv_c_compiler_gnu
5838
5839
5840echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5841echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5842if test "${ac_cv_header_stdc+set}" = set; then
5843  echo $ECHO_N "(cached) $ECHO_C" >&6
5844else
5845  cat >conftest.$ac_ext <<_ACEOF
5846/* confdefs.h.  */
5847_ACEOF
5848cat confdefs.h >>conftest.$ac_ext
5849cat >>conftest.$ac_ext <<_ACEOF
5850/* end confdefs.h.  */
5851#include <stdlib.h>
5852#include <stdarg.h>
5853#include <string.h>
5854#include <float.h>
5855
5856int
5857main ()
5858{
5859
5860  ;
5861  return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext
5865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866  (eval $ac_compile) 2>conftest.er1
5867  ac_status=$?
5868  grep -v '^ *+' conftest.er1 >conftest.err
5869  rm -f conftest.er1
5870  cat conftest.err >&5
5871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); } &&
5873         { ac_try='test -z "$ac_c_werror_flag"
5874                         || test ! -s conftest.err'
5875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876  (eval $ac_try) 2>&5
5877  ac_status=$?
5878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); }; } &&
5880         { ac_try='test -s conftest.$ac_objext'
5881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882  (eval $ac_try) 2>&5
5883  ac_status=$?
5884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885  (exit $ac_status); }; }; then
5886  ac_cv_header_stdc=yes
5887else
5888  echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
5890
5891ac_cv_header_stdc=no
5892fi
5893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894
5895if test $ac_cv_header_stdc = yes; then
5896  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5897  cat >conftest.$ac_ext <<_ACEOF
5898/* confdefs.h.  */
5899_ACEOF
5900cat confdefs.h >>conftest.$ac_ext
5901cat >>conftest.$ac_ext <<_ACEOF
5902/* end confdefs.h.  */
5903#include <string.h>
5904
5905_ACEOF
5906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5907  $EGREP "memchr" >/dev/null 2>&1; then
5908  :
5909else
5910  ac_cv_header_stdc=no
5911fi
5912rm -f conftest*
5913
5914fi
5915
5916if test $ac_cv_header_stdc = yes; then
5917  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5918  cat >conftest.$ac_ext <<_ACEOF
5919/* confdefs.h.  */
5920_ACEOF
5921cat confdefs.h >>conftest.$ac_ext
5922cat >>conftest.$ac_ext <<_ACEOF
5923/* end confdefs.h.  */
5924#include <stdlib.h>
5925
5926_ACEOF
5927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5928  $EGREP "free" >/dev/null 2>&1; then
5929  :
5930else
5931  ac_cv_header_stdc=no
5932fi
5933rm -f conftest*
5934
5935fi
5936
5937if test $ac_cv_header_stdc = yes; then
5938  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5939  if test "$cross_compiling" = yes; then
5940  :
5941else
5942  cat >conftest.$ac_ext <<_ACEOF
5943/* confdefs.h.  */
5944_ACEOF
5945cat confdefs.h >>conftest.$ac_ext
5946cat >>conftest.$ac_ext <<_ACEOF
5947/* end confdefs.h.  */
5948#include <ctype.h>
5949#if ((' ' & 0x0FF) == 0x020)
5950# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5951# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5952#else
5953# define ISLOWER(c) \
5954                   (('a' <= (c) && (c) <= 'i') \
5955                     || ('j' <= (c) && (c) <= 'r') \
5956                     || ('s' <= (c) && (c) <= 'z'))
5957# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5958#endif
5959
5960#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5961int
5962main ()
5963{
5964  int i;
5965  for (i = 0; i < 256; i++)
5966    if (XOR (islower (i), ISLOWER (i))
5967        || toupper (i) != TOUPPER (i))
5968      exit(2);
5969  exit (0);
5970}
5971_ACEOF
5972rm -f conftest$ac_exeext
5973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5974  (eval $ac_link) 2>&5
5975  ac_status=$?
5976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979  (eval $ac_try) 2>&5
5980  ac_status=$?
5981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982  (exit $ac_status); }; }; then
5983  :
5984else
5985  echo "$as_me: program exited with status $ac_status" >&5
5986echo "$as_me: failed program was:" >&5
5987sed 's/^/| /' conftest.$ac_ext >&5
5988
5989( exit $ac_status )
5990ac_cv_header_stdc=no
5991fi
5992rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5993fi
5994fi
5995fi
5996echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5997echo "${ECHO_T}$ac_cv_header_stdc" >&6
5998if test $ac_cv_header_stdc = yes; then
5999
6000cat >>confdefs.h <<\_ACEOF
6001#define STDC_HEADERS 1
6002_ACEOF
6003
6004fi
6005
6006# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6017                  inttypes.h stdint.h unistd.h
6018do
6019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6020echo "$as_me:$LINENO: checking for $ac_header" >&5
6021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6022if eval "test \"\${$as_ac_Header+set}\" = set"; then
6023  echo $ECHO_N "(cached) $ECHO_C" >&6
6024else
6025  cat >conftest.$ac_ext <<_ACEOF
6026/* confdefs.h.  */
6027_ACEOF
6028cat confdefs.h >>conftest.$ac_ext
6029cat >>conftest.$ac_ext <<_ACEOF
6030/* end confdefs.h.  */
6031$ac_includes_default
6032
6033#include <$ac_header>
6034_ACEOF
6035rm -f conftest.$ac_objext
6036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037  (eval $ac_compile) 2>conftest.er1
6038  ac_status=$?
6039  grep -v '^ *+' conftest.er1 >conftest.err
6040  rm -f conftest.er1
6041  cat conftest.err >&5
6042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043  (exit $ac_status); } &&
6044         { ac_try='test -z "$ac_c_werror_flag"
6045                         || test ! -s conftest.err'
6046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047  (eval $ac_try) 2>&5
6048  ac_status=$?
6049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050  (exit $ac_status); }; } &&
6051         { ac_try='test -s conftest.$ac_objext'
6052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053  (eval $ac_try) 2>&5
6054  ac_status=$?
6055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056  (exit $ac_status); }; }; then
6057  eval "$as_ac_Header=yes"
6058else
6059  echo "$as_me: failed program was:" >&5
6060sed 's/^/| /' conftest.$ac_ext >&5
6061
6062eval "$as_ac_Header=no"
6063fi
6064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6065fi
6066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6068if test `eval echo '${'$as_ac_Header'}'` = yes; then
6069  cat >>confdefs.h <<_ACEOF
6070#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6071_ACEOF
6072
6073fi
6074
6075done
6076
6077
6078
6079for ac_header in dlfcn.h
6080do
6081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6082if eval "test \"\${$as_ac_Header+set}\" = set"; then
6083  echo "$as_me:$LINENO: checking for $ac_header" >&5
6084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6085if eval "test \"\${$as_ac_Header+set}\" = set"; then
6086  echo $ECHO_N "(cached) $ECHO_C" >&6
6087fi
6088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6090else
6091  # Is the header compilable?
6092echo "$as_me:$LINENO: checking $ac_header usability" >&5
6093echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6094cat >conftest.$ac_ext <<_ACEOF
6095/* confdefs.h.  */
6096_ACEOF
6097cat confdefs.h >>conftest.$ac_ext
6098cat >>conftest.$ac_ext <<_ACEOF
6099/* end confdefs.h.  */
6100$ac_includes_default
6101#include <$ac_header>
6102_ACEOF
6103rm -f conftest.$ac_objext
6104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6105  (eval $ac_compile) 2>conftest.er1
6106  ac_status=$?
6107  grep -v '^ *+' conftest.er1 >conftest.err
6108  rm -f conftest.er1
6109  cat conftest.err >&5
6110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111  (exit $ac_status); } &&
6112         { ac_try='test -z "$ac_c_werror_flag"
6113                         || test ! -s conftest.err'
6114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115  (eval $ac_try) 2>&5
6116  ac_status=$?
6117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118  (exit $ac_status); }; } &&
6119         { ac_try='test -s conftest.$ac_objext'
6120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121  (eval $ac_try) 2>&5
6122  ac_status=$?
6123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124  (exit $ac_status); }; }; then
6125  ac_header_compiler=yes
6126else
6127  echo "$as_me: failed program was:" >&5
6128sed 's/^/| /' conftest.$ac_ext >&5
6129
6130ac_header_compiler=no
6131fi
6132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6133echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6134echo "${ECHO_T}$ac_header_compiler" >&6
6135
6136# Is the header present?
6137echo "$as_me:$LINENO: checking $ac_header presence" >&5
6138echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6139cat >conftest.$ac_ext <<_ACEOF
6140/* confdefs.h.  */
6141_ACEOF
6142cat confdefs.h >>conftest.$ac_ext
6143cat >>conftest.$ac_ext <<_ACEOF
6144/* end confdefs.h.  */
6145#include <$ac_header>
6146_ACEOF
6147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6148  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6149  ac_status=$?
6150  grep -v '^ *+' conftest.er1 >conftest.err
6151  rm -f conftest.er1
6152  cat conftest.err >&5
6153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154  (exit $ac_status); } >/dev/null; then
6155  if test -s conftest.err; then
6156    ac_cpp_err=$ac_c_preproc_warn_flag
6157    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6158  else
6159    ac_cpp_err=
6160  fi
6161else
6162  ac_cpp_err=yes
6163fi
6164if test -z "$ac_cpp_err"; then
6165  ac_header_preproc=yes
6166else
6167  echo "$as_me: failed program was:" >&5
6168sed 's/^/| /' conftest.$ac_ext >&5
6169
6170  ac_header_preproc=no
6171fi
6172rm -f conftest.err conftest.$ac_ext
6173echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6174echo "${ECHO_T}$ac_header_preproc" >&6
6175
6176# So?  What about this header?
6177case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6178  yes:no: )
6179    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6180echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6181    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6182echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6183    ac_header_preproc=yes
6184    ;;
6185  no:yes:* )
6186    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6187echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6188    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6189echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6190    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6191echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6192    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6193echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6194    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6195echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6196    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6197echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6198    (
6199      cat <<\_ASBOX
6200## --------------------------------------------------------------- ##
6201## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6202## --------------------------------------------------------------- ##
6203_ASBOX
6204    ) |
6205      sed "s/^/$as_me: WARNING:     /" >&2
6206    ;;
6207esac
6208echo "$as_me:$LINENO: checking for $ac_header" >&5
6209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6210if eval "test \"\${$as_ac_Header+set}\" = set"; then
6211  echo $ECHO_N "(cached) $ECHO_C" >&6
6212else
6213  eval "$as_ac_Header=\$ac_header_preproc"
6214fi
6215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6216echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6217
6218fi
6219if test `eval echo '${'$as_ac_Header'}'` = yes; then
6220  cat >>confdefs.h <<_ACEOF
6221#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6222_ACEOF
6223
6224fi
6225
6226done
6227
6228ac_ext=cc
6229ac_cpp='$CXXCPP $CPPFLAGS'
6230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6233if test -n "$ac_tool_prefix"; then
6234  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6235  do
6236    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6237set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6238echo "$as_me:$LINENO: checking for $ac_word" >&5
6239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6240if test "${ac_cv_prog_CXX+set}" = set; then
6241  echo $ECHO_N "(cached) $ECHO_C" >&6
6242else
6243  if test -n "$CXX"; then
6244  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6245else
6246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247for as_dir in $PATH
6248do
6249  IFS=$as_save_IFS
6250  test -z "$as_dir" && as_dir=.
6251  for ac_exec_ext in '' $ac_executable_extensions; do
6252  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6254    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255    break 2
6256  fi
6257done
6258done
6259
6260fi
6261fi
6262CXX=$ac_cv_prog_CXX
6263if test -n "$CXX"; then
6264  echo "$as_me:$LINENO: result: $CXX" >&5
6265echo "${ECHO_T}$CXX" >&6
6266else
6267  echo "$as_me:$LINENO: result: no" >&5
6268echo "${ECHO_T}no" >&6
6269fi
6270
6271    test -n "$CXX" && break
6272  done
6273fi
6274if test -z "$CXX"; then
6275  ac_ct_CXX=$CXX
6276  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6277do
6278  # Extract the first word of "$ac_prog", so it can be a program name with args.
6279set dummy $ac_prog; ac_word=$2
6280echo "$as_me:$LINENO: checking for $ac_word" >&5
6281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6282if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6283  echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
6285  if test -n "$ac_ct_CXX"; then
6286  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291  IFS=$as_save_IFS
6292  test -z "$as_dir" && as_dir=.
6293  for ac_exec_ext in '' $ac_executable_extensions; do
6294  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295    ac_cv_prog_ac_ct_CXX="$ac_prog"
6296    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297    break 2
6298  fi
6299done
6300done
6301
6302fi
6303fi
6304ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6305if test -n "$ac_ct_CXX"; then
6306  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6307echo "${ECHO_T}$ac_ct_CXX" >&6
6308else
6309  echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6
6311fi
6312
6313  test -n "$ac_ct_CXX" && break
6314done
6315test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6316
6317  CXX=$ac_ct_CXX
6318fi
6319
6320
6321# Provide some information about the compiler.
6322echo "$as_me:$LINENO:" \
6323     "checking for C++ compiler version" >&5
6324ac_compiler=`set X $ac_compile; echo $2`
6325{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6326  (eval $ac_compiler --version </dev/null >&5) 2>&5
6327  ac_status=$?
6328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329  (exit $ac_status); }
6330{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6331  (eval $ac_compiler -v </dev/null >&5) 2>&5
6332  ac_status=$?
6333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334  (exit $ac_status); }
6335{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6336  (eval $ac_compiler -V </dev/null >&5) 2>&5
6337  ac_status=$?
6338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339  (exit $ac_status); }
6340
6341echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6342echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6343if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6344  echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346  cat >conftest.$ac_ext <<_ACEOF
6347/* confdefs.h.  */
6348_ACEOF
6349cat confdefs.h >>conftest.$ac_ext
6350cat >>conftest.$ac_ext <<_ACEOF
6351/* end confdefs.h.  */
6352
6353int
6354main ()
6355{
6356#ifndef __GNUC__
6357       choke me
6358#endif
6359
6360  ;
6361  return 0;
6362}
6363_ACEOF
6364rm -f conftest.$ac_objext
6365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6366  (eval $ac_compile) 2>conftest.er1
6367  ac_status=$?
6368  grep -v '^ *+' conftest.er1 >conftest.err
6369  rm -f conftest.er1
6370  cat conftest.err >&5
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); } &&
6373         { ac_try='test -z "$ac_cxx_werror_flag"
6374                         || test ! -s conftest.err'
6375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376  (eval $ac_try) 2>&5
6377  ac_status=$?
6378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379  (exit $ac_status); }; } &&
6380         { ac_try='test -s conftest.$ac_objext'
6381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382  (eval $ac_try) 2>&5
6383  ac_status=$?
6384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385  (exit $ac_status); }; }; then
6386  ac_compiler_gnu=yes
6387else
6388  echo "$as_me: failed program was:" >&5
6389sed 's/^/| /' conftest.$ac_ext >&5
6390
6391ac_compiler_gnu=no
6392fi
6393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6394ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6395
6396fi
6397echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6398echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6399GXX=`test $ac_compiler_gnu = yes && echo yes`
6400ac_test_CXXFLAGS=${CXXFLAGS+set}
6401ac_save_CXXFLAGS=$CXXFLAGS
6402CXXFLAGS="-g"
6403echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6404echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6405if test "${ac_cv_prog_cxx_g+set}" = set; then
6406  echo $ECHO_N "(cached) $ECHO_C" >&6
6407else
6408  cat >conftest.$ac_ext <<_ACEOF
6409/* confdefs.h.  */
6410_ACEOF
6411cat confdefs.h >>conftest.$ac_ext
6412cat >>conftest.$ac_ext <<_ACEOF
6413/* end confdefs.h.  */
6414
6415int
6416main ()
6417{
6418
6419  ;
6420  return 0;
6421}
6422_ACEOF
6423rm -f conftest.$ac_objext
6424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425  (eval $ac_compile) 2>conftest.er1
6426  ac_status=$?
6427  grep -v '^ *+' conftest.er1 >conftest.err
6428  rm -f conftest.er1
6429  cat conftest.err >&5
6430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431  (exit $ac_status); } &&
6432         { ac_try='test -z "$ac_cxx_werror_flag"
6433                         || test ! -s conftest.err'
6434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435  (eval $ac_try) 2>&5
6436  ac_status=$?
6437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438  (exit $ac_status); }; } &&
6439         { ac_try='test -s conftest.$ac_objext'
6440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441  (eval $ac_try) 2>&5
6442  ac_status=$?
6443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444  (exit $ac_status); }; }; then
6445  ac_cv_prog_cxx_g=yes
6446else
6447  echo "$as_me: failed program was:" >&5
6448sed 's/^/| /' conftest.$ac_ext >&5
6449
6450ac_cv_prog_cxx_g=no
6451fi
6452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6453fi
6454echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6455echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6456if test "$ac_test_CXXFLAGS" = set; then
6457  CXXFLAGS=$ac_save_CXXFLAGS
6458elif test $ac_cv_prog_cxx_g = yes; then
6459  if test "$GXX" = yes; then
6460    CXXFLAGS="-g -O2"
6461  else
6462    CXXFLAGS="-g"
6463  fi
6464else
6465  if test "$GXX" = yes; then
6466    CXXFLAGS="-O2"
6467  else
6468    CXXFLAGS=
6469  fi
6470fi
6471for ac_declaration in \
6472   '' \
6473   'extern "C" void std::exit (int) throw (); using std::exit;' \
6474   'extern "C" void std::exit (int); using std::exit;' \
6475   'extern "C" void exit (int) throw ();' \
6476   'extern "C" void exit (int);' \
6477   'void exit (int);'
6478do
6479  cat >conftest.$ac_ext <<_ACEOF
6480/* confdefs.h.  */
6481_ACEOF
6482cat confdefs.h >>conftest.$ac_ext
6483cat >>conftest.$ac_ext <<_ACEOF
6484/* end confdefs.h.  */
6485$ac_declaration
6486#include <stdlib.h>
6487int
6488main ()
6489{
6490exit (42);
6491  ;
6492  return 0;
6493}
6494_ACEOF
6495rm -f conftest.$ac_objext
6496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6497  (eval $ac_compile) 2>conftest.er1
6498  ac_status=$?
6499  grep -v '^ *+' conftest.er1 >conftest.err
6500  rm -f conftest.er1
6501  cat conftest.err >&5
6502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503  (exit $ac_status); } &&
6504         { ac_try='test -z "$ac_cxx_werror_flag"
6505                         || test ! -s conftest.err'
6506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507  (eval $ac_try) 2>&5
6508  ac_status=$?
6509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510  (exit $ac_status); }; } &&
6511         { ac_try='test -s conftest.$ac_objext'
6512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513  (eval $ac_try) 2>&5
6514  ac_status=$?
6515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516  (exit $ac_status); }; }; then
6517  :
6518else
6519  echo "$as_me: failed program was:" >&5
6520sed 's/^/| /' conftest.$ac_ext >&5
6521
6522continue
6523fi
6524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6525  cat >conftest.$ac_ext <<_ACEOF
6526/* confdefs.h.  */
6527_ACEOF
6528cat confdefs.h >>conftest.$ac_ext
6529cat >>conftest.$ac_ext <<_ACEOF
6530/* end confdefs.h.  */
6531$ac_declaration
6532int
6533main ()
6534{
6535exit (42);
6536  ;
6537  return 0;
6538}
6539_ACEOF
6540rm -f conftest.$ac_objext
6541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542  (eval $ac_compile) 2>conftest.er1
6543  ac_status=$?
6544  grep -v '^ *+' conftest.er1 >conftest.err
6545  rm -f conftest.er1
6546  cat conftest.err >&5
6547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548  (exit $ac_status); } &&
6549         { ac_try='test -z "$ac_cxx_werror_flag"
6550                         || test ! -s conftest.err'
6551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552  (eval $ac_try) 2>&5
6553  ac_status=$?
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); }; } &&
6556         { ac_try='test -s conftest.$ac_objext'
6557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558  (eval $ac_try) 2>&5
6559  ac_status=$?
6560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561  (exit $ac_status); }; }; then
6562  break
6563else
6564  echo "$as_me: failed program was:" >&5
6565sed 's/^/| /' conftest.$ac_ext >&5
6566
6567fi
6568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6569done
6570rm -f conftest*
6571if test -n "$ac_declaration"; then
6572  echo '#ifdef __cplusplus' >>confdefs.h
6573  echo $ac_declaration      >>confdefs.h
6574  echo '#endif'             >>confdefs.h
6575fi
6576
6577ac_ext=cc
6578ac_cpp='$CXXCPP $CPPFLAGS'
6579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6582
6583depcc="$CXX"  am_compiler_list=
6584
6585echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6586echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6587if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6588  echo $ECHO_N "(cached) $ECHO_C" >&6
6589else
6590  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6591  # We make a subdir and do the tests there.  Otherwise we can end up
6592  # making bogus files that we don't know about and never remove.  For
6593  # instance it was reported that on HP-UX the gcc test will end up
6594  # making a dummy file named `D' -- because `-MD' means `put the output
6595  # in D'.
6596  mkdir conftest.dir
6597  # Copy depcomp to subdir because otherwise we won't find it if we're
6598  # using a relative directory.
6599  cp "$am_depcomp" conftest.dir
6600  cd conftest.dir
6601  # We will build objects and dependencies in a subdirectory because
6602  # it helps to detect inapplicable dependency modes.  For instance
6603  # both Tru64's cc and ICC support -MD to output dependencies as a
6604  # side effect of compilation, but ICC will put the dependencies in
6605  # the current directory while Tru64 will put them in the object
6606  # directory.
6607  mkdir sub
6608
6609  am_cv_CXX_dependencies_compiler_type=none
6610  if test "$am_compiler_list" = ""; then
6611     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6612  fi
6613  for depmode in $am_compiler_list; do
6614    # Setup a source with many dependencies, because some compilers
6615    # like to wrap large dependency lists on column 80 (with \), and
6616    # we should not choose a depcomp mode which is confused by this.
6617    #
6618    # We need to recreate these files for each test, as the compiler may
6619    # overwrite some of them when testing with obscure command lines.
6620    # This happens at least with the AIX C compiler.
6621    : > sub/conftest.c
6622    for i in 1 2 3 4 5 6; do
6623      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6624      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6625      # Solaris 8's {/usr,}/bin/sh.
6626      touch sub/conftst$i.h
6627    done
6628    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6629
6630    case $depmode in
6631    nosideeffect)
6632      # after this tag, mechanisms are not by side-effect, so they'll
6633      # only be used when explicitly requested
6634      if test "x$enable_dependency_tracking" = xyes; then
6635        continue
6636      else
6637        break
6638      fi
6639      ;;
6640    none) break ;;
6641    esac
6642    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6643    # mode.  It turns out that the SunPro C++ compiler does not properly
6644    # handle `-M -o', and we need to detect this.
6645    if depmode=$depmode \
6646       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6647       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6648       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6649         >/dev/null 2>conftest.err &&
6650       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6651       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6652       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6653      # icc doesn't choke on unknown options, it will just issue warnings
6654      # or remarks (even with -Werror).  So we grep stderr for any message
6655      # that says an option was ignored or not supported.
6656      # When given -MP, icc 7.0 and 7.1 complain thusly:
6657      #   icc: Command line warning: ignoring option '-M'; no argument required
6658      # The diagnosis changed in icc 8.0:
6659      #   icc: Command line remark: option '-MP' not supported
6660      if (grep 'ignoring option' conftest.err ||
6661          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6662        am_cv_CXX_dependencies_compiler_type=$depmode
6663        break
6664      fi
6665    fi
6666  done
6667
6668  cd ..
6669  rm -rf conftest.dir
6670else
6671  am_cv_CXX_dependencies_compiler_type=none
6672fi
6673
6674fi
6675echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6676echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6677CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6678
6679
6680
6681if
6682  test "x$enable_dependency_tracking" != xno \
6683  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6684  am__fastdepCXX_TRUE=
6685  am__fastdepCXX_FALSE='#'
6686else
6687  am__fastdepCXX_TRUE='#'
6688  am__fastdepCXX_FALSE=
6689fi
6690
6691
6692
6693
6694if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6695    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6696    (test "X$CXX" != "Xg++"))) ; then
6697  ac_ext=cc
6698ac_cpp='$CXXCPP $CPPFLAGS'
6699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6702echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6703echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6704if test -z "$CXXCPP"; then
6705  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6706  echo $ECHO_N "(cached) $ECHO_C" >&6
6707else
6708      # Double quotes because CXXCPP needs to be expanded
6709    for CXXCPP in "$CXX -E" "/lib/cpp"
6710    do
6711      ac_preproc_ok=false
6712for ac_cxx_preproc_warn_flag in '' yes
6713do
6714  # Use a header file that comes with gcc, so configuring glibc
6715  # with a fresh cross-compiler works.
6716  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6717  # <limits.h> exists even on freestanding compilers.
6718  # On the NeXT, cc -E runs the code through the compiler's parser,
6719  # not just through cpp. "Syntax error" is here to catch this case.
6720  cat >conftest.$ac_ext <<_ACEOF
6721/* confdefs.h.  */
6722_ACEOF
6723cat confdefs.h >>conftest.$ac_ext
6724cat >>conftest.$ac_ext <<_ACEOF
6725/* end confdefs.h.  */
6726#ifdef __STDC__
6727# include <limits.h>
6728#else
6729# include <assert.h>
6730#endif
6731                     Syntax error
6732_ACEOF
6733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6734  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6735  ac_status=$?
6736  grep -v '^ *+' conftest.er1 >conftest.err
6737  rm -f conftest.er1
6738  cat conftest.err >&5
6739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740  (exit $ac_status); } >/dev/null; then
6741  if test -s conftest.err; then
6742    ac_cpp_err=$ac_cxx_preproc_warn_flag
6743    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6744  else
6745    ac_cpp_err=
6746  fi
6747else
6748  ac_cpp_err=yes
6749fi
6750if test -z "$ac_cpp_err"; then
6751  :
6752else
6753  echo "$as_me: failed program was:" >&5
6754sed 's/^/| /' conftest.$ac_ext >&5
6755
6756  # Broken: fails on valid input.
6757continue
6758fi
6759rm -f conftest.err conftest.$ac_ext
6760
6761  # OK, works on sane cases.  Now check whether non-existent headers
6762  # can be detected and how.
6763  cat >conftest.$ac_ext <<_ACEOF
6764/* confdefs.h.  */
6765_ACEOF
6766cat confdefs.h >>conftest.$ac_ext
6767cat >>conftest.$ac_ext <<_ACEOF
6768/* end confdefs.h.  */
6769#include <ac_nonexistent.h>
6770_ACEOF
6771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6772  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6773  ac_status=$?
6774  grep -v '^ *+' conftest.er1 >conftest.err
6775  rm -f conftest.er1
6776  cat conftest.err >&5
6777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778  (exit $ac_status); } >/dev/null; then
6779  if test -s conftest.err; then
6780    ac_cpp_err=$ac_cxx_preproc_warn_flag
6781    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6782  else
6783    ac_cpp_err=
6784  fi
6785else
6786  ac_cpp_err=yes
6787fi
6788if test -z "$ac_cpp_err"; then
6789  # Broken: success on invalid input.
6790continue
6791else
6792  echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795  # Passes both tests.
6796ac_preproc_ok=:
6797break
6798fi
6799rm -f conftest.err conftest.$ac_ext
6800
6801done
6802# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6803rm -f conftest.err conftest.$ac_ext
6804if $ac_preproc_ok; then
6805  break
6806fi
6807
6808    done
6809    ac_cv_prog_CXXCPP=$CXXCPP
6810
6811fi
6812  CXXCPP=$ac_cv_prog_CXXCPP
6813else
6814  ac_cv_prog_CXXCPP=$CXXCPP
6815fi
6816echo "$as_me:$LINENO: result: $CXXCPP" >&5
6817echo "${ECHO_T}$CXXCPP" >&6
6818ac_preproc_ok=false
6819for ac_cxx_preproc_warn_flag in '' yes
6820do
6821  # Use a header file that comes with gcc, so configuring glibc
6822  # with a fresh cross-compiler works.
6823  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6824  # <limits.h> exists even on freestanding compilers.
6825  # On the NeXT, cc -E runs the code through the compiler's parser,
6826  # not just through cpp. "Syntax error" is here to catch this case.
6827  cat >conftest.$ac_ext <<_ACEOF
6828/* confdefs.h.  */
6829_ACEOF
6830cat confdefs.h >>conftest.$ac_ext
6831cat >>conftest.$ac_ext <<_ACEOF
6832/* end confdefs.h.  */
6833#ifdef __STDC__
6834# include <limits.h>
6835#else
6836# include <assert.h>
6837#endif
6838                     Syntax error
6839_ACEOF
6840if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6841  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6842  ac_status=$?
6843  grep -v '^ *+' conftest.er1 >conftest.err
6844  rm -f conftest.er1
6845  cat conftest.err >&5
6846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847  (exit $ac_status); } >/dev/null; then
6848  if test -s conftest.err; then
6849    ac_cpp_err=$ac_cxx_preproc_warn_flag
6850    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6851  else
6852    ac_cpp_err=
6853  fi
6854else
6855  ac_cpp_err=yes
6856fi
6857if test -z "$ac_cpp_err"; then
6858  :
6859else
6860  echo "$as_me: failed program was:" >&5
6861sed 's/^/| /' conftest.$ac_ext >&5
6862
6863  # Broken: fails on valid input.
6864continue
6865fi
6866rm -f conftest.err conftest.$ac_ext
6867
6868  # OK, works on sane cases.  Now check whether non-existent headers
6869  # can be detected and how.
6870  cat >conftest.$ac_ext <<_ACEOF
6871/* confdefs.h.  */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h.  */
6876#include <ac_nonexistent.h>
6877_ACEOF
6878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6879  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6880  ac_status=$?
6881  grep -v '^ *+' conftest.er1 >conftest.err
6882  rm -f conftest.er1
6883  cat conftest.err >&5
6884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885  (exit $ac_status); } >/dev/null; then
6886  if test -s conftest.err; then
6887    ac_cpp_err=$ac_cxx_preproc_warn_flag
6888    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6889  else
6890    ac_cpp_err=
6891  fi
6892else
6893  ac_cpp_err=yes
6894fi
6895if test -z "$ac_cpp_err"; then
6896  # Broken: success on invalid input.
6897continue
6898else
6899  echo "$as_me: failed program was:" >&5
6900sed 's/^/| /' conftest.$ac_ext >&5
6901
6902  # Passes both tests.
6903ac_preproc_ok=:
6904break
6905fi
6906rm -f conftest.err conftest.$ac_ext
6907
6908done
6909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6910rm -f conftest.err conftest.$ac_ext
6911if $ac_preproc_ok; then
6912  :
6913else
6914  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6915See \`config.log' for more details." >&5
6916echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6917See \`config.log' for more details." >&2;}
6918   { (exit 1); exit 1; }; }
6919fi
6920
6921ac_ext=cc
6922ac_cpp='$CXXCPP $CPPFLAGS'
6923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6926
6927fi
6928
6929
6930
6931# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6932
6933# find the maximum length of command line arguments
6934echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6935echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6936if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6937  echo $ECHO_N "(cached) $ECHO_C" >&6
6938else
6939    i=0
6940  teststring="ABCD"
6941
6942  case $build_os in
6943  msdosdjgpp*)
6944    # On DJGPP, this test can blow up pretty badly due to problems in libc
6945    # (any single argument exceeding 2000 bytes causes a buffer overrun
6946    # during glob expansion).  Even if it were fixed, the result of this
6947    # check would be larger than it should be.
6948    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6949    ;;
6950
6951  gnu*)
6952    # Under GNU Hurd, this test is not required because there is
6953    # no limit to the length of command line arguments.
6954    # Libtool will interpret -1 as no limit whatsoever
6955    lt_cv_sys_max_cmd_len=-1;
6956    ;;
6957
6958  cygwin* | mingw*)
6959    # On Win9x/ME, this test blows up -- it succeeds, but takes
6960    # about 5 minutes as the teststring grows exponentially.
6961    # Worse, since 9x/ME are not pre-emptively multitasking,
6962    # you end up with a "frozen" computer, even though with patience
6963    # the test eventually succeeds (with a max line length of 256k).
6964    # Instead, let's just punt: use the minimum linelength reported by
6965    # all of the supported platforms: 8192 (on NT/2K/XP).
6966    lt_cv_sys_max_cmd_len=8192;
6967    ;;
6968
6969  amigaos*)
6970    # On AmigaOS with pdksh, this test takes hours, literally.
6971    # So we just punt and use a minimum line length of 8192.
6972    lt_cv_sys_max_cmd_len=8192;
6973    ;;
6974
6975  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6976    # This has been around since 386BSD, at least.  Likely further.
6977    if test -x /sbin/sysctl; then
6978      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6979    elif test -x /usr/sbin/sysctl; then
6980      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6981    else
6982      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6983    fi
6984    # And add a safety zone
6985    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6986    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6987    ;;
6988
6989  interix*)
6990    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6991    lt_cv_sys_max_cmd_len=196608
6992    ;;
6993
6994  osf*)
6995    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6996    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6997    # nice to cause kernel panics so lets avoid the loop below.
6998    # First set a reasonable default.
6999    lt_cv_sys_max_cmd_len=16384
7000    #
7001    if test -x /sbin/sysconfig; then
7002      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7003        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7004      esac
7005    fi
7006    ;;
7007  sco3.2v5*)
7008    lt_cv_sys_max_cmd_len=102400
7009    ;;
7010  sysv5* | sco5v6* | sysv4.2uw2*)
7011    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7012    if test -n "$kargmax"; then
7013      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7014    else
7015      lt_cv_sys_max_cmd_len=32768
7016    fi
7017    ;;
7018  *)
7019    # If test is not a shell built-in, we'll probably end up computing a
7020    # maximum length that is only half of the actual maximum length, but
7021    # we can't tell.
7022    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7023    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7024               = "XX$teststring") >/dev/null 2>&1 &&
7025            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7026            lt_cv_sys_max_cmd_len=$new_result &&
7027            test $i != 17 # 1/2 MB should be enough
7028    do
7029      i=`expr $i + 1`
7030      teststring=$teststring$teststring
7031    done
7032    teststring=
7033    # Add a significant safety factor because C++ compilers can tack on massive
7034    # amounts of additional arguments before passing them to the linker.
7035    # It appears as though 1/2 is a usable value.
7036    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7037    ;;
7038  esac
7039
7040fi
7041
7042if test -n $lt_cv_sys_max_cmd_len ; then
7043  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7044echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7045else
7046  echo "$as_me:$LINENO: result: none" >&5
7047echo "${ECHO_T}none" >&6
7048fi
7049
7050
7051
7052
7053# Check for command to grab the raw symbol name followed by C symbol from nm.
7054echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7055echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7056if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7057  echo $ECHO_N "(cached) $ECHO_C" >&6
7058else
7059
7060# These are sane defaults that work on at least a few old systems.
7061# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7062
7063# Character class describing NM global symbol codes.
7064symcode='[BCDEGRST]'
7065
7066# Regexp to match symbols that can be accessed directly from C.
7067sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7068
7069# Transform an extracted symbol line into a proper C declaration
7070lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7071
7072# Transform an extracted symbol line into symbol name and symbol address
7073lt_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
7075# Define system-specific variables.
7076case $host_os in
7077aix*)
7078  symcode='[BCDT]'
7079  ;;
7080cygwin* | mingw* | pw32*)
7081  symcode='[ABCDGISTW]'
7082  ;;
7083hpux*) # Its linker distinguishes data from code symbols
7084  if test "$host_cpu" = ia64; then
7085    symcode='[ABCDEGRST]'
7086  fi
7087  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7088  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'"
7089  ;;
7090linux*)
7091  if test "$host_cpu" = ia64; then
7092    symcode='[ABCDGIRSTW]'
7093    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7094    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'"
7095  fi
7096  ;;
7097irix* | nonstopux*)
7098  symcode='[BCDEGRST]'
7099  ;;
7100osf*)
7101  symcode='[BCDEGQRST]'
7102  ;;
7103solaris*)
7104  symcode='[BDRT]'
7105  ;;
7106sco3.2v5*)
7107  symcode='[DT]'
7108  ;;
7109sysv4.2uw2*)
7110  symcode='[DT]'
7111  ;;
7112sysv5* | sco5v6* | unixware* | OpenUNIX*)
7113  symcode='[ABDT]'
7114  ;;
7115sysv4)
7116  symcode='[DFNSTU]'
7117  ;;
7118esac
7119
7120# Handle CRLF in mingw tool chain
7121opt_cr=
7122case $build_os in
7123mingw*)
7124  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7125  ;;
7126esac
7127
7128# If we're using GNU nm, then use its standard symbol codes.
7129case `$NM -V 2>&1` in
7130*GNU* | *'with BFD'*)
7131  symcode='[ABCDGIRSTW]' ;;
7132esac
7133
7134# Try without a prefix undercore, then with it.
7135for ac_symprfx in "" "_"; do
7136
7137  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7138  symxfrm="\\1 $ac_symprfx\\2 \\2"
7139
7140  # Write the raw and C identifiers.
7141  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7142
7143  # Check to see that the pipe works correctly.
7144  pipe_works=no
7145
7146  rm -f conftest*
7147  cat > conftest.$ac_ext <<EOF
7148#ifdef __cplusplus
7149extern "C" {
7150#endif
7151char nm_test_var;
7152void nm_test_func(){}
7153#ifdef __cplusplus
7154}
7155#endif
7156int main(){nm_test_var='a';nm_test_func();return(0);}
7157EOF
7158
7159  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160  (eval $ac_compile) 2>&5
7161  ac_status=$?
7162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163  (exit $ac_status); }; then
7164    # Now try to grab the symbols.
7165    nlist=conftest.nm
7166    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7167  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7168  ac_status=$?
7169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170  (exit $ac_status); } && test -s "$nlist"; then
7171      # Try sorting and uniquifying the output.
7172      if sort "$nlist" | uniq > "$nlist"T; then
7173        mv -f "$nlist"T "$nlist"
7174      else
7175        rm -f "$nlist"T
7176      fi
7177
7178      # Make sure that we snagged all the symbols we need.
7179      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7180        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7181          cat <<EOF > conftest.$ac_ext
7182#ifdef __cplusplus
7183extern "C" {
7184#endif
7185
7186EOF
7187          # Now generate the symbol file.
7188          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7189
7190          cat <<EOF >> conftest.$ac_ext
7191#if defined (__STDC__) && __STDC__
7192# define lt_ptr_t void *
7193#else
7194# define lt_ptr_t char *
7195# define const
7196#endif
7197
7198/* The mapping between symbol names and symbols. */
7199const struct {
7200  const char *name;
7201  lt_ptr_t address;
7202}
7203lt_preloaded_symbols[] =
7204{
7205EOF
7206          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7207          cat <<\EOF >> conftest.$ac_ext
7208  {0, (lt_ptr_t) 0}
7209};
7210
7211#ifdef __cplusplus
7212}
7213#endif
7214EOF
7215          # Now try linking the two files.
7216          mv conftest.$ac_objext conftstm.$ac_objext
7217          lt_save_LIBS="$LIBS"
7218          lt_save_CFLAGS="$CFLAGS"
7219          LIBS="conftstm.$ac_objext"
7220          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7221          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7222  (eval $ac_link) 2>&5
7223  ac_status=$?
7224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7226            pipe_works=yes
7227          fi
7228          LIBS="$lt_save_LIBS"
7229          CFLAGS="$lt_save_CFLAGS"
7230        else
7231          echo "cannot find nm_test_func in $nlist" >&5
7232        fi
7233      else
7234        echo "cannot find nm_test_var in $nlist" >&5
7235      fi
7236    else
7237      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7238    fi
7239  else
7240    echo "$progname: failed program was:" >&5
7241    cat conftest.$ac_ext >&5
7242  fi
7243  rm -f conftest* conftst*
7244
7245  # Do not use the global_symbol_pipe unless it works.
7246  if test "$pipe_works" = yes; then
7247    break
7248  else
7249    lt_cv_sys_global_symbol_pipe=
7250  fi
7251done
7252
7253fi
7254
7255if test -z "$lt_cv_sys_global_symbol_pipe"; then
7256  lt_cv_sys_global_symbol_to_cdecl=
7257fi
7258if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7259  echo "$as_me:$LINENO: result: failed" >&5
7260echo "${ECHO_T}failed" >&6
7261else
7262  echo "$as_me:$LINENO: result: ok" >&5
7263echo "${ECHO_T}ok" >&6
7264fi
7265
7266echo "$as_me:$LINENO: checking for objdir" >&5
7267echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7268if test "${lt_cv_objdir+set}" = set; then
7269  echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271  rm -f .libs 2>/dev/null
7272mkdir .libs 2>/dev/null
7273if test -d .libs; then
7274  lt_cv_objdir=.libs
7275else
7276  # MS-DOS does not allow filenames that begin with a dot.
7277  lt_cv_objdir=_libs
7278fi
7279rmdir .libs 2>/dev/null
7280fi
7281echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7282echo "${ECHO_T}$lt_cv_objdir" >&6
7283objdir=$lt_cv_objdir
7284
7285
7286
7287
7288
7289case $host_os in
7290aix3*)
7291  # AIX sometimes has problems with the GCC collect2 program.  For some
7292  # reason, if we set the COLLECT_NAMES environment variable, the problems
7293  # vanish in a puff of smoke.
7294  if test "X${COLLECT_NAMES+set}" != Xset; then
7295    COLLECT_NAMES=
7296    export COLLECT_NAMES
7297  fi
7298  ;;
7299esac
7300
7301# Sed substitution that helps us do robust quoting.  It backslashifies
7302# metacharacters that are still active within double-quoted strings.
7303Xsed='sed -e 1s/^X//'
7304sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7305
7306# Same as above, but do not quote variable references.
7307double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7308
7309# Sed substitution to delay expansion of an escaped shell variable in a
7310# double_quote_subst'ed string.
7311delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7312
7313# Sed substitution to avoid accidental globbing in evaled expressions
7314no_glob_subst='s/\*/\\\*/g'
7315
7316# Constants:
7317rm="rm -f"
7318
7319# Global variables:
7320default_ofile=libtool
7321can_build_shared=yes
7322
7323# All known linkers require a `.a' archive for static linking (except MSVC,
7324# which needs '.lib').
7325libext=a
7326ltmain="$ac_aux_dir/ltmain.sh"
7327ofile="$default_ofile"
7328with_gnu_ld="$lt_cv_prog_gnu_ld"
7329
7330if test -n "$ac_tool_prefix"; then
7331  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7332set dummy ${ac_tool_prefix}ar; ac_word=$2
7333echo "$as_me:$LINENO: checking for $ac_word" >&5
7334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7335if test "${ac_cv_prog_AR+set}" = set; then
7336  echo $ECHO_N "(cached) $ECHO_C" >&6
7337else
7338  if test -n "$AR"; then
7339  ac_cv_prog_AR="$AR" # Let the user override the test.
7340else
7341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342for as_dir in $PATH
7343do
7344  IFS=$as_save_IFS
7345  test -z "$as_dir" && as_dir=.
7346  for ac_exec_ext in '' $ac_executable_extensions; do
7347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348    ac_cv_prog_AR="${ac_tool_prefix}ar"
7349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350    break 2
7351  fi
7352done
7353done
7354
7355fi
7356fi
7357AR=$ac_cv_prog_AR
7358if test -n "$AR"; then
7359  echo "$as_me:$LINENO: result: $AR" >&5
7360echo "${ECHO_T}$AR" >&6
7361else
7362  echo "$as_me:$LINENO: result: no" >&5
7363echo "${ECHO_T}no" >&6
7364fi
7365
7366fi
7367if test -z "$ac_cv_prog_AR"; then
7368  ac_ct_AR=$AR
7369  # Extract the first word of "ar", so it can be a program name with args.
7370set dummy ar; ac_word=$2
7371echo "$as_me:$LINENO: checking for $ac_word" >&5
7372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7373if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7374  echo $ECHO_N "(cached) $ECHO_C" >&6
7375else
7376  if test -n "$ac_ct_AR"; then
7377  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7378else
7379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH
7381do
7382  IFS=$as_save_IFS
7383  test -z "$as_dir" && as_dir=.
7384  for ac_exec_ext in '' $ac_executable_extensions; do
7385  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386    ac_cv_prog_ac_ct_AR="ar"
7387    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388    break 2
7389  fi
7390done
7391done
7392
7393  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7394fi
7395fi
7396ac_ct_AR=$ac_cv_prog_ac_ct_AR
7397if test -n "$ac_ct_AR"; then
7398  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7399echo "${ECHO_T}$ac_ct_AR" >&6
7400else
7401  echo "$as_me:$LINENO: result: no" >&5
7402echo "${ECHO_T}no" >&6
7403fi
7404
7405  AR=$ac_ct_AR
7406else
7407  AR="$ac_cv_prog_AR"
7408fi
7409
7410if test -n "$ac_tool_prefix"; then
7411  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7412set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7413echo "$as_me:$LINENO: checking for $ac_word" >&5
7414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7415if test "${ac_cv_prog_RANLIB+set}" = set; then
7416  echo $ECHO_N "(cached) $ECHO_C" >&6
7417else
7418  if test -n "$RANLIB"; then
7419  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7420else
7421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422for as_dir in $PATH
7423do
7424  IFS=$as_save_IFS
7425  test -z "$as_dir" && as_dir=.
7426  for ac_exec_ext in '' $ac_executable_extensions; do
7427  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430    break 2
7431  fi
7432done
7433done
7434
7435fi
7436fi
7437RANLIB=$ac_cv_prog_RANLIB
7438if test -n "$RANLIB"; then
7439  echo "$as_me:$LINENO: result: $RANLIB" >&5
7440echo "${ECHO_T}$RANLIB" >&6
7441else
7442  echo "$as_me:$LINENO: result: no" >&5
7443echo "${ECHO_T}no" >&6
7444fi
7445
7446fi
7447if test -z "$ac_cv_prog_RANLIB"; then
7448  ac_ct_RANLIB=$RANLIB
7449  # Extract the first word of "ranlib", so it can be a program name with args.
7450set dummy ranlib; ac_word=$2
7451echo "$as_me:$LINENO: checking for $ac_word" >&5
7452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7453if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7454  echo $ECHO_N "(cached) $ECHO_C" >&6
7455else
7456  if test -n "$ac_ct_RANLIB"; then
7457  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7458else
7459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460for as_dir in $PATH
7461do
7462  IFS=$as_save_IFS
7463  test -z "$as_dir" && as_dir=.
7464  for ac_exec_ext in '' $ac_executable_extensions; do
7465  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7466    ac_cv_prog_ac_ct_RANLIB="ranlib"
7467    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468    break 2
7469  fi
7470done
7471done
7472
7473  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7474fi
7475fi
7476ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7477if test -n "$ac_ct_RANLIB"; then
7478  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7479echo "${ECHO_T}$ac_ct_RANLIB" >&6
7480else
7481  echo "$as_me:$LINENO: result: no" >&5
7482echo "${ECHO_T}no" >&6
7483fi
7484
7485  RANLIB=$ac_ct_RANLIB
7486else
7487  RANLIB="$ac_cv_prog_RANLIB"
7488fi
7489
7490if test -n "$ac_tool_prefix"; then
7491  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7492set dummy ${ac_tool_prefix}strip; ac_word=$2
7493echo "$as_me:$LINENO: checking for $ac_word" >&5
7494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7495if test "${ac_cv_prog_STRIP+set}" = set; then
7496  echo $ECHO_N "(cached) $ECHO_C" >&6
7497else
7498  if test -n "$STRIP"; then
7499  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7500else
7501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502for as_dir in $PATH
7503do
7504  IFS=$as_save_IFS
7505  test -z "$as_dir" && as_dir=.
7506  for ac_exec_ext in '' $ac_executable_extensions; do
7507  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7509    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510    break 2
7511  fi
7512done
7513done
7514
7515fi
7516fi
7517STRIP=$ac_cv_prog_STRIP
7518if test -n "$STRIP"; then
7519  echo "$as_me:$LINENO: result: $STRIP" >&5
7520echo "${ECHO_T}$STRIP" >&6
7521else
7522  echo "$as_me:$LINENO: result: no" >&5
7523echo "${ECHO_T}no" >&6
7524fi
7525
7526fi
7527if test -z "$ac_cv_prog_STRIP"; then
7528  ac_ct_STRIP=$STRIP
7529  # Extract the first word of "strip", so it can be a program name with args.
7530set dummy strip; ac_word=$2
7531echo "$as_me:$LINENO: checking for $ac_word" >&5
7532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7533if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7534  echo $ECHO_N "(cached) $ECHO_C" >&6
7535else
7536  if test -n "$ac_ct_STRIP"; then
7537  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7538else
7539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542  IFS=$as_save_IFS
7543  test -z "$as_dir" && as_dir=.
7544  for ac_exec_ext in '' $ac_executable_extensions; do
7545  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546    ac_cv_prog_ac_ct_STRIP="strip"
7547    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548    break 2
7549  fi
7550done
7551done
7552
7553  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7554fi
7555fi
7556ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7557if test -n "$ac_ct_STRIP"; then
7558  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7559echo "${ECHO_T}$ac_ct_STRIP" >&6
7560else
7561  echo "$as_me:$LINENO: result: no" >&5
7562echo "${ECHO_T}no" >&6
7563fi
7564
7565  STRIP=$ac_ct_STRIP
7566else
7567  STRIP="$ac_cv_prog_STRIP"
7568fi
7569
7570
7571old_CC="$CC"
7572old_CFLAGS="$CFLAGS"
7573
7574# Set sane defaults for various variables
7575test -z "$AR" && AR=ar
7576test -z "$AR_FLAGS" && AR_FLAGS=cru
7577test -z "$AS" && AS=as
7578test -z "$CC" && CC=cc
7579test -z "$LTCC" && LTCC=$CC
7580test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7581test -z "$DLLTOOL" && DLLTOOL=dlltool
7582test -z "$LD" && LD=ld
7583test -z "$LN_S" && LN_S="ln -s"
7584test -z "$MAGIC_CMD" && MAGIC_CMD=file
7585test -z "$NM" && NM=nm
7586test -z "$SED" && SED=sed
7587test -z "$OBJDUMP" && OBJDUMP=objdump
7588test -z "$RANLIB" && RANLIB=:
7589test -z "$STRIP" && STRIP=:
7590test -z "$ac_objext" && ac_objext=o
7591
7592# Determine commands to create old-style static archives.
7593old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7594old_postinstall_cmds='chmod 644 $oldlib'
7595old_postuninstall_cmds=
7596
7597if test -n "$RANLIB"; then
7598  case $host_os in
7599  openbsd*)
7600    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7601    ;;
7602  *)
7603    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7604    ;;
7605  esac
7606  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7607fi
7608
7609for cc_temp in $compiler""; do
7610  case $cc_temp in
7611    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7612    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7613    \-*) ;;
7614    *) break;;
7615  esac
7616done
7617cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7618
7619
7620# Only perform the check for file, if the check method requires it
7621case $deplibs_check_method in
7622file_magic*)
7623  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7624    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7625echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7626if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7627  echo $ECHO_N "(cached) $ECHO_C" >&6
7628else
7629  case $MAGIC_CMD in
7630[\\/*] |  ?:[\\/]*)
7631  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7632  ;;
7633*)
7634  lt_save_MAGIC_CMD="$MAGIC_CMD"
7635  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7636  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7637  for ac_dir in $ac_dummy; do
7638    IFS="$lt_save_ifs"
7639    test -z "$ac_dir" && ac_dir=.
7640    if test -f $ac_dir/${ac_tool_prefix}file; then
7641      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7642      if test -n "$file_magic_test_file"; then
7643        case $deplibs_check_method in
7644        "file_magic "*)
7645          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7646          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7647          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7648            $EGREP "$file_magic_regex" > /dev/null; then
7649            :
7650          else
7651            cat <<EOF 1>&2
7652
7653*** Warning: the command libtool uses to detect shared libraries,
7654*** $file_magic_cmd, produces output that libtool cannot recognize.
7655*** The result is that libtool may fail to recognize shared libraries
7656*** as such.  This will affect the creation of libtool libraries that
7657*** depend on shared libraries, but programs linked with such libtool
7658*** libraries will work regardless of this problem.  Nevertheless, you
7659*** may want to report the problem to your system manager and/or to
7660*** bug-libtool@gnu.org
7661
7662EOF
7663          fi ;;
7664        esac
7665      fi
7666      break
7667    fi
7668  done
7669  IFS="$lt_save_ifs"
7670  MAGIC_CMD="$lt_save_MAGIC_CMD"
7671  ;;
7672esac
7673fi
7674
7675MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7676if test -n "$MAGIC_CMD"; then
7677  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7678echo "${ECHO_T}$MAGIC_CMD" >&6
7679else
7680  echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6
7682fi
7683
7684if test -z "$lt_cv_path_MAGIC_CMD"; then
7685  if test -n "$ac_tool_prefix"; then
7686    echo "$as_me:$LINENO: checking for file" >&5
7687echo $ECHO_N "checking for file... $ECHO_C" >&6
7688if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7689  echo $ECHO_N "(cached) $ECHO_C" >&6
7690else
7691  case $MAGIC_CMD in
7692[\\/*] |  ?:[\\/]*)
7693  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7694  ;;
7695*)
7696  lt_save_MAGIC_CMD="$MAGIC_CMD"
7697  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7698  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7699  for ac_dir in $ac_dummy; do
7700    IFS="$lt_save_ifs"
7701    test -z "$ac_dir" && ac_dir=.
7702    if test -f $ac_dir/file; then
7703      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7704      if test -n "$file_magic_test_file"; then
7705        case $deplibs_check_method in
7706        "file_magic "*)
7707          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7708          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7709          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7710            $EGREP "$file_magic_regex" > /dev/null; then
7711            :
7712          else
7713            cat <<EOF 1>&2
7714
7715*** Warning: the command libtool uses to detect shared libraries,
7716*** $file_magic_cmd, produces output that libtool cannot recognize.
7717*** The result is that libtool may fail to recognize shared libraries
7718*** as such.  This will affect the creation of libtool libraries that
7719*** depend on shared libraries, but programs linked with such libtool
7720*** libraries will work regardless of this problem.  Nevertheless, you
7721*** may want to report the problem to your system manager and/or to
7722*** bug-libtool@gnu.org
7723
7724EOF
7725          fi ;;
7726        esac
7727      fi
7728      break
7729    fi
7730  done
7731  IFS="$lt_save_ifs"
7732  MAGIC_CMD="$lt_save_MAGIC_CMD"
7733  ;;
7734esac
7735fi
7736
7737MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7738if test -n "$MAGIC_CMD"; then
7739  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7740echo "${ECHO_T}$MAGIC_CMD" >&6
7741else
7742  echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744fi
7745
7746  else
7747    MAGIC_CMD=:
7748  fi
7749fi
7750
7751  fi
7752  ;;
7753esac
7754
7755enable_dlopen=no
7756enable_win32_dll=no
7757
7758# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7759if test "${enable_libtool_lock+set}" = set; then
7760  enableval="$enable_libtool_lock"
7761
7762fi;
7763test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7764
7765
7766# Check whether --with-pic or --without-pic was given.
7767if test "${with_pic+set}" = set; then
7768  withval="$with_pic"
7769  pic_mode="$withval"
7770else
7771  pic_mode=default
7772fi;
7773test -z "$pic_mode" && pic_mode=default
7774
7775# Use C for the default configuration in the libtool script
7776tagname=
7777lt_save_CC="$CC"
7778ac_ext=c
7779ac_cpp='$CPP $CPPFLAGS'
7780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7782ac_compiler_gnu=$ac_cv_c_compiler_gnu
7783
7784
7785# Source file extension for C test sources.
7786ac_ext=c
7787
7788# Object file extension for compiled C test sources.
7789objext=o
7790objext=$objext
7791
7792# Code to be used in simple compile tests
7793lt_simple_compile_test_code="int some_variable = 0;\n"
7794
7795# Code to be used in simple link tests
7796lt_simple_link_test_code='int main(){return(0);}\n'
7797
7798
7799# If no C compiler was specified, use CC.
7800LTCC=${LTCC-"$CC"}
7801
7802# If no C compiler flags were specified, use CFLAGS.
7803LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7804
7805# Allow CC to be a program name with arguments.
7806compiler=$CC
7807
7808
7809# save warnings/boilerplate of simple test code
7810ac_outfile=conftest.$ac_objext
7811printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7812eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7813_lt_compiler_boilerplate=`cat conftest.err`
7814$rm conftest*
7815
7816ac_outfile=conftest.$ac_objext
7817printf "$lt_simple_link_test_code" >conftest.$ac_ext
7818eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7819_lt_linker_boilerplate=`cat conftest.err`
7820$rm conftest*
7821
7822
7823## CAVEAT EMPTOR:
7824## There is no encapsulation within the following macros, do not change
7825## the running order or otherwise move them around unless you know exactly
7826## what you are doing...
7827
7828lt_prog_compiler_no_builtin_flag=
7829
7830if test "$GCC" = yes; then
7831  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7832
7833
7834echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7835echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7836if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7837  echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839  lt_cv_prog_compiler_rtti_exceptions=no
7840  ac_outfile=conftest.$ac_objext
7841   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7842   lt_compiler_flag="-fno-rtti -fno-exceptions"
7843   # Insert the option either (1) after the last *FLAGS variable, or
7844   # (2) before a word containing "conftest.", or (3) at the end.
7845   # Note that $ac_compile itself does not contain backslashes and begins
7846   # with a dollar sign (not a hyphen), so the echo should work correctly.
7847   # The option is referenced via a variable to avoid confusing sed.
7848   lt_compile=`echo "$ac_compile" | $SED \
7849   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7850   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7851   -e 's:$: $lt_compiler_flag:'`
7852   (eval echo "\"\$as_me:7852: $lt_compile\"" >&5)
7853   (eval "$lt_compile" 2>conftest.err)
7854   ac_status=$?
7855   cat conftest.err >&5
7856   echo "$as_me:7856: \$? = $ac_status" >&5
7857   if (exit $ac_status) && test -s "$ac_outfile"; then
7858     # The compiler can only warn and ignore the option if not recognized
7859     # So say no if there are warnings other than the usual output.
7860     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7861     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7862     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7863       lt_cv_prog_compiler_rtti_exceptions=yes
7864     fi
7865   fi
7866   $rm conftest*
7867
7868fi
7869echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7870echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7871
7872if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7873    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7874else
7875    :
7876fi
7877
7878fi
7879
7880lt_prog_compiler_wl=
7881lt_prog_compiler_pic=
7882lt_prog_compiler_static=
7883
7884echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7885echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7886
7887  if test "$GCC" = yes; then
7888    lt_prog_compiler_wl='-Wl,'
7889    lt_prog_compiler_static='-static'
7890
7891    case $host_os in
7892      aix*)
7893      # All AIX code is PIC.
7894      if test "$host_cpu" = ia64; then
7895        # AIX 5 now supports IA64 processor
7896        lt_prog_compiler_static='-Bstatic'
7897      fi
7898      ;;
7899
7900    amigaos*)
7901      # FIXME: we need at least 68020 code to build shared libraries, but
7902      # adding the `-m68020' flag to GCC prevents building anything better,
7903      # like `-m68040'.
7904      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7905      ;;
7906
7907    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7908      # PIC is the default for these OSes.
7909      ;;
7910
7911    mingw* | pw32* | os2*)
7912      # This hack is so that the source file can tell whether it is being
7913      # built for inclusion in a dll (and should export symbols for example).
7914      lt_prog_compiler_pic='-DDLL_EXPORT'
7915      ;;
7916
7917    darwin* | rhapsody*)
7918      # PIC is the default on this platform
7919      # Common symbols not allowed in MH_DYLIB files
7920      lt_prog_compiler_pic='-fno-common'
7921      ;;
7922
7923    interix3*)
7924      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7925      # Instead, we relocate shared libraries at runtime.
7926      ;;
7927
7928    msdosdjgpp*)
7929      # Just because we use GCC doesn't mean we suddenly get shared libraries
7930      # on systems that don't support them.
7931      lt_prog_compiler_can_build_shared=no
7932      enable_shared=no
7933      ;;
7934
7935    sysv4*MP*)
7936      if test -d /usr/nec; then
7937        lt_prog_compiler_pic=-Kconform_pic
7938      fi
7939      ;;
7940
7941    hpux*)
7942      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7943      # not for PA HP-UX.
7944      case $host_cpu in
7945      hppa*64*|ia64*)
7946        # +Z the default
7947        ;;
7948      *)
7949        lt_prog_compiler_pic='-fPIC'
7950        ;;
7951      esac
7952      ;;
7953
7954    *)
7955      lt_prog_compiler_pic='-fPIC'
7956      ;;
7957    esac
7958  else
7959    # PORTME Check for flag to pass linker flags through the system compiler.
7960    case $host_os in
7961    aix*)
7962      lt_prog_compiler_wl='-Wl,'
7963      if test "$host_cpu" = ia64; then
7964        # AIX 5 now supports IA64 processor
7965        lt_prog_compiler_static='-Bstatic'
7966      else
7967        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7968      fi
7969      ;;
7970      darwin*)
7971        # PIC is the default on this platform
7972        # Common symbols not allowed in MH_DYLIB files
7973       case $cc_basename in
7974         xlc*)
7975         lt_prog_compiler_pic='-qnocommon'
7976         lt_prog_compiler_wl='-Wl,'
7977         ;;
7978       esac
7979       ;;
7980
7981    mingw* | pw32* | os2*)
7982      # This hack is so that the source file can tell whether it is being
7983      # built for inclusion in a dll (and should export symbols for example).
7984      lt_prog_compiler_pic='-DDLL_EXPORT'
7985      ;;
7986
7987    hpux9* | hpux10* | hpux11*)
7988      lt_prog_compiler_wl='-Wl,'
7989      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7990      # not for PA HP-UX.
7991      case $host_cpu in
7992      hppa*64*|ia64*)
7993        # +Z the default
7994        ;;
7995      *)
7996        lt_prog_compiler_pic='+Z'
7997        ;;
7998      esac
7999      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8000      lt_prog_compiler_static='${wl}-a ${wl}archive'
8001      ;;
8002
8003    irix5* | irix6* | nonstopux*)
8004      lt_prog_compiler_wl='-Wl,'
8005      # PIC (with -KPIC) is the default.
8006      lt_prog_compiler_static='-non_shared'
8007      ;;
8008
8009    newsos6)
8010      lt_prog_compiler_pic='-KPIC'
8011      lt_prog_compiler_static='-Bstatic'
8012      ;;
8013
8014    linux*)
8015      case $cc_basename in
8016      icc* | ecc*)
8017        lt_prog_compiler_wl='-Wl,'
8018        lt_prog_compiler_pic='-KPIC'
8019        lt_prog_compiler_static='-static'
8020        ;;
8021      pgcc* | pgf77* | pgf90* | pgf95*)
8022        # Portland Group compilers (*not* the Pentium gcc compiler,
8023        # which looks to be a dead project)
8024        lt_prog_compiler_wl='-Wl,'
8025        lt_prog_compiler_pic='-fpic'
8026        lt_prog_compiler_static='-Bstatic'
8027        ;;
8028      ccc*)
8029        lt_prog_compiler_wl='-Wl,'
8030        # All Alpha code is PIC.
8031        lt_prog_compiler_static='-non_shared'
8032        ;;
8033      esac
8034      ;;
8035
8036    osf3* | osf4* | osf5*)
8037      lt_prog_compiler_wl='-Wl,'
8038      # All OSF/1 code is PIC.
8039      lt_prog_compiler_static='-non_shared'
8040      ;;
8041
8042    solaris*)
8043      lt_prog_compiler_pic='-KPIC'
8044      lt_prog_compiler_static='-Bstatic'
8045      case $cc_basename in
8046      f77* | f90* | f95*)
8047        lt_prog_compiler_wl='-Qoption ld ';;
8048      *)
8049        lt_prog_compiler_wl='-Wl,';;
8050      esac
8051      ;;
8052
8053    sunos4*)
8054      lt_prog_compiler_wl='-Qoption ld '
8055      lt_prog_compiler_pic='-PIC'
8056      lt_prog_compiler_static='-Bstatic'
8057      ;;
8058
8059    sysv4 | sysv4.2uw2* | sysv4.3*)
8060      lt_prog_compiler_wl='-Wl,'
8061      lt_prog_compiler_pic='-KPIC'
8062      lt_prog_compiler_static='-Bstatic'
8063      ;;
8064
8065    sysv4*MP*)
8066      if test -d /usr/nec ;then
8067        lt_prog_compiler_pic='-Kconform_pic'
8068        lt_prog_compiler_static='-Bstatic'
8069      fi
8070      ;;
8071
8072    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8073      lt_prog_compiler_wl='-Wl,'
8074      lt_prog_compiler_pic='-KPIC'
8075      lt_prog_compiler_static='-Bstatic'
8076      ;;
8077
8078    unicos*)
8079      lt_prog_compiler_wl='-Wl,'
8080      lt_prog_compiler_can_build_shared=no
8081      ;;
8082
8083    uts4*)
8084      lt_prog_compiler_pic='-pic'
8085      lt_prog_compiler_static='-Bstatic'
8086      ;;
8087
8088    *)
8089      lt_prog_compiler_can_build_shared=no
8090      ;;
8091    esac
8092  fi
8093
8094echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8095echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8096
8097#
8098# Check to make sure the PIC flag actually works.
8099#
8100if test -n "$lt_prog_compiler_pic"; then
8101
8102echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8103echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8104if test "${lt_prog_compiler_pic_works+set}" = set; then
8105  echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107  lt_prog_compiler_pic_works=no
8108  ac_outfile=conftest.$ac_objext
8109   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8110   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8111   # Insert the option either (1) after the last *FLAGS variable, or
8112   # (2) before a word containing "conftest.", or (3) at the end.
8113   # Note that $ac_compile itself does not contain backslashes and begins
8114   # with a dollar sign (not a hyphen), so the echo should work correctly.
8115   # The option is referenced via a variable to avoid confusing sed.
8116   lt_compile=`echo "$ac_compile" | $SED \
8117   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8118   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8119   -e 's:$: $lt_compiler_flag:'`
8120   (eval echo "\"\$as_me:8120: $lt_compile\"" >&5)
8121   (eval "$lt_compile" 2>conftest.err)
8122   ac_status=$?
8123   cat conftest.err >&5
8124   echo "$as_me:8124: \$? = $ac_status" >&5
8125   if (exit $ac_status) && test -s "$ac_outfile"; then
8126     # The compiler can only warn and ignore the option if not recognized
8127     # So say no if there are warnings other than the usual output.
8128     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8129     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8130     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8131       lt_prog_compiler_pic_works=yes
8132     fi
8133   fi
8134   $rm conftest*
8135
8136fi
8137echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8138echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8139
8140if test x"$lt_prog_compiler_pic_works" = xyes; then
8141    case $lt_prog_compiler_pic in
8142     "" | " "*) ;;
8143     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8144     esac
8145else
8146    lt_prog_compiler_pic=
8147     lt_prog_compiler_can_build_shared=no
8148fi
8149
8150fi
8151case $host_os in
8152  # For platforms which do not support PIC, -DPIC is meaningless:
8153  *djgpp*)
8154    lt_prog_compiler_pic=
8155    ;;
8156  *)
8157    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8158    ;;
8159esac
8160
8161#
8162# Check to make sure the static flag actually works.
8163#
8164wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8165echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8166echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8167if test "${lt_prog_compiler_static_works+set}" = set; then
8168  echo $ECHO_N "(cached) $ECHO_C" >&6
8169else
8170  lt_prog_compiler_static_works=no
8171   save_LDFLAGS="$LDFLAGS"
8172   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8173   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8174   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8175     # The linker can only warn and ignore the option if not recognized
8176     # So say no if there are warnings
8177     if test -s conftest.err; then
8178       # Append any errors to the config.log.
8179       cat conftest.err 1>&5
8180       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8181       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8182       if diff conftest.exp conftest.er2 >/dev/null; then
8183         lt_prog_compiler_static_works=yes
8184       fi
8185     else
8186       lt_prog_compiler_static_works=yes
8187     fi
8188   fi
8189   $rm conftest*
8190   LDFLAGS="$save_LDFLAGS"
8191
8192fi
8193echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8194echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8195
8196if test x"$lt_prog_compiler_static_works" = xyes; then
8197    :
8198else
8199    lt_prog_compiler_static=
8200fi
8201
8202
8203echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8204echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8205if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8206  echo $ECHO_N "(cached) $ECHO_C" >&6
8207else
8208  lt_cv_prog_compiler_c_o=no
8209   $rm -r conftest 2>/dev/null
8210   mkdir conftest
8211   cd conftest
8212   mkdir out
8213   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8214
8215   lt_compiler_flag="-o out/conftest2.$ac_objext"
8216   # Insert the option either (1) after the last *FLAGS variable, or
8217   # (2) before a word containing "conftest.", or (3) at the end.
8218   # Note that $ac_compile itself does not contain backslashes and begins
8219   # with a dollar sign (not a hyphen), so the echo should work correctly.
8220   lt_compile=`echo "$ac_compile" | $SED \
8221   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8222   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8223   -e 's:$: $lt_compiler_flag:'`
8224   (eval echo "\"\$as_me:8224: $lt_compile\"" >&5)
8225   (eval "$lt_compile" 2>out/conftest.err)
8226   ac_status=$?
8227   cat out/conftest.err >&5
8228   echo "$as_me:8228: \$? = $ac_status" >&5
8229   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8230   then
8231     # The compiler can only warn and ignore the option if not recognized
8232     # So say no if there are warnings
8233     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8234     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8235     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8236       lt_cv_prog_compiler_c_o=yes
8237     fi
8238   fi
8239   chmod u+w . 2>&5
8240   $rm conftest*
8241   # SGI C++ compiler will create directory out/ii_files/ for
8242   # template instantiation
8243   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8244   $rm out/* && rmdir out
8245   cd ..
8246   rmdir conftest
8247   $rm conftest*
8248
8249fi
8250echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8251echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8252
8253
8254hard_links="nottested"
8255if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8256  # do not overwrite the value of need_locks provided by the user
8257  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8258echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8259  hard_links=yes
8260  $rm conftest*
8261  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8262  touch conftest.a
8263  ln conftest.a conftest.b 2>&5 || hard_links=no
8264  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8265  echo "$as_me:$LINENO: result: $hard_links" >&5
8266echo "${ECHO_T}$hard_links" >&6
8267  if test "$hard_links" = no; then
8268    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8269echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8270    need_locks=warn
8271  fi
8272else
8273  need_locks=no
8274fi
8275
8276echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8277echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8278
8279  runpath_var=
8280  allow_undefined_flag=
8281  enable_shared_with_static_runtimes=no
8282  archive_cmds=
8283  archive_expsym_cmds=
8284  old_archive_From_new_cmds=
8285  old_archive_from_expsyms_cmds=
8286  export_dynamic_flag_spec=
8287  whole_archive_flag_spec=
8288  thread_safe_flag_spec=
8289  hardcode_libdir_flag_spec=
8290  hardcode_libdir_flag_spec_ld=
8291  hardcode_libdir_separator=
8292  hardcode_direct=no
8293  hardcode_minus_L=no
8294  hardcode_shlibpath_var=unsupported
8295  link_all_deplibs=unknown
8296  hardcode_automatic=no
8297  module_cmds=
8298  module_expsym_cmds=
8299  always_export_symbols=no
8300  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8301  # include_expsyms should be a list of space-separated symbols to be *always*
8302  # included in the symbol list
8303  include_expsyms=
8304  # exclude_expsyms can be an extended regexp of symbols to exclude
8305  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8306  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8307  # as well as any symbol that contains `d'.
8308  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8309  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8310  # platforms (ab)use it in PIC code, but their linkers get confused if
8311  # the symbol is explicitly referenced.  Since portable code cannot
8312  # rely on this symbol name, it's probably fine to never include it in
8313  # preloaded symbol tables.
8314  extract_expsyms_cmds=
8315  # Just being paranoid about ensuring that cc_basename is set.
8316  for cc_temp in $compiler""; do
8317  case $cc_temp in
8318    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8319    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8320    \-*) ;;
8321    *) break;;
8322  esac
8323done
8324cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8325
8326  case $host_os in
8327  cygwin* | mingw* | pw32*)
8328    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8329    # When not using gcc, we currently assume that we are using
8330    # Microsoft Visual C++.
8331    if test "$GCC" != yes; then
8332      with_gnu_ld=no
8333    fi
8334    ;;
8335  interix*)
8336    # we just hope/assume this is gcc and not c89 (= MSVC++)
8337    with_gnu_ld=yes
8338    ;;
8339  openbsd*)
8340    with_gnu_ld=no
8341    ;;
8342  esac
8343
8344  ld_shlibs=yes
8345  if test "$with_gnu_ld" = yes; then
8346    # If archive_cmds runs LD, not CC, wlarc should be empty
8347    wlarc='${wl}'
8348
8349    # Set some defaults for GNU ld with shared library support. These
8350    # are reset later if shared libraries are not supported. Putting them
8351    # here allows them to be overridden if necessary.
8352    runpath_var=LD_RUN_PATH
8353    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8354    export_dynamic_flag_spec='${wl}--export-dynamic'
8355    # ancient GNU ld didn't support --whole-archive et. al.
8356    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8357        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8358      else
8359        whole_archive_flag_spec=
8360    fi
8361    supports_anon_versioning=no
8362    case `$LD -v 2>/dev/null` in
8363      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8364      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8365      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8366      *\ 2.11.*) ;; # other 2.11 versions
8367      *) supports_anon_versioning=yes ;;
8368    esac
8369
8370    # See if GNU ld supports shared libraries.
8371    case $host_os in
8372    aix3* | aix4* | aix5*)
8373      # On AIX/PPC, the GNU linker is very broken
8374      if test "$host_cpu" != ia64; then
8375        ld_shlibs=no
8376        cat <<EOF 1>&2
8377
8378*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8379*** to be unable to reliably create shared libraries on AIX.
8380*** Therefore, libtool is disabling shared libraries support.  If you
8381*** really care for shared libraries, you may want to modify your PATH
8382*** so that a non-GNU linker is found, and then restart.
8383
8384EOF
8385      fi
8386      ;;
8387
8388    amigaos*)
8389      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)'
8390      hardcode_libdir_flag_spec='-L$libdir'
8391      hardcode_minus_L=yes
8392
8393      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8394      # that the semantics of dynamic libraries on AmigaOS, at least up
8395      # to version 4, is to share data among multiple programs linked
8396      # with the same dynamic library.  Since this doesn't match the
8397      # behavior of shared libraries on other platforms, we can't use
8398      # them.
8399      ld_shlibs=no
8400      ;;
8401
8402    beos*)
8403      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8404        allow_undefined_flag=unsupported
8405        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8406        # support --undefined.  This deserves some investigation.  FIXME
8407        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8408      else
8409        ld_shlibs=no
8410      fi
8411      ;;
8412
8413    cygwin* | mingw* | pw32*)
8414      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8415      # as there is no search path for DLLs.
8416      hardcode_libdir_flag_spec='-L$libdir'
8417      allow_undefined_flag=unsupported
8418      always_export_symbols=no
8419      enable_shared_with_static_runtimes=yes
8420      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8421
8422      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8423        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8424        # If the export-symbols file already is a .def file (1st line
8425        # is EXPORTS), use it as is; otherwise, prepend...
8426        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8427          cp $export_symbols $output_objdir/$soname.def;
8428        else
8429          echo EXPORTS > $output_objdir/$soname.def;
8430          cat $export_symbols >> $output_objdir/$soname.def;
8431        fi~
8432        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8433      else
8434        ld_shlibs=no
8435      fi
8436      ;;
8437
8438    interix3*)
8439      hardcode_direct=no
8440      hardcode_shlibpath_var=no
8441      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8442      export_dynamic_flag_spec='${wl}-E'
8443      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8444      # Instead, shared libraries are loaded at an image base (0x10000000 by
8445      # default) and relocated if they conflict, which is a slow very memory
8446      # consuming and fragmenting process.  To avoid this, we pick a random,
8447      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8448      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8449      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8450      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'
8451      ;;
8452
8453    linux*)
8454      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8455        tmp_addflag=
8456        case $cc_basename,$host_cpu in
8457        pgcc*)                          # Portland Group C compiler
8458          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'
8459          tmp_addflag=' $pic_flag'
8460          ;;
8461        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8462          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'
8463          tmp_addflag=' $pic_flag -Mnomain' ;;
8464        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8465          tmp_addflag=' -i_dynamic' ;;
8466        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8467          tmp_addflag=' -i_dynamic -nofor_main' ;;
8468        ifc* | ifort*)                  # Intel Fortran compiler
8469          tmp_addflag=' -nofor_main' ;;
8470        esac
8471        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8472
8473        if test $supports_anon_versioning = yes; then
8474          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8475  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8476  $echo "local: *; };" >> $output_objdir/$libname.ver~
8477          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8478        fi
8479      else
8480        ld_shlibs=no
8481      fi
8482      ;;
8483
8484    netbsd*)
8485      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8486        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8487        wlarc=
8488      else
8489        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8490        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8491      fi
8492      ;;
8493
8494    solaris*)
8495      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8496        ld_shlibs=no
8497        cat <<EOF 1>&2
8498
8499*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8500*** create shared libraries on Solaris systems.  Therefore, libtool
8501*** is disabling shared libraries support.  We urge you to upgrade GNU
8502*** binutils to release 2.9.1 or newer.  Another option is to modify
8503*** your PATH or compiler configuration so that the native linker is
8504*** used, and then restart.
8505
8506EOF
8507      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8508        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8509        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8510      else
8511        ld_shlibs=no
8512      fi
8513      ;;
8514
8515    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8516      case `$LD -v 2>&1` in
8517        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8518        ld_shlibs=no
8519        cat <<_LT_EOF 1>&2
8520
8521*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8522*** reliably create shared libraries on SCO systems.  Therefore, libtool
8523*** is disabling shared libraries support.  We urge you to upgrade GNU
8524*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8525*** your PATH or compiler configuration so that the native linker is
8526*** used, and then restart.
8527
8528_LT_EOF
8529        ;;
8530        *)
8531          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8532            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8533            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8534            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8535          else
8536            ld_shlibs=no
8537          fi
8538        ;;
8539      esac
8540      ;;
8541
8542    sunos4*)
8543      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8544      wlarc=
8545      hardcode_direct=yes
8546      hardcode_shlibpath_var=no
8547      ;;
8548
8549    *)
8550      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8551        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8552        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8553      else
8554        ld_shlibs=no
8555      fi
8556      ;;
8557    esac
8558
8559    if test "$ld_shlibs" = no; then
8560      runpath_var=
8561      hardcode_libdir_flag_spec=
8562      export_dynamic_flag_spec=
8563      whole_archive_flag_spec=
8564    fi
8565  else
8566    # PORTME fill in a description of your system's linker (not GNU ld)
8567    case $host_os in
8568    aix3*)
8569      allow_undefined_flag=unsupported
8570      always_export_symbols=yes
8571      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'
8572      # Note: this linker hardcodes the directories in LIBPATH if there
8573      # are no directories specified by -L.
8574      hardcode_minus_L=yes
8575      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8576        # Neither direct hardcoding nor static linking is supported with a
8577        # broken collect2.
8578        hardcode_direct=unsupported
8579      fi
8580      ;;
8581
8582    aix4* | aix5*)
8583      if test "$host_cpu" = ia64; then
8584        # On IA64, the linker does run time linking by default, so we don't
8585        # have to do anything special.
8586        aix_use_runtimelinking=no
8587        exp_sym_flag='-Bexport'
8588        no_entry_flag=""
8589      else
8590        # If we're using GNU nm, then we don't want the "-C" option.
8591        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8592        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8593          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'
8594        else
8595          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'
8596        fi
8597        aix_use_runtimelinking=no
8598
8599        # Test if we are trying to use run time linking or normal
8600        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8601        # need to do runtime linking.
8602        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8603          for ld_flag in $LDFLAGS; do
8604          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8605            aix_use_runtimelinking=yes
8606            break
8607          fi
8608          done
8609          ;;
8610        esac
8611
8612        exp_sym_flag='-bexport'
8613        no_entry_flag='-bnoentry'
8614      fi
8615
8616      # When large executables or shared objects are built, AIX ld can
8617      # have problems creating the table of contents.  If linking a library
8618      # or program results in "error TOC overflow" add -mminimal-toc to
8619      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8620      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8621
8622      archive_cmds=''
8623      hardcode_direct=yes
8624      hardcode_libdir_separator=':'
8625      link_all_deplibs=yes
8626
8627      if test "$GCC" = yes; then
8628        case $host_os in aix4.[012]|aix4.[012].*)
8629        # We only want to do this on AIX 4.2 and lower, the check
8630        # below for broken collect2 doesn't work under 4.3+
8631          collect2name=`${CC} -print-prog-name=collect2`
8632          if test -f "$collect2name" && \
8633           strings "$collect2name" | grep resolve_lib_name >/dev/null
8634          then
8635          # We have reworked collect2
8636          hardcode_direct=yes
8637          else
8638          # We have old collect2
8639          hardcode_direct=unsupported
8640          # It fails to find uninstalled libraries when the uninstalled
8641          # path is not listed in the libpath.  Setting hardcode_minus_L
8642          # to unsupported forces relinking
8643          hardcode_minus_L=yes
8644          hardcode_libdir_flag_spec='-L$libdir'
8645          hardcode_libdir_separator=
8646          fi
8647          ;;
8648        esac
8649        shared_flag='-shared'
8650        if test "$aix_use_runtimelinking" = yes; then
8651          shared_flag="$shared_flag "'${wl}-G'
8652        fi
8653      else
8654        # not using gcc
8655        if test "$host_cpu" = ia64; then
8656        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8657        # chokes on -Wl,-G. The following line is correct:
8658          shared_flag='-G'
8659        else
8660          if test "$aix_use_runtimelinking" = yes; then
8661            shared_flag='${wl}-G'
8662          else
8663            shared_flag='${wl}-bM:SRE'
8664          fi
8665        fi
8666      fi
8667
8668      # It seems that -bexpall does not export symbols beginning with
8669      # underscore (_), so it is better to generate a list of symbols to export.
8670      always_export_symbols=yes
8671      if test "$aix_use_runtimelinking" = yes; then
8672        # Warning - without using the other runtime loading flags (-brtl),
8673        # -berok will link without error, but may produce a broken library.
8674        allow_undefined_flag='-berok'
8675       # Determine the default libpath from the value encoded in an empty executable.
8676       cat >conftest.$ac_ext <<_ACEOF
8677/* confdefs.h.  */
8678_ACEOF
8679cat confdefs.h >>conftest.$ac_ext
8680cat >>conftest.$ac_ext <<_ACEOF
8681/* end confdefs.h.  */
8682
8683int
8684main ()
8685{
8686
8687  ;
8688  return 0;
8689}
8690_ACEOF
8691rm -f conftest.$ac_objext conftest$ac_exeext
8692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8693  (eval $ac_link) 2>conftest.er1
8694  ac_status=$?
8695  grep -v '^ *+' conftest.er1 >conftest.err
8696  rm -f conftest.er1
8697  cat conftest.err >&5
8698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699  (exit $ac_status); } &&
8700         { ac_try='test -z "$ac_c_werror_flag"
8701                         || test ! -s conftest.err'
8702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703  (eval $ac_try) 2>&5
8704  ac_status=$?
8705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706  (exit $ac_status); }; } &&
8707         { ac_try='test -s conftest$ac_exeext'
8708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709  (eval $ac_try) 2>&5
8710  ac_status=$?
8711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712  (exit $ac_status); }; }; then
8713
8714aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8715}'`
8716# Check for a 64-bit object if we didn't find anything.
8717if 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; }
8718}'`; fi
8719else
8720  echo "$as_me: failed program was:" >&5
8721sed 's/^/| /' conftest.$ac_ext >&5
8722
8723fi
8724rm -f conftest.err conftest.$ac_objext \
8725      conftest$ac_exeext conftest.$ac_ext
8726if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8727
8728       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8729        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"
8730       else
8731        if test "$host_cpu" = ia64; then
8732          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8733          allow_undefined_flag="-z nodefs"
8734          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"
8735        else
8736         # Determine the default libpath from the value encoded in an empty executable.
8737         cat >conftest.$ac_ext <<_ACEOF
8738/* confdefs.h.  */
8739_ACEOF
8740cat confdefs.h >>conftest.$ac_ext
8741cat >>conftest.$ac_ext <<_ACEOF
8742/* end confdefs.h.  */
8743
8744int
8745main ()
8746{
8747
8748  ;
8749  return 0;
8750}
8751_ACEOF
8752rm -f conftest.$ac_objext conftest$ac_exeext
8753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8754  (eval $ac_link) 2>conftest.er1
8755  ac_status=$?
8756  grep -v '^ *+' conftest.er1 >conftest.err
8757  rm -f conftest.er1
8758  cat conftest.err >&5
8759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760  (exit $ac_status); } &&
8761         { ac_try='test -z "$ac_c_werror_flag"
8762                         || test ! -s conftest.err'
8763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764  (eval $ac_try) 2>&5
8765  ac_status=$?
8766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767  (exit $ac_status); }; } &&
8768         { ac_try='test -s conftest$ac_exeext'
8769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770  (eval $ac_try) 2>&5
8771  ac_status=$?
8772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773  (exit $ac_status); }; }; then
8774
8775aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8776}'`
8777# Check for a 64-bit object if we didn't find anything.
8778if 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; }
8779}'`; fi
8780else
8781  echo "$as_me: failed program was:" >&5
8782sed 's/^/| /' conftest.$ac_ext >&5
8783
8784fi
8785rm -f conftest.err conftest.$ac_objext \
8786      conftest$ac_exeext conftest.$ac_ext
8787if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8788
8789         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8790          # Warning - without using the other run time loading flags,
8791          # -berok will link without error, but may produce a broken library.
8792          no_undefined_flag=' ${wl}-bernotok'
8793          allow_undefined_flag=' ${wl}-berok'
8794          # Exported symbols can be pulled into shared objects from archives
8795          whole_archive_flag_spec='$convenience'
8796          archive_cmds_need_lc=yes
8797          # This is similar to how AIX traditionally builds its shared libraries.
8798          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'
8799        fi
8800      fi
8801      ;;
8802
8803    amigaos*)
8804      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)'
8805      hardcode_libdir_flag_spec='-L$libdir'
8806      hardcode_minus_L=yes
8807      # see comment about different semantics on the GNU ld section
8808      ld_shlibs=no
8809      ;;
8810
8811    bsdi[45]*)
8812      export_dynamic_flag_spec=-rdynamic
8813      ;;
8814
8815    cygwin* | mingw* | pw32*)
8816      # When not using gcc, we currently assume that we are using
8817      # Microsoft Visual C++.
8818      # hardcode_libdir_flag_spec is actually meaningless, as there is
8819      # no search path for DLLs.
8820      hardcode_libdir_flag_spec=' '
8821      allow_undefined_flag=unsupported
8822      # Tell ltmain to make .lib files, not .a files.
8823      libext=lib
8824      # Tell ltmain to make .dll files, not .so files.
8825      shrext_cmds=".dll"
8826      # FIXME: Setting linknames here is a bad hack.
8827      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8828      # The linker will automatically build a .lib file if we build a DLL.
8829      old_archive_From_new_cmds='true'
8830      # FIXME: Should let the user specify the lib program.
8831      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8832      fix_srcfile_path='`cygpath -w "$srcfile"`'
8833      enable_shared_with_static_runtimes=yes
8834      ;;
8835
8836    darwin* | rhapsody*)
8837      case $host_os in
8838        rhapsody* | darwin1.[012])
8839         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8840         ;;
8841       *) # Darwin 1.3 on
8842         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8843           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8844         else
8845           case ${MACOSX_DEPLOYMENT_TARGET} in
8846             10.[012])
8847               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8848               ;;
8849             10.*)
8850               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8851               ;;
8852           esac
8853         fi
8854         ;;
8855      esac
8856      archive_cmds_need_lc=no
8857      hardcode_direct=no
8858      hardcode_automatic=yes
8859      hardcode_shlibpath_var=unsupported
8860      whole_archive_flag_spec=''
8861      link_all_deplibs=yes
8862    if test "$GCC" = yes ; then
8863        output_verbose_link_cmd='echo'
8864        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8865      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8866      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8867      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}'
8868      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}'
8869    else
8870      case $cc_basename in
8871        xlc*)
8872         output_verbose_link_cmd='echo'
8873         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8874         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8875          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8876         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}'
8877          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}'
8878          ;;
8879       *)
8880         ld_shlibs=no
8881          ;;
8882      esac
8883    fi
8884      ;;
8885
8886    dgux*)
8887      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8888      hardcode_libdir_flag_spec='-L$libdir'
8889      hardcode_shlibpath_var=no
8890      ;;
8891
8892    freebsd1*)
8893      ld_shlibs=no
8894      ;;
8895
8896    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8897    # support.  Future versions do this automatically, but an explicit c++rt0.o
8898    # does not break anything, and helps significantly (at the cost of a little
8899    # extra space).
8900    freebsd2.2*)
8901      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8902      hardcode_libdir_flag_spec='-R$libdir'
8903      hardcode_direct=yes
8904      hardcode_shlibpath_var=no
8905      ;;
8906
8907    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8908    freebsd2*)
8909      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8910      hardcode_direct=yes
8911      hardcode_minus_L=yes
8912      hardcode_shlibpath_var=no
8913      ;;
8914
8915    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8916    freebsd* | kfreebsd*-gnu | dragonfly*)
8917      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8918      hardcode_libdir_flag_spec='-R$libdir'
8919      hardcode_direct=yes
8920      hardcode_shlibpath_var=no
8921      ;;
8922
8923    hpux9*)
8924      if test "$GCC" = yes; then
8925        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'
8926      else
8927        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'
8928      fi
8929      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8930      hardcode_libdir_separator=:
8931      hardcode_direct=yes
8932
8933      # hardcode_minus_L: Not really in the search PATH,
8934      # but as the default location of the library.
8935      hardcode_minus_L=yes
8936      export_dynamic_flag_spec='${wl}-E'
8937      ;;
8938
8939    hpux10*)
8940      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8941        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8942      else
8943        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8944      fi
8945      if test "$with_gnu_ld" = no; then
8946        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8947        hardcode_libdir_separator=:
8948
8949        hardcode_direct=yes
8950        export_dynamic_flag_spec='${wl}-E'
8951
8952        # hardcode_minus_L: Not really in the search PATH,
8953        # but as the default location of the library.
8954        hardcode_minus_L=yes
8955      fi
8956      ;;
8957
8958    hpux11*)
8959      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8960        case $host_cpu in
8961        hppa*64*)
8962          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8963          ;;
8964        ia64*)
8965          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8966          ;;
8967        *)
8968          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8969          ;;
8970        esac
8971      else
8972        case $host_cpu in
8973        hppa*64*)
8974          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8975          ;;
8976        ia64*)
8977          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8978          ;;
8979        *)
8980          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8981          ;;
8982        esac
8983      fi
8984      if test "$with_gnu_ld" = no; then
8985        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8986        hardcode_libdir_separator=:
8987
8988        case $host_cpu in
8989        hppa*64*|ia64*)
8990          hardcode_libdir_flag_spec_ld='+b $libdir'
8991          hardcode_direct=no
8992          hardcode_shlibpath_var=no
8993          ;;
8994        *)
8995          hardcode_direct=yes
8996          export_dynamic_flag_spec='${wl}-E'
8997
8998          # hardcode_minus_L: Not really in the search PATH,
8999          # but as the default location of the library.
9000          hardcode_minus_L=yes
9001          ;;
9002        esac
9003      fi
9004      ;;
9005
9006    irix5* | irix6* | nonstopux*)
9007      if test "$GCC" = yes; then
9008        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'
9009      else
9010        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'
9011        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9012      fi
9013      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9014      hardcode_libdir_separator=:
9015      link_all_deplibs=yes
9016      ;;
9017
9018    netbsd*)
9019      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9020        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9021      else
9022        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9023      fi
9024      hardcode_libdir_flag_spec='-R$libdir'
9025      hardcode_direct=yes
9026      hardcode_shlibpath_var=no
9027      ;;
9028
9029    newsos6)
9030      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9031      hardcode_direct=yes
9032      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9033      hardcode_libdir_separator=:
9034      hardcode_shlibpath_var=no
9035      ;;
9036
9037    openbsd*)
9038      hardcode_direct=yes
9039      hardcode_shlibpath_var=no
9040      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9041        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9042        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9043        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9044        export_dynamic_flag_spec='${wl}-E'
9045      else
9046       case $host_os in
9047         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9048           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9049           hardcode_libdir_flag_spec='-R$libdir'
9050           ;;
9051         *)
9052           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9053           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9054           ;;
9055       esac
9056      fi
9057      ;;
9058
9059    os2*)
9060      hardcode_libdir_flag_spec='-L$libdir'
9061      hardcode_minus_L=yes
9062      allow_undefined_flag=unsupported
9063      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'
9064      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9065      ;;
9066
9067    osf3*)
9068      if test "$GCC" = yes; then
9069        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9070        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'
9071      else
9072        allow_undefined_flag=' -expect_unresolved \*'
9073        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'
9074      fi
9075      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9076      hardcode_libdir_separator=:
9077      ;;
9078
9079    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9080      if test "$GCC" = yes; then
9081        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9082        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'
9083        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9084      else
9085        allow_undefined_flag=' -expect_unresolved \*'
9086        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'
9087        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9088        $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'
9089
9090        # Both c and cxx compiler support -rpath directly
9091        hardcode_libdir_flag_spec='-rpath $libdir'
9092      fi
9093      hardcode_libdir_separator=:
9094      ;;
9095
9096    solaris*)
9097      no_undefined_flag=' -z text'
9098      if test "$GCC" = yes; then
9099        wlarc='${wl}'
9100        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9101        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9102          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9103      else
9104        wlarc=''
9105        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9106        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9107        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9108      fi
9109      hardcode_libdir_flag_spec='-R$libdir'
9110      hardcode_shlibpath_var=no
9111      case $host_os in
9112      solaris2.[0-5] | solaris2.[0-5].*) ;;
9113      *)
9114        # The compiler driver will combine linker options so we
9115        # cannot just pass the convience library names through
9116        # without $wl, iff we do not link with $LD.
9117        # Luckily, gcc supports the same syntax we need for Sun Studio.
9118        # Supported since Solaris 2.6 (maybe 2.5.1?)
9119        case $wlarc in
9120        '')
9121          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9122        *)
9123          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' ;;
9124        esac ;;
9125      esac
9126      link_all_deplibs=yes
9127      ;;
9128
9129    sunos4*)
9130      if test "x$host_vendor" = xsequent; then
9131        # Use $CC to link under sequent, because it throws in some extra .o
9132        # files that make .init and .fini sections work.
9133        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9134      else
9135        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9136      fi
9137      hardcode_libdir_flag_spec='-L$libdir'
9138      hardcode_direct=yes
9139      hardcode_minus_L=yes
9140      hardcode_shlibpath_var=no
9141      ;;
9142
9143    sysv4)
9144      case $host_vendor in
9145        sni)
9146          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147          hardcode_direct=yes # is this really true???
9148        ;;
9149        siemens)
9150          ## LD is ld it makes a PLAMLIB
9151          ## CC just makes a GrossModule.
9152          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9153          reload_cmds='$CC -r -o $output$reload_objs'
9154          hardcode_direct=no
9155        ;;
9156        motorola)
9157          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9158          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9159        ;;
9160      esac
9161      runpath_var='LD_RUN_PATH'
9162      hardcode_shlibpath_var=no
9163      ;;
9164
9165    sysv4.3*)
9166      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9167      hardcode_shlibpath_var=no
9168      export_dynamic_flag_spec='-Bexport'
9169      ;;
9170
9171    sysv4*MP*)
9172      if test -d /usr/nec; then
9173        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174        hardcode_shlibpath_var=no
9175        runpath_var=LD_RUN_PATH
9176        hardcode_runpath_var=yes
9177        ld_shlibs=yes
9178      fi
9179      ;;
9180
9181    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9182      no_undefined_flag='${wl}-z,text'
9183      archive_cmds_need_lc=no
9184      hardcode_shlibpath_var=no
9185      runpath_var='LD_RUN_PATH'
9186
9187      if test "$GCC" = yes; then
9188        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9189        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9190      else
9191        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9192        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9193      fi
9194      ;;
9195
9196    sysv5* | sco3.2v5* | sco5v6*)
9197      # Note: We can NOT use -z defs as we might desire, because we do not
9198      # link with -lc, and that would cause any symbols used from libc to
9199      # always be unresolved, which means just about no library would
9200      # ever link correctly.  If we're not using GNU ld we use -z text
9201      # though, which does catch some bad symbols but isn't as heavy-handed
9202      # as -z defs.
9203      no_undefined_flag='${wl}-z,text'
9204      allow_undefined_flag='${wl}-z,nodefs'
9205      archive_cmds_need_lc=no
9206      hardcode_shlibpath_var=no
9207      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9208      hardcode_libdir_separator=':'
9209      link_all_deplibs=yes
9210      export_dynamic_flag_spec='${wl}-Bexport'
9211      runpath_var='LD_RUN_PATH'
9212
9213      if test "$GCC" = yes; then
9214        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9215        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9216      else
9217        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9218        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9219      fi
9220      ;;
9221
9222    uts4*)
9223      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9224      hardcode_libdir_flag_spec='-L$libdir'
9225      hardcode_shlibpath_var=no
9226      ;;
9227
9228    *)
9229      ld_shlibs=no
9230      ;;
9231    esac
9232  fi
9233
9234echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9235echo "${ECHO_T}$ld_shlibs" >&6
9236test "$ld_shlibs" = no && can_build_shared=no
9237
9238#
9239# Do we need to explicitly link libc?
9240#
9241case "x$archive_cmds_need_lc" in
9242x|xyes)
9243  # Assume -lc should be added
9244  archive_cmds_need_lc=yes
9245
9246  if test "$enable_shared" = yes && test "$GCC" = yes; then
9247    case $archive_cmds in
9248    *'~'*)
9249      # FIXME: we may have to deal with multi-command sequences.
9250      ;;
9251    '$CC '*)
9252      # Test whether the compiler implicitly links with -lc since on some
9253      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9254      # to ld, don't add -lc before -lgcc.
9255      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9256echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9257      $rm conftest*
9258      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9259
9260      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9261  (eval $ac_compile) 2>&5
9262  ac_status=$?
9263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264  (exit $ac_status); } 2>conftest.err; then
9265        soname=conftest
9266        lib=conftest
9267        libobjs=conftest.$ac_objext
9268        deplibs=
9269        wl=$lt_prog_compiler_wl
9270        pic_flag=$lt_prog_compiler_pic
9271        compiler_flags=-v
9272        linker_flags=-v
9273        verstring=
9274        output_objdir=.
9275        libname=conftest
9276        lt_save_allow_undefined_flag=$allow_undefined_flag
9277        allow_undefined_flag=
9278        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9279  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9280  ac_status=$?
9281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282  (exit $ac_status); }
9283        then
9284          archive_cmds_need_lc=no
9285        else
9286          archive_cmds_need_lc=yes
9287        fi
9288        allow_undefined_flag=$lt_save_allow_undefined_flag
9289      else
9290        cat conftest.err 1>&5
9291      fi
9292      $rm conftest*
9293      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9294echo "${ECHO_T}$archive_cmds_need_lc" >&6
9295      ;;
9296    esac
9297  fi
9298  ;;
9299esac
9300
9301echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9302echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9303library_names_spec=
9304libname_spec='lib$name'
9305soname_spec=
9306shrext_cmds=".so"
9307postinstall_cmds=
9308postuninstall_cmds=
9309finish_cmds=
9310finish_eval=
9311shlibpath_var=
9312shlibpath_overrides_runpath=unknown
9313version_type=none
9314dynamic_linker="$host_os ld.so"
9315sys_lib_dlsearch_path_spec="/lib /usr/lib"
9316if test "$GCC" = yes; then
9317  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9318  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9319    # if the path contains ";" then we assume it to be the separator
9320    # otherwise default to the standard path separator (i.e. ":") - it is
9321    # assumed that no part of a normal pathname contains ";" but that should
9322    # okay in the real world where ";" in dirpaths is itself problematic.
9323    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9324  else
9325    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9326  fi
9327else
9328  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9329fi
9330need_lib_prefix=unknown
9331hardcode_into_libs=no
9332
9333# when you set need_version to no, make sure it does not cause -set_version
9334# flags to be left without arguments
9335need_version=unknown
9336
9337case $host_os in
9338aix3*)
9339  version_type=linux
9340  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9341  shlibpath_var=LIBPATH
9342
9343  # AIX 3 has no versioning support, so we append a major version to the name.
9344  soname_spec='${libname}${release}${shared_ext}$major'
9345  ;;
9346
9347aix4* | aix5*)
9348  version_type=linux
9349  need_lib_prefix=no
9350  need_version=no
9351  hardcode_into_libs=yes
9352  if test "$host_cpu" = ia64; then
9353    # AIX 5 supports IA64
9354    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9355    shlibpath_var=LD_LIBRARY_PATH
9356  else
9357    # With GCC up to 2.95.x, collect2 would create an import file
9358    # for dependence libraries.  The import file would start with
9359    # the line `#! .'.  This would cause the generated library to
9360    # depend on `.', always an invalid library.  This was fixed in
9361    # development snapshots of GCC prior to 3.0.
9362    case $host_os in
9363      aix4 | aix4.[01] | aix4.[01].*)
9364      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9365           echo ' yes '
9366           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9367        :
9368      else
9369        can_build_shared=no
9370      fi
9371      ;;
9372    esac
9373    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9374    # soname into executable. Probably we can add versioning support to
9375    # collect2, so additional links can be useful in future.
9376    if test "$aix_use_runtimelinking" = yes; then
9377      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9378      # instead of lib<name>.a to let people know that these are not
9379      # typical AIX shared libraries.
9380      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381    else
9382      # We preserve .a as extension for shared libraries through AIX4.2
9383      # and later when we are not doing run time linking.
9384      library_names_spec='${libname}${release}.a $libname.a'
9385      soname_spec='${libname}${release}${shared_ext}$major'
9386    fi
9387    shlibpath_var=LIBPATH
9388  fi
9389  ;;
9390
9391amigaos*)
9392  library_names_spec='$libname.ixlibrary $libname.a'
9393  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9394  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'
9395  ;;
9396
9397beos*)
9398  library_names_spec='${libname}${shared_ext}'
9399  dynamic_linker="$host_os ld.so"
9400  shlibpath_var=LIBRARY_PATH
9401  ;;
9402
9403bsdi[45]*)
9404  version_type=linux
9405  need_version=no
9406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407  soname_spec='${libname}${release}${shared_ext}$major'
9408  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9409  shlibpath_var=LD_LIBRARY_PATH
9410  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9411  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9412  # the default ld.so.conf also contains /usr/contrib/lib and
9413  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9414  # libtool to hard-code these into programs
9415  ;;
9416
9417cygwin* | mingw* | pw32*)
9418  version_type=windows
9419  shrext_cmds=".dll"
9420  need_version=no
9421  need_lib_prefix=no
9422
9423  case $GCC,$host_os in
9424  yes,cygwin* | yes,mingw* | yes,pw32*)
9425    library_names_spec='$libname.dll.a'
9426    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9427    postinstall_cmds='base_file=`basename \${file}`~
9428      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9429      dldir=$destdir/`dirname \$dlpath`~
9430      test -d \$dldir || mkdir -p \$dldir~
9431      $install_prog $dir/$dlname \$dldir/$dlname~
9432      chmod a+x \$dldir/$dlname'
9433    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9434      dlpath=$dir/\$dldll~
9435       $rm \$dlpath'
9436    shlibpath_overrides_runpath=yes
9437
9438    case $host_os in
9439    cygwin*)
9440      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9441      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9442      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9443      ;;
9444    mingw*)
9445      # MinGW DLLs use traditional 'lib' prefix
9446      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9447      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9448      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9449        # It is most probably a Windows format PATH printed by
9450        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9451        # path with ; separators, and with drive letters. We can handle the
9452        # drive letters (cygwin fileutils understands them), so leave them,
9453        # especially as we might pass files found there to a mingw objdump,
9454        # which wouldn't understand a cygwinified path. Ahh.
9455        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9456      else
9457        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9458      fi
9459      ;;
9460    pw32*)
9461      # pw32 DLLs use 'pw' prefix rather than 'lib'
9462      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9463      ;;
9464    esac
9465    ;;
9466
9467  *)
9468    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9469    ;;
9470  esac
9471  dynamic_linker='Win32 ld.exe'
9472  # FIXME: first we should search . and the directory the executable is in
9473  shlibpath_var=PATH
9474  ;;
9475
9476darwin* | rhapsody*)
9477  dynamic_linker="$host_os dyld"
9478  version_type=darwin
9479  need_lib_prefix=no
9480  need_version=no
9481  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9482  soname_spec='${libname}${release}${major}$shared_ext'
9483  shlibpath_overrides_runpath=yes
9484  shlibpath_var=DYLD_LIBRARY_PATH
9485  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9486  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9487  if test "$GCC" = yes; then
9488    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"`
9489  else
9490    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9491  fi
9492  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9493  ;;
9494
9495dgux*)
9496  version_type=linux
9497  need_lib_prefix=no
9498  need_version=no
9499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9500  soname_spec='${libname}${release}${shared_ext}$major'
9501  shlibpath_var=LD_LIBRARY_PATH
9502  ;;
9503
9504freebsd1*)
9505  dynamic_linker=no
9506  ;;
9507
9508kfreebsd*-gnu)
9509  version_type=linux
9510  need_lib_prefix=no
9511  need_version=no
9512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9513  soname_spec='${libname}${release}${shared_ext}$major'
9514  shlibpath_var=LD_LIBRARY_PATH
9515  shlibpath_overrides_runpath=no
9516  hardcode_into_libs=yes
9517  dynamic_linker='GNU ld.so'
9518  ;;
9519
9520freebsd* | dragonfly*)
9521  # DragonFly does not have aout.  When/if they implement a new
9522  # versioning mechanism, adjust this.
9523  if test -x /usr/bin/objformat; then
9524    objformat=`/usr/bin/objformat`
9525  else
9526    case $host_os in
9527    freebsd[123]*) objformat=aout ;;
9528    *) objformat=elf ;;
9529    esac
9530  fi
9531  version_type=freebsd-$objformat
9532  case $version_type in
9533    freebsd-elf*)
9534      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9535      need_version=no
9536      need_lib_prefix=no
9537      ;;
9538    freebsd-*)
9539      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9540      need_version=yes
9541      ;;
9542  esac
9543  shlibpath_var=LD_LIBRARY_PATH
9544  case $host_os in
9545  freebsd2*)
9546    shlibpath_overrides_runpath=yes
9547    ;;
9548  freebsd3.[01]* | freebsdelf3.[01]*)
9549    shlibpath_overrides_runpath=yes
9550    hardcode_into_libs=yes
9551    ;;
9552  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9553  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9554    shlibpath_overrides_runpath=no
9555    hardcode_into_libs=yes
9556    ;;
9557  freebsd*) # from 4.6 on
9558    shlibpath_overrides_runpath=yes
9559    hardcode_into_libs=yes
9560    ;;
9561  esac
9562  ;;
9563
9564gnu*)
9565  version_type=linux
9566  need_lib_prefix=no
9567  need_version=no
9568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9569  soname_spec='${libname}${release}${shared_ext}$major'
9570  shlibpath_var=LD_LIBRARY_PATH
9571  hardcode_into_libs=yes
9572  ;;
9573
9574hpux9* | hpux10* | hpux11*)
9575  # Give a soname corresponding to the major version so that dld.sl refuses to
9576  # link against other versions.
9577  version_type=sunos
9578  need_lib_prefix=no
9579  need_version=no
9580  case $host_cpu in
9581  ia64*)
9582    shrext_cmds='.so'
9583    hardcode_into_libs=yes
9584    dynamic_linker="$host_os dld.so"
9585    shlibpath_var=LD_LIBRARY_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    if test "X$HPUX_IA64_MODE" = X32; then
9590      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9591    else
9592      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9593    fi
9594    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9595    ;;
9596   hppa*64*)
9597     shrext_cmds='.sl'
9598     hardcode_into_libs=yes
9599     dynamic_linker="$host_os dld.sl"
9600     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9601     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603     soname_spec='${libname}${release}${shared_ext}$major'
9604     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9605     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9606     ;;
9607   *)
9608    shrext_cmds='.sl'
9609    dynamic_linker="$host_os dld.sl"
9610    shlibpath_var=SHLIB_PATH
9611    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9612    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613    soname_spec='${libname}${release}${shared_ext}$major'
9614    ;;
9615  esac
9616  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9617  postinstall_cmds='chmod 555 $lib'
9618  ;;
9619
9620interix3*)
9621  version_type=linux
9622  need_lib_prefix=no
9623  need_version=no
9624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9625  soname_spec='${libname}${release}${shared_ext}$major'
9626  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9627  shlibpath_var=LD_LIBRARY_PATH
9628  shlibpath_overrides_runpath=no
9629  hardcode_into_libs=yes
9630  ;;
9631
9632irix5* | irix6* | nonstopux*)
9633  case $host_os in
9634    nonstopux*) version_type=nonstopux ;;
9635    *)
9636        if test "$lt_cv_prog_gnu_ld" = yes; then
9637                version_type=linux
9638        else
9639                version_type=irix
9640        fi ;;
9641  esac
9642  need_lib_prefix=no
9643  need_version=no
9644  soname_spec='${libname}${release}${shared_ext}$major'
9645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9646  case $host_os in
9647  irix5* | nonstopux*)
9648    libsuff= shlibsuff=
9649    ;;
9650  *)
9651    case $LD in # libtool.m4 will add one of these switches to LD
9652    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9653      libsuff= shlibsuff= libmagic=32-bit;;
9654    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9655      libsuff=32 shlibsuff=N32 libmagic=N32;;
9656    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9657      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9658    *) libsuff= shlibsuff= libmagic=never-match;;
9659    esac
9660    ;;
9661  esac
9662  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9663  shlibpath_overrides_runpath=no
9664  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9665  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9666  hardcode_into_libs=yes
9667  ;;
9668
9669# No shared lib support for Linux oldld, aout, or coff.
9670linux*oldld* | linux*aout* | linux*coff*)
9671  dynamic_linker=no
9672  ;;
9673
9674# This must be Linux ELF.
9675linux*)
9676  version_type=linux
9677  need_lib_prefix=no
9678  need_version=no
9679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680  soname_spec='${libname}${release}${shared_ext}$major'
9681  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9682  shlibpath_var=LD_LIBRARY_PATH
9683  shlibpath_overrides_runpath=no
9684  # This implies no fast_install, which is unacceptable.
9685  # Some rework will be needed to allow for fast_install
9686  # before this can be enabled.
9687  hardcode_into_libs=yes
9688
9689  # Append ld.so.conf contents to the search path
9690  if test -f /etc/ld.so.conf; then
9691    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' ' '`
9692    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9693  fi
9694
9695  # We used to test for /lib/ld.so.1 and disable shared libraries on
9696  # powerpc, because MkLinux only supported shared libraries with the
9697  # GNU dynamic linker.  Since this was broken with cross compilers,
9698  # most powerpc-linux boxes support dynamic linking these days and
9699  # people can always --disable-shared, the test was removed, and we
9700  # assume the GNU/Linux dynamic linker is in use.
9701  dynamic_linker='GNU/Linux ld.so'
9702  ;;
9703
9704knetbsd*-gnu)
9705  version_type=linux
9706  need_lib_prefix=no
9707  need_version=no
9708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9709  soname_spec='${libname}${release}${shared_ext}$major'
9710  shlibpath_var=LD_LIBRARY_PATH
9711  shlibpath_overrides_runpath=no
9712  hardcode_into_libs=yes
9713  dynamic_linker='GNU ld.so'
9714  ;;
9715
9716netbsd*)
9717  version_type=sunos
9718  need_lib_prefix=no
9719  need_version=no
9720  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9721    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9722    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9723    dynamic_linker='NetBSD (a.out) ld.so'
9724  else
9725    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9726    soname_spec='${libname}${release}${shared_ext}$major'
9727    dynamic_linker='NetBSD ld.elf_so'
9728  fi
9729  shlibpath_var=LD_LIBRARY_PATH
9730  shlibpath_overrides_runpath=yes
9731  hardcode_into_libs=yes
9732  ;;
9733
9734newsos6)
9735  version_type=linux
9736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737  shlibpath_var=LD_LIBRARY_PATH
9738  shlibpath_overrides_runpath=yes
9739  ;;
9740
9741nto-qnx*)
9742  version_type=linux
9743  need_lib_prefix=no
9744  need_version=no
9745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746  soname_spec='${libname}${release}${shared_ext}$major'
9747  shlibpath_var=LD_LIBRARY_PATH
9748  shlibpath_overrides_runpath=yes
9749  ;;
9750
9751openbsd*)
9752  version_type=sunos
9753  sys_lib_dlsearch_path_spec="/usr/lib"
9754  need_lib_prefix=no
9755  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9756  case $host_os in
9757    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9758    *)                         need_version=no  ;;
9759  esac
9760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9761  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9762  shlibpath_var=LD_LIBRARY_PATH
9763  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9764    case $host_os in
9765      openbsd2.[89] | openbsd2.[89].*)
9766        shlibpath_overrides_runpath=no
9767        ;;
9768      *)
9769        shlibpath_overrides_runpath=yes
9770        ;;
9771      esac
9772  else
9773    shlibpath_overrides_runpath=yes
9774  fi
9775  ;;
9776
9777os2*)
9778  libname_spec='$name'
9779  shrext_cmds=".dll"
9780  need_lib_prefix=no
9781  library_names_spec='$libname${shared_ext} $libname.a'
9782  dynamic_linker='OS/2 ld.exe'
9783  shlibpath_var=LIBPATH
9784  ;;
9785
9786osf3* | osf4* | osf5*)
9787  version_type=osf
9788  need_lib_prefix=no
9789  need_version=no
9790  soname_spec='${libname}${release}${shared_ext}$major'
9791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9792  shlibpath_var=LD_LIBRARY_PATH
9793  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9794  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9795  ;;
9796
9797solaris*)
9798  version_type=linux
9799  need_lib_prefix=no
9800  need_version=no
9801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802  soname_spec='${libname}${release}${shared_ext}$major'
9803  shlibpath_var=LD_LIBRARY_PATH
9804  shlibpath_overrides_runpath=yes
9805  hardcode_into_libs=yes
9806  # ldd complains unless libraries are executable
9807  postinstall_cmds='chmod +x $lib'
9808  ;;
9809
9810sunos4*)
9811  version_type=sunos
9812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9813  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9814  shlibpath_var=LD_LIBRARY_PATH
9815  shlibpath_overrides_runpath=yes
9816  if test "$with_gnu_ld" = yes; then
9817    need_lib_prefix=no
9818  fi
9819  need_version=yes
9820  ;;
9821
9822sysv4 | sysv4.3*)
9823  version_type=linux
9824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9825  soname_spec='${libname}${release}${shared_ext}$major'
9826  shlibpath_var=LD_LIBRARY_PATH
9827  case $host_vendor in
9828    sni)
9829      shlibpath_overrides_runpath=no
9830      need_lib_prefix=no
9831      export_dynamic_flag_spec='${wl}-Blargedynsym'
9832      runpath_var=LD_RUN_PATH
9833      ;;
9834    siemens)
9835      need_lib_prefix=no
9836      ;;
9837    motorola)
9838      need_lib_prefix=no
9839      need_version=no
9840      shlibpath_overrides_runpath=no
9841      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9842      ;;
9843  esac
9844  ;;
9845
9846sysv4*MP*)
9847  if test -d /usr/nec ;then
9848    version_type=linux
9849    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9850    soname_spec='$libname${shared_ext}.$major'
9851    shlibpath_var=LD_LIBRARY_PATH
9852  fi
9853  ;;
9854
9855sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9856  version_type=freebsd-elf
9857  need_lib_prefix=no
9858  need_version=no
9859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9860  soname_spec='${libname}${release}${shared_ext}$major'
9861  shlibpath_var=LD_LIBRARY_PATH
9862  hardcode_into_libs=yes
9863  if test "$with_gnu_ld" = yes; then
9864    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9865    shlibpath_overrides_runpath=no
9866  else
9867    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9868    shlibpath_overrides_runpath=yes
9869    case $host_os in
9870      sco3.2v5*)
9871        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9872        ;;
9873    esac
9874  fi
9875  sys_lib_dlsearch_path_spec='/usr/lib'
9876  ;;
9877
9878uts4*)
9879  version_type=linux
9880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9881  soname_spec='${libname}${release}${shared_ext}$major'
9882  shlibpath_var=LD_LIBRARY_PATH
9883  ;;
9884
9885*)
9886  dynamic_linker=no
9887  ;;
9888esac
9889echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9890echo "${ECHO_T}$dynamic_linker" >&6
9891test "$dynamic_linker" = no && can_build_shared=no
9892
9893variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9894if test "$GCC" = yes; then
9895  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9896fi
9897
9898echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9899echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9900hardcode_action=
9901if test -n "$hardcode_libdir_flag_spec" || \
9902   test -n "$runpath_var" || \
9903   test "X$hardcode_automatic" = "Xyes" ; then
9904
9905  # We can hardcode non-existant directories.
9906  if test "$hardcode_direct" != no &&
9907     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9908     # have to relink, otherwise we might link with an installed library
9909     # when we should be linking with a yet-to-be-installed one
9910     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9911     test "$hardcode_minus_L" != no; then
9912    # Linking always hardcodes the temporary library directory.
9913    hardcode_action=relink
9914  else
9915    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9916    hardcode_action=immediate
9917  fi
9918else
9919  # We cannot hardcode anything, or else we can only hardcode existing
9920  # directories.
9921  hardcode_action=unsupported
9922fi
9923echo "$as_me:$LINENO: result: $hardcode_action" >&5
9924echo "${ECHO_T}$hardcode_action" >&6
9925
9926if test "$hardcode_action" = relink; then
9927  # Fast installation is not supported
9928  enable_fast_install=no
9929elif test "$shlibpath_overrides_runpath" = yes ||
9930     test "$enable_shared" = no; then
9931  # Fast installation is not necessary
9932  enable_fast_install=needless
9933fi
9934
9935striplib=
9936old_striplib=
9937echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9938echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9939if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9940  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9941  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9942  echo "$as_me:$LINENO: result: yes" >&5
9943echo "${ECHO_T}yes" >&6
9944else
9945# FIXME - insert some real tests, host_os isn't really good enough
9946  case $host_os in
9947   darwin*)
9948       if test -n "$STRIP" ; then
9949         striplib="$STRIP -x"
9950         echo "$as_me:$LINENO: result: yes" >&5
9951echo "${ECHO_T}yes" >&6
9952       else
9953  echo "$as_me:$LINENO: result: no" >&5
9954echo "${ECHO_T}no" >&6
9955fi
9956       ;;
9957   *)
9958  echo "$as_me:$LINENO: result: no" >&5
9959echo "${ECHO_T}no" >&6
9960    ;;
9961  esac
9962fi
9963
9964if test "x$enable_dlopen" != xyes; then
9965  enable_dlopen=unknown
9966  enable_dlopen_self=unknown
9967  enable_dlopen_self_static=unknown
9968else
9969  lt_cv_dlopen=no
9970  lt_cv_dlopen_libs=
9971
9972  case $host_os in
9973  beos*)
9974    lt_cv_dlopen="load_add_on"
9975    lt_cv_dlopen_libs=
9976    lt_cv_dlopen_self=yes
9977    ;;
9978
9979  mingw* | pw32*)
9980    lt_cv_dlopen="LoadLibrary"
9981    lt_cv_dlopen_libs=
9982   ;;
9983
9984  cygwin*)
9985    lt_cv_dlopen="dlopen"
9986    lt_cv_dlopen_libs=
9987   ;;
9988
9989  darwin*)
9990  # if libdl is installed we need to link against it
9991    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9992echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9993if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9994  echo $ECHO_N "(cached) $ECHO_C" >&6
9995else
9996  ac_check_lib_save_LIBS=$LIBS
9997LIBS="-ldl  $LIBS"
9998cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h.  */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h.  */
10004
10005/* Override any gcc2 internal prototype to avoid an error.  */
10006#ifdef __cplusplus
10007extern "C"
10008#endif
10009/* We use char because int might match the return type of a gcc2
10010   builtin and then its argument prototype would still apply.  */
10011char dlopen ();
10012int
10013main ()
10014{
10015dlopen ();
10016  ;
10017  return 0;
10018}
10019_ACEOF
10020rm -f conftest.$ac_objext conftest$ac_exeext
10021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022  (eval $ac_link) 2>conftest.er1
10023  ac_status=$?
10024  grep -v '^ *+' conftest.er1 >conftest.err
10025  rm -f conftest.er1
10026  cat conftest.err >&5
10027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028  (exit $ac_status); } &&
10029         { ac_try='test -z "$ac_c_werror_flag"
10030                         || test ! -s conftest.err'
10031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032  (eval $ac_try) 2>&5
10033  ac_status=$?
10034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035  (exit $ac_status); }; } &&
10036         { ac_try='test -s conftest$ac_exeext'
10037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038  (eval $ac_try) 2>&5
10039  ac_status=$?
10040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041  (exit $ac_status); }; }; then
10042  ac_cv_lib_dl_dlopen=yes
10043else
10044  echo "$as_me: failed program was:" >&5
10045sed 's/^/| /' conftest.$ac_ext >&5
10046
10047ac_cv_lib_dl_dlopen=no
10048fi
10049rm -f conftest.err conftest.$ac_objext \
10050      conftest$ac_exeext conftest.$ac_ext
10051LIBS=$ac_check_lib_save_LIBS
10052fi
10053echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10054echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10055if test $ac_cv_lib_dl_dlopen = yes; then
10056  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10057else
10058
10059    lt_cv_dlopen="dyld"
10060    lt_cv_dlopen_libs=
10061    lt_cv_dlopen_self=yes
10062
10063fi
10064
10065   ;;
10066
10067  *)
10068    echo "$as_me:$LINENO: checking for shl_load" >&5
10069echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10070if test "${ac_cv_func_shl_load+set}" = set; then
10071  echo $ECHO_N "(cached) $ECHO_C" >&6
10072else
10073  cat >conftest.$ac_ext <<_ACEOF
10074/* confdefs.h.  */
10075_ACEOF
10076cat confdefs.h >>conftest.$ac_ext
10077cat >>conftest.$ac_ext <<_ACEOF
10078/* end confdefs.h.  */
10079/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10080   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10081#define shl_load innocuous_shl_load
10082
10083/* System header to define __stub macros and hopefully few prototypes,
10084    which can conflict with char shl_load (); below.
10085    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10086    <limits.h> exists even on freestanding compilers.  */
10087
10088#ifdef __STDC__
10089# include <limits.h>
10090#else
10091# include <assert.h>
10092#endif
10093
10094#undef shl_load
10095
10096/* Override any gcc2 internal prototype to avoid an error.  */
10097#ifdef __cplusplus
10098extern "C"
10099{
10100#endif
10101/* We use char because int might match the return type of a gcc2
10102   builtin and then its argument prototype would still apply.  */
10103char shl_load ();
10104/* The GNU C library defines this for functions which it implements
10105    to always fail with ENOSYS.  Some functions are actually named
10106    something starting with __ and the normal name is an alias.  */
10107#if defined (__stub_shl_load) || defined (__stub___shl_load)
10108choke me
10109#else
10110char (*f) () = shl_load;
10111#endif
10112#ifdef __cplusplus
10113}
10114#endif
10115
10116int
10117main ()
10118{
10119return f != shl_load;
10120  ;
10121  return 0;
10122}
10123_ACEOF
10124rm -f conftest.$ac_objext conftest$ac_exeext
10125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10126  (eval $ac_link) 2>conftest.er1
10127  ac_status=$?
10128  grep -v '^ *+' conftest.er1 >conftest.err
10129  rm -f conftest.er1
10130  cat conftest.err >&5
10131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132  (exit $ac_status); } &&
10133         { ac_try='test -z "$ac_c_werror_flag"
10134                         || test ! -s conftest.err'
10135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136  (eval $ac_try) 2>&5
10137  ac_status=$?
10138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139  (exit $ac_status); }; } &&
10140         { ac_try='test -s conftest$ac_exeext'
10141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142  (eval $ac_try) 2>&5
10143  ac_status=$?
10144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145  (exit $ac_status); }; }; then
10146  ac_cv_func_shl_load=yes
10147else
10148  echo "$as_me: failed program was:" >&5
10149sed 's/^/| /' conftest.$ac_ext >&5
10150
10151ac_cv_func_shl_load=no
10152fi
10153rm -f conftest.err conftest.$ac_objext \
10154      conftest$ac_exeext conftest.$ac_ext
10155fi
10156echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10157echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10158if test $ac_cv_func_shl_load = yes; then
10159  lt_cv_dlopen="shl_load"
10160else
10161  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10162echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10163if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10164  echo $ECHO_N "(cached) $ECHO_C" >&6
10165else
10166  ac_check_lib_save_LIBS=$LIBS
10167LIBS="-ldld  $LIBS"
10168cat >conftest.$ac_ext <<_ACEOF
10169/* confdefs.h.  */
10170_ACEOF
10171cat confdefs.h >>conftest.$ac_ext
10172cat >>conftest.$ac_ext <<_ACEOF
10173/* end confdefs.h.  */
10174
10175/* Override any gcc2 internal prototype to avoid an error.  */
10176#ifdef __cplusplus
10177extern "C"
10178#endif
10179/* We use char because int might match the return type of a gcc2
10180   builtin and then its argument prototype would still apply.  */
10181char shl_load ();
10182int
10183main ()
10184{
10185shl_load ();
10186  ;
10187  return 0;
10188}
10189_ACEOF
10190rm -f conftest.$ac_objext conftest$ac_exeext
10191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10192  (eval $ac_link) 2>conftest.er1
10193  ac_status=$?
10194  grep -v '^ *+' conftest.er1 >conftest.err
10195  rm -f conftest.er1
10196  cat conftest.err >&5
10197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198  (exit $ac_status); } &&
10199         { ac_try='test -z "$ac_c_werror_flag"
10200                         || test ! -s conftest.err'
10201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202  (eval $ac_try) 2>&5
10203  ac_status=$?
10204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205  (exit $ac_status); }; } &&
10206         { ac_try='test -s conftest$ac_exeext'
10207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208  (eval $ac_try) 2>&5
10209  ac_status=$?
10210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211  (exit $ac_status); }; }; then
10212  ac_cv_lib_dld_shl_load=yes
10213else
10214  echo "$as_me: failed program was:" >&5
10215sed 's/^/| /' conftest.$ac_ext >&5
10216
10217ac_cv_lib_dld_shl_load=no
10218fi
10219rm -f conftest.err conftest.$ac_objext \
10220      conftest$ac_exeext conftest.$ac_ext
10221LIBS=$ac_check_lib_save_LIBS
10222fi
10223echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10224echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10225if test $ac_cv_lib_dld_shl_load = yes; then
10226  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10227else
10228  echo "$as_me:$LINENO: checking for dlopen" >&5
10229echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10230if test "${ac_cv_func_dlopen+set}" = set; then
10231  echo $ECHO_N "(cached) $ECHO_C" >&6
10232else
10233  cat >conftest.$ac_ext <<_ACEOF
10234/* confdefs.h.  */
10235_ACEOF
10236cat confdefs.h >>conftest.$ac_ext
10237cat >>conftest.$ac_ext <<_ACEOF
10238/* end confdefs.h.  */
10239/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10240   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10241#define dlopen innocuous_dlopen
10242
10243/* System header to define __stub macros and hopefully few prototypes,
10244    which can conflict with char dlopen (); below.
10245    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10246    <limits.h> exists even on freestanding compilers.  */
10247
10248#ifdef __STDC__
10249# include <limits.h>
10250#else
10251# include <assert.h>
10252#endif
10253
10254#undef dlopen
10255
10256/* Override any gcc2 internal prototype to avoid an error.  */
10257#ifdef __cplusplus
10258extern "C"
10259{
10260#endif
10261/* We use char because int might match the return type of a gcc2
10262   builtin and then its argument prototype would still apply.  */
10263char dlopen ();
10264/* The GNU C library defines this for functions which it implements
10265    to always fail with ENOSYS.  Some functions are actually named
10266    something starting with __ and the normal name is an alias.  */
10267#if defined (__stub_dlopen) || defined (__stub___dlopen)
10268choke me
10269#else
10270char (*f) () = dlopen;
10271#endif
10272#ifdef __cplusplus
10273}
10274#endif
10275
10276int
10277main ()
10278{
10279return f != dlopen;
10280  ;
10281  return 0;
10282}
10283_ACEOF
10284rm -f conftest.$ac_objext conftest$ac_exeext
10285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286  (eval $ac_link) 2>conftest.er1
10287  ac_status=$?
10288  grep -v '^ *+' conftest.er1 >conftest.err
10289  rm -f conftest.er1
10290  cat conftest.err >&5
10291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292  (exit $ac_status); } &&
10293         { ac_try='test -z "$ac_c_werror_flag"
10294                         || test ! -s conftest.err'
10295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296  (eval $ac_try) 2>&5
10297  ac_status=$?
10298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299  (exit $ac_status); }; } &&
10300         { ac_try='test -s conftest$ac_exeext'
10301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302  (eval $ac_try) 2>&5
10303  ac_status=$?
10304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305  (exit $ac_status); }; }; then
10306  ac_cv_func_dlopen=yes
10307else
10308  echo "$as_me: failed program was:" >&5
10309sed 's/^/| /' conftest.$ac_ext >&5
10310
10311ac_cv_func_dlopen=no
10312fi
10313rm -f conftest.err conftest.$ac_objext \
10314      conftest$ac_exeext conftest.$ac_ext
10315fi
10316echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10317echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10318if test $ac_cv_func_dlopen = yes; then
10319  lt_cv_dlopen="dlopen"
10320else
10321  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10322echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10323if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10324  echo $ECHO_N "(cached) $ECHO_C" >&6
10325else
10326  ac_check_lib_save_LIBS=$LIBS
10327LIBS="-ldl  $LIBS"
10328cat >conftest.$ac_ext <<_ACEOF
10329/* confdefs.h.  */
10330_ACEOF
10331cat confdefs.h >>conftest.$ac_ext
10332cat >>conftest.$ac_ext <<_ACEOF
10333/* end confdefs.h.  */
10334
10335/* Override any gcc2 internal prototype to avoid an error.  */
10336#ifdef __cplusplus
10337extern "C"
10338#endif
10339/* We use char because int might match the return type of a gcc2
10340   builtin and then its argument prototype would still apply.  */
10341char dlopen ();
10342int
10343main ()
10344{
10345dlopen ();
10346  ;
10347  return 0;
10348}
10349_ACEOF
10350rm -f conftest.$ac_objext conftest$ac_exeext
10351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10352  (eval $ac_link) 2>conftest.er1
10353  ac_status=$?
10354  grep -v '^ *+' conftest.er1 >conftest.err
10355  rm -f conftest.er1
10356  cat conftest.err >&5
10357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358  (exit $ac_status); } &&
10359         { ac_try='test -z "$ac_c_werror_flag"
10360                         || test ! -s conftest.err'
10361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362  (eval $ac_try) 2>&5
10363  ac_status=$?
10364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365  (exit $ac_status); }; } &&
10366         { ac_try='test -s conftest$ac_exeext'
10367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368  (eval $ac_try) 2>&5
10369  ac_status=$?
10370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371  (exit $ac_status); }; }; then
10372  ac_cv_lib_dl_dlopen=yes
10373else
10374  echo "$as_me: failed program was:" >&5
10375sed 's/^/| /' conftest.$ac_ext >&5
10376
10377ac_cv_lib_dl_dlopen=no
10378fi
10379rm -f conftest.err conftest.$ac_objext \
10380      conftest$ac_exeext conftest.$ac_ext
10381LIBS=$ac_check_lib_save_LIBS
10382fi
10383echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10384echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10385if test $ac_cv_lib_dl_dlopen = yes; then
10386  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10387else
10388  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10389echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10390if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10391  echo $ECHO_N "(cached) $ECHO_C" >&6
10392else
10393  ac_check_lib_save_LIBS=$LIBS
10394LIBS="-lsvld  $LIBS"
10395cat >conftest.$ac_ext <<_ACEOF
10396/* confdefs.h.  */
10397_ACEOF
10398cat confdefs.h >>conftest.$ac_ext
10399cat >>conftest.$ac_ext <<_ACEOF
10400/* end confdefs.h.  */
10401
10402/* Override any gcc2 internal prototype to avoid an error.  */
10403#ifdef __cplusplus
10404extern "C"
10405#endif
10406/* We use char because int might match the return type of a gcc2
10407   builtin and then its argument prototype would still apply.  */
10408char dlopen ();
10409int
10410main ()
10411{
10412dlopen ();
10413  ;
10414  return 0;
10415}
10416_ACEOF
10417rm -f conftest.$ac_objext conftest$ac_exeext
10418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10419  (eval $ac_link) 2>conftest.er1
10420  ac_status=$?
10421  grep -v '^ *+' conftest.er1 >conftest.err
10422  rm -f conftest.er1
10423  cat conftest.err >&5
10424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425  (exit $ac_status); } &&
10426         { ac_try='test -z "$ac_c_werror_flag"
10427                         || test ! -s conftest.err'
10428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429  (eval $ac_try) 2>&5
10430  ac_status=$?
10431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432  (exit $ac_status); }; } &&
10433         { ac_try='test -s conftest$ac_exeext'
10434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435  (eval $ac_try) 2>&5
10436  ac_status=$?
10437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438  (exit $ac_status); }; }; then
10439  ac_cv_lib_svld_dlopen=yes
10440else
10441  echo "$as_me: failed program was:" >&5
10442sed 's/^/| /' conftest.$ac_ext >&5
10443
10444ac_cv_lib_svld_dlopen=no
10445fi
10446rm -f conftest.err conftest.$ac_objext \
10447      conftest$ac_exeext conftest.$ac_ext
10448LIBS=$ac_check_lib_save_LIBS
10449fi
10450echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10451echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10452if test $ac_cv_lib_svld_dlopen = yes; then
10453  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10454else
10455  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10456echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10457if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10458  echo $ECHO_N "(cached) $ECHO_C" >&6
10459else
10460  ac_check_lib_save_LIBS=$LIBS
10461LIBS="-ldld  $LIBS"
10462cat >conftest.$ac_ext <<_ACEOF
10463/* confdefs.h.  */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h.  */
10468
10469/* Override any gcc2 internal prototype to avoid an error.  */
10470#ifdef __cplusplus
10471extern "C"
10472#endif
10473/* We use char because int might match the return type of a gcc2
10474   builtin and then its argument prototype would still apply.  */
10475char dld_link ();
10476int
10477main ()
10478{
10479dld_link ();
10480  ;
10481  return 0;
10482}
10483_ACEOF
10484rm -f conftest.$ac_objext conftest$ac_exeext
10485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10486  (eval $ac_link) 2>conftest.er1
10487  ac_status=$?
10488  grep -v '^ *+' conftest.er1 >conftest.err
10489  rm -f conftest.er1
10490  cat conftest.err >&5
10491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492  (exit $ac_status); } &&
10493         { ac_try='test -z "$ac_c_werror_flag"
10494                         || test ! -s conftest.err'
10495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496  (eval $ac_try) 2>&5
10497  ac_status=$?
10498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499  (exit $ac_status); }; } &&
10500         { ac_try='test -s conftest$ac_exeext'
10501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502  (eval $ac_try) 2>&5
10503  ac_status=$?
10504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505  (exit $ac_status); }; }; then
10506  ac_cv_lib_dld_dld_link=yes
10507else
10508  echo "$as_me: failed program was:" >&5
10509sed 's/^/| /' conftest.$ac_ext >&5
10510
10511ac_cv_lib_dld_dld_link=no
10512fi
10513rm -f conftest.err conftest.$ac_objext \
10514      conftest$ac_exeext conftest.$ac_ext
10515LIBS=$ac_check_lib_save_LIBS
10516fi
10517echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10518echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10519if test $ac_cv_lib_dld_dld_link = yes; then
10520  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10521fi
10522
10523
10524fi
10525
10526
10527fi
10528
10529
10530fi
10531
10532
10533fi
10534
10535
10536fi
10537
10538    ;;
10539  esac
10540
10541  if test "x$lt_cv_dlopen" != xno; then
10542    enable_dlopen=yes
10543  else
10544    enable_dlopen=no
10545  fi
10546
10547  case $lt_cv_dlopen in
10548  dlopen)
10549    save_CPPFLAGS="$CPPFLAGS"
10550    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10551
10552    save_LDFLAGS="$LDFLAGS"
10553    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10554
10555    save_LIBS="$LIBS"
10556    LIBS="$lt_cv_dlopen_libs $LIBS"
10557
10558    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10559echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10560if test "${lt_cv_dlopen_self+set}" = set; then
10561  echo $ECHO_N "(cached) $ECHO_C" >&6
10562else
10563          if test "$cross_compiling" = yes; then :
10564  lt_cv_dlopen_self=cross
10565else
10566  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10567  lt_status=$lt_dlunknown
10568  cat > conftest.$ac_ext <<EOF
10569#line 10569 "configure"
10570#include "confdefs.h"
10571
10572#if HAVE_DLFCN_H
10573#include <dlfcn.h>
10574#endif
10575
10576#include <stdio.h>
10577
10578#ifdef RTLD_GLOBAL
10579#  define LT_DLGLOBAL           RTLD_GLOBAL
10580#else
10581#  ifdef DL_GLOBAL
10582#    define LT_DLGLOBAL         DL_GLOBAL
10583#  else
10584#    define LT_DLGLOBAL         0
10585#  endif
10586#endif
10587
10588/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10589   find out it does not work in some platform. */
10590#ifndef LT_DLLAZY_OR_NOW
10591#  ifdef RTLD_LAZY
10592#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10593#  else
10594#    ifdef DL_LAZY
10595#      define LT_DLLAZY_OR_NOW          DL_LAZY
10596#    else
10597#      ifdef RTLD_NOW
10598#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10599#      else
10600#        ifdef DL_NOW
10601#          define LT_DLLAZY_OR_NOW      DL_NOW
10602#        else
10603#          define LT_DLLAZY_OR_NOW      0
10604#        endif
10605#      endif
10606#    endif
10607#  endif
10608#endif
10609
10610#ifdef __cplusplus
10611extern "C" void exit (int);
10612#endif
10613
10614void fnord() { int i=42;}
10615int main ()
10616{
10617  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10618  int status = $lt_dlunknown;
10619
10620  if (self)
10621    {
10622      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10623      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10624      /* dlclose (self); */
10625    }
10626  else
10627    puts (dlerror ());
10628
10629    exit (status);
10630}
10631EOF
10632  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10633  (eval $ac_link) 2>&5
10634  ac_status=$?
10635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10637    (./conftest; exit; ) >&5 2>/dev/null
10638    lt_status=$?
10639    case x$lt_status in
10640      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10641      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10642      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10643    esac
10644  else :
10645    # compilation failed
10646    lt_cv_dlopen_self=no
10647  fi
10648fi
10649rm -fr conftest*
10650
10651
10652fi
10653echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10654echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10655
10656    if test "x$lt_cv_dlopen_self" = xyes; then
10657      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10658      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10659echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10660if test "${lt_cv_dlopen_self_static+set}" = set; then
10661  echo $ECHO_N "(cached) $ECHO_C" >&6
10662else
10663          if test "$cross_compiling" = yes; then :
10664  lt_cv_dlopen_self_static=cross
10665else
10666  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10667  lt_status=$lt_dlunknown
10668  cat > conftest.$ac_ext <<EOF
10669#line 10669 "configure"
10670#include "confdefs.h"
10671
10672#if HAVE_DLFCN_H
10673#include <dlfcn.h>
10674#endif
10675
10676#include <stdio.h>
10677
10678#ifdef RTLD_GLOBAL
10679#  define LT_DLGLOBAL           RTLD_GLOBAL
10680#else
10681#  ifdef DL_GLOBAL
10682#    define LT_DLGLOBAL         DL_GLOBAL
10683#  else
10684#    define LT_DLGLOBAL         0
10685#  endif
10686#endif
10687
10688/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10689   find out it does not work in some platform. */
10690#ifndef LT_DLLAZY_OR_NOW
10691#  ifdef RTLD_LAZY
10692#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10693#  else
10694#    ifdef DL_LAZY
10695#      define LT_DLLAZY_OR_NOW          DL_LAZY
10696#    else
10697#      ifdef RTLD_NOW
10698#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10699#      else
10700#        ifdef DL_NOW
10701#          define LT_DLLAZY_OR_NOW      DL_NOW
10702#        else
10703#          define LT_DLLAZY_OR_NOW      0
10704#        endif
10705#      endif
10706#    endif
10707#  endif
10708#endif
10709
10710#ifdef __cplusplus
10711extern "C" void exit (int);
10712#endif
10713
10714void fnord() { int i=42;}
10715int main ()
10716{
10717  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10718  int status = $lt_dlunknown;
10719
10720  if (self)
10721    {
10722      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10723      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10724      /* dlclose (self); */
10725    }
10726  else
10727    puts (dlerror ());
10728
10729    exit (status);
10730}
10731EOF
10732  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10733  (eval $ac_link) 2>&5
10734  ac_status=$?
10735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10737    (./conftest; exit; ) >&5 2>/dev/null
10738    lt_status=$?
10739    case x$lt_status in
10740      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10741      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10742      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10743    esac
10744  else :
10745    # compilation failed
10746    lt_cv_dlopen_self_static=no
10747  fi
10748fi
10749rm -fr conftest*
10750
10751
10752fi
10753echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10754echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10755    fi
10756
10757    CPPFLAGS="$save_CPPFLAGS"
10758    LDFLAGS="$save_LDFLAGS"
10759    LIBS="$save_LIBS"
10760    ;;
10761  esac
10762
10763  case $lt_cv_dlopen_self in
10764  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10765  *) enable_dlopen_self=unknown ;;
10766  esac
10767
10768  case $lt_cv_dlopen_self_static in
10769  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10770  *) enable_dlopen_self_static=unknown ;;
10771  esac
10772fi
10773
10774
10775# Report which library types will actually be built
10776echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10777echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10778echo "$as_me:$LINENO: result: $can_build_shared" >&5
10779echo "${ECHO_T}$can_build_shared" >&6
10780
10781echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10782echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10783test "$can_build_shared" = "no" && enable_shared=no
10784
10785# On AIX, shared libraries and static libraries use the same namespace, and
10786# are all built from PIC.
10787case $host_os in
10788aix3*)
10789  test "$enable_shared" = yes && enable_static=no
10790  if test -n "$RANLIB"; then
10791    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10792    postinstall_cmds='$RANLIB $lib'
10793  fi
10794  ;;
10795
10796aix4* | aix5*)
10797  if test "