source: ThirdParty/HSL/trunk/configure @ 801

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

reran autotools

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