source: ThirdParty/HSL/trunk/configure @ 143

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

included latest changes from coin.m4

  • Property svn:executable set to *
File size: 694.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyHSL 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyHSL'
431PACKAGE_TARNAME='thirdpartyhsl'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyHSL 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="configure.ac"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL LT_LDFLAGS RPATH_FLAGS COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyHSL 0.0 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyHSL 0.0:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-hsl compile this project (HSL) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS (default: disabled)
1077  --enable-static[=PKGS]
1078                          build static libraries [default=no]
1079  --disable-dependency-tracking  speeds up one-time build
1080  --enable-dependency-tracking   do not reject slow dependency extractors
1081  --enable-maintainer-mode  enable make rules and dependencies not useful
1082                          (and sometimes confusing) to the casual installer
1083  --enable-shared[=PKGS]
1084                          build shared libraries [default=yes]
1085  --enable-fast-install[=PKGS]
1086                          optimize for fast installation [default=yes]
1087  --disable-libtool-lock  avoid locking (might break parallel builds)
1088
1089Optional Packages:
1090  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1091  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1092  --with-hsl-verbosity specify the debug verbosity level for project HSL
1093  --with-hsl-checklevel specify the sanity check level for project HSL
1094  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1095  --with-pic              try to use only PIC/non-PIC objects [default=use
1096                          both]
1097  --with-tags[=TAGS]
1098                          include additional configurations [automatic]
1099
1100Some influential environment variables:
1101  CDEFS       Additional -D flags to be used when compiling C code.
1102  ADD_CFLAGS  Additional C compiler options
1103  DBG_CFLAGS  Debug C compiler options
1104  OPT_CFLAGS  Optimize C compiler options
1105  CC          C compiler command
1106  CFLAGS      C compiler flags
1107  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1108              nonstandard directory <lib dir>
1109  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1110              headers in a nonstandard directory <include dir>
1111  MPICC       C MPI Compiler
1112  ADD_FFLAGS  Additional Fortran compiler options
1113  DBG_FFLAGS  Debug Fortran compiler options
1114  OPT_FFLAGS  Optimize Fortran compiler options
1115  F77         Fortran 77 compiler command
1116  FFLAGS      Fortran 77 compiler flags
1117  MPIF77      Fortran MPI Compiler
1118  CPP         C preprocessor
1119  CXX         C++ compiler command
1120  CXXFLAGS    C++ compiler flags
1121  CXXCPP      C++ preprocessor
1122
1123Use these variables to override the choices made by `configure' or to help
1124it to find libraries and programs with nonstandard names/locations.
1125
1126Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1127_ACEOF
1128fi
1129
1130if test "$ac_init_help" = "recursive"; then
1131  # If there are subdirs, report their specific --help.
1132  ac_popdir=`pwd`
1133  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1134    test -d $ac_dir || continue
1135    ac_builddir=.
1136
1137if test "$ac_dir" != .; then
1138  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1139  # A "../" for each directory in $ac_dir_suffix.
1140  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1141else
1142  ac_dir_suffix= ac_top_builddir=
1143fi
1144
1145case $srcdir in
1146  .)  # No --srcdir option.  We are building in place.
1147    ac_srcdir=.
1148    if test -z "$ac_top_builddir"; then
1149       ac_top_srcdir=.
1150    else
1151       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1152    fi ;;
1153  [\\/]* | ?:[\\/]* )  # Absolute path.
1154    ac_srcdir=$srcdir$ac_dir_suffix;
1155    ac_top_srcdir=$srcdir ;;
1156  *) # Relative path.
1157    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1158    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1159esac
1160
1161# Do not use `cd foo && pwd` to compute absolute paths, because
1162# the directories may not exist.
1163case `pwd` in
1164.) ac_abs_builddir="$ac_dir";;
1165*)
1166  case "$ac_dir" in
1167  .) ac_abs_builddir=`pwd`;;
1168  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1169  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1170  esac;;
1171esac
1172case $ac_abs_builddir in
1173.) ac_abs_top_builddir=${ac_top_builddir}.;;
1174*)
1175  case ${ac_top_builddir}. in
1176  .) ac_abs_top_builddir=$ac_abs_builddir;;
1177  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1178  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1179  esac;;
1180esac
1181case $ac_abs_builddir in
1182.) ac_abs_srcdir=$ac_srcdir;;
1183*)
1184  case $ac_srcdir in
1185  .) ac_abs_srcdir=$ac_abs_builddir;;
1186  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1187  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1188  esac;;
1189esac
1190case $ac_abs_builddir in
1191.) ac_abs_top_srcdir=$ac_top_srcdir;;
1192*)
1193  case $ac_top_srcdir in
1194  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1195  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1196  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1197  esac;;
1198esac
1199
1200    cd $ac_dir
1201    # Check for guested configure; otherwise get Cygnus style configure.
1202    if test -f $ac_srcdir/configure.gnu; then
1203      echo
1204      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1205    elif test -f $ac_srcdir/configure; then
1206      echo
1207      $SHELL $ac_srcdir/configure  --help=recursive
1208    elif test -f $ac_srcdir/configure.ac ||
1209           test -f $ac_srcdir/configure.in; then
1210      echo
1211      $ac_configure --help
1212    else
1213      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1214    fi
1215    cd $ac_popdir
1216  done
1217fi
1218
1219test -n "$ac_init_help" && exit 0
1220if $ac_init_version; then
1221  cat <<\_ACEOF
1222ThirdPartyHSL configure 0.0
1223generated by GNU Autoconf 2.59
1224
1225Copyright (C) 2003 Free Software Foundation, Inc.
1226This configure script is free software; the Free Software Foundation
1227gives unlimited permission to copy, distribute and modify it.
1228
1229
1230Copyright 2006 International Business Machines and others.
1231All Rights Reserved.
1232This file is part of the open source package Coin which is distributed
1233under the Common Public License.
1234_ACEOF
1235  exit 0
1236fi
1237exec 5>config.log
1238cat >&5 <<_ACEOF
1239This file contains any messages produced by compilers while
1240running configure, to aid debugging if configure makes a mistake.
1241
1242It was created by ThirdPartyHSL $as_me 0.0, which was
1243generated by GNU Autoconf 2.59.  Invocation command line was
1244
1245  $ $0 $@
1246
1247_ACEOF
1248{
1249cat <<_ASUNAME
1250## --------- ##
1251## Platform. ##
1252## --------- ##
1253
1254hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1255uname -m = `(uname -m) 2>/dev/null || echo unknown`
1256uname -r = `(uname -r) 2>/dev/null || echo unknown`
1257uname -s = `(uname -s) 2>/dev/null || echo unknown`
1258uname -v = `(uname -v) 2>/dev/null || echo unknown`
1259
1260/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1261/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1262
1263/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1264/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1265/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1266hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1267/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1268/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1269/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1270
1271_ASUNAME
1272
1273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274for as_dir in $PATH
1275do
1276  IFS=$as_save_IFS
1277  test -z "$as_dir" && as_dir=.
1278  echo "PATH: $as_dir"
1279done
1280
1281} >&5
1282
1283cat >&5 <<_ACEOF
1284
1285
1286## ----------- ##
1287## Core tests. ##
1288## ----------- ##
1289
1290_ACEOF
1291
1292
1293# Keep a trace of the command line.
1294# Strip out --no-create and --no-recursion so they do not pile up.
1295# Strip out --silent because we don't want to record it for future runs.
1296# Also quote any args containing shell meta-characters.
1297# Make two passes to allow for proper duplicate-argument suppression.
1298ac_configure_args=
1299ac_configure_args0=
1300ac_configure_args1=
1301ac_sep=
1302ac_must_keep_next=false
1303for ac_pass in 1 2
1304do
1305  for ac_arg
1306  do
1307    case $ac_arg in
1308    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1309    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310    | -silent | --silent | --silen | --sile | --sil)
1311      continue ;;
1312    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1314    esac
1315    case $ac_pass in
1316    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1317    2)
1318      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1319      if test $ac_must_keep_next = true; then
1320        ac_must_keep_next=false # Got value, back to normal.
1321      else
1322        case $ac_arg in
1323          *=* | --config-cache | -C | -disable-* | --disable-* \
1324          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1325          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1326          | -with-* | --with-* | -without-* | --without-* | --x)
1327            case "$ac_configure_args0 " in
1328              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1329            esac
1330            ;;
1331          -* ) ac_must_keep_next=true ;;
1332        esac
1333      fi
1334      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1335      # Get rid of the leading space.
1336      ac_sep=" "
1337      ;;
1338    esac
1339  done
1340done
1341$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1342$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1343
1344# When interrupted or exit'd, cleanup temporary files, and complete
1345# config.log.  We remove comments because anyway the quotes in there
1346# would cause problems or look ugly.
1347# WARNING: Be sure not to use single quotes in there, as some shells,
1348# such as our DU 5.0 friend, will then `close' the trap.
1349trap 'exit_status=$?
1350  # Save into config.log some information that might help in debugging.
1351  {
1352    echo
1353
1354    cat <<\_ASBOX
1355## ---------------- ##
1356## Cache variables. ##
1357## ---------------- ##
1358_ASBOX
1359    echo
1360    # The following way of writing the cache mishandles newlines in values,
1361{
1362  (set) 2>&1 |
1363    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1364    *ac_space=\ *)
1365      sed -n \
1366        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1367          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1368      ;;
1369    *)
1370      sed -n \
1371        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1372      ;;
1373    esac;
1374}
1375    echo
1376
1377    cat <<\_ASBOX
1378## ----------------- ##
1379## Output variables. ##
1380## ----------------- ##
1381_ASBOX
1382    echo
1383    for ac_var in $ac_subst_vars
1384    do
1385      eval ac_val=$`echo $ac_var`
1386      echo "$ac_var='"'"'$ac_val'"'"'"
1387    done | sort
1388    echo
1389
1390    if test -n "$ac_subst_files"; then
1391      cat <<\_ASBOX
1392## ------------- ##
1393## Output files. ##
1394## ------------- ##
1395_ASBOX
1396      echo
1397      for ac_var in $ac_subst_files
1398      do
1399        eval ac_val=$`echo $ac_var`
1400        echo "$ac_var='"'"'$ac_val'"'"'"
1401      done | sort
1402      echo
1403    fi
1404
1405    if test -s confdefs.h; then
1406      cat <<\_ASBOX
1407## ----------- ##
1408## confdefs.h. ##
1409## ----------- ##
1410_ASBOX
1411      echo
1412      sed "/^$/d" confdefs.h | sort
1413      echo
1414    fi
1415    test "$ac_signal" != 0 &&
1416      echo "$as_me: caught signal $ac_signal"
1417    echo "$as_me: exit $exit_status"
1418  } >&5
1419  rm -f core *.core &&
1420  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1421    exit $exit_status
1422     ' 0
1423for ac_signal in 1 2 13 15; do
1424  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1425done
1426ac_signal=0
1427
1428# confdefs.h avoids OS command line length limits that DEFS can exceed.
1429rm -rf conftest* confdefs.h
1430# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1431echo >confdefs.h
1432
1433# Predefined preprocessor variables.
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_NAME "$PACKAGE_NAME"
1437_ACEOF
1438
1439
1440cat >>confdefs.h <<_ACEOF
1441#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1442_ACEOF
1443
1444
1445cat >>confdefs.h <<_ACEOF
1446#define PACKAGE_VERSION "$PACKAGE_VERSION"
1447_ACEOF
1448
1449
1450cat >>confdefs.h <<_ACEOF
1451#define PACKAGE_STRING "$PACKAGE_STRING"
1452_ACEOF
1453
1454
1455cat >>confdefs.h <<_ACEOF
1456#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1457_ACEOF
1458
1459
1460# Let the site file select an alternate cache file if it wants to.
1461# Prefer explicitly selected file to automatically selected ones.
1462if test -z "$CONFIG_SITE"; then
1463  if test "x$prefix" != xNONE; then
1464    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1465  else
1466    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1467  fi
1468fi
1469for ac_site_file in $CONFIG_SITE; do
1470  if test -r "$ac_site_file"; then
1471    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1472echo "$as_me: loading site script $ac_site_file" >&6;}
1473    sed 's/^/| /' "$ac_site_file" >&5
1474    . "$ac_site_file"
1475  fi
1476done
1477
1478if test -r "$cache_file"; then
1479  # Some versions of bash will fail to source /dev/null (special
1480  # files actually), so we avoid doing that.
1481  if test -f "$cache_file"; then
1482    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1483echo "$as_me: loading cache $cache_file" >&6;}
1484    case $cache_file in
1485      [\\/]* | ?:[\\/]* ) . $cache_file;;
1486      *)                      . ./$cache_file;;
1487    esac
1488  fi
1489else
1490  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1491echo "$as_me: creating cache $cache_file" >&6;}
1492  >$cache_file
1493fi
1494
1495# Check that the precious variables saved in the cache have kept the same
1496# value.
1497ac_cache_corrupted=false
1498for ac_var in `(set) 2>&1 |
1499               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1500  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1501  eval ac_new_set=\$ac_env_${ac_var}_set
1502  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1503  eval ac_new_val="\$ac_env_${ac_var}_value"
1504  case $ac_old_set,$ac_new_set in
1505    set,)
1506      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1507echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1508      ac_cache_corrupted=: ;;
1509    ,set)
1510      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1511echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1512      ac_cache_corrupted=: ;;
1513    ,);;
1514    *)
1515      if test "x$ac_old_val" != "x$ac_new_val"; then
1516        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1517echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1518        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1519echo "$as_me:   former value:  $ac_old_val" >&2;}
1520        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1521echo "$as_me:   current value: $ac_new_val" >&2;}
1522        ac_cache_corrupted=:
1523      fi;;
1524  esac
1525  # Pass precious variables to config.status.
1526  if test "$ac_new_set" = set; then
1527    case $ac_new_val in
1528    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1529      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1530    *) ac_arg=$ac_var=$ac_new_val ;;
1531    esac
1532    case " $ac_configure_args " in
1533      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1534      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1535    esac
1536  fi
1537done
1538if $ac_cache_corrupted; then
1539  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1540echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1541  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1542echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1543   { (exit 1); exit 1; }; }
1544fi
1545
1546ac_ext=c
1547ac_cpp='$CPP $CPPFLAGS'
1548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1550ac_compiler_gnu=$ac_cv_c_compiler_gnu
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581# List one file in the package so that the configure script can test
1582# whether the package is actually there
1583# Here we don't know yet which files are actually provided...
1584
1585
1586# Where should everything be installed by default?  Here, we want it
1587# to be installed directly in 'bin', 'lib', 'include' subdirectories
1588# of the directory where configure is run.  The default would be
1589# /usr/local.
1590
1591
1592# Initialize the ADDLIBS variable
1593ADDLIBS='-lm'
1594
1595
1596# Initialize the FADDLIBS variable (which is to be used with a fortran
1597# compiler and will not include FLIBS)
1598FADDLIBS=
1599
1600
1601# A useful makefile conditional that is always false
1602
1603
1604if false; then
1605  ALWAYS_FALSE_TRUE=
1606  ALWAYS_FALSE_FALSE='#'
1607else
1608  ALWAYS_FALSE_TRUE='#'
1609  ALWAYS_FALSE_FALSE=
1610fi
1611
1612
1613# We set the following variable so that we know later in AC_COIN_FINALIZE
1614# that we are in a project main directory
1615coin_projectdir=yes
1616
1617
1618#############################################################################
1619#                         Standard build tool stuff                         #
1620#############################################################################
1621
1622# Get the system type
1623ac_aux_dir=
1624for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1625  if test -f $ac_dir/install-sh; then
1626    ac_aux_dir=$ac_dir
1627    ac_install_sh="$ac_aux_dir/install-sh -c"
1628    break
1629  elif test -f $ac_dir/install.sh; then
1630    ac_aux_dir=$ac_dir
1631    ac_install_sh="$ac_aux_dir/install.sh -c"
1632    break
1633  elif test -f $ac_dir/shtool; then
1634    ac_aux_dir=$ac_dir
1635    ac_install_sh="$ac_aux_dir/shtool install -c"
1636    break
1637  fi
1638done
1639if test -z "$ac_aux_dir"; then
1640  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1641echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1642   { (exit 1); exit 1; }; }
1643fi
1644ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1645ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1646ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1647
1648# Make sure we can run config.sub.
1649$ac_config_sub sun4 >/dev/null 2>&1 ||
1650  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1651echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1652   { (exit 1); exit 1; }; }
1653
1654echo "$as_me:$LINENO: checking build system type" >&5
1655echo $ECHO_N "checking build system type... $ECHO_C" >&6
1656if test "${ac_cv_build+set}" = set; then
1657  echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659  ac_cv_build_alias=$build_alias
1660test -z "$ac_cv_build_alias" &&
1661  ac_cv_build_alias=`$ac_config_guess`
1662test -z "$ac_cv_build_alias" &&
1663  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1664echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1665   { (exit 1); exit 1; }; }
1666ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1667  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1668echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1669   { (exit 1); exit 1; }; }
1670
1671fi
1672echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1673echo "${ECHO_T}$ac_cv_build" >&6
1674build=$ac_cv_build
1675build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1676build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1677build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1678
1679
1680
1681# Check if user wants to produce debugging code
1682
1683echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1684echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1685
1686# Check whether --enable-debug or --disable-debug was given.
1687if test "${enable_debug+set}" = set; then
1688  enableval="$enable_debug"
1689  case "${enableval}" in
1690   yes) coin_debug_compile=true
1691        enable_shared=no
1692        ;;
1693   no)  coin_debug_compile=false
1694        ;;
1695   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1696echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1697   { (exit 1); exit 1; }; }
1698        ;;
1699esac
1700else
1701  coin_debug_compile=false
1702fi;
1703
1704# Check whether --enable-debug-hsl or --disable-debug-hsl was given.
1705if test "${enable_debug_hsl+set}" = set; then
1706  enableval="$enable_debug_hsl"
1707  case "${enableval}" in
1708    yes) coin_debug_compile=true
1709         enable_shared=no
1710         ;;
1711    no)  coin_debug_compile=false
1712         ;;
1713    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-hsl" >&5
1714echo "$as_me: error: bad value ${enableval} for --enable-debug-hsl" >&2;}
1715   { (exit 1); exit 1; }; }
1716         ;;
1717 esac
1718else
1719  :
1720fi;
1721
1722 # m4_ifvaln([HSL],
1723
1724if test $coin_debug_compile = true; then
1725  echo "$as_me:$LINENO: result: yes" >&5
1726echo "${ECHO_T}yes" >&6
1727else
1728  echo "$as_me:$LINENO: result: no" >&5
1729echo "${ECHO_T}no" >&6
1730fi
1731
1732
1733# Check whether --with-hsl-verbosity or --without-hsl-verbosity was given.
1734if test "${with_hsl_verbosity+set}" = set; then
1735  withval="$with_hsl_verbosity"
1736  coin_hsl_verbosity=$withval
1737else
1738  coin_hsl_verbosity=0
1739fi;
1740
1741cat >>confdefs.h <<_ACEOF
1742#define COIN_HSL_VERBOSITY $coin_hsl_verbosity
1743_ACEOF
1744
1745
1746
1747# Check whether --with-hsl-checklevel or --without-hsl-checklevel was given.
1748if test "${with_hsl_checklevel+set}" = set; then
1749  withval="$with_hsl_checklevel"
1750  coin_hsl_checklevel=$withval
1751else
1752  coin_hsl_checklevel=0
1753fi;
1754
1755cat >>confdefs.h <<_ACEOF
1756#define COIN_HSL_CHECKLEVEL $coin_hsl_checklevel
1757_ACEOF
1758
1759
1760# We use the following variable to have a string with the upper case
1761# version of the project name
1762COIN_PRJCT=HSL
1763
1764
1765 # m4_ifvaln([HSL],
1766
1767
1768
1769# Get the name of the Fortran compiler and appropriate compiler options
1770case $build in
1771  *-mingw*)
1772    if test "${LD+set}" = set; then :; else
1773      LD=link
1774    fi
1775    ;;
1776esac
1777
1778# Check whether --enable-doscompile or --disable-doscompile was given.
1779if test "${enable_doscompile+set}" = set; then
1780  enableval="$enable_doscompile"
1781  if test "$enable_doscompile = yes"; then
1782  case $build in
1783    *-cygwin*) ;;
1784    *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes only sense under Cygwin" >&5
1785echo "$as_me: error: --enable-doscompile option makes only sense under Cygwin" >&2;}
1786   { (exit 1); exit 1; }; } ;;
1787  esac
1788fi
1789else
1790  enable_doscompile=no
1791fi;
1792
1793
1794
1795
1796ac_ext=c
1797ac_cpp='$CPP $CPPFLAGS'
1798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800ac_compiler_gnu=$ac_cv_c_compiler_gnu
1801
1802
1803# For consistency, we set the C compiler to the same value of the C++
1804# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1805if test x"$CXX" != x; then
1806  case "$CXX" in
1807    cl*)
1808      if test x"$CC" = x; then
1809        CC="$CXX"
1810        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1811echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1812      fi
1813      ;;
1814  esac
1815fi
1816
1817
1818
1819
1820
1821
1822coin_has_cc=yes
1823
1824save_cflags="$CFLAGS"
1825case $build in
1826  *-cygwin* | *-mingw*)
1827             comps="gcc cl" ;;
1828  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1829  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1830esac
1831
1832# We delete the cached value, since the test might not have been
1833# performed with out choise of compilers earlier
1834$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1835ac_ext=c
1836ac_cpp='$CPP $CPPFLAGS'
1837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1839ac_compiler_gnu=$ac_cv_c_compiler_gnu
1840if test -n "$ac_tool_prefix"; then
1841  for ac_prog in $comps
1842  do
1843    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_CC+set}" = set; then
1848  echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850  if test -n "$CC"; then
1851  ac_cv_prog_CC="$CC" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856  IFS=$as_save_IFS
1857  test -z "$as_dir" && as_dir=.
1858  for ac_exec_ext in '' $ac_executable_extensions; do
1859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862    break 2
1863  fi
1864done
1865done
1866
1867fi
1868fi
1869CC=$ac_cv_prog_CC
1870if test -n "$CC"; then
1871  echo "$as_me:$LINENO: result: $CC" >&5
1872echo "${ECHO_T}$CC" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878    test -n "$CC" && break
1879  done
1880fi
1881if test -z "$CC"; then
1882  ac_ct_CC=$CC
1883  for ac_prog in $comps
1884do
1885  # Extract the first word of "$ac_prog", so it can be a program name with args.
1886set dummy $ac_prog; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890  echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892  if test -n "$ac_ct_CC"; then
1893  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898  IFS=$as_save_IFS
1899  test -z "$as_dir" && as_dir=.
1900  for ac_exec_ext in '' $ac_executable_extensions; do
1901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902    ac_cv_prog_ac_ct_CC="$ac_prog"
1903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904    break 2
1905  fi
1906done
1907done
1908
1909fi
1910fi
1911ac_ct_CC=$ac_cv_prog_ac_ct_CC
1912if test -n "$ac_ct_CC"; then
1913  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914echo "${ECHO_T}$ac_ct_CC" >&6
1915else
1916  echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920  test -n "$ac_ct_CC" && break
1921done
1922
1923  CC=$ac_ct_CC
1924fi
1925
1926
1927test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1928See \`config.log' for more details." >&5
1929echo "$as_me: error: no acceptable C compiler found in \$PATH
1930See \`config.log' for more details." >&2;}
1931   { (exit 1); exit 1; }; }
1932
1933# Provide some information about the compiler.
1934echo "$as_me:$LINENO:" \
1935     "checking for C compiler version" >&5
1936ac_compiler=`set X $ac_compile; echo $2`
1937{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1938  (eval $ac_compiler --version </dev/null >&5) 2>&5
1939  ac_status=$?
1940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941  (exit $ac_status); }
1942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1943  (eval $ac_compiler -v </dev/null >&5) 2>&5
1944  ac_status=$?
1945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946  (exit $ac_status); }
1947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1948  (eval $ac_compiler -V </dev/null >&5) 2>&5
1949  ac_status=$?
1950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951  (exit $ac_status); }
1952
1953cat >conftest.$ac_ext <<_ACEOF
1954/* confdefs.h.  */
1955_ACEOF
1956cat confdefs.h >>conftest.$ac_ext
1957cat >>conftest.$ac_ext <<_ACEOF
1958/* end confdefs.h.  */
1959
1960int
1961main ()
1962{
1963
1964  ;
1965  return 0;
1966}
1967_ACEOF
1968ac_clean_files_save=$ac_clean_files
1969ac_clean_files="$ac_clean_files a.out a.exe b.out"
1970# Try to create an executable without -o first, disregard a.out.
1971# It will help us diagnose broken compilers, and finding out an intuition
1972# of exeext.
1973echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1974echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1975ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1976if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1977  (eval $ac_link_default) 2>&5
1978  ac_status=$?
1979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980  (exit $ac_status); }; then
1981  # Find the output, starting from the most likely.  This scheme is
1982# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1983# resort.
1984
1985# Be careful to initialize this variable, since it used to be cached.
1986# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1987ac_cv_exeext=
1988# b.out is created by i960 compilers.
1989for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1990do
1991  test -f "$ac_file" || continue
1992  case $ac_file in
1993    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1994        ;;
1995    conftest.$ac_ext )
1996        # This is the source file.
1997        ;;
1998    [ab].out )
1999        # We found the default executable, but exeext='' is most
2000        # certainly right.
2001        break;;
2002    *.* )
2003        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2004        # FIXME: I believe we export ac_cv_exeext for Libtool,
2005        # but it would be cool to find out if it's true.  Does anybody
2006        # maintain Libtool? --akim.
2007        export ac_cv_exeext
2008        break;;
2009    * )
2010        break;;
2011  esac
2012done
2013else
2014  echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
2016
2017{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2018See \`config.log' for more details." >&5
2019echo "$as_me: error: C compiler cannot create executables
2020See \`config.log' for more details." >&2;}
2021   { (exit 77); exit 77; }; }
2022fi
2023
2024ac_exeext=$ac_cv_exeext
2025echo "$as_me:$LINENO: result: $ac_file" >&5
2026echo "${ECHO_T}$ac_file" >&6
2027
2028# Check the compiler produces executables we can run.  If not, either
2029# the compiler is broken, or we cross compile.
2030echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2031echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2032# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2033# If not cross compiling, check that we can run a simple program.
2034if test "$cross_compiling" != yes; then
2035  if { ac_try='./$ac_file'
2036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037  (eval $ac_try) 2>&5
2038  ac_status=$?
2039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040  (exit $ac_status); }; }; then
2041    cross_compiling=no
2042  else
2043    if test "$cross_compiling" = maybe; then
2044        cross_compiling=yes
2045    else
2046        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2047If you meant to cross compile, use \`--host'.
2048See \`config.log' for more details." >&5
2049echo "$as_me: error: cannot run C compiled programs.
2050If you meant to cross compile, use \`--host'.
2051See \`config.log' for more details." >&2;}
2052   { (exit 1); exit 1; }; }
2053    fi
2054  fi
2055fi
2056echo "$as_me:$LINENO: result: yes" >&5
2057echo "${ECHO_T}yes" >&6
2058
2059rm -f a.out a.exe conftest$ac_cv_exeext b.out
2060ac_clean_files=$ac_clean_files_save
2061# Check the compiler produces executables we can run.  If not, either
2062# the compiler is broken, or we cross compile.
2063echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2064echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2065echo "$as_me:$LINENO: result: $cross_compiling" >&5
2066echo "${ECHO_T}$cross_compiling" >&6
2067
2068echo "$as_me:$LINENO: checking for suffix of executables" >&5
2069echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2071  (eval $ac_link) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }; then
2075  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2076# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2077# work properly (i.e., refer to `conftest.exe'), while it won't with
2078# `rm'.
2079for ac_file in conftest.exe conftest conftest.*; do
2080  test -f "$ac_file" || continue
2081  case $ac_file in
2082    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2083    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2084          export ac_cv_exeext
2085          break;;
2086    * ) break;;
2087  esac
2088done
2089else
2090  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2091See \`config.log' for more details." >&5
2092echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2093See \`config.log' for more details." >&2;}
2094   { (exit 1); exit 1; }; }
2095fi
2096
2097rm -f conftest$ac_cv_exeext
2098echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2099echo "${ECHO_T}$ac_cv_exeext" >&6
2100
2101rm -f conftest.$ac_ext
2102EXEEXT=$ac_cv_exeext
2103ac_exeext=$EXEEXT
2104echo "$as_me:$LINENO: checking for suffix of object files" >&5
2105echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2106if test "${ac_cv_objext+set}" = set; then
2107  echo $ECHO_N "(cached) $ECHO_C" >&6
2108else
2109  cat >conftest.$ac_ext <<_ACEOF
2110/* confdefs.h.  */
2111_ACEOF
2112cat confdefs.h >>conftest.$ac_ext
2113cat >>conftest.$ac_ext <<_ACEOF
2114/* end confdefs.h.  */
2115
2116int
2117main ()
2118{
2119
2120  ;
2121  return 0;
2122}
2123_ACEOF
2124rm -f conftest.o conftest.obj
2125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126  (eval $ac_compile) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }; then
2130  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2131  case $ac_file in
2132    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2133    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2134       break;;
2135  esac
2136done
2137else
2138  echo "$as_me: failed program was:" >&5
2139sed 's/^/| /' conftest.$ac_ext >&5
2140
2141{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2142See \`config.log' for more details." >&5
2143echo "$as_me: error: cannot compute suffix of object files: cannot compile
2144See \`config.log' for more details." >&2;}
2145   { (exit 1); exit 1; }; }
2146fi
2147
2148rm -f conftest.$ac_cv_objext conftest.$ac_ext
2149fi
2150echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2151echo "${ECHO_T}$ac_cv_objext" >&6
2152OBJEXT=$ac_cv_objext
2153ac_objext=$OBJEXT
2154echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2155echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2156if test "${ac_cv_c_compiler_gnu+set}" = set; then
2157  echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159  cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h.  */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h.  */
2165
2166int
2167main ()
2168{
2169#ifndef __GNUC__
2170       choke me
2171#endif
2172
2173  ;
2174  return 0;
2175}
2176_ACEOF
2177rm -f conftest.$ac_objext
2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179  (eval $ac_compile) 2>conftest.er1
2180  ac_status=$?
2181  grep -v '^ *+' conftest.er1 >conftest.err
2182  rm -f conftest.er1
2183  cat conftest.err >&5
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); } &&
2186         { ac_try='test -z "$ac_c_werror_flag"
2187                         || test ! -s conftest.err'
2188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189  (eval $ac_try) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }; } &&
2193         { ac_try='test -s conftest.$ac_objext'
2194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195  (eval $ac_try) 2>&5
2196  ac_status=$?
2197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198  (exit $ac_status); }; }; then
2199  ac_compiler_gnu=yes
2200else
2201  echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204ac_compiler_gnu=no
2205fi
2206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207ac_cv_c_compiler_gnu=$ac_compiler_gnu
2208
2209fi
2210echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212GCC=`test $ac_compiler_gnu = yes && echo yes`
2213ac_test_CFLAGS=${CFLAGS+set}
2214ac_save_CFLAGS=$CFLAGS
2215CFLAGS="-g"
2216echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218if test "${ac_cv_prog_cc_g+set}" = set; then
2219  echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221  cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h.  */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h.  */
2227
2228int
2229main ()
2230{
2231
2232  ;
2233  return 0;
2234}
2235_ACEOF
2236rm -f conftest.$ac_objext
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238  (eval $ac_compile) 2>conftest.er1
2239  ac_status=$?
2240  grep -v '^ *+' conftest.er1 >conftest.err
2241  rm -f conftest.er1
2242  cat conftest.err >&5
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); } &&
2245         { ac_try='test -z "$ac_c_werror_flag"
2246                         || test ! -s conftest.err'
2247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248  (eval $ac_try) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }; } &&
2252         { ac_try='test -s conftest.$ac_objext'
2253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254  (eval $ac_try) 2>&5
2255  ac_status=$?
2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257  (exit $ac_status); }; }; then
2258  ac_cv_prog_cc_g=yes
2259else
2260  echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263ac_cv_prog_cc_g=no
2264fi
2265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269if test "$ac_test_CFLAGS" = set; then
2270  CFLAGS=$ac_save_CFLAGS
2271elif test $ac_cv_prog_cc_g = yes; then
2272  if test "$GCC" = yes; then
2273    CFLAGS="-g -O2"
2274  else
2275    CFLAGS="-g"
2276  fi
2277else
2278  if test "$GCC" = yes; then
2279    CFLAGS="-O2"
2280  else
2281    CFLAGS=
2282  fi
2283fi
2284echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2285echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2286if test "${ac_cv_prog_cc_stdc+set}" = set; then
2287  echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289  ac_cv_prog_cc_stdc=no
2290ac_save_CC=$CC
2291cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h.  */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h.  */
2297#include <stdarg.h>
2298#include <stdio.h>
2299#include <sys/types.h>
2300#include <sys/stat.h>
2301/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2302struct buf { int x; };
2303FILE * (*rcsopen) (struct buf *, struct stat *, int);
2304static char *e (p, i)
2305     char **p;
2306     int i;
2307{
2308  return p[i];
2309}
2310static char *f (char * (*g) (char **, int), char **p, ...)
2311{
2312  char *s;
2313  va_list v;
2314  va_start (v,p);
2315  s = g (p, va_arg (v,int));
2316  va_end (v);
2317  return s;
2318}
2319
2320/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2321   function prototypes and stuff, but not '\xHH' hex character constants.
2322   These don't provoke an error unfortunately, instead are silently treated
2323   as 'x'.  The following induces an error, until -std1 is added to get
2324   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2325   array size at least.  It's necessary to write '\x00'==0 to get something
2326   that's true only with -std1.  */
2327int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2328
2329int test (int i, double x);
2330struct s1 {int (*f) (int a);};
2331struct s2 {int (*f) (double a);};
2332int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2333int argc;
2334char **argv;
2335int
2336main ()
2337{
2338return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2339  ;
2340  return 0;
2341}
2342_ACEOF
2343# Don't try gcc -ansi; that turns off useful extensions and
2344# breaks some systems' header files.
2345# AIX                   -qlanglvl=ansi
2346# Ultrix and OSF/1      -std1
2347# HP-UX 10.20 and later -Ae
2348# HP-UX older versions  -Aa -D_HPUX_SOURCE
2349# SVR4                  -Xc -D__EXTENSIONS__
2350for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2351do
2352  CC="$ac_save_CC $ac_arg"
2353  rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355  (eval $ac_compile) 2>conftest.er1
2356  ac_status=$?
2357  grep -v '^ *+' conftest.er1 >conftest.err
2358  rm -f conftest.er1
2359  cat conftest.err >&5
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); } &&
2362         { ac_try='test -z "$ac_c_werror_flag"
2363                         || test ! -s conftest.err'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; } &&
2369         { ac_try='test -s conftest.$ac_objext'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; }; then
2375  ac_cv_prog_cc_stdc=$ac_arg
2376break
2377else
2378  echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381fi
2382rm -f conftest.err conftest.$ac_objext
2383done
2384rm -f conftest.$ac_ext conftest.$ac_objext
2385CC=$ac_save_CC
2386
2387fi
2388
2389case "x$ac_cv_prog_cc_stdc" in
2390  x|xno)
2391    echo "$as_me:$LINENO: result: none needed" >&5
2392echo "${ECHO_T}none needed" >&6 ;;
2393  *)
2394    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2395echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2396    CC="$CC $ac_cv_prog_cc_stdc" ;;
2397esac
2398
2399# Some people use a C++ compiler to compile C.  Since we use `exit',
2400# in C++ we need to declare it.  In case someone uses the same compiler
2401# for both compiling C and C++ we need to have the C++ compiler decide
2402# the declaration of exit, since it's the most demanding environment.
2403cat >conftest.$ac_ext <<_ACEOF
2404#ifndef __cplusplus
2405  choke me
2406#endif
2407_ACEOF
2408rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>conftest.er1
2411  ac_status=$?
2412  grep -v '^ *+' conftest.er1 >conftest.err
2413  rm -f conftest.er1
2414  cat conftest.err >&5
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); } &&
2417         { ac_try='test -z "$ac_c_werror_flag"
2418                         || test ! -s conftest.err'
2419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420  (eval $ac_try) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }; } &&
2424         { ac_try='test -s conftest.$ac_objext'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; }; then
2430  for ac_declaration in \
2431   '' \
2432   'extern "C" void std::exit (int) throw (); using std::exit;' \
2433   'extern "C" void std::exit (int); using std::exit;' \
2434   'extern "C" void exit (int) throw ();' \
2435   'extern "C" void exit (int);' \
2436   'void exit (int);'
2437do
2438  cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h.  */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h.  */
2444$ac_declaration
2445#include <stdlib.h>
2446int
2447main ()
2448{
2449exit (42);
2450  ;
2451  return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456  (eval $ac_compile) 2>conftest.er1
2457  ac_status=$?
2458  grep -v '^ *+' conftest.er1 >conftest.err
2459  rm -f conftest.er1
2460  cat conftest.err >&5
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); } &&
2463         { ac_try='test -z "$ac_c_werror_flag"
2464                         || test ! -s conftest.err'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; } &&
2470         { ac_try='test -s conftest.$ac_objext'
2471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472  (eval $ac_try) 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }; }; then
2476  :
2477else
2478  echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481continue
2482fi
2483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484  cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h.  */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h.  */
2490$ac_declaration
2491int
2492main ()
2493{
2494exit (42);
2495  ;
2496  return 0;
2497}
2498_ACEOF
2499rm -f conftest.$ac_objext
2500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501  (eval $ac_compile) 2>conftest.er1
2502  ac_status=$?
2503  grep -v '^ *+' conftest.er1 >conftest.err
2504  rm -f conftest.er1
2505  cat conftest.err >&5
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); } &&
2508         { ac_try='test -z "$ac_c_werror_flag"
2509                         || test ! -s conftest.err'
2510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511  (eval $ac_try) 2>&5
2512  ac_status=$?
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); }; } &&
2515         { ac_try='test -s conftest.$ac_objext'
2516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517  (eval $ac_try) 2>&5
2518  ac_status=$?
2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520  (exit $ac_status); }; }; then
2521  break
2522else
2523  echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528done
2529rm -f conftest*
2530if test -n "$ac_declaration"; then
2531  echo '#ifdef __cplusplus' >>confdefs.h
2532  echo $ac_declaration      >>confdefs.h
2533  echo '#endif'             >>confdefs.h
2534fi
2535
2536else
2537  echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540fi
2541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542ac_ext=c
2543ac_cpp='$CPP $CPPFLAGS'
2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548CFLAGS="$save_cflags"
2549
2550# Check if a project specific CFLAGS variable has been set
2551if test x$COIN_PRJCT != x; then
2552  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2553  if test x$coin_tmp = xset; then
2554    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2555  fi
2556fi
2557
2558if test x"$CFLAGS" = x; then
2559
2560  coin_add_cflags=
2561  coin_opt_cflags=
2562  coin_dbg_cflags=
2563  coin_warn_cflags=
2564
2565  if test "$GCC" = "yes"; then
2566    case "$CC" in
2567      icc* | */icc*)
2568        ;;
2569      *)
2570        coin_opt_cflags="-O3 -fomit-frame-pointer"
2571        coin_add_cflags="-pipe"
2572        coin_dbg_cflags="-g"
2573        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2574        if test "$enable_doscompile" = yes; then
2575          case $build in
2576            *-cygwin*)
2577              CFLAGS="-mno-cygwin"
2578              cat >conftest.$ac_ext <<_ACEOF
2579/* confdefs.h.  */
2580_ACEOF
2581cat confdefs.h >>conftest.$ac_ext
2582cat >>conftest.$ac_ext <<_ACEOF
2583/* end confdefs.h.  */
2584
2585int
2586main ()
2587{
2588int i=0; i++;
2589  ;
2590  return 0;
2591}
2592_ACEOF
2593rm -f conftest.$ac_objext conftest$ac_exeext
2594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2595  (eval $ac_link) 2>conftest.er1
2596  ac_status=$?
2597  grep -v '^ *+' conftest.er1 >conftest.err
2598  rm -f conftest.er1
2599  cat conftest.err >&5
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); } &&
2602         { ac_try='test -z "$ac_c_werror_flag"
2603                         || test ! -s conftest.err'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; } &&
2609         { ac_try='test -s conftest$ac_exeext'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; }; then
2615  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2616else
2617  echo "$as_me: failed program was:" >&5
2618sed 's/^/| /' conftest.$ac_ext >&5
2619
2620fi
2621rm -f conftest.err conftest.$ac_objext \
2622      conftest$ac_exeext conftest.$ac_ext
2623              CFLAGS=
2624            ;;
2625          esac
2626        fi
2627    esac
2628  fi
2629  if test -z "$coin_opt_cflags"; then
2630    case $build in
2631      *-cygwin* | *-mingw*)
2632        case "$CC" in
2633          cl* | */cl*)
2634            coin_opt_cflags='-O2'
2635            coin_add_cflags='-nologo'
2636            coin_dbg_cflags='-Yd'
2637            ;;
2638        esac
2639        ;;
2640      *-linux-*)
2641        case "$CC" in
2642          icc* | */icc*)
2643            coin_opt_cflags="-O3 -ip"
2644            coin_add_cflags=""
2645            coin_dbg_cflags="-g"
2646            # Check if -i_dynamic is necessary (for new glibc library)
2647            CFLAGS=
2648            cat >conftest.$ac_ext <<_ACEOF
2649/* confdefs.h.  */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h.  */
2654
2655int
2656main ()
2657{
2658int i=0; i++;
2659  ;
2660  return 0;
2661}
2662_ACEOF
2663rm -f conftest.$ac_objext conftest$ac_exeext
2664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2665  (eval $ac_link) 2>conftest.er1
2666  ac_status=$?
2667  grep -v '^ *+' conftest.er1 >conftest.err
2668  rm -f conftest.er1
2669  cat conftest.err >&5
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); } &&
2672         { ac_try='test -z "$ac_c_werror_flag"
2673                         || test ! -s conftest.err'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; } &&
2679         { ac_try='test -s conftest$ac_exeext'
2680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681  (eval $ac_try) 2>&5
2682  ac_status=$?
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); }; }; then
2685  :
2686else
2687  echo "$as_me: failed program was:" >&5
2688sed 's/^/| /' conftest.$ac_ext >&5
2689
2690coin_add_cflags="-i_dynamic $coin_add_cflags"
2691fi
2692rm -f conftest.err conftest.$ac_objext \
2693      conftest$ac_exeext conftest.$ac_ext
2694            ;;
2695          pgcc* | */pgcc*)
2696            coin_opt_cflags="-fast"
2697            coin_add_cflags="-Kieee -pc 64"
2698            coin_dbg_cflags="-g"
2699            ;;
2700        esac
2701        ;;
2702      *-ibm-*)
2703        case "$CC" in
2704          xlc* | */xlc* | mpxlc* | */mpxlc*)
2705            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2706            coin_add_cflags="-bmaxdata:0x80000000"
2707            coin_dbg_cflags="-g"
2708          ;;
2709        esac
2710        ;;
2711      *-hp-*)
2712        coin_opt_cflags="-O"
2713        coin_add_cflags="-Ae"
2714        coin_dbg_cflags="-g"
2715        ;;
2716      *-sun-*)
2717        coin_opt_cflags="-xO4"
2718        coin_dbg_cflags="-g"
2719        ;;
2720      *-sgi-*)
2721        coin_opt_cflags="-O -OPT:Olimit=0"
2722        coin_dbg_cflags="-g"
2723        ;;
2724    esac
2725  fi
2726
2727  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2728    coin_dbg_cflags="-g"
2729  fi
2730
2731  if test -z "$coin_opt_cflags"; then
2732    # Try if -O option works if nothing else is set
2733    CFLAGS="-O"
2734    cat >conftest.$ac_ext <<_ACEOF
2735/* confdefs.h.  */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h.  */
2740
2741int
2742main ()
2743{
2744int i=0; i++;
2745  ;
2746  return 0;
2747}
2748_ACEOF
2749rm -f conftest.$ac_objext conftest$ac_exeext
2750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2751  (eval $ac_link) 2>conftest.er1
2752  ac_status=$?
2753  grep -v '^ *+' conftest.er1 >conftest.err
2754  rm -f conftest.er1
2755  cat conftest.err >&5
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); } &&
2758         { ac_try='test -z "$ac_c_werror_flag"
2759                         || test ! -s conftest.err'
2760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761  (eval $ac_try) 2>&5
2762  ac_status=$?
2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764  (exit $ac_status); }; } &&
2765         { ac_try='test -s conftest$ac_exeext'
2766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767  (eval $ac_try) 2>&5
2768  ac_status=$?
2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770  (exit $ac_status); }; }; then
2771  coin_opt_cflags="-O"
2772else
2773  echo "$as_me: failed program was:" >&5
2774sed 's/^/| /' conftest.$ac_ext >&5
2775
2776fi
2777rm -f conftest.err conftest.$ac_objext \
2778      conftest$ac_exeext conftest.$ac_ext
2779  fi
2780
2781  # if PM doesn't want the warning messages, take them out
2782  if test x"$coin_skip_warn_cflags" = xyes; then
2783    coin_warn_cflags=
2784  fi
2785
2786  if test x${DBG_CFLAGS+set} != xset; then
2787    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2788  fi
2789  if test x${OPT_CFLAGS+set} != xset; then
2790    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2791  fi
2792
2793  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2794  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2795
2796  if test "$coin_debug_compile" = "true"; then
2797    CFLAGS="$DBG_CFLAGS"
2798  else
2799    CFLAGS="$OPT_CFLAGS"
2800  fi
2801else
2802  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2803  if test x${DBG_CFLAGS+set} != xset; then
2804    DBG_CFLAGS="$CFLAGS"
2805  fi
2806  if test x${OPT_CFLAGS+set} != xset; then
2807    OPT_CFLAGS="$CFLAGS"
2808  fi
2809fi
2810
2811# Check if user wants to have additional CFLAGS options
2812
2813if test x"$ADD_CFLAGS" != x; then
2814  CFLAGS="$CFLAGS $ADD_CFLAGS"
2815fi
2816
2817# Try if CFLAGS works
2818save_CFLAGS="$CFLAGS"
2819cat >conftest.$ac_ext <<_ACEOF
2820/* confdefs.h.  */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h.  */
2825
2826int
2827main ()
2828{
2829int i=0; i++;
2830  ;
2831  return 0;
2832}
2833_ACEOF
2834rm -f conftest.$ac_objext conftest$ac_exeext
2835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2836  (eval $ac_link) 2>conftest.er1
2837  ac_status=$?
2838  grep -v '^ *+' conftest.er1 >conftest.err
2839  rm -f conftest.er1
2840  cat conftest.err >&5
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); } &&
2843         { ac_try='test -z "$ac_c_werror_flag"
2844                         || test ! -s conftest.err'
2845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846  (eval $ac_try) 2>&5
2847  ac_status=$?
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); }; } &&
2850         { ac_try='test -s conftest$ac_exeext'
2851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852  (eval $ac_try) 2>&5
2853  ac_status=$?
2854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855  (exit $ac_status); }; }; then
2856  :
2857else
2858  echo "$as_me: failed program was:" >&5
2859sed 's/^/| /' conftest.$ac_ext >&5
2860
2861CFLAGS=
2862fi
2863rm -f conftest.err conftest.$ac_objext \
2864      conftest$ac_exeext conftest.$ac_ext
2865if test -z "$CFLAGS"; then
2866  { 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
2867echo "$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;}
2868  CFLAGS='-O'
2869  cat >conftest.$ac_ext <<_ACEOF
2870/* confdefs.h.  */
2871_ACEOF
2872cat confdefs.h >>conftest.$ac_ext
2873cat >>conftest.$ac_ext <<_ACEOF
2874/* end confdefs.h.  */
2875
2876int
2877main ()
2878{
2879int i=0; i++;
2880  ;
2881  return 0;
2882}
2883_ACEOF
2884rm -f conftest.$ac_objext conftest$ac_exeext
2885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2886  (eval $ac_link) 2>conftest.er1
2887  ac_status=$?
2888  grep -v '^ *+' conftest.er1 >conftest.err
2889  rm -f conftest.er1
2890  cat conftest.err >&5
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); } &&
2893         { ac_try='test -z "$ac_c_werror_flag"
2894                         || test ! -s conftest.err'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; } &&
2900         { ac_try='test -s conftest$ac_exeext'
2901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902  (eval $ac_try) 2>&5
2903  ac_status=$?
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); }; }; then
2906  :
2907else
2908  echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911CFLAGS=
2912fi
2913rm -f conftest.err conftest.$ac_objext \
2914      conftest$ac_exeext conftest.$ac_ext
2915  if test -z "$CFLAGS"; then
2916    { 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
2917echo "$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;}
2918  fi
2919fi
2920
2921{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2922echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2923
2924
2925if test x"$MPICC" = x; then :; else
2926  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2927echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2928  CC="$MPICC"
2929fi
2930
2931# Correct ADDLIBS initialization if we are using the MS compiler
2932case "$CC" in
2933  cl*)
2934    ADDLIBS=
2935    case $build in
2936  *-mingw*)
2937    if test "${LD+set}" = set; then :; else
2938      LD=link
2939    fi
2940    ;;
2941esac
2942
2943    ;;
2944esac
2945
2946ac_ext=c
2947ac_cpp='$CPP $CPPFLAGS'
2948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951
2952
2953
2954
2955
2956
2957ac_ext=f
2958ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2959ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2961
2962
2963
2964
2965
2966
2967coin_has_f77=yes
2968
2969save_fflags="$FFLAGS"
2970case $build in
2971  *-cygwin* | *-mingw*)
2972             comps="gfortran g77 ifort fl32" ;;
2973  *)         comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
2974esac
2975
2976# We delete the cached value, since the test might not have been
2977# performed with out choise of compilers earlier
2978$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
2979ac_ext=f
2980ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2981ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2983if test -n "$ac_tool_prefix"; then
2984  for ac_prog in $comps
2985  do
2986    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2988echo "$as_me:$LINENO: checking for $ac_word" >&5
2989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990if test "${ac_cv_prog_F77+set}" = set; then
2991  echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993  if test -n "$F77"; then
2994  ac_cv_prog_F77="$F77" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999  IFS=$as_save_IFS
3000  test -z "$as_dir" && as_dir=.
3001  for ac_exec_ext in '' $ac_executable_extensions; do
3002  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005    break 2
3006  fi
3007done
3008done
3009
3010fi
3011fi
3012F77=$ac_cv_prog_F77
3013if test -n "$F77"; then
3014  echo "$as_me:$LINENO: result: $F77" >&5
3015echo "${ECHO_T}$F77" >&6
3016else
3017  echo "$as_me:$LINENO: result: no" >&5
3018echo "${ECHO_T}no" >&6
3019fi
3020
3021    test -n "$F77" && break
3022  done
3023fi
3024if test -z "$F77"; then
3025  ac_ct_F77=$F77
3026  for ac_prog in $comps
3027do
3028  # Extract the first word of "$ac_prog", so it can be a program name with args.
3029set dummy $ac_prog; ac_word=$2
3030echo "$as_me:$LINENO: checking for $ac_word" >&5
3031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3033  echo $ECHO_N "(cached) $ECHO_C" >&6
3034else
3035  if test -n "$ac_ct_F77"; then
3036  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041  IFS=$as_save_IFS
3042  test -z "$as_dir" && as_dir=.
3043  for ac_exec_ext in '' $ac_executable_extensions; do
3044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045    ac_cv_prog_ac_ct_F77="$ac_prog"
3046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047    break 2
3048  fi
3049done
3050done
3051
3052fi
3053fi
3054ac_ct_F77=$ac_cv_prog_ac_ct_F77
3055if test -n "$ac_ct_F77"; then
3056  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3057echo "${ECHO_T}$ac_ct_F77" >&6
3058else
3059  echo "$as_me:$LINENO: result: no" >&5
3060echo "${ECHO_T}no" >&6
3061fi
3062
3063  test -n "$ac_ct_F77" && break
3064done
3065
3066  F77=$ac_ct_F77
3067fi
3068
3069
3070# Provide some information about the compiler.
3071echo "$as_me:3071:" \
3072     "checking for Fortran 77 compiler version" >&5
3073ac_compiler=`set X $ac_compile; echo $2`
3074{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3075  (eval $ac_compiler --version </dev/null >&5) 2>&5
3076  ac_status=$?
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); }
3079{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3080  (eval $ac_compiler -v </dev/null >&5) 2>&5
3081  ac_status=$?
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); }
3084{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3085  (eval $ac_compiler -V </dev/null >&5) 2>&5
3086  ac_status=$?
3087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088  (exit $ac_status); }
3089rm -f a.out
3090
3091# If we don't use `.F' as extension, the preprocessor is not run on the
3092# input file.  (Note that this only needs to work for GNU compilers.)
3093ac_save_ext=$ac_ext
3094ac_ext=F
3095echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3096echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3097if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3098  echo $ECHO_N "(cached) $ECHO_C" >&6
3099else
3100  cat >conftest.$ac_ext <<_ACEOF
3101      program main
3102#ifndef __GNUC__
3103       choke me
3104#endif
3105
3106      end
3107_ACEOF
3108rm -f conftest.$ac_objext
3109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3110  (eval $ac_compile) 2>conftest.er1
3111  ac_status=$?
3112  grep -v '^ *+' conftest.er1 >conftest.err
3113  rm -f conftest.er1
3114  cat conftest.err >&5
3115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116  (exit $ac_status); } &&
3117         { ac_try='test -z "$ac_f77_werror_flag"
3118                         || test ! -s conftest.err'
3119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120  (eval $ac_try) 2>&5
3121  ac_status=$?
3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123  (exit $ac_status); }; } &&
3124         { ac_try='test -s conftest.$ac_objext'
3125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126  (eval $ac_try) 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }; }; then
3130  ac_compiler_gnu=yes
3131else
3132  echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135ac_compiler_gnu=no
3136fi
3137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3138ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3139
3140fi
3141echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3142echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3143ac_ext=$ac_save_ext
3144ac_test_FFLAGS=${FFLAGS+set}
3145ac_save_FFLAGS=$FFLAGS
3146FFLAGS=
3147echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3148echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3149if test "${ac_cv_prog_f77_g+set}" = set; then
3150  echo $ECHO_N "(cached) $ECHO_C" >&6
3151else
3152  FFLAGS=-g
3153cat >conftest.$ac_ext <<_ACEOF
3154      program main
3155
3156      end
3157_ACEOF
3158rm -f conftest.$ac_objext
3159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3160  (eval $ac_compile) 2>conftest.er1
3161  ac_status=$?
3162  grep -v '^ *+' conftest.er1 >conftest.err
3163  rm -f conftest.er1
3164  cat conftest.err >&5
3165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166  (exit $ac_status); } &&
3167         { ac_try='test -z "$ac_f77_werror_flag"
3168                         || test ! -s conftest.err'
3169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170  (eval $ac_try) 2>&5
3171  ac_status=$?
3172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); }; } &&
3174         { ac_try='test -s conftest.$ac_objext'
3175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176  (eval $ac_try) 2>&5
3177  ac_status=$?
3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179  (exit $ac_status); }; }; then
3180  ac_cv_prog_f77_g=yes
3181else
3182  echo "$as_me: failed program was:" >&5
3183sed 's/^/| /' conftest.$ac_ext >&5
3184
3185ac_cv_prog_f77_g=no
3186fi
3187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3188
3189fi
3190echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3191echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3192if test "$ac_test_FFLAGS" = set; then
3193  FFLAGS=$ac_save_FFLAGS
3194elif test $ac_cv_prog_f77_g = yes; then
3195  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3196    FFLAGS="-g -O2"
3197  else
3198    FFLAGS="-g"
3199  fi
3200else
3201  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3202    FFLAGS="-O2"
3203  else
3204    FFLAGS=
3205  fi
3206fi
3207
3208G77=`test $ac_compiler_gnu = yes && echo yes`
3209ac_ext=f
3210ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3211ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3213
3214FFLAGS="$save_fflags"
3215
3216# Check if a project specific FFLAGS variable has been set
3217if test x$COIN_PRJCT != x; then
3218  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3219  if test x$coin_tmp = xset; then
3220    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3221  fi
3222fi
3223
3224if test x"$FFLAGS" = x; then
3225
3226  coin_add_fflags=
3227  coin_opt_fflags=
3228  coin_dbg_fflags=
3229  coin_warn_fflags=
3230
3231  if test "$G77" = "yes"; then
3232    coin_opt_fflags="-O3 -fomit-frame-pointer"
3233    coin_add_fflags="-pipe"
3234    coin_dbg_fflags="-g"
3235    if test "$enable_doscompile" = yes; then
3236      case $build in
3237        *-cygwin*)
3238          FFLAGS="-mno-cygwin"
3239          cat >conftest.$ac_ext <<_ACEOF
3240      program main
3241      write(*,*) 'Hello world'
3242      end
3243_ACEOF
3244rm -f conftest.$ac_objext conftest$ac_exeext
3245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3246  (eval $ac_link) 2>conftest.er1
3247  ac_status=$?
3248  grep -v '^ *+' conftest.er1 >conftest.err
3249  rm -f conftest.er1
3250  cat conftest.err >&5
3251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252  (exit $ac_status); } &&
3253         { ac_try='test -z "$ac_f77_werror_flag"
3254                         || test ! -s conftest.err'
3255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256  (eval $ac_try) 2>&5
3257  ac_status=$?
3258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259  (exit $ac_status); }; } &&
3260         { ac_try='test -s conftest$ac_exeext'
3261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262  (eval $ac_try) 2>&5
3263  ac_status=$?
3264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265  (exit $ac_status); }; }; then
3266  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3267else
3268  echo "$as_me: failed program was:" >&5
3269sed 's/^/| /' conftest.$ac_ext >&5
3270
3271fi
3272rm -f conftest.err conftest.$ac_objext \
3273      conftest$ac_exeext conftest.$ac_ext
3274          FFLAGS=
3275        ;;
3276      esac
3277    fi
3278  else
3279    case $build in
3280      *-cygwin* | *-mingw*)
3281        case $F77 in
3282          ifort* | */ifort*)
3283            coin_opt_fflags='-O3'
3284            coin_add_fflags='-nologo -MT'
3285            coin_dbg_fflags='-debug'
3286          ;;
3287        esac
3288        ;;
3289      *-linux-*)
3290        case $F77 in
3291          ifc* | */ifc* | ifort* | */ifort*)
3292            coin_opt_fflags="-O3 -ip"
3293            coin_add_fflags="-cm -w90 -w95"
3294            coin_dbg_fflags="-g -CA -CB -CS"
3295            # Check if -i_dynamic is necessary (for new glibc library)
3296            FFLAGS=
3297            cat >conftest.$ac_ext <<_ACEOF
3298      program main
3299      write(*,*) 'Hello world'
3300      end
3301_ACEOF
3302rm -f conftest.$ac_objext conftest$ac_exeext
3303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3304  (eval $ac_link) 2>conftest.er1
3305  ac_status=$?
3306  grep -v '^ *+' conftest.er1 >conftest.err
3307  rm -f conftest.er1
3308  cat conftest.err >&5
3309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310  (exit $ac_status); } &&
3311         { ac_try='test -z "$ac_f77_werror_flag"
3312                         || test ! -s conftest.err'
3313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314  (eval $ac_try) 2>&5
3315  ac_status=$?
3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317  (exit $ac_status); }; } &&
3318         { ac_try='test -s conftest$ac_exeext'
3319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320  (eval $ac_try) 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); }; }; then
3324  :
3325else
3326  echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
3329coin_add_fflags="-i_dynamic $coin_add_fflags"
3330fi
3331rm -f conftest.err conftest.$ac_objext \
3332      conftest$ac_exeext conftest.$ac_ext
3333            ;;
3334          pgf77* | */pgf77* | pgf90* | */pgf90*)
3335            coin_opt_fflags="-fast"
3336            coin_add_fflags="-Kieee -pc 64"
3337            coin_dbg_fflags="-g"
3338          ;;
3339        esac
3340        ;;
3341      *-ibm-*)
3342        case "$F77" in
3343          xlf* | */xlf* | mpxlf* | */mpxlf* )
3344            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3345            coin_add_fflags="-bmaxdata:0x80000000"
3346            coin_dbg_fflags="-g -C"
3347            ;;
3348        esac
3349        ;;
3350      *-hp-*)
3351        coin_opt_fflags="+O3"
3352        coin_add_fflags="+U77"
3353        coin_dbg_fflags="-C -g"
3354        ;;
3355      *-sun-*)
3356        coin_opt_fflags="-O4"
3357        coin_dbg_fflags="-g"
3358        ;;
3359      *-sgi-*)
3360        coin_opt_fflags="-O5 -OPT:Olimit=0"
3361        coin_dbg_fflags="-g"
3362        ;;
3363    esac
3364  fi
3365
3366  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3367    coin_dbg_fflags="-g"
3368  fi
3369
3370  if test -z "$coin_opt_fflags"; then
3371    # Try if -O option works if nothing else is set
3372    FFLAGS=-O
3373    cat >conftest.$ac_ext <<_ACEOF
3374      program main
3375      integer i
3376      end
3377_ACEOF
3378rm -f conftest.$ac_objext conftest$ac_exeext
3379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3380  (eval $ac_link) 2>conftest.er1
3381  ac_status=$?
3382  grep -v '^ *+' conftest.er1 >conftest.err
3383  rm -f conftest.er1
3384  cat conftest.err >&5
3385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386  (exit $ac_status); } &&
3387         { ac_try='test -z "$ac_f77_werror_flag"
3388                         || test ! -s conftest.err'
3389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390  (eval $ac_try) 2>&5
3391  ac_status=$?
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); }; } &&
3394         { ac_try='test -s conftest$ac_exeext'
3395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396  (eval $ac_try) 2>&5
3397  ac_status=$?
3398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399  (exit $ac_status); }; }; then
3400  coin_opt_fflags="-O"
3401else
3402  echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
3405fi
3406rm -f conftest.err conftest.$ac_objext \
3407      conftest$ac_exeext conftest.$ac_ext
3408  fi
3409
3410  # if PM doesn't want the warning messages, take them out
3411  if test x"$coin_skip_warn_fflags" = xyes; then
3412    coin_warn_fflags=
3413  fi
3414
3415  if test x${DBG_FFLAGS+set} != xset; then
3416    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3417  fi
3418  if test x${OPT_FFLAGS+set} != xset; then
3419    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3420  fi
3421
3422  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3423  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3424
3425  if test "$coin_debug_compile" = "true"; then
3426    FFLAGS="$DBG_FFLAGS"
3427  else
3428    FFLAGS="$OPT_FFLAGS"
3429  fi
3430else
3431  FFLAGS="$FFLAGS $ADD_FFLAGS"
3432  if test x${DBG_FFLAGS+set} != xset; then
3433    DBG_FFLAGS="$FFLAGS"
3434  fi
3435  if test x${OPT_FFLAGS+set} != xset; then
3436    OPT_FFLAGS="$FFLAGS"
3437  fi
3438fi
3439
3440# Try if FFLAGS works
3441cat >conftest.$ac_ext <<_ACEOF
3442      program main
3443      integer i
3444      end
3445_ACEOF
3446rm -f conftest.$ac_objext conftest$ac_exeext
3447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3448  (eval $ac_link) 2>conftest.er1
3449  ac_status=$?
3450  grep -v '^ *+' conftest.er1 >conftest.err
3451  rm -f conftest.er1
3452  cat conftest.err >&5
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); } &&
3455         { ac_try='test -z "$ac_f77_werror_flag"
3456                         || test ! -s conftest.err'
3457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458  (eval $ac_try) 2>&5
3459  ac_status=$?
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); }; } &&
3462         { ac_try='test -s conftest$ac_exeext'
3463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464  (eval $ac_try) 2>&5
3465  ac_status=$?
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); }; }; then
3468  :
3469else
3470  echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473FFLAGS=
3474fi
3475rm -f conftest.err conftest.$ac_objext \
3476      conftest$ac_exeext conftest.$ac_ext
3477if test -z "$FFLAGS"; then
3478  { 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
3479echo "$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;}
3480  FFLAGS='-O'
3481  cat >conftest.$ac_ext <<_ACEOF
3482      program main
3483      integer i
3484      end
3485_ACEOF
3486rm -f conftest.$ac_objext conftest$ac_exeext
3487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3488  (eval $ac_link) 2>conftest.er1
3489  ac_status=$?
3490  grep -v '^ *+' conftest.er1 >conftest.err
3491  rm -f conftest.er1
3492  cat conftest.err >&5
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); } &&
3495         { ac_try='test -z "$ac_f77_werror_flag"
3496                         || test ! -s conftest.err'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; } &&
3502         { ac_try='test -s conftest$ac_exeext'
3503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504  (eval $ac_try) 2>&5
3505  ac_status=$?
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); }; }; then
3508  :
3509else
3510  echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513FFLAGS=
3514fi
3515rm -f conftest.err conftest.$ac_objext \
3516      conftest$ac_exeext conftest.$ac_ext
3517  if test -z "$FFLAGS"; then
3518    { 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
3519echo "$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;}
3520  fi
3521fi
3522
3523{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3524echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3525
3526
3527if test x"$MPIF77" = x; then :; else
3528  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3529echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3530  F77="$MPIF77"
3531fi
3532
3533case "$F77" in
3534  ifort*)
3535    case $build in
3536  *-mingw*)
3537    if test "${LD+set}" = set; then :; else
3538      LD=link
3539    fi
3540    ;;
3541esac
3542
3543    ;;
3544esac
3545
3546ac_ext=c
3547ac_cpp='$CPP $CPPFLAGS'
3548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551
3552
3553
3554# Need egrep later on
3555echo "$as_me:$LINENO: checking for egrep" >&5
3556echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3557if test "${ac_cv_prog_egrep+set}" = set; then
3558  echo $ECHO_N "(cached) $ECHO_C" >&6
3559else
3560  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3561    then ac_cv_prog_egrep='grep -E'
3562    else ac_cv_prog_egrep='egrep'
3563    fi
3564fi
3565echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3566echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3567 EGREP=$ac_cv_prog_egrep
3568
3569
3570
3571# Initialize autotools
3572
3573# On Cygwin, building DLLs doesn't work
3574case $build in
3575  *-cygwin*)
3576    coin_disable_shared=yes
3577    platform=Cygwin
3578  ;;
3579  *-mingw*)
3580    coin_disable_shared=yes
3581    platform="Msys"
3582#    case "$CXX" in
3583#      cl*)
3584#        coin_disable_shared=yes
3585#        platform="Msys with cl"
3586#    ;;
3587#    esac
3588  ;;
3589esac
3590if test x"$coin_disable_shared" = xyes; then
3591  if test x"$enable_shared" = xyes; then
3592    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3593echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3594  fi
3595  enable_shared=no
3596fi
3597# By default, we only want the shared objects to be compiled
3598# Check whether --enable-static or --disable-static was given.
3599if test "${enable_static+set}" = set; then
3600  enableval="$enable_static"
3601  p=${PACKAGE-default}
3602    case $enableval in
3603    yes) enable_static=yes ;;
3604    no) enable_static=no ;;
3605    *)
3606     enable_static=no
3607      # Look at the argument we got.  We use all the common list separators.
3608      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3609      for pkg in $enableval; do
3610        IFS="$lt_save_ifs"
3611        if test "X$pkg" = "X$p"; then
3612          enable_static=yes
3613        fi
3614      done
3615      IFS="$lt_save_ifs"
3616      ;;
3617    esac
3618else
3619  enable_static=no
3620fi;
3621
3622
3623
3624am__api_version="1.9"
3625# Find a good install program.  We prefer a C program (faster),
3626# so one script is as good as another.  But avoid the broken or
3627# incompatible versions:
3628# SysV /etc/install, /usr/sbin/install
3629# SunOS /usr/etc/install
3630# IRIX /sbin/install
3631# AIX /bin/install
3632# AmigaOS /C/install, which installs bootblocks on floppy discs
3633# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3634# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3635# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3636# OS/2's system install, which has a completely different semantic
3637# ./install, which can be erroneously created by make from ./install.sh.
3638echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3639echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3640if test -z "$INSTALL"; then
3641if test "${ac_cv_path_install+set}" = set; then
3642  echo $ECHO_N "(cached) $ECHO_C" >&6
3643else
3644  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645for as_dir in $PATH
3646do
3647  IFS=$as_save_IFS
3648  test -z "$as_dir" && as_dir=.
3649  # Account for people who put trailing slashes in PATH elements.
3650case $as_dir/ in
3651  ./ | .// | /cC/* | \
3652  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3653  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3654  /usr/ucb/* ) ;;
3655  *)
3656    # OSF1 and SCO ODT 3.0 have their own names for install.
3657    # Don't use installbsd from OSF since it installs stuff as root
3658    # by default.
3659    for ac_prog in ginstall scoinst install; do
3660      for ac_exec_ext in '' $ac_executable_extensions; do
3661        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3662          if test $ac_prog = install &&
3663            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3664            # AIX install.  It has an incompatible calling convention.
3665            :
3666          elif test $ac_prog = install &&
3667            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3668            # program-specific install script used by HP pwplus--don't use.
3669            :
3670          else
3671            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3672            break 3
3673          fi
3674        fi
3675      done
3676    done
3677    ;;
3678esac
3679done
3680
3681
3682fi
3683  if test "${ac_cv_path_install+set}" = set; then
3684    INSTALL=$ac_cv_path_install
3685  else
3686    # As a last resort, use the slow shell script.  We don't cache a
3687    # path for INSTALL within a source directory, because that will
3688    # break other packages using the cache if that directory is
3689    # removed, or if the path is relative.
3690    INSTALL=$ac_install_sh
3691  fi
3692fi
3693echo "$as_me:$LINENO: result: $INSTALL" >&5
3694echo "${ECHO_T}$INSTALL" >&6
3695
3696# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3697# It thinks the first close brace ends the variable substitution.
3698test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3699
3700test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3701
3702test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3703
3704echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3705echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3706# Just in case
3707sleep 1
3708echo timestamp > conftest.file
3709# Do `set' in a subshell so we don't clobber the current shell's
3710# arguments.  Must try -L first in case configure is actually a
3711# symlink; some systems play weird games with the mod time of symlinks
3712# (eg FreeBSD returns the mod time of the symlink's containing
3713# directory).
3714if (
3715   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3716   if test "$*" = "X"; then
3717      # -L didn't work.
3718      set X `ls -t $srcdir/configure conftest.file`
3719   fi
3720   rm -f conftest.file
3721   if test "$*" != "X $srcdir/configure conftest.file" \
3722      && test "$*" != "X conftest.file $srcdir/configure"; then
3723
3724      # If neither matched, then we have a broken ls.  This can happen
3725      # if, for instance, CONFIG_SHELL is bash and it inherits a
3726      # broken ls alias from the environment.  This has actually
3727      # happened.  Such a system could not be considered "sane".
3728      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3729alias in your environment" >&5
3730echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3731alias in your environment" >&2;}
3732   { (exit 1); exit 1; }; }
3733   fi
3734
3735   test "$2" = conftest.file
3736   )
3737then
3738   # Ok.
3739   :
3740else
3741   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3742Check your system clock" >&5
3743echo "$as_me: error: newly created file is older than distributed files!
3744Check your system clock" >&2;}
3745   { (exit 1); exit 1; }; }
3746fi
3747echo "$as_me:$LINENO: result: yes" >&5
3748echo "${ECHO_T}yes" >&6
3749test "$program_prefix" != NONE &&
3750  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3751# Use a double $ so make ignores it.
3752test "$program_suffix" != NONE &&
3753  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3754# Double any \ or $.  echo might interpret backslashes.
3755# By default was `s,x,x', remove it if useless.
3756cat <<\_ACEOF >conftest.sed
3757s/[\\$]/&&/g;s/;s,x,x,$//
3758_ACEOF
3759program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3760rm conftest.sed
3761
3762# expand $ac_aux_dir to an absolute path
3763am_aux_dir=`cd $ac_aux_dir && pwd`
3764
3765test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3766# Use eval to expand $SHELL
3767if eval "$MISSING --run true"; then
3768  am_missing_run="$MISSING --run "
3769else
3770  am_missing_run=
3771  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3772echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3773fi
3774
3775if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3776  # We used to keeping the `.' as first argument, in order to
3777  # allow $(mkdir_p) to be used without argument.  As in
3778  #   $(mkdir_p) $(somedir)
3779  # where $(somedir) is conditionally defined.  However this is wrong
3780  # for two reasons:
3781  #  1. if the package is installed by a user who cannot write `.'
3782  #     make install will fail,
3783  #  2. the above comment should most certainly read
3784  #     $(mkdir_p) $(DESTDIR)$(somedir)
3785  #     so it does not work when $(somedir) is undefined and
3786  #     $(DESTDIR) is not.
3787  #  To support the latter case, we have to write
3788  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3789  #  so the `.' trick is pointless.
3790  mkdir_p='mkdir -p --'
3791else
3792  # On NextStep and OpenStep, the `mkdir' command does not
3793  # recognize any option.  It will interpret all options as
3794  # directories to create, and then abort because `.' already
3795  # exists.
3796  for d in ./-p ./--version;
3797  do
3798    test -d $d && rmdir $d
3799  done
3800  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3801  if test -f "$ac_aux_dir/mkinstalldirs"; then
3802    mkdir_p='$(mkinstalldirs)'
3803  else
3804    mkdir_p='$(install_sh) -d'
3805  fi
3806fi
3807
3808for ac_prog in gawk mawk nawk awk
3809do
3810  # Extract the first word of "$ac_prog", so it can be a program name with args.
3811set dummy $ac_prog; ac_word=$2
3812echo "$as_me:$LINENO: checking for $ac_word" >&5
3813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3814if test "${ac_cv_prog_AWK+set}" = set; then
3815  echo $ECHO_N "(cached) $ECHO_C" >&6
3816else
3817  if test -n "$AWK"; then
3818  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3819else
3820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821for as_dir in $PATH
3822do
3823  IFS=$as_save_IFS
3824  test -z "$as_dir" && as_dir=.
3825  for ac_exec_ext in '' $ac_executable_extensions; do
3826  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827    ac_cv_prog_AWK="$ac_prog"
3828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829    break 2
3830  fi
3831done
3832done
3833
3834fi
3835fi
3836AWK=$ac_cv_prog_AWK
3837if test -n "$AWK"; then
3838  echo "$as_me:$LINENO: result: $AWK" >&5
3839echo "${ECHO_T}$AWK" >&6
3840else
3841  echo "$as_me:$LINENO: result: no" >&5
3842echo "${ECHO_T}no" >&6
3843fi
3844
3845  test -n "$AWK" && break
3846done
3847
3848echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3849echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3850set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3851if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3852  echo $ECHO_N "(cached) $ECHO_C" >&6
3853else
3854  cat >conftest.make <<\_ACEOF
3855all:
3856        @echo 'ac_maketemp="$(MAKE)"'
3857_ACEOF
3858# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3859eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3860if test -n "$ac_maketemp"; then
3861  eval ac_cv_prog_make_${ac_make}_set=yes
3862else
3863  eval ac_cv_prog_make_${ac_make}_set=no
3864fi
3865rm -f conftest.make
3866fi
3867if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3868  echo "$as_me:$LINENO: result: yes" >&5
3869echo "${ECHO_T}yes" >&6
3870  SET_MAKE=
3871else
3872  echo "$as_me:$LINENO: result: no" >&5
3873echo "${ECHO_T}no" >&6
3874  SET_MAKE="MAKE=${MAKE-make}"
3875fi
3876
3877rm -rf .tst 2>/dev/null
3878mkdir .tst 2>/dev/null
3879if test -d .tst; then
3880  am__leading_dot=.
3881else
3882  am__leading_dot=_
3883fi
3884rmdir .tst 2>/dev/null
3885
3886DEPDIR="${am__leading_dot}deps"
3887
3888          ac_config_commands="$ac_config_commands depfiles"
3889
3890
3891am_make=${MAKE-make}
3892cat > confinc << 'END'
3893am__doit:
3894        @echo done
3895.PHONY: am__doit
3896END
3897# If we don't find an include directive, just comment out the code.
3898echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3899echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3900am__include="#"
3901am__quote=
3902_am_result=none
3903# First try GNU make style include.
3904echo "include confinc" > confmf
3905# We grep out `Entering directory' and `Leaving directory'
3906# messages which can occur if `w' ends up in MAKEFLAGS.
3907# In particular we don't look at `^make:' because GNU make might
3908# be invoked under some other name (usually "gmake"), in which
3909# case it prints its new name instead of `make'.
3910if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3911   am__include=include
3912   am__quote=
3913   _am_result=GNU
3914fi
3915# Now try BSD make style include.
3916if test "$am__include" = "#"; then
3917   echo '.include "confinc"' > confmf
3918   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3919      am__include=.include
3920      am__quote="\""
3921      _am_result=BSD
3922   fi
3923fi
3924
3925
3926echo "$as_me:$LINENO: result: $_am_result" >&5
3927echo "${ECHO_T}$_am_result" >&6
3928rm -f confinc confmf
3929
3930# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3931if test "${enable_dependency_tracking+set}" = set; then
3932  enableval="$enable_dependency_tracking"
3933
3934fi;
3935if test "x$enable_dependency_tracking" != xno; then
3936  am_depcomp="$ac_aux_dir/depcomp"
3937  AMDEPBACKSLASH='\'
3938fi
3939
3940
3941if test "x$enable_dependency_tracking" != xno; then
3942  AMDEP_TRUE=
3943  AMDEP_FALSE='#'
3944else
3945  AMDEP_TRUE='#'
3946  AMDEP_FALSE=
3947fi
3948
3949
3950
3951ac_ext=c
3952ac_cpp='$CPP $CPPFLAGS'
3953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956
3957if test x"" = x; then
3958  hdr="#include <dlfcn.h>"
3959else
3960  hdr=""
3961fi
3962
3963for ac_header in dlfcn.h
3964do
3965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3966echo "$as_me:$LINENO: checking for $ac_header" >&5
3967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3968if eval "test \"\${$as_ac_Header+set}\" = set"; then
3969  echo $ECHO_N "(cached) $ECHO_C" >&6
3970else
3971  cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h.  */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h.  */
3977$hdr
3978
3979#include <$ac_header>
3980_ACEOF
3981rm -f conftest.$ac_objext
3982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983  (eval $ac_compile) 2>conftest.er1
3984  ac_status=$?
3985  grep -v '^ *+' conftest.er1 >conftest.err
3986  rm -f conftest.er1
3987  cat conftest.err >&5
3988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989  (exit $ac_status); } &&
3990         { ac_try='test -z "$ac_c_werror_flag"
3991                         || test ! -s conftest.err'
3992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993  (eval $ac_try) 2>&5
3994  ac_status=$?
3995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996  (exit $ac_status); }; } &&
3997         { ac_try='test -s conftest.$ac_objext'
3998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999  (eval $ac_try) 2>&5
4000  ac_status=$?
4001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002  (exit $ac_status); }; }; then
4003  eval "$as_ac_Header=yes"
4004else
4005  echo "$as_me: failed program was:" >&5
4006sed 's/^/| /' conftest.$ac_ext >&5
4007
4008eval "$as_ac_Header=no"
4009fi
4010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4011fi
4012echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4013echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4014if test `eval echo '${'$as_ac_Header'}'` = yes; then
4015  cat >>confdefs.h <<_ACEOF
4016#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4017_ACEOF
4018
4019fi
4020
4021done
4022
4023
4024ac_ext=c
4025ac_cpp='$CPP $CPPFLAGS'
4026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029
4030
4031# Check whether --enable-shared or --disable-shared was given.
4032if test "${enable_shared+set}" = set; then
4033  enableval="$enable_shared"
4034  p=${PACKAGE-default}
4035    case $enableval in
4036    yes) enable_shared=yes ;;
4037    no) enable_shared=no ;;
4038    *)
4039      enable_shared=no
4040      # Look at the argument we got.  We use all the common list separators.
4041      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4042      for pkg in $enableval; do
4043        IFS="$lt_save_ifs"
4044        if test "X$pkg" = "X$p"; then
4045          enable_shared=yes
4046        fi
4047      done
4048      IFS="$lt_save_ifs"
4049      ;;
4050    esac
4051else
4052  enable_shared=yes
4053fi;
4054
4055# Check whether --enable-fast-install or --disable-fast-install was given.
4056if test "${enable_fast_install+set}" = set; then
4057  enableval="$enable_fast_install"
4058  p=${PACKAGE-default}
4059    case $enableval in
4060    yes) enable_fast_install=yes ;;
4061    no) enable_fast_install=no ;;
4062    *)
4063      enable_fast_install=no
4064      # Look at the argument we got.  We use all the common list separators.
4065      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4066      for pkg in $enableval; do
4067        IFS="$lt_save_ifs"
4068        if test "X$pkg" = "X$p"; then
4069          enable_fast_install=yes
4070        fi
4071      done
4072      IFS="$lt_save_ifs"
4073      ;;
4074    esac
4075else
4076  enable_fast_install=yes
4077fi;
4078
4079echo "$as_me:$LINENO: checking host system type" >&5
4080echo $ECHO_N "checking host system type... $ECHO_C" >&6
4081if test "${ac_cv_host+set}" = set; then
4082  echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084  ac_cv_host_alias=$host_alias
4085test -z "$ac_cv_host_alias" &&
4086  ac_cv_host_alias=$ac_cv_build_alias
4087ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4088  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4089echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4090   { (exit 1); exit 1; }; }
4091
4092fi
4093echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4094echo "${ECHO_T}$ac_cv_host" >&6
4095host=$ac_cv_host
4096host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4097host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4098host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4099
4100
4101echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4102echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4103if test "${lt_cv_path_SED+set}" = set; then
4104  echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106  # Loop through the user's path and test for sed and gsed.
4107# Then use that list of sed's as ones to test for truncation.
4108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109for as_dir in $PATH
4110do
4111  IFS=$as_save_IFS
4112  test -z "$as_dir" && as_dir=.
4113  for lt_ac_prog in sed gsed; do
4114    for ac_exec_ext in '' $ac_executable_extensions; do
4115      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4116        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4117      fi
4118    done
4119  done
4120done
4121lt_ac_max=0
4122lt_ac_count=0
4123# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4124# along with /bin/sed that truncates output.
4125for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4126  test ! -f $lt_ac_sed && continue
4127  cat /dev/null > conftest.in
4128  lt_ac_count=0
4129  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4130  # Check for GNU sed and select it if it is found.
4131  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4132    lt_cv_path_SED=$lt_ac_sed
4133    break
4134  fi
4135  while true; do
4136    cat conftest.in conftest.in >conftest.tmp
4137    mv conftest.tmp conftest.in
4138    cp conftest.in conftest.nl
4139    echo >>conftest.nl
4140    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4141    cmp -s conftest.out conftest.nl || break
4142    # 10000 chars as input seems more than enough
4143    test $lt_ac_count -gt 10 && break
4144    lt_ac_count=`expr $lt_ac_count + 1`
4145    if test $lt_ac_count -gt $lt_ac_max; then
4146      lt_ac_max=$lt_ac_count
4147      lt_cv_path_SED=$lt_ac_sed
4148    fi
4149  done
4150done
4151
4152fi
4153
4154SED=$lt_cv_path_SED
4155echo "$as_me:$LINENO: result: $SED" >&5
4156echo "${ECHO_T}$SED" >&6
4157
4158
4159# Check whether --with-gnu-ld or --without-gnu-ld was given.
4160if test "${with_gnu_ld+set}" = set; then
4161  withval="$with_gnu_ld"
4162  test "$withval" = no || with_gnu_ld=yes
4163else
4164  with_gnu_ld=no
4165fi;
4166ac_prog=ld
4167if test "$GCC" = yes; then
4168  # Check if gcc -print-prog-name=ld gives a path.
4169  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4170echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4171  case $host in
4172  *-*-mingw*)
4173    # gcc leaves a trailing carriage return which upsets mingw
4174    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4175  *)
4176    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4177  esac
4178  case $ac_prog in
4179    # Accept absolute paths.
4180    [\\/]* | ?:[\\/]*)
4181      re_direlt='/[^/][^/]*/\.\./'
4182      # Canonicalize the pathname of ld
4183      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4184      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4185        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4186      done
4187      test -z "$LD" && LD="$ac_prog"
4188      ;;
4189  "")
4190    # If it fails, then pretend we aren't using GCC.
4191    ac_prog=ld
4192    ;;
4193  *)
4194    # If it is relative, then search for the first ld in PATH.
4195    with_gnu_ld=unknown
4196    ;;
4197  esac
4198elif test "$with_gnu_ld" = yes; then
4199  echo "$as_me:$LINENO: checking for GNU ld" >&5
4200echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4201else
4202  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4203echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4204fi
4205if test "${lt_cv_path_LD+set}" = set; then
4206  echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208  if test -z "$LD"; then
4209  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4210  for ac_dir in $PATH; do
4211    IFS="$lt_save_ifs"
4212    test -z "$ac_dir" && ac_dir=.
4213    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4214      lt_cv_path_LD="$ac_dir/$ac_prog"
4215      # Check to see if the program is GNU ld.  I'd rather use --version,
4216      # but apparently some variants of GNU ld only accept -v.
4217      # Break only if it was the GNU/non-GNU ld that we prefer.
4218      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4219      *GNU* | *'with BFD'*)
4220        test "$with_gnu_ld" != no && break
4221        ;;
4222      *)
4223        test "$with_gnu_ld" != yes && break
4224        ;;
4225      esac
4226    fi
4227  done
4228  IFS="$lt_save_ifs"
4229else
4230  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4231fi
4232fi
4233
4234LD="$lt_cv_path_LD"
4235if test -n "$LD"; then
4236  echo "$as_me:$LINENO: result: $LD" >&5
4237echo "${ECHO_T}$LD" >&6
4238else
4239  echo "$as_me:$LINENO: result: no" >&5
4240echo "${ECHO_T}no" >&6
4241fi
4242test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4243echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4244   { (exit 1); exit 1; }; }
4245echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4246echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4247if test "${lt_cv_prog_gnu_ld+set}" = set; then
4248  echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
4250  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4251case `$LD -v 2>&1 </dev/null` in
4252*GNU* | *'with BFD'*)
4253  lt_cv_prog_gnu_ld=yes
4254  ;;
4255*)
4256  lt_cv_prog_gnu_ld=no
4257  ;;
4258esac
4259fi
4260echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4261echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4262with_gnu_ld=$lt_cv_prog_gnu_ld
4263
4264
4265echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4266echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4267if test "${lt_cv_ld_reload_flag+set}" = set; then
4268  echo $ECHO_N "(cached) $ECHO_C" >&6
4269else
4270  lt_cv_ld_reload_flag='-r'
4271fi
4272echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4273echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4274reload_flag=$lt_cv_ld_reload_flag
4275case $reload_flag in
4276"" | " "*) ;;
4277*) reload_flag=" $reload_flag" ;;
4278esac
4279reload_cmds='$LD$reload_flag -o $output$reload_objs'
4280case $host_os in
4281  darwin*)
4282    if test "$GCC" = yes; then
4283      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4284    else
4285      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4286    fi
4287    ;;
4288esac
4289
4290echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4291echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4292if test "${lt_cv_path_NM+set}" = set; then
4293  echo $ECHO_N "(cached) $ECHO_C" >&6
4294else
4295  if test -n "$NM"; then
4296  # Let the user override the test.
4297  lt_cv_path_NM="$NM"
4298else
4299  lt_nm_to_check="${ac_tool_prefix}nm"
4300  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4301    lt_nm_to_check="$lt_nm_to_check nm"
4302  fi
4303  for lt_tmp_nm in $lt_nm_to_check; do
4304    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4305    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4306      IFS="$lt_save_ifs"
4307      test -z "$ac_dir" && ac_dir=.
4308      tmp_nm="$ac_dir/$lt_tmp_nm"
4309      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4310        # Check to see if the nm accepts a BSD-compat flag.
4311        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4312        #   nm: unknown option "B" ignored
4313        # Tru64's nm complains that /dev/null is an invalid object file
4314        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4315        */dev/null* | *'Invalid file or object type'*)
4316          lt_cv_path_NM="$tmp_nm -B"
4317          break
4318          ;;
4319        *)
4320          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4321          */dev/null*)
4322            lt_cv_path_NM="$tmp_nm -p"
4323            break
4324            ;;
4325          *)
4326            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4327            continue # so that we can try to find one that supports BSD flags
4328            ;;
4329          esac
4330          ;;
4331        esac
4332      fi
4333    done
4334    IFS="$lt_save_ifs"
4335  done
4336  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4337fi
4338fi
4339echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4340echo "${ECHO_T}$lt_cv_path_NM" >&6
4341NM="$lt_cv_path_NM"
4342
4343echo "$as_me:$LINENO: checking whether ln -s works" >&5
4344echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4345LN_S=$as_ln_s
4346if test "$LN_S" = "ln -s"; then
4347  echo "$as_me:$LINENO: result: yes" >&5
4348echo "${ECHO_T}yes" >&6
4349else
4350  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4351echo "${ECHO_T}no, using $LN_S" >&6
4352fi
4353
4354echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4355echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4356if test "${lt_cv_deplibs_check_method+set}" = set; then
4357  echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359  lt_cv_file_magic_cmd='$MAGIC_CMD'
4360lt_cv_file_magic_test_file=
4361lt_cv_deplibs_check_method='unknown'
4362# Need to set the preceding variable on all platforms that support
4363# interlibrary dependencies.
4364# 'none' -- dependencies not supported.
4365# `unknown' -- same as none, but documents that we really don't know.
4366# 'pass_all' -- all dependencies passed with no checks.
4367# 'test_compile' -- check by making test program.
4368# 'file_magic [[regex]]' -- check by looking for files in library path
4369# which responds to the $file_magic_cmd with a given extended regex.
4370# If you have `file' or equivalent on your system and you're not sure
4371# whether `pass_all' will *always* work, you probably want this one.
4372
4373case $host_os in
4374aix4* | aix5*)
4375  lt_cv_deplibs_check_method=pass_all
4376  ;;
4377
4378beos*)
4379  lt_cv_deplibs_check_method=pass_all
4380  ;;
4381
4382bsdi[45]*)
4383  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4384  lt_cv_file_magic_cmd='/usr/bin/file -L'
4385  lt_cv_file_magic_test_file=/shlib/libc.so
4386  ;;
4387
4388cygwin*)
4389  # func_win32_libid is a shell function defined in ltmain.sh
4390  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4391  lt_cv_file_magic_cmd='func_win32_libid'
4392  ;;
4393
4394mingw* | pw32*)
4395  # Base MSYS/MinGW do not provide the 'file' command needed by
4396  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4397  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4398  lt_cv_file_magic_cmd='$OBJDUMP -f'
4399  ;;
4400
4401darwin* | rhapsody*)
4402  lt_cv_deplibs_check_method=pass_all
4403  ;;
4404
4405freebsd* | kfreebsd*-gnu | dragonfly*)
4406  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4407    case $host_cpu in
4408    i*86 )
4409      # Not sure whether the presence of OpenBSD here was a mistake.
4410      # Let's accept both of them until this is cleared up.
4411      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4412      lt_cv_file_magic_cmd=/usr/bin/file
4413      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4414      ;;
4415    esac
4416  else
4417    lt_cv_deplibs_check_method=pass_all
4418  fi
4419  ;;
4420
4421gnu*)
4422  lt_cv_deplibs_check_method=pass_all
4423  ;;
4424
4425hpux10.20* | hpux11*)
4426  lt_cv_file_magic_cmd=/usr/bin/file
4427  case $host_cpu in
4428  ia64*)
4429    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4430    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4431    ;;
4432  hppa*64*)
4433    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]'
4434    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4435    ;;
4436  *)
4437    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4438    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4439    ;;
4440  esac
4441  ;;
4442
4443interix3*)
4444  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4445  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4446  ;;
4447
4448irix5* | irix6* | nonstopux*)
4449  case $LD in
4450  *-32|*"-32 ") libmagic=32-bit;;
4451  *-n32|*"-n32 ") libmagic=N32;;
4452  *-64|*"-64 ") libmagic=64-bit;;
4453  *) libmagic=never-match;;
4454  esac
4455  lt_cv_deplibs_check_method=pass_all
4456  ;;
4457
4458# This must be Linux ELF.
4459linux*)
4460  lt_cv_deplibs_check_method=pass_all
4461  ;;
4462
4463netbsd*)
4464  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4465    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4466  else
4467    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4468  fi
4469  ;;
4470
4471newos6*)
4472  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4473  lt_cv_file_magic_cmd=/usr/bin/file
4474  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4475  ;;
4476
4477nto-qnx*)
4478  lt_cv_deplibs_check_method=unknown
4479  ;;
4480
4481openbsd*)
4482  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4483    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4484  else
4485    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4486  fi
4487  ;;
4488
4489osf3* | osf4* | osf5*)
4490  lt_cv_deplibs_check_method=pass_all
4491  ;;
4492
4493solaris*)
4494  lt_cv_deplibs_check_method=pass_all
4495  ;;
4496
4497sysv4 | sysv4.3*)
4498  case $host_vendor in
4499  motorola)
4500    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]'
4501    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4502    ;;
4503  ncr)
4504    lt_cv_deplibs_check_method=pass_all
4505    ;;
4506  sequent)
4507    lt_cv_file_magic_cmd='/bin/file'
4508    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4509    ;;
4510  sni)
4511    lt_cv_file_magic_cmd='/bin/file'
4512    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4513    lt_cv_file_magic_test_file=/lib/libc.so
4514    ;;
4515  siemens)
4516    lt_cv_deplibs_check_method=pass_all
4517    ;;
4518  pc)
4519    lt_cv_deplibs_check_method=pass_all
4520    ;;
4521  esac
4522  ;;
4523
4524sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4525  lt_cv_deplibs_check_method=pass_all
4526  ;;
4527esac
4528
4529fi
4530echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4531echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4532file_magic_cmd=$lt_cv_file_magic_cmd
4533deplibs_check_method=$lt_cv_deplibs_check_method
4534test -z "$deplibs_check_method" && deplibs_check_method=unknown
4535
4536
4537
4538
4539# If no C compiler was specified, use CC.
4540LTCC=${LTCC-"$CC"}
4541
4542# If no C compiler flags were specified, use CFLAGS.
4543LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4544
4545# Allow CC to be a program name with arguments.
4546compiler=$CC
4547
4548# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4549if test "${enable_libtool_lock+set}" = set; then
4550  enableval="$enable_libtool_lock"
4551
4552fi;
4553test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4554
4555# Some flags need to be propagated to the compiler or linker for good
4556# libtool support.
4557case $host in
4558ia64-*-hpux*)
4559  # Find out which ABI we are using.
4560  echo 'int i;' > conftest.$ac_ext
4561  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4562  (eval $ac_compile) 2>&5
4563  ac_status=$?
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); }; then
4566    case `/usr/bin/file conftest.$ac_objext` in
4567    *ELF-32*)
4568      HPUX_IA64_MODE="32"
4569      ;;
4570    *ELF-64*)
4571      HPUX_IA64_MODE="64"
4572      ;;
4573    esac
4574  fi
4575  rm -rf conftest*
4576  ;;
4577*-*-irix6*)
4578  # Find out which ABI we are using.
4579  echo '#line 4579 "configure"' > conftest.$ac_ext
4580  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4581  (eval $ac_compile) 2>&5
4582  ac_status=$?
4583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584  (exit $ac_status); }; then
4585   if test "$lt_cv_prog_gnu_ld" = yes; then
4586    case `/usr/bin/file conftest.$ac_objext` in
4587    *32-bit*)
4588      LD="${LD-ld} -melf32bsmip"
4589      ;;
4590    *N32*)
4591      LD="${LD-ld} -melf32bmipn32"
4592      ;;
4593    *64-bit*)
4594      LD="${LD-ld} -melf64bmip"
4595      ;;
4596    esac
4597   else
4598    case `/usr/bin/file conftest.$ac_objext` in
4599    *32-bit*)
4600      LD="${LD-ld} -32"
4601      ;;
4602    *N32*)
4603      LD="${LD-ld} -n32"
4604      ;;
4605    *64-bit*)
4606      LD="${LD-ld} -64"
4607      ;;
4608    esac
4609   fi
4610  fi
4611  rm -rf conftest*
4612  ;;
4613
4614x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4615  # Find out which ABI we are using.
4616  echo 'int i;' > conftest.$ac_ext
4617  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618  (eval $ac_compile) 2>&5
4619  ac_status=$?
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); }; then
4622    case `/usr/bin/file conftest.o` in
4623    *32-bit*)
4624      case $host in
4625        x86_64-*linux*)
4626          LD="${LD-ld} -m elf_i386"
4627          ;;
4628        ppc64-*linux*|powerpc64-*linux*)
4629          LD="${LD-ld} -m elf32ppclinux"
4630          ;;
4631        s390x-*linux*)
4632          LD="${LD-ld} -m elf_s390"
4633          ;;
4634        sparc64-*linux*)
4635          LD="${LD-ld} -m elf32_sparc"
4636          ;;
4637      esac
4638      ;;
4639    *64-bit*)
4640      case $host in
4641        x86_64-*linux*)
4642          LD="${LD-ld} -m elf_x86_64"
4643          ;;
4644        ppc*-*linux*|powerpc*-*linux*)
4645          LD="${LD-ld} -m elf64ppc"
4646          ;;
4647        s390*-*linux*)
4648          LD="${LD-ld} -m elf64_s390"
4649          ;;
4650        sparc*-*linux*)
4651          LD="${LD-ld} -m elf64_sparc"
4652          ;;
4653      esac
4654      ;;
4655    esac
4656  fi
4657  rm -rf conftest*
4658  ;;
4659
4660*-*-sco3.2v5*)
4661  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4662  SAVE_CFLAGS="$CFLAGS"
4663  CFLAGS="$CFLAGS -belf"
4664  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4665echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4666if test "${lt_cv_cc_needs_belf+set}" = set; then
4667  echo $ECHO_N "(cached) $ECHO_C" >&6
4668else
4669  ac_ext=c
4670ac_cpp='$CPP $CPPFLAGS'
4671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673ac_compiler_gnu=$ac_cv_c_compiler_gnu
4674
4675     cat >conftest.$ac_ext <<_ACEOF
4676/* confdefs.h.  */
4677_ACEOF
4678cat confdefs.h >>conftest.$ac_ext
4679cat >>conftest.$ac_ext <<_ACEOF
4680/* end confdefs.h.  */
4681
4682int
4683main ()
4684{
4685
4686  ;
4687  return 0;
4688}
4689_ACEOF
4690rm -f conftest.$ac_objext conftest$ac_exeext
4691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4692  (eval $ac_link) 2>conftest.er1
4693  ac_status=$?
4694  grep -v '^ *+' conftest.er1 >conftest.err
4695  rm -f conftest.er1
4696  cat conftest.err >&5
4697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698  (exit $ac_status); } &&
4699         { ac_try='test -z "$ac_c_werror_flag"
4700                         || test ! -s conftest.err'
4701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702  (eval $ac_try) 2>&5
4703  ac_status=$?
4704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705  (exit $ac_status); }; } &&
4706         { ac_try='test -s conftest$ac_exeext'
4707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708  (eval $ac_try) 2>&5
4709  ac_status=$?
4710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711  (exit $ac_status); }; }; then
4712  lt_cv_cc_needs_belf=yes
4713else
4714  echo "$as_me: failed program was:" >&5
4715sed 's/^/| /' conftest.$ac_ext >&5
4716
4717lt_cv_cc_needs_belf=no
4718fi
4719rm -f conftest.err conftest.$ac_objext \
4720      conftest$ac_exeext conftest.$ac_ext
4721     ac_ext=c
4722ac_cpp='$CPP $CPPFLAGS'
4723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725ac_compiler_gnu=$ac_cv_c_compiler_gnu
4726
4727fi
4728echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4729echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4730  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4731    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4732    CFLAGS="$SAVE_CFLAGS"
4733  fi
4734  ;;
4735sparc*-*solaris*)
4736  # Find out which ABI we are using.
4737  echo 'int i;' > conftest.$ac_ext
4738  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739  (eval $ac_compile) 2>&5
4740  ac_status=$?
4741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742  (exit $ac_status); }; then
4743    case `/usr/bin/file conftest.o` in
4744    *64-bit*)
4745      case $lt_cv_prog_gnu_ld in
4746      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4747      *)    LD="${LD-ld} -64" ;;
4748      esac
4749      ;;
4750    esac
4751  fi
4752  rm -rf conftest*
4753  ;;
4754
4755
4756esac
4757
4758need_locks="$enable_libtool_lock"
4759
4760
4761ac_ext=c
4762ac_cpp='$CPP $CPPFLAGS'
4763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4765ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4767echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4768# On Suns, sometimes $CPP names a directory.
4769if test -n "$CPP" && test -d "$CPP"; then
4770  CPP=
4771fi
4772if test -z "$CPP"; then
4773  if test "${ac_cv_prog_CPP+set}" = set; then
4774  echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
4776      # Double quotes because CPP needs to be expanded
4777    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4778    do
4779      ac_preproc_ok=false
4780for ac_c_preproc_warn_flag in '' yes
4781do
4782  # Use a header file that comes with gcc, so configuring glibc
4783  # with a fresh cross-compiler works.
4784  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4785  # <limits.h> exists even on freestanding compilers.
4786  # On the NeXT, cc -E runs the code through the compiler's parser,
4787  # not just through cpp. "Syntax error" is here to catch this case.
4788  cat >conftest.$ac_ext <<_ACEOF
4789/* confdefs.h.  */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h.  */
4794#ifdef __STDC__
4795# include <limits.h>
4796#else
4797# include <assert.h>
4798#endif
4799                     Syntax error
4800_ACEOF
4801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4802  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4803  ac_status=$?
4804  grep -v '^ *+' conftest.er1 >conftest.err
4805  rm -f conftest.er1
4806  cat conftest.err >&5
4807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808  (exit $ac_status); } >/dev/null; then
4809  if test -s conftest.err; then
4810    ac_cpp_err=$ac_c_preproc_warn_flag
4811    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4812  else
4813    ac_cpp_err=
4814  fi
4815else
4816  ac_cpp_err=yes
4817fi
4818if test -z "$ac_cpp_err"; then
4819  :
4820else
4821  echo "$as_me: failed program was:" >&5
4822sed 's/^/| /' conftest.$ac_ext >&5
4823
4824  # Broken: fails on valid input.
4825continue
4826fi
4827rm -f conftest.err conftest.$ac_ext
4828
4829  # OK, works on sane cases.  Now check whether non-existent headers
4830  # can be detected and how.
4831  cat >conftest.$ac_ext <<_ACEOF
4832/* confdefs.h.  */
4833_ACEOF
4834cat confdefs.h >>conftest.$ac_ext
4835cat >>conftest.$ac_ext <<_ACEOF
4836/* end confdefs.h.  */
4837#include <ac_nonexistent.h>
4838_ACEOF
4839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4840  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4841  ac_status=$?
4842  grep -v '^ *+' conftest.er1 >conftest.err
4843  rm -f conftest.er1
4844  cat conftest.err >&5
4845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846  (exit $ac_status); } >/dev/null; then
4847  if test -s conftest.err; then
4848    ac_cpp_err=$ac_c_preproc_warn_flag
4849    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4850  else
4851    ac_cpp_err=
4852  fi
4853else
4854  ac_cpp_err=yes
4855fi
4856if test -z "$ac_cpp_err"; then
4857  # Broken: success on invalid input.
4858continue
4859else
4860  echo "$as_me: failed program was:" >&5
4861sed 's/^/| /' conftest.$ac_ext >&5
4862
4863  # Passes both tests.
4864ac_preproc_ok=:
4865break
4866fi
4867rm -f conftest.err conftest.$ac_ext
4868
4869done
4870# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4871rm -f conftest.err conftest.$ac_ext
4872if $ac_preproc_ok; then
4873  break
4874fi
4875
4876    done
4877    ac_cv_prog_CPP=$CPP
4878
4879fi
4880  CPP=$ac_cv_prog_CPP
4881else
4882  ac_cv_prog_CPP=$CPP
4883fi
4884echo "$as_me:$LINENO: result: $CPP" >&5
4885echo "${ECHO_T}$CPP" >&6
4886ac_preproc_ok=false
4887for ac_c_preproc_warn_flag in '' yes
4888do
4889  # Use a header file that comes with gcc, so configuring glibc
4890  # with a fresh cross-compiler works.
4891  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4892  # <limits.h> exists even on freestanding compilers.
4893  # On the NeXT, cc -E runs the code through the compiler's parser,
4894  # not just through cpp. "Syntax error" is here to catch this case.
4895  cat >conftest.$ac_ext <<_ACEOF
4896/* confdefs.h.  */
4897_ACEOF
4898cat confdefs.h >>conftest.$ac_ext
4899cat >>conftest.$ac_ext <<_ACEOF
4900/* end confdefs.h.  */
4901#ifdef __STDC__
4902# include <limits.h>
4903#else
4904# include <assert.h>
4905#endif
4906                     Syntax error
4907_ACEOF
4908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4909  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4910  ac_status=$?
4911  grep -v '^ *+' conftest.er1 >conftest.err
4912  rm -f conftest.er1
4913  cat conftest.err >&5
4914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915  (exit $ac_status); } >/dev/null; then
4916  if test -s conftest.err; then
4917    ac_cpp_err=$ac_c_preproc_warn_flag
4918    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4919  else
4920    ac_cpp_err=
4921  fi
4922else
4923  ac_cpp_err=yes
4924fi
4925if test -z "$ac_cpp_err"; then
4926  :
4927else
4928  echo "$as_me: failed program was:" >&5
4929sed 's/^/| /' conftest.$ac_ext >&5
4930
4931  # Broken: fails on valid input.
4932continue
4933fi
4934rm -f conftest.err conftest.$ac_ext
4935
4936  # OK, works on sane cases.  Now check whether non-existent headers
4937  # can be detected and how.
4938  cat >conftest.$ac_ext <<_ACEOF
4939/* confdefs.h.  */
4940_ACEOF
4941cat confdefs.h >>conftest.$ac_ext
4942cat >>conftest.$ac_ext <<_ACEOF
4943/* end confdefs.h.  */
4944#include <ac_nonexistent.h>
4945_ACEOF
4946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4947  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4948  ac_status=$?
4949  grep -v '^ *+' conftest.er1 >conftest.err
4950  rm -f conftest.er1
4951  cat conftest.err >&5
4952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953  (exit $ac_status); } >/dev/null; then
4954  if test -s conftest.err; then
4955    ac_cpp_err=$ac_c_preproc_warn_flag
4956    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4957  else
4958    ac_cpp_err=
4959  fi
4960else
4961  ac_cpp_err=yes
4962fi
4963if test -z "$ac_cpp_err"; then
4964  # Broken: success on invalid input.
4965continue
4966else
4967  echo "$as_me: failed program was:" >&5
4968sed 's/^/| /' conftest.$ac_ext >&5
4969
4970  # Passes both tests.
4971ac_preproc_ok=:
4972break
4973fi
4974rm -f conftest.err conftest.$ac_ext
4975
4976done
4977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4978rm -f conftest.err conftest.$ac_ext
4979if $ac_preproc_ok; then
4980  :
4981else
4982  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4983See \`config.log' for more details." >&5
4984echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4985See \`config.log' for more details." >&2;}
4986   { (exit 1); exit 1; }; }
4987fi
4988
4989ac_ext=c
4990ac_cpp='$CPP $CPPFLAGS'
4991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994
4995
4996echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4997echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4998if test "${ac_cv_header_stdc+set}" = set; then
4999  echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001  cat >conftest.$ac_ext <<_ACEOF
5002/* confdefs.h.  */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h.  */
5007#include <stdlib.h>
5008#include <stdarg.h>
5009#include <string.h>
5010#include <float.h>
5011
5012int
5013main ()
5014{
5015
5016  ;
5017  return 0;
5018}
5019_ACEOF
5020rm -f conftest.$ac_objext
5021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022  (eval $ac_compile) 2>conftest.er1
5023  ac_status=$?
5024  grep -v '^ *+' conftest.er1 >conftest.err
5025  rm -f conftest.er1
5026  cat conftest.err >&5
5027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028  (exit $ac_status); } &&
5029         { ac_try='test -z "$ac_c_werror_flag"
5030                         || test ! -s conftest.err'
5031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032  (eval $ac_try) 2>&5
5033  ac_status=$?
5034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035  (exit $ac_status); }; } &&
5036         { ac_try='test -s conftest.$ac_objext'
5037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038  (eval $ac_try) 2>&5
5039  ac_status=$?
5040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041  (exit $ac_status); }; }; then
5042  ac_cv_header_stdc=yes
5043else
5044  echo "$as_me: failed program was:" >&5
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
5047ac_cv_header_stdc=no
5048fi
5049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5050
5051if test $ac_cv_header_stdc = yes; then
5052  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5053  cat >conftest.$ac_ext <<_ACEOF
5054/* confdefs.h.  */
5055_ACEOF
5056cat confdefs.h >>conftest.$ac_ext
5057cat >>conftest.$ac_ext <<_ACEOF
5058/* end confdefs.h.  */
5059#include <string.h>
5060
5061_ACEOF
5062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5063  $EGREP "memchr" >/dev/null 2>&1; then
5064  :
5065else
5066  ac_cv_header_stdc=no
5067fi
5068rm -f conftest*
5069
5070fi
5071
5072if test $ac_cv_header_stdc = yes; then
5073  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5074  cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h.  */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h.  */
5080#include <stdlib.h>
5081
5082_ACEOF
5083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5084  $EGREP "free" >/dev/null 2>&1; then
5085  :
5086else
5087  ac_cv_header_stdc=no
5088fi
5089rm -f conftest*
5090
5091fi
5092
5093if test $ac_cv_header_stdc = yes; then
5094  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5095  if test "$cross_compiling" = yes; then
5096  :
5097else
5098  cat >conftest.$ac_ext <<_ACEOF
5099/* confdefs.h.  */
5100_ACEOF
5101cat confdefs.h >>conftest.$ac_ext
5102cat >>conftest.$ac_ext <<_ACEOF
5103/* end confdefs.h.  */
5104#include <ctype.h>
5105#if ((' ' & 0x0FF) == 0x020)
5106# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5107# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5108#else
5109# define ISLOWER(c) \
5110                   (('a' <= (c) && (c) <= 'i') \
5111                     || ('j' <= (c) && (c) <= 'r') \
5112                     || ('s' <= (c) && (c) <= 'z'))
5113# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5114#endif
5115
5116#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5117int
5118main ()
5119{
5120  int i;
5121  for (i = 0; i < 256; i++)
5122    if (XOR (islower (i), ISLOWER (i))
5123        || toupper (i) != TOUPPER (i))
5124      exit(2);
5125  exit (0);
5126}
5127_ACEOF
5128rm -f conftest$ac_exeext
5129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5130  (eval $ac_link) 2>&5
5131  ac_status=$?
5132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135  (eval $ac_try) 2>&5
5136  ac_status=$?
5137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138  (exit $ac_status); }; }; then
5139  :
5140else
5141  echo "$as_me: program exited with status $ac_status" >&5
5142echo "$as_me: failed program was:" >&5
5143sed 's/^/| /' conftest.$ac_ext >&5
5144
5145( exit $ac_status )
5146ac_cv_header_stdc=no
5147fi
5148rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5149fi
5150fi
5151fi
5152echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5153echo "${ECHO_T}$ac_cv_header_stdc" >&6
5154if test $ac_cv_header_stdc = yes; then
5155
5156cat >>confdefs.h <<\_ACEOF
5157#define STDC_HEADERS 1
5158_ACEOF
5159
5160fi
5161
5162# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5173                  inttypes.h stdint.h unistd.h
5174do
5175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5176echo "$as_me:$LINENO: checking for $ac_header" >&5
5177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5178if eval "test \"\${$as_ac_Header+set}\" = set"; then
5179  echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181  cat >conftest.$ac_ext <<_ACEOF
5182/* confdefs.h.  */
5183_ACEOF
5184cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h.  */
5187$ac_includes_default
5188
5189#include <$ac_header>
5190_ACEOF
5191rm -f conftest.$ac_objext
5192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5193  (eval $ac_compile) 2>conftest.er1
5194  ac_status=$?
5195  grep -v '^ *+' conftest.er1 >conftest.err
5196  rm -f conftest.er1
5197  cat conftest.err >&5
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); } &&
5200         { ac_try='test -z "$ac_c_werror_flag"
5201                         || test ! -s conftest.err'
5202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203  (eval $ac_try) 2>&5
5204  ac_status=$?
5205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206  (exit $ac_status); }; } &&
5207         { ac_try='test -s conftest.$ac_objext'
5208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209  (eval $ac_try) 2>&5
5210  ac_status=$?
5211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); }; }; then
5213  eval "$as_ac_Header=yes"
5214else
5215  echo "$as_me: failed program was:" >&5
5216sed 's/^/| /' conftest.$ac_ext >&5
5217
5218eval "$as_ac_Header=no"
5219fi
5220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5221fi
5222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5224if test `eval echo '${'$as_ac_Header'}'` = yes; then
5225  cat >>confdefs.h <<_ACEOF
5226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5227_ACEOF
5228
5229fi
5230
5231done
5232
5233
5234
5235for ac_header in dlfcn.h
5236do
5237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5238if eval "test \"\${$as_ac_Header+set}\" = set"; then
5239  echo "$as_me:$LINENO: checking for $ac_header" >&5
5240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5241if eval "test \"\${$as_ac_Header+set}\" = set"; then
5242  echo $ECHO_N "(cached) $ECHO_C" >&6
5243fi
5244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5246else
5247  # Is the header compilable?
5248echo "$as_me:$LINENO: checking $ac_header usability" >&5
5249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5250cat >conftest.$ac_ext <<_ACEOF
5251/* confdefs.h.  */
5252_ACEOF
5253cat confdefs.h >>conftest.$ac_ext
5254cat >>conftest.$ac_ext <<_ACEOF
5255/* end confdefs.h.  */
5256$ac_includes_default
5257#include <$ac_header>
5258_ACEOF
5259rm -f conftest.$ac_objext
5260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261  (eval $ac_compile) 2>conftest.er1
5262  ac_status=$?
5263  grep -v '^ *+' conftest.er1 >conftest.err
5264  rm -f conftest.er1
5265  cat conftest.err >&5
5266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267  (exit $ac_status); } &&
5268         { ac_try='test -z "$ac_c_werror_flag"
5269                         || test ! -s conftest.err'
5270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271  (eval $ac_try) 2>&5
5272  ac_status=$?
5273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274  (exit $ac_status); }; } &&
5275         { ac_try='test -s conftest.$ac_objext'
5276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277  (eval $ac_try) 2>&5
5278  ac_status=$?
5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280  (exit $ac_status); }; }; then
5281  ac_header_compiler=yes
5282else
5283  echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286ac_header_compiler=no
5287fi
5288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5290echo "${ECHO_T}$ac_header_compiler" >&6
5291
5292# Is the header present?
5293echo "$as_me:$LINENO: checking $ac_header presence" >&5
5294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5295cat >conftest.$ac_ext <<_ACEOF
5296/* confdefs.h.  */
5297_ACEOF
5298cat confdefs.h >>conftest.$ac_ext
5299cat >>conftest.$ac_ext <<_ACEOF
5300/* end confdefs.h.  */
5301#include <$ac_header>
5302_ACEOF
5303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5304  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5305  ac_status=$?
5306  grep -v '^ *+' conftest.er1 >conftest.err
5307  rm -f conftest.er1
5308  cat conftest.err >&5
5309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310  (exit $ac_status); } >/dev/null; then
5311  if test -s conftest.err; then
5312    ac_cpp_err=$ac_c_preproc_warn_flag
5313    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5314  else
5315    ac_cpp_err=
5316  fi
5317else
5318  ac_cpp_err=yes
5319fi
5320if test -z "$ac_cpp_err"; then
5321  ac_header_preproc=yes
5322else
5323  echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326  ac_header_preproc=no
5327fi
5328rm -f conftest.err conftest.$ac_ext
5329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5330echo "${ECHO_T}$ac_header_preproc" >&6
5331
5332# So?  What about this header?
5333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5334  yes:no: )
5335    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5337    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5339    ac_header_preproc=yes
5340    ;;
5341  no:yes:* )
5342    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5344    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5345echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5346    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5348    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5349echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5350    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5352    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5354    (
5355      cat <<\_ASBOX
5356## --------------------------------------------------------------- ##
5357## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5358## --------------------------------------------------------------- ##
5359_ASBOX
5360    ) |
5361      sed "s/^/$as_me: WARNING:     /" >&2
5362    ;;
5363esac
5364echo "$as_me:$LINENO: checking for $ac_header" >&5
5365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5366if eval "test \"\${$as_ac_Header+set}\" = set"; then
5367  echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369  eval "$as_ac_Header=\$ac_header_preproc"
5370fi
5371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5373
5374fi
5375if test `eval echo '${'$as_ac_Header'}'` = yes; then
5376  cat >>confdefs.h <<_ACEOF
5377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5378_ACEOF
5379
5380fi
5381
5382done
5383
5384ac_ext=cc
5385ac_cpp='$CXXCPP $CPPFLAGS'
5386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5389if test -n "$ac_tool_prefix"; then
5390  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5391  do
5392    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5393set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5394echo "$as_me:$LINENO: checking for $ac_word" >&5
5395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396if test "${ac_cv_prog_CXX+set}" = set; then
5397  echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399  if test -n "$CXX"; then
5400  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405  IFS=$as_save_IFS
5406  test -z "$as_dir" && as_dir=.
5407  for ac_exec_ext in '' $ac_executable_extensions; do
5408  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5410    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411    break 2
5412  fi
5413done
5414done
5415
5416fi
5417fi
5418CXX=$ac_cv_prog_CXX
5419if test -n "$CXX"; then
5420  echo "$as_me:$LINENO: result: $CXX" >&5
5421echo "${ECHO_T}$CXX" >&6
5422else
5423  echo "$as_me:$LINENO: result: no" >&5
5424echo "${ECHO_T}no" >&6
5425fi
5426
5427    test -n "$CXX" && break
5428  done
5429fi
5430if test -z "$CXX"; then
5431  ac_ct_CXX=$CXX
5432  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5433do
5434  # Extract the first word of "$ac_prog", so it can be a program name with args.
5435set dummy $ac_prog; ac_word=$2
5436echo "$as_me:$LINENO: checking for $ac_word" >&5
5437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5438if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5439  echo $ECHO_N "(cached) $ECHO_C" >&6
5440else
5441  if test -n "$ac_ct_CXX"; then
5442  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447  IFS=$as_save_IFS
5448  test -z "$as_dir" && as_dir=.
5449  for ac_exec_ext in '' $ac_executable_extensions; do
5450  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451    ac_cv_prog_ac_ct_CXX="$ac_prog"
5452    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453    break 2
5454  fi
5455done
5456done
5457
5458fi
5459fi
5460ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5461if test -n "$ac_ct_CXX"; then
5462  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5463echo "${ECHO_T}$ac_ct_CXX" >&6
5464else
5465  echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
5467fi
5468
5469  test -n "$ac_ct_CXX" && break
5470done
5471test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5472
5473  CXX=$ac_ct_CXX
5474fi
5475
5476
5477# Provide some information about the compiler.
5478echo "$as_me:$LINENO:" \
5479     "checking for C++ compiler version" >&5
5480ac_compiler=`set X $ac_compile; echo $2`
5481{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5482  (eval $ac_compiler --version </dev/null >&5) 2>&5
5483  ac_status=$?
5484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485  (exit $ac_status); }
5486{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5487  (eval $ac_compiler -v </dev/null >&5) 2>&5
5488  ac_status=$?
5489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490  (exit $ac_status); }
5491{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5492  (eval $ac_compiler -V </dev/null >&5) 2>&5
5493  ac_status=$?
5494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495  (exit $ac_status); }
5496
5497echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5498echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5499if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5500  echo $ECHO_N "(cached) $ECHO_C" >&6
5501else
5502  cat >conftest.$ac_ext <<_ACEOF
5503/* confdefs.h.  */
5504_ACEOF
5505cat confdefs.h >>conftest.$ac_ext
5506cat >>conftest.$ac_ext <<_ACEOF
5507/* end confdefs.h.  */
5508
5509int
5510main ()
5511{
5512#ifndef __GNUC__
5513       choke me
5514#endif
5515
5516  ;
5517  return 0;
5518}
5519_ACEOF
5520rm -f conftest.$ac_objext
5521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522  (eval $ac_compile) 2>conftest.er1
5523  ac_status=$?
5524  grep -v '^ *+' conftest.er1 >conftest.err
5525  rm -f conftest.er1
5526  cat conftest.err >&5
5527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528  (exit $ac_status); } &&
5529         { ac_try='test -z "$ac_cxx_werror_flag"
5530                         || test ! -s conftest.err'
5531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532  (eval $ac_try) 2>&5
5533  ac_status=$?
5534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535  (exit $ac_status); }; } &&
5536         { ac_try='test -s conftest.$ac_objext'
5537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538  (eval $ac_try) 2>&5
5539  ac_status=$?
5540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541  (exit $ac_status); }; }; then
5542  ac_compiler_gnu=yes
5543else
5544  echo "$as_me: failed program was:" >&5
5545sed 's/^/| /' conftest.$ac_ext >&5
5546
5547ac_compiler_gnu=no
5548fi
5549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5550ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5551
5552fi
5553echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5554echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5555GXX=`test $ac_compiler_gnu = yes && echo yes`
5556ac_test_CXXFLAGS=${CXXFLAGS+set}
5557ac_save_CXXFLAGS=$CXXFLAGS
5558CXXFLAGS="-g"
5559echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5560echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5561if test "${ac_cv_prog_cxx_g+set}" = set; then
5562  echo $ECHO_N "(cached) $ECHO_C" >&6
5563else
5564  cat >conftest.$ac_ext <<_ACEOF
5565/* confdefs.h.  */
5566_ACEOF
5567cat confdefs.h >>conftest.$ac_ext
5568cat >>conftest.$ac_ext <<_ACEOF
5569/* end confdefs.h.  */
5570
5571int
5572main ()
5573{
5574
5575  ;
5576  return 0;
5577}
5578_ACEOF
5579rm -f conftest.$ac_objext
5580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581  (eval $ac_compile) 2>conftest.er1
5582  ac_status=$?
5583  grep -v '^ *+' conftest.er1 >conftest.err
5584  rm -f conftest.er1
5585  cat conftest.err >&5
5586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587  (exit $ac_status); } &&
5588         { ac_try='test -z "$ac_cxx_werror_flag"
5589                         || test ! -s conftest.err'
5590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591  (eval $ac_try) 2>&5
5592  ac_status=$?
5593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594  (exit $ac_status); }; } &&
5595         { ac_try='test -s conftest.$ac_objext'
5596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597  (eval $ac_try) 2>&5
5598  ac_status=$?
5599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600  (exit $ac_status); }; }; then
5601  ac_cv_prog_cxx_g=yes
5602else
5603  echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606ac_cv_prog_cxx_g=no
5607fi
5608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5609fi
5610echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5611echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5612if test "$ac_test_CXXFLAGS" = set; then
5613  CXXFLAGS=$ac_save_CXXFLAGS
5614elif test $ac_cv_prog_cxx_g = yes; then
5615  if test "$GXX" = yes; then
5616    CXXFLAGS="-g -O2"
5617  else
5618    CXXFLAGS="-g"
5619  fi
5620else
5621  if test "$GXX" = yes; then
5622    CXXFLAGS="-O2"
5623  else
5624    CXXFLAGS=
5625  fi
5626fi
5627for ac_declaration in \
5628   '' \
5629   'extern "C" void std::exit (int) throw (); using std::exit;' \
5630   'extern "C" void std::exit (int); using std::exit;' \
5631   'extern "C" void exit (int) throw ();' \
5632   'extern "C" void exit (int);' \
5633   'void exit (int);'
5634do
5635  cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h.  */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h.  */
5641$ac_declaration
5642#include <stdlib.h>
5643int
5644main ()
5645{
5646exit (42);
5647  ;
5648  return 0;
5649}
5650_ACEOF
5651rm -f conftest.$ac_objext
5652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653  (eval $ac_compile) 2>conftest.er1
5654  ac_status=$?
5655  grep -v '^ *+' conftest.er1 >conftest.err
5656  rm -f conftest.er1
5657  cat conftest.err >&5
5658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659  (exit $ac_status); } &&
5660         { ac_try='test -z "$ac_cxx_werror_flag"
5661                         || test ! -s conftest.err'
5662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663  (eval $ac_try) 2>&5
5664  ac_status=$?
5665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); }; } &&
5667         { ac_try='test -s conftest.$ac_objext'
5668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669  (eval $ac_try) 2>&5
5670  ac_status=$?
5671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672  (exit $ac_status); }; }; then
5673  :
5674else
5675  echo "$as_me: failed program was:" >&5
5676sed 's/^/| /' conftest.$ac_ext >&5
5677
5678continue
5679fi
5680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5681  cat >conftest.$ac_ext <<_ACEOF
5682/* confdefs.h.  */
5683_ACEOF
5684cat confdefs.h >>conftest.$ac_ext
5685cat >>conftest.$ac_ext <<_ACEOF
5686/* end confdefs.h.  */
5687$ac_declaration
5688int
5689main ()
5690{
5691exit (42);
5692  ;
5693  return 0;
5694}
5695_ACEOF
5696rm -f conftest.$ac_objext
5697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5698  (eval $ac_compile) 2>conftest.er1
5699  ac_status=$?
5700  grep -v '^ *+' conftest.er1 >conftest.err
5701  rm -f conftest.er1
5702  cat conftest.err >&5
5703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704  (exit $ac_status); } &&
5705         { ac_try='test -z "$ac_cxx_werror_flag"
5706                         || test ! -s conftest.err'
5707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708  (eval $ac_try) 2>&5
5709  ac_status=$?
5710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711  (exit $ac_status); }; } &&
5712         { ac_try='test -s conftest.$ac_objext'
5713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714  (eval $ac_try) 2>&5
5715  ac_status=$?
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); }; }; then
5718  break
5719else
5720  echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723fi
5724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5725done
5726rm -f conftest*
5727if test -n "$ac_declaration"; then
5728  echo '#ifdef __cplusplus' >>confdefs.h
5729  echo $ac_declaration      >>confdefs.h
5730  echo '#endif'             >>confdefs.h
5731fi
5732
5733ac_ext=cc
5734ac_cpp='$CXXCPP $CPPFLAGS'
5735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5738
5739depcc="$CXX"  am_compiler_list=
5740
5741echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5742echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5743if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5744  echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5747  # We make a subdir and do the tests there.  Otherwise we can end up
5748  # making bogus files that we don't know about and never remove.  For
5749  # instance it was reported that on HP-UX the gcc test will end up
5750  # making a dummy file named `D' -- because `-MD' means `put the output
5751  # in D'.
5752  mkdir conftest.dir
5753  # Copy depcomp to subdir because otherwise we won't find it if we're
5754  # using a relative directory.
5755  cp "$am_depcomp" conftest.dir
5756  cd conftest.dir
5757  # We will build objects and dependencies in a subdirectory because
5758  # it helps to detect inapplicable dependency modes.  For instance
5759  # both Tru64's cc and ICC support -MD to output dependencies as a
5760  # side effect of compilation, but ICC will put the dependencies in
5761  # the current directory while Tru64 will put them in the object
5762  # directory.
5763  mkdir sub
5764
5765  am_cv_CXX_dependencies_compiler_type=none
5766  if test "$am_compiler_list" = ""; then
5767     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5768  fi
5769  for depmode in $am_compiler_list; do
5770    # Setup a source with many dependencies, because some compilers
5771    # like to wrap large dependency lists on column 80 (with \), and
5772    # we should not choose a depcomp mode which is confused by this.
5773    #
5774    # We need to recreate these files for each test, as the compiler may
5775    # overwrite some of them when testing with obscure command lines.
5776    # This happens at least with the AIX C compiler.
5777    : > sub/conftest.c
5778    for i in 1 2 3 4 5 6; do
5779      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5780      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5781      # Solaris 8's {/usr,}/bin/sh.
5782      touch sub/conftst$i.h
5783    done
5784    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5785
5786    case $depmode in
5787    nosideeffect)
5788      # after this tag, mechanisms are not by side-effect, so they'll
5789      # only be used when explicitly requested
5790      if test "x$enable_dependency_tracking" = xyes; then
5791        continue
5792      else
5793        break
5794      fi
5795      ;;
5796    none) break ;;
5797    esac
5798    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5799    # mode.  It turns out that the SunPro C++ compiler does not properly
5800    # handle `-M -o', and we need to detect this.
5801    if depmode=$depmode \
5802       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5803       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5804       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5805         >/dev/null 2>conftest.err &&
5806       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5807       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5808       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5809      # icc doesn't choke on unknown options, it will just issue warnings
5810      # or remarks (even with -Werror).  So we grep stderr for any message
5811      # that says an option was ignored or not supported.
5812      # When given -MP, icc 7.0 and 7.1 complain thusly:
5813      #   icc: Command line warning: ignoring option '-M'; no argument required
5814      # The diagnosis changed in icc 8.0:
5815      #   icc: Command line remark: option '-MP' not supported
5816      if (grep 'ignoring option' conftest.err ||
5817          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5818        am_cv_CXX_dependencies_compiler_type=$depmode
5819        break
5820      fi
5821    fi
5822  done
5823
5824  cd ..
5825  rm -rf conftest.dir
5826else
5827  am_cv_CXX_dependencies_compiler_type=none
5828fi
5829
5830fi
5831echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5832echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5833CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5834
5835
5836
5837if
5838  test "x$enable_dependency_tracking" != xno \
5839  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5840  am__fastdepCXX_TRUE=
5841  am__fastdepCXX_FALSE='#'
5842else
5843  am__fastdepCXX_TRUE='#'
5844  am__fastdepCXX_FALSE=
5845fi
5846
5847
5848
5849
5850if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5851    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5852    (test "X$CXX" != "Xg++"))) ; then
5853  ac_ext=cc
5854ac_cpp='$CXXCPP $CPPFLAGS'
5855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5858echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5859echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5860if test -z "$CXXCPP"; then
5861  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5862  echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
5864      # Double quotes because CXXCPP needs to be expanded
5865    for CXXCPP in "$CXX -E" "/lib/cpp"
5866    do
5867      ac_preproc_ok=false
5868for ac_cxx_preproc_warn_flag in '' yes
5869do
5870  # Use a header file that comes with gcc, so configuring glibc
5871  # with a fresh cross-compiler works.
5872  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5873  # <limits.h> exists even on freestanding compilers.
5874  # On the NeXT, cc -E runs the code through the compiler's parser,
5875  # not just through cpp. "Syntax error" is here to catch this case.
5876  cat >conftest.$ac_ext <<_ACEOF
5877/* confdefs.h.  */
5878_ACEOF
5879cat confdefs.h >>conftest.$ac_ext
5880cat >>conftest.$ac_ext <<_ACEOF
5881/* end confdefs.h.  */
5882#ifdef __STDC__
5883# include <limits.h>
5884#else
5885# include <assert.h>
5886#endif
5887                     Syntax error
5888_ACEOF
5889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5890  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5891  ac_status=$?
5892  grep -v '^ *+' conftest.er1 >conftest.err
5893  rm -f conftest.er1
5894  cat conftest.err >&5
5895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896  (exit $ac_status); } >/dev/null; then
5897  if test -s conftest.err; then
5898    ac_cpp_err=$ac_cxx_preproc_warn_flag
5899    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5900  else
5901    ac_cpp_err=
5902  fi
5903else
5904  ac_cpp_err=yes
5905fi
5906if test -z "$ac_cpp_err"; then
5907  :
5908else
5909  echo "$as_me: failed program was:" >&5
5910sed 's/^/| /' conftest.$ac_ext >&5
5911
5912  # Broken: fails on valid input.
5913continue
5914fi
5915rm -f conftest.err conftest.$ac_ext
5916
5917  # OK, works on sane cases.  Now check whether non-existent headers
5918  # can be detected and how.
5919  cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h.  */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h.  */
5925#include <ac_nonexistent.h>
5926_ACEOF
5927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5928  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5929  ac_status=$?
5930  grep -v '^ *+' conftest.er1 >conftest.err
5931  rm -f conftest.er1
5932  cat conftest.err >&5
5933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934  (exit $ac_status); } >/dev/null; then
5935  if test -s conftest.err; then
5936    ac_cpp_err=$ac_cxx_preproc_warn_flag
5937    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5938  else
5939    ac_cpp_err=
5940  fi
5941else
5942  ac_cpp_err=yes
5943fi
5944if test -z "$ac_cpp_err"; then
5945  # Broken: success on invalid input.
5946continue
5947else
5948  echo "$as_me: failed program was:" >&5
5949sed 's/^/| /' conftest.$ac_ext >&5
5950
5951  # Passes both tests.
5952ac_preproc_ok=:
5953break
5954fi
5955rm -f conftest.err conftest.$ac_ext
5956
5957done
5958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5959rm -f conftest.err conftest.$ac_ext
5960if $ac_preproc_ok; then
5961  break
5962fi
5963
5964    done
5965    ac_cv_prog_CXXCPP=$CXXCPP
5966
5967fi
5968  CXXCPP=$ac_cv_prog_CXXCPP
5969else
5970  ac_cv_prog_CXXCPP=$CXXCPP
5971fi
5972echo "$as_me:$LINENO: result: $CXXCPP" >&5
5973echo "${ECHO_T}$CXXCPP" >&6
5974ac_preproc_ok=false
5975for ac_cxx_preproc_warn_flag in '' yes
5976do
5977  # Use a header file that comes with gcc, so configuring glibc
5978  # with a fresh cross-compiler works.
5979  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5980  # <limits.h> exists even on freestanding compilers.
5981  # On the NeXT, cc -E runs the code through the compiler's parser,
5982  # not just through cpp. "Syntax error" is here to catch this case.
5983  cat >conftest.$ac_ext <<_ACEOF
5984/* confdefs.h.  */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h.  */
5989#ifdef __STDC__
5990# include <limits.h>
5991#else
5992# include <assert.h>
5993#endif
5994                     Syntax error
5995_ACEOF
5996if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5997  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5998  ac_status=$?
5999  grep -v '^ *+' conftest.er1 >conftest.err
6000  rm -f conftest.er1
6001  cat conftest.err >&5
6002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003  (exit $ac_status); } >/dev/null; then
6004  if test -s conftest.err; then
6005    ac_cpp_err=$ac_cxx_preproc_warn_flag
6006    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6007  else
6008    ac_cpp_err=
6009  fi
6010else
6011  ac_cpp_err=yes
6012fi
6013if test -z "$ac_cpp_err"; then
6014  :
6015else
6016  echo "$as_me: failed program was:" >&5
6017sed 's/^/| /' conftest.$ac_ext >&5
6018
6019  # Broken: fails on valid input.
6020continue
6021fi
6022rm -f conftest.err conftest.$ac_ext
6023
6024  # OK, works on sane cases.  Now check whether non-existent headers
6025  # can be detected and how.
6026  cat >conftest.$ac_ext <<_ACEOF
6027/* confdefs.h.  */
6028_ACEOF
6029cat confdefs.h >>conftest.$ac_ext
6030cat >>conftest.$ac_ext <<_ACEOF
6031/* end confdefs.h.  */
6032#include <ac_nonexistent.h>
6033_ACEOF
6034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6035  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6036  ac_status=$?
6037  grep -v '^ *+' conftest.er1 >conftest.err
6038  rm -f conftest.er1
6039  cat conftest.err >&5
6040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041  (exit $ac_status); } >/dev/null; then
6042  if test -s conftest.err; then
6043    ac_cpp_err=$ac_cxx_preproc_warn_flag
6044    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6045  else
6046    ac_cpp_err=
6047  fi
6048else
6049  ac_cpp_err=yes
6050fi
6051if test -z "$ac_cpp_err"; then
6052  # Broken: success on invalid input.
6053continue
6054else
6055  echo "$as_me: failed program was:" >&5
6056sed 's/^/| /' conftest.$ac_ext >&5
6057
6058  # Passes both tests.
6059ac_preproc_ok=:
6060break
6061fi
6062rm -f conftest.err conftest.$ac_ext
6063
6064done
6065# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6066rm -f conftest.err conftest.$ac_ext
6067if $ac_preproc_ok; then
6068  :
6069else
6070  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6071See \`config.log' for more details." >&5
6072echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6073See \`config.log' for more details." >&2;}
6074   { (exit 1); exit 1; }; }
6075fi
6076
6077ac_ext=cc
6078ac_cpp='$CXXCPP $CPPFLAGS'
6079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6082
6083fi
6084
6085
6086
6087# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6088
6089# find the maximum length of command line arguments
6090echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6091echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6092if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6093  echo $ECHO_N "(cached) $ECHO_C" >&6
6094else
6095    i=0
6096  teststring="ABCD"
6097
6098  case $build_os in
6099  msdosdjgpp*)
6100    # On DJGPP, this test can blow up pretty badly due to problems in libc
6101    # (any single argument exceeding 2000 bytes causes a buffer overrun
6102    # during glob expansion).  Even if it were fixed, the result of this
6103    # check would be larger than it should be.
6104    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6105    ;;
6106
6107  gnu*)
6108    # Under GNU Hurd, this test is not required because there is
6109    # no limit to the length of command line arguments.
6110    # Libtool will interpret -1 as no limit whatsoever
6111    lt_cv_sys_max_cmd_len=-1;
6112    ;;
6113
6114  cygwin* | mingw*)
6115    # On Win9x/ME, this test blows up -- it succeeds, but takes
6116    # about 5 minutes as the teststring grows exponentially.
6117    # Worse, since 9x/ME are not pre-emptively multitasking,
6118    # you end up with a "frozen" computer, even though with patience
6119    # the test eventually succeeds (with a max line length of 256k).
6120    # Instead, let's just punt: use the minimum linelength reported by
6121    # all of the supported platforms: 8192 (on NT/2K/XP).
6122    lt_cv_sys_max_cmd_len=8192;
6123    ;;
6124
6125  amigaos*)
6126    # On AmigaOS with pdksh, this test takes hours, literally.
6127    # So we just punt and use a minimum line length of 8192.
6128    lt_cv_sys_max_cmd_len=8192;
6129    ;;
6130
6131  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6132    # This has been around since 386BSD, at least.  Likely further.
6133    if test -x /sbin/sysctl; then
6134      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6135    elif test -x /usr/sbin/sysctl; then
6136      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6137    else
6138      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6139    fi
6140    # And add a safety zone
6141    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6142    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6143    ;;
6144
6145  interix*)
6146    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6147    lt_cv_sys_max_cmd_len=196608
6148    ;;
6149
6150  osf*)
6151    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6152    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6153    # nice to cause kernel panics so lets avoid the loop below.
6154    # First set a reasonable default.
6155    lt_cv_sys_max_cmd_len=16384
6156    #
6157    if test -x /sbin/sysconfig; then
6158      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6159        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6160      esac
6161    fi
6162    ;;
6163  sco3.2v5*)
6164    lt_cv_sys_max_cmd_len=102400
6165    ;;
6166  sysv5* | sco5v6* | sysv4.2uw2*)
6167    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6168    if test -n "$kargmax"; then
6169      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6170    else
6171      lt_cv_sys_max_cmd_len=32768
6172    fi
6173    ;;
6174  *)
6175    # If test is not a shell built-in, we'll probably end up computing a
6176    # maximum length that is only half of the actual maximum length, but
6177    # we can't tell.
6178    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6179    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6180               = "XX$teststring") >/dev/null 2>&1 &&
6181            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6182            lt_cv_sys_max_cmd_len=$new_result &&
6183            test $i != 17 # 1/2 MB should be enough
6184    do
6185      i=`expr $i + 1`
6186      teststring=$teststring$teststring
6187    done
6188    teststring=
6189    # Add a significant safety factor because C++ compilers can tack on massive
6190    # amounts of additional arguments before passing them to the linker.
6191    # It appears as though 1/2 is a usable value.
6192    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6193    ;;
6194  esac
6195
6196fi
6197
6198if test -n $lt_cv_sys_max_cmd_len ; then
6199  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6200echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6201else
6202  echo "$as_me:$LINENO: result: none" >&5
6203echo "${ECHO_T}none" >&6
6204fi
6205
6206
6207
6208
6209# Check for command to grab the raw symbol name followed by C symbol from nm.
6210echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6211echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6212if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6213  echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215
6216# These are sane defaults that work on at least a few old systems.
6217# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6218
6219# Character class describing NM global symbol codes.
6220symcode='[BCDEGRST]'
6221
6222# Regexp to match symbols that can be accessed directly from C.
6223sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6224
6225# Transform an extracted symbol line into a proper C declaration
6226lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6227
6228# Transform an extracted symbol line into symbol name and symbol address
6229lt_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'"
6230
6231# Define system-specific variables.
6232case $host_os in
6233aix*)
6234  symcode='[BCDT]'
6235  ;;
6236cygwin* | mingw* | pw32*)
6237  symcode='[ABCDGISTW]'
6238  ;;
6239hpux*) # Its linker distinguishes data from code symbols
6240  if test "$host_cpu" = ia64; then
6241    symcode='[ABCDEGRST]'
6242  fi
6243  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6244  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'"
6245  ;;
6246linux*)
6247  if test "$host_cpu" = ia64; then
6248    symcode='[ABCDGIRSTW]'
6249    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6250    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'"
6251  fi
6252  ;;
6253irix* | nonstopux*)
6254  symcode='[BCDEGRST]'
6255  ;;
6256osf*)
6257  symcode='[BCDEGQRST]'
6258  ;;
6259solaris*)
6260  symcode='[BDRT]'
6261  ;;
6262sco3.2v5*)
6263  symcode='[DT]'
6264  ;;
6265sysv4.2uw2*)
6266  symcode='[DT]'
6267  ;;
6268sysv5* | sco5v6* | unixware* | OpenUNIX*)
6269  symcode='[ABDT]'
6270  ;;
6271sysv4)
6272  symcode='[DFNSTU]'
6273  ;;
6274esac
6275
6276# Handle CRLF in mingw tool chain
6277opt_cr=
6278case $build_os in
6279mingw*)
6280  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6281  ;;
6282esac
6283
6284# If we're using GNU nm, then use its standard symbol codes.
6285case `$NM -V 2>&1` in
6286*GNU* | *'with BFD'*)
6287  symcode='[ABCDGIRSTW]' ;;
6288esac
6289
6290# Try without a prefix undercore, then with it.
6291for ac_symprfx in "" "_"; do
6292
6293  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6294  symxfrm="\\1 $ac_symprfx\\2 \\2"
6295
6296  # Write the raw and C identifiers.
6297  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6298
6299  # Check to see that the pipe works correctly.
6300  pipe_works=no
6301
6302  rm -f conftest*
6303  cat > conftest.$ac_ext <<EOF
6304#ifdef __cplusplus
6305extern "C" {
6306#endif
6307char nm_test_var;
6308void nm_test_func(){}
6309#ifdef __cplusplus
6310}
6311#endif
6312int main(){nm_test_var='a';nm_test_func();return(0);}
6313EOF
6314
6315  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6316  (eval $ac_compile) 2>&5
6317  ac_status=$?
6318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319  (exit $ac_status); }; then
6320    # Now try to grab the symbols.
6321    nlist=conftest.nm
6322    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6323  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6324  ac_status=$?
6325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326  (exit $ac_status); } && test -s "$nlist"; then
6327      # Try sorting and uniquifying the output.
6328      if sort "$nlist" | uniq > "$nlist"T; then
6329        mv -f "$nlist"T "$nlist"
6330      else
6331        rm -f "$nlist"T
6332      fi
6333
6334      # Make sure that we snagged all the symbols we need.
6335      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6336        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6337          cat <<EOF > conftest.$ac_ext
6338#ifdef __cplusplus
6339extern "C" {
6340#endif
6341
6342EOF
6343          # Now generate the symbol file.
6344          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6345
6346          cat <<EOF >> conftest.$ac_ext
6347#if defined (__STDC__) && __STDC__
6348# define lt_ptr_t void *
6349#else
6350# define lt_ptr_t char *
6351# define const
6352#endif
6353
6354/* The mapping between symbol names and symbols. */
6355const struct {
6356  const char *name;
6357  lt_ptr_t address;
6358}
6359lt_preloaded_symbols[] =
6360{
6361EOF
6362          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6363          cat <<\EOF >> conftest.$ac_ext
6364  {0, (lt_ptr_t) 0}
6365};
6366
6367#ifdef __cplusplus
6368}
6369#endif
6370EOF
6371          # Now try linking the two files.
6372          mv conftest.$ac_objext conftstm.$ac_objext
6373          lt_save_LIBS="$LIBS"
6374          lt_save_CFLAGS="$CFLAGS"
6375          LIBS="conftstm.$ac_objext"
6376          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6377          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378  (eval $ac_link) 2>&5
6379  ac_status=$?
6380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6382            pipe_works=yes
6383          fi
6384          LIBS="$lt_save_LIBS"
6385          CFLAGS="$lt_save_CFLAGS"
6386        else
6387          echo "cannot find nm_test_func in $nlist" >&5
6388        fi
6389      else
6390        echo "cannot find nm_test_var in $nlist" >&5
6391      fi
6392    else
6393      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6394    fi
6395  else
6396    echo "$progname: failed program was:" >&5
6397    cat conftest.$ac_ext >&5
6398  fi
6399  rm -f conftest* conftst*
6400
6401  # Do not use the global_symbol_pipe unless it works.
6402  if test "$pipe_works" = yes; then
6403    break
6404  else
6405    lt_cv_sys_global_symbol_pipe=
6406  fi
6407done
6408
6409fi
6410
6411if test -z "$lt_cv_sys_global_symbol_pipe"; then
6412  lt_cv_sys_global_symbol_to_cdecl=
6413fi
6414if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6415  echo "$as_me:$LINENO: result: failed" >&5
6416echo "${ECHO_T}failed" >&6
6417else
6418  echo "$as_me:$LINENO: result: ok" >&5
6419echo "${ECHO_T}ok" >&6
6420fi
6421
6422echo "$as_me:$LINENO: checking for objdir" >&5
6423echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6424if test "${lt_cv_objdir+set}" = set; then
6425  echo $ECHO_N "(cached) $ECHO_C" >&6
6426else
6427  rm -f .libs 2>/dev/null
6428mkdir .libs 2>/dev/null
6429if test -d .libs; then
6430  lt_cv_objdir=.libs
6431else
6432  # MS-DOS does not allow filenames that begin with a dot.
6433  lt_cv_objdir=_libs
6434fi
6435rmdir .libs 2>/dev/null
6436fi
6437echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6438echo "${ECHO_T}$lt_cv_objdir" >&6
6439objdir=$lt_cv_objdir
6440
6441
6442
6443
6444
6445case $host_os in
6446aix3*)
6447  # AIX sometimes has problems with the GCC collect2 program.  For some
6448  # reason, if we set the COLLECT_NAMES environment variable, the problems
6449  # vanish in a puff of smoke.
6450  if test "X${COLLECT_NAMES+set}" != Xset; then
6451    COLLECT_NAMES=
6452    export COLLECT_NAMES
6453  fi
6454  ;;
6455esac
6456
6457# Sed substitution that helps us do robust quoting.  It backslashifies
6458# metacharacters that are still active within double-quoted strings.
6459Xsed='sed -e 1s/^X//'
6460sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6461
6462# Same as above, but do not quote variable references.
6463double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6464
6465# Sed substitution to delay expansion of an escaped shell variable in a
6466# double_quote_subst'ed string.
6467delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6468
6469# Sed substitution to avoid accidental globbing in evaled expressions
6470no_glob_subst='s/\*/\\\*/g'
6471
6472# Constants:
6473rm="rm -f"
6474
6475# Global variables:
6476default_ofile=libtool
6477can_build_shared=yes
6478
6479# All known linkers require a `.a' archive for static linking (except MSVC,
6480# which needs '.lib').
6481libext=a
6482ltmain="$ac_aux_dir/ltmain.sh"
6483ofile="$default_ofile"
6484with_gnu_ld="$lt_cv_prog_gnu_ld"
6485
6486if test -n "$ac_tool_prefix"; then
6487  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6488set dummy ${ac_tool_prefix}ar; ac_word=$2
6489echo "$as_me:$LINENO: checking for $ac_word" >&5
6490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491if test "${ac_cv_prog_AR+set}" = set; then
6492  echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494  if test -n "$AR"; then
6495  ac_cv_prog_AR="$AR" # Let the user override the test.
6496else
6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500  IFS=$as_save_IFS
6501  test -z "$as_dir" && as_dir=.
6502  for ac_exec_ext in '' $ac_executable_extensions; do
6503  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504    ac_cv_prog_AR="${ac_tool_prefix}ar"
6505    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506    break 2
6507  fi
6508done
6509done
6510
6511fi
6512fi
6513AR=$ac_cv_prog_AR
6514if test -n "$AR"; then
6515  echo "$as_me:$LINENO: result: $AR" >&5
6516echo "${ECHO_T}$AR" >&6
6517else
6518  echo "$as_me:$LINENO: result: no" >&5
6519echo "${ECHO_T}no" >&6
6520fi
6521
6522fi
6523if test -z "$ac_cv_prog_AR"; then
6524  ac_ct_AR=$AR
6525  # Extract the first word of "ar", so it can be a program name with args.
6526set dummy ar; ac_word=$2
6527echo "$as_me:$LINENO: checking for $ac_word" >&5
6528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6529if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6530  echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532  if test -n "$ac_ct_AR"; then
6533  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6534else
6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538  IFS=$as_save_IFS
6539  test -z "$as_dir" && as_dir=.
6540  for ac_exec_ext in '' $ac_executable_extensions; do
6541  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542    ac_cv_prog_ac_ct_AR="ar"
6543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544    break 2
6545  fi
6546done
6547done
6548
6549  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6550fi
6551fi
6552ac_ct_AR=$ac_cv_prog_ac_ct_AR
6553if test -n "$ac_ct_AR"; then
6554  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6555echo "${ECHO_T}$ac_ct_AR" >&6
6556else
6557  echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6
6559fi
6560
6561  AR=$ac_ct_AR
6562else
6563  AR="$ac_cv_prog_AR"
6564fi
6565
6566if test -n "$ac_tool_prefix"; then
6567  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6568set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6569echo "$as_me:$LINENO: checking for $ac_word" >&5
6570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6571if test "${ac_cv_prog_RANLIB+set}" = set; then
6572  echo $ECHO_N "(cached) $ECHO_C" >&6
6573else
6574  if test -n "$RANLIB"; then
6575  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6576else
6577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578for as_dir in $PATH
6579do
6580  IFS=$as_save_IFS
6581  test -z "$as_dir" && as_dir=.
6582  for ac_exec_ext in '' $ac_executable_extensions; do
6583  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6584    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6585    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586    break 2
6587  fi
6588done
6589done
6590
6591fi
6592fi
6593RANLIB=$ac_cv_prog_RANLIB
6594if test -n "$RANLIB"; then
6595  echo "$as_me:$LINENO: result: $RANLIB" >&5
6596echo "${ECHO_T}$RANLIB" >&6
6597else
6598  echo "$as_me:$LINENO: result: no" >&5
6599echo "${ECHO_T}no" >&6
6600fi
6601
6602fi
6603if test -z "$ac_cv_prog_RANLIB"; then
6604  ac_ct_RANLIB=$RANLIB
6605  # Extract the first word of "ranlib", so it can be a program name with args.
6606set dummy ranlib; ac_word=$2
6607echo "$as_me:$LINENO: checking for $ac_word" >&5
6608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6609if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6610  echo $ECHO_N "(cached) $ECHO_C" >&6
6611else
6612  if test -n "$ac_ct_RANLIB"; then
6613  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6614else
6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618  IFS=$as_save_IFS
6619  test -z "$as_dir" && as_dir=.
6620  for ac_exec_ext in '' $ac_executable_extensions; do
6621  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622    ac_cv_prog_ac_ct_RANLIB="ranlib"
6623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624    break 2
6625  fi
6626done
6627done
6628
6629  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6630fi
6631fi
6632ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6633if test -n "$ac_ct_RANLIB"; then
6634  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6635echo "${ECHO_T}$ac_ct_RANLIB" >&6
6636else
6637  echo "$as_me:$LINENO: result: no" >&5
6638echo "${ECHO_T}no" >&6
6639fi
6640
6641  RANLIB=$ac_ct_RANLIB
6642else
6643  RANLIB="$ac_cv_prog_RANLIB"
6644fi
6645
6646if test -n "$ac_tool_prefix"; then
6647  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6648set dummy ${ac_tool_prefix}strip; ac_word=$2
6649echo "$as_me:$LINENO: checking for $ac_word" >&5
6650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6651if test "${ac_cv_prog_STRIP+set}" = set; then
6652  echo $ECHO_N "(cached) $ECHO_C" >&6
6653else
6654  if test -n "$STRIP"; then
6655  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660  IFS=$as_save_IFS
6661  test -z "$as_dir" && as_dir=.
6662  for ac_exec_ext in '' $ac_executable_extensions; do
6663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666    break 2
6667  fi
6668done
6669done
6670
6671fi
6672fi
6673STRIP=$ac_cv_prog_STRIP
6674if test -n "$STRIP"; then
6675  echo "$as_me:$LINENO: result: $STRIP" >&5
6676echo "${ECHO_T}$STRIP" >&6
6677else
6678  echo "$as_me:$LINENO: result: no" >&5
6679echo "${ECHO_T}no" >&6
6680fi
6681
6682fi
6683if test -z "$ac_cv_prog_STRIP"; then
6684  ac_ct_STRIP=$STRIP
6685  # Extract the first word of "strip", so it can be a program name with args.
6686set dummy strip; ac_word=$2
6687echo "$as_me:$LINENO: checking for $ac_word" >&5
6688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6689if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6690  echo $ECHO_N "(cached) $ECHO_C" >&6
6691else
6692  if test -n "$ac_ct_STRIP"; then
6693  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6694else
6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
6697do
6698  IFS=$as_save_IFS
6699  test -z "$as_dir" && as_dir=.
6700  for ac_exec_ext in '' $ac_executable_extensions; do
6701  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702    ac_cv_prog_ac_ct_STRIP="strip"
6703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704    break 2
6705  fi
6706done
6707done
6708
6709  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6710fi
6711fi
6712ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6713if test -n "$ac_ct_STRIP"; then
6714  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6715echo "${ECHO_T}$ac_ct_STRIP" >&6
6716else
6717  echo "$as_me:$LINENO: result: no" >&5
6718echo "${ECHO_T}no" >&6
6719fi
6720
6721  STRIP=$ac_ct_STRIP
6722else
6723  STRIP="$ac_cv_prog_STRIP"
6724fi
6725
6726
6727old_CC="$CC"
6728old_CFLAGS="$CFLAGS"
6729
6730# Set sane defaults for various variables
6731test -z "$AR" && AR=ar
6732test -z "$AR_FLAGS" && AR_FLAGS=cru
6733test -z "$AS" && AS=as
6734test -z "$CC" && CC=cc
6735test -z "$LTCC" && LTCC=$CC
6736test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6737test -z "$DLLTOOL" && DLLTOOL=dlltool
6738test -z "$LD" && LD=ld
6739test -z "$LN_S" && LN_S="ln -s"
6740test -z "$MAGIC_CMD" && MAGIC_CMD=file
6741test -z "$NM" && NM=nm
6742test -z "$SED" && SED=sed
6743test -z "$OBJDUMP" && OBJDUMP=objdump
6744test -z "$RANLIB" && RANLIB=:
6745test -z "$STRIP" && STRIP=:
6746test -z "$ac_objext" && ac_objext=o
6747
6748# Determine commands to create old-style static archives.
6749old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6750old_postinstall_cmds='chmod 644 $oldlib'
6751old_postuninstall_cmds=
6752
6753if test -n "$RANLIB"; then
6754  case $host_os in
6755  openbsd*)
6756    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6757    ;;
6758  *)
6759    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6760    ;;
6761  esac
6762  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6763fi
6764
6765for cc_temp in $compiler""; do
6766  case $cc_temp in
6767    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6768    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6769    \-*) ;;
6770    *) break;;
6771  esac
6772done
6773cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6774
6775
6776# Only perform the check for file, if the check method requires it
6777case $deplibs_check_method in
6778file_magic*)
6779  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6780    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6781echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6782if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6783  echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785  case $MAGIC_CMD in
6786[\\/*] |  ?:[\\/]*)
6787  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6788  ;;
6789*)
6790  lt_save_MAGIC_CMD="$MAGIC_CMD"
6791  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6792  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6793  for ac_dir in $ac_dummy; do
6794    IFS="$lt_save_ifs"
6795    test -z "$ac_dir" && ac_dir=.
6796    if test -f $ac_dir/${ac_tool_prefix}file; then
6797      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6798      if test -n "$file_magic_test_file"; then
6799        case $deplibs_check_method in
6800        "file_magic "*)
6801          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6802          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6803          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6804            $EGREP "$file_magic_regex" > /dev/null; then
6805            :
6806          else
6807            cat <<EOF 1>&2
6808
6809*** Warning: the command libtool uses to detect shared libraries,
6810*** $file_magic_cmd, produces output that libtool cannot recognize.
6811*** The result is that libtool may fail to recognize shared libraries
6812*** as such.  This will affect the creation of libtool libraries that
6813*** depend on shared libraries, but programs linked with such libtool
6814*** libraries will work regardless of this problem.  Nevertheless, you
6815*** may want to report the problem to your system manager and/or to
6816*** bug-libtool@gnu.org
6817
6818EOF
6819          fi ;;
6820        esac
6821      fi
6822      break
6823    fi
6824  done
6825  IFS="$lt_save_ifs"
6826  MAGIC_CMD="$lt_save_MAGIC_CMD"
6827  ;;
6828esac
6829fi
6830
6831MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6832if test -n "$MAGIC_CMD"; then
6833  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6834echo "${ECHO_T}$MAGIC_CMD" >&6
6835else
6836  echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6
6838fi
6839
6840if test -z "$lt_cv_path_MAGIC_CMD"; then
6841  if test -n "$ac_tool_prefix"; then
6842    echo "$as_me:$LINENO: checking for file" >&5
6843echo $ECHO_N "checking for file... $ECHO_C" >&6
6844if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6845  echo $ECHO_N "(cached) $ECHO_C" >&6
6846else
6847  case $MAGIC_CMD in
6848[\\/*] |  ?:[\\/]*)
6849  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6850  ;;
6851*)
6852  lt_save_MAGIC_CMD="$MAGIC_CMD"
6853  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6854  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6855  for ac_dir in $ac_dummy; do
6856    IFS="$lt_save_ifs"
6857    test -z "$ac_dir" && ac_dir=.
6858    if test -f $ac_dir/file; then
6859      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6860      if test -n "$file_magic_test_file"; then
6861        case $deplibs_check_method in
6862        "file_magic "*)
6863          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6864          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6865          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6866            $EGREP "$file_magic_regex" > /dev/null; then
6867            :
6868          else
6869            cat <<EOF 1>&2
6870
6871*** Warning: the command libtool uses to detect shared libraries,
6872*** $file_magic_cmd, produces output that libtool cannot recognize.
6873*** The result is that libtool may fail to recognize shared libraries
6874*** as such.  This will affect the creation of libtool libraries that
6875*** depend on shared libraries, but programs linked with such libtool
6876*** libraries will work regardless of this problem.  Nevertheless, you
6877*** may want to report the problem to your system manager and/or to
6878*** bug-libtool@gnu.org
6879
6880EOF
6881          fi ;;
6882        esac
6883      fi
6884      break
6885    fi
6886  done
6887  IFS="$lt_save_ifs"
6888  MAGIC_CMD="$lt_save_MAGIC_CMD"
6889  ;;
6890esac
6891fi
6892
6893MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6894if test -n "$MAGIC_CMD"; then
6895  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6896echo "${ECHO_T}$MAGIC_CMD" >&6
6897else
6898  echo "$as_me:$LINENO: result: no" >&5
6899echo "${ECHO_T}no" >&6
6900fi
6901
6902  else
6903    MAGIC_CMD=:
6904  fi
6905fi
6906
6907  fi
6908  ;;
6909esac
6910
6911enable_dlopen=no
6912enable_win32_dll=no
6913
6914# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6915if test "${enable_libtool_lock+set}" = set; then
6916  enableval="$enable_libtool_lock"
6917
6918fi;
6919test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6920
6921
6922# Check whether --with-pic or --without-pic was given.
6923if test "${with_pic+set}" = set; then
6924  withval="$with_pic"
6925  pic_mode="$withval"
6926else
6927  pic_mode=default
6928fi;
6929test -z "$pic_mode" && pic_mode=default
6930
6931# Use C for the default configuration in the libtool script
6932tagname=
6933lt_save_CC="$CC"
6934ac_ext=c
6935ac_cpp='$CPP $CPPFLAGS'
6936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6938ac_compiler_gnu=$ac_cv_c_compiler_gnu
6939
6940
6941# Source file extension for C test sources.
6942ac_ext=c
6943
6944# Object file extension for compiled C test sources.
6945objext=o
6946objext=$objext
6947
6948# Code to be used in simple compile tests
6949lt_simple_compile_test_code="int some_variable = 0;\n"
6950
6951# Code to be used in simple link tests
6952lt_simple_link_test_code='int main(){return(0);}\n'
6953
6954
6955# If no C compiler was specified, use CC.
6956LTCC=${LTCC-"$CC"}
6957
6958# If no C compiler flags were specified, use CFLAGS.
6959LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6960
6961# Allow CC to be a program name with arguments.
6962compiler=$CC
6963
6964
6965# save warnings/boilerplate of simple test code
6966ac_outfile=conftest.$ac_objext
6967printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6968eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6969_lt_compiler_boilerplate=`cat conftest.err`
6970$rm conftest*
6971
6972ac_outfile=conftest.$ac_objext
6973printf "$lt_simple_link_test_code" >conftest.$ac_ext
6974eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6975_lt_linker_boilerplate=`cat conftest.err`
6976$rm conftest*
6977
6978
6979## CAVEAT EMPTOR:
6980## There is no encapsulation within the following macros, do not change
6981## the running order or otherwise move them around unless you know exactly
6982## what you are doing...
6983
6984lt_prog_compiler_no_builtin_flag=
6985
6986if test "$GCC" = yes; then
6987  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6988
6989
6990echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6991echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6992if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6993  echo $ECHO_N "(cached) $ECHO_C" >&6
6994else
6995  lt_cv_prog_compiler_rtti_exceptions=no
6996  ac_outfile=conftest.$ac_objext
6997   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6998   lt_compiler_flag="-fno-rtti -fno-exceptions"
6999   # Insert the option either (1) after the last *FLAGS variable, or
7000   # (2) before a word containing "conftest.", or (3) at the end.
7001   # Note that $ac_compile itself does not contain backslashes and begins
7002   # with a dollar sign (not a hyphen), so the echo should work correctly.
7003   # The option is referenced via a variable to avoid confusing sed.
7004   lt_compile=`echo "$ac_compile" | $SED \
7005   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7006   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7007   -e 's:$: $lt_compiler_flag:'`
7008   (eval echo "\"\$as_me:7008: $lt_compile\"" >&5)
7009   (eval "$lt_compile" 2>conftest.err)
7010   ac_status=$?
7011   cat conftest.err >&5
7012   echo "$as_me:7012: \$? = $ac_status" >&5
7013   if (exit $ac_status) && test -s "$ac_outfile"; then
7014     # The compiler can only warn and ignore the option if not recognized
7015     # So say no if there are warnings other than the usual output.
7016     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7017     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7018     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7019       lt_cv_prog_compiler_rtti_exceptions=yes
7020     fi
7021   fi
7022   $rm conftest*
7023
7024fi
7025echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7026echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7027
7028if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7029    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7030else
7031    :
7032fi
7033
7034fi
7035
7036lt_prog_compiler_wl=
7037lt_prog_compiler_pic=
7038lt_prog_compiler_static=
7039
7040echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7041echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7042
7043  if test "$GCC" = yes; then
7044    lt_prog_compiler_wl='-Wl,'
7045    lt_prog_compiler_static='-static'
7046
7047    case $host_os in
7048      aix*)
7049      # All AIX code is PIC.
7050      if test "$host_cpu" = ia64; then
7051        # AIX 5 now supports IA64 processor
7052        lt_prog_compiler_static='-Bstatic'
7053      fi
7054      ;;
7055
7056    amigaos*)
7057      # FIXME: we need at least 68020 code to build shared libraries, but
7058      # adding the `-m68020' flag to GCC prevents building anything better,
7059      # like `-m68040'.
7060      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7061      ;;
7062
7063    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7064      # PIC is the default for these OSes.
7065      ;;
7066
7067    mingw* | pw32* | os2*)
7068      # This hack is so that the source file can tell whether it is being
7069      # built for inclusion in a dll (and should export symbols for example).
7070      lt_prog_compiler_pic='-DDLL_EXPORT'
7071      ;;
7072
7073    darwin* | rhapsody*)
7074      # PIC is the default on this platform
7075      # Common symbols not allowed in MH_DYLIB files
7076      lt_prog_compiler_pic='-fno-common'
7077      ;;
7078
7079    interix3*)
7080      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7081      # Instead, we relocate shared libraries at runtime.
7082      ;;
7083
7084    msdosdjgpp*)
7085      # Just because we use GCC doesn't mean we suddenly get shared libraries
7086      # on systems that don't support them.
7087      lt_prog_compiler_can_build_shared=no
7088      enable_shared=no
7089      ;;
7090
7091    sysv4*MP*)
7092      if test -d /usr/nec; then
7093        lt_prog_compiler_pic=-Kconform_pic
7094      fi
7095      ;;
7096
7097    hpux*)
7098      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7099      # not for PA HP-UX.
7100      case $host_cpu in
7101      hppa*64*|ia64*)
7102        # +Z the default
7103        ;;
7104      *)
7105        lt_prog_compiler_pic='-fPIC'
7106        ;;
7107      esac
7108      ;;
7109
7110    *)
7111      lt_prog_compiler_pic='-fPIC'
7112      ;;
7113    esac
7114  else
7115    # PORTME Check for flag to pass linker flags through the system compiler.
7116    case $host_os in
7117    aix*)
7118      lt_prog_compiler_wl='-Wl,'
7119      if test "$host_cpu" = ia64; then
7120        # AIX 5 now supports IA64 processor
7121        lt_prog_compiler_static='-Bstatic'
7122      else
7123        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7124      fi
7125      ;;
7126      darwin*)
7127        # PIC is the default on this platform
7128        # Common symbols not allowed in MH_DYLIB files
7129       case $cc_basename in
7130         xlc*)
7131         lt_prog_compiler_pic='-qnocommon'
7132         lt_prog_compiler_wl='-Wl,'
7133         ;;
7134       esac
7135       ;;
7136
7137    mingw* | pw32* | os2*)
7138      # This hack is so that the source file can tell whether it is being
7139      # built for inclusion in a dll (and should export symbols for example).
7140      lt_prog_compiler_pic='-DDLL_EXPORT'
7141      ;;
7142
7143    hpux9* | hpux10* | hpux11*)
7144      lt_prog_compiler_wl='-Wl,'
7145      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7146      # not for PA HP-UX.
7147      case $host_cpu in
7148      hppa*64*|ia64*)
7149        # +Z the default
7150        ;;
7151      *)
7152        lt_prog_compiler_pic='+Z'
7153        ;;
7154      esac
7155      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7156      lt_prog_compiler_static='${wl}-a ${wl}archive'
7157      ;;
7158
7159    irix5* | irix6* | nonstopux*)
7160      lt_prog_compiler_wl='-Wl,'
7161      # PIC (with -KPIC) is the default.
7162      lt_prog_compiler_static='-non_shared'
7163      ;;
7164
7165    newsos6)
7166      lt_prog_compiler_pic='-KPIC'
7167      lt_prog_compiler_static='-Bstatic'
7168      ;;
7169
7170    linux*)
7171      case $cc_basename in
7172      icc* | ecc*)
7173        lt_prog_compiler_wl='-Wl,'
7174        lt_prog_compiler_pic='-KPIC'
7175        lt_prog_compiler_static='-static'
7176        ;;
7177      pgcc* | pgf77* | pgf90* | pgf95*)
7178        # Portland Group compilers (*not* the Pentium gcc compiler,
7179        # which looks to be a dead project)
7180        lt_prog_compiler_wl='-Wl,'
7181        lt_prog_compiler_pic='-fpic'
7182        lt_prog_compiler_static='-Bstatic'
7183        ;;
7184      ccc*)
7185        lt_prog_compiler_wl='-Wl,'
7186        # All Alpha code is PIC.
7187        lt_prog_compiler_static='-non_shared'
7188        ;;
7189      esac
7190      ;;
7191
7192    osf3* | osf4* | osf5*)
7193      lt_prog_compiler_wl='-Wl,'
7194      # All OSF/1 code is PIC.
7195      lt_prog_compiler_static='-non_shared'
7196      ;;
7197
7198    solaris*)
7199      lt_prog_compiler_pic='-KPIC'
7200      lt_prog_compiler_static='-Bstatic'
7201      case $cc_basename in
7202      f77* | f90* | f95*)
7203        lt_prog_compiler_wl='-Qoption ld ';;
7204      *)
7205        lt_prog_compiler_wl='-Wl,';;
7206      esac
7207      ;;
7208
7209    sunos4*)
7210      lt_prog_compiler_wl='-Qoption ld '
7211      lt_prog_compiler_pic='-PIC'
7212      lt_prog_compiler_static='-Bstatic'
7213      ;;
7214
7215    sysv4 | sysv4.2uw2* | sysv4.3*)
7216      lt_prog_compiler_wl='-Wl,'
7217      lt_prog_compiler_pic='-KPIC'
7218      lt_prog_compiler_static='-Bstatic'
7219      ;;
7220
7221    sysv4*MP*)
7222      if test -d /usr/nec ;then
7223        lt_prog_compiler_pic='-Kconform_pic'
7224        lt_prog_compiler_static='-Bstatic'
7225      fi
7226      ;;
7227
7228    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7229      lt_prog_compiler_wl='-Wl,'
7230      lt_prog_compiler_pic='-KPIC'
7231      lt_prog_compiler_static='-Bstatic'
7232      ;;
7233
7234    unicos*)
7235      lt_prog_compiler_wl='-Wl,'
7236      lt_prog_compiler_can_build_shared=no
7237      ;;
7238
7239    uts4*)
7240      lt_prog_compiler_pic='-pic'
7241      lt_prog_compiler_static='-Bstatic'
7242      ;;
7243
7244    *)
7245      lt_prog_compiler_can_build_shared=no
7246      ;;
7247    esac
7248  fi
7249
7250echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7251echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7252
7253#
7254# Check to make sure the PIC flag actually works.
7255#
7256if test -n "$lt_prog_compiler_pic"; then
7257
7258echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7259echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7260if test "${lt_prog_compiler_pic_works+set}" = set; then
7261  echo $ECHO_N "(cached) $ECHO_C" >&6
7262else
7263  lt_prog_compiler_pic_works=no
7264  ac_outfile=conftest.$ac_objext
7265   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7266   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7267   # Insert the option either (1) after the last *FLAGS variable, or
7268   # (2) before a word containing "conftest.", or (3) at the end.
7269   # Note that $ac_compile itself does not contain backslashes and begins
7270   # with a dollar sign (not a hyphen), so the echo should work correctly.
7271   # The option is referenced via a variable to avoid confusing sed.
7272   lt_compile=`echo "$ac_compile" | $SED \
7273   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7274   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7275   -e 's:$: $lt_compiler_flag:'`
7276   (eval echo "\"\$as_me:7276: $lt_compile\"" >&5)
7277   (eval "$lt_compile" 2>conftest.err)
7278   ac_status=$?
7279   cat conftest.err >&5
7280   echo "$as_me:7280: \$? = $ac_status" >&5
7281   if (exit $ac_status) && test -s "$ac_outfile"; then
7282     # The compiler can only warn and ignore the option if not recognized
7283     # So say no if there are warnings other than the usual output.
7284     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7285     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7286     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7287       lt_prog_compiler_pic_works=yes
7288     fi
7289   fi
7290   $rm conftest*
7291
7292fi
7293echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7294echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7295
7296if test x"$lt_prog_compiler_pic_works" = xyes; then
7297    case $lt_prog_compiler_pic in
7298     "" | " "*) ;;
7299     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7300     esac
7301else
7302    lt_prog_compiler_pic=
7303     lt_prog_compiler_can_build_shared=no
7304fi
7305
7306fi
7307case $host_os in
7308  # For platforms which do not support PIC, -DPIC is meaningless:
7309  *djgpp*)
7310    lt_prog_compiler_pic=
7311    ;;
7312  *)
7313    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7314    ;;
7315esac
7316
7317#
7318# Check to make sure the static flag actually works.
7319#
7320wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7321echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7322echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7323if test "${lt_prog_compiler_static_works+set}" = set; then
7324  echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326  lt_prog_compiler_static_works=no
7327   save_LDFLAGS="$LDFLAGS"
7328   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7329   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7330   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7331     # The linker can only warn and ignore the option if not recognized
7332     # So say no if there are warnings
7333     if test -s conftest.err; then
7334       # Append any errors to the config.log.
7335       cat conftest.err 1>&5
7336       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7337       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7338       if diff conftest.exp conftest.er2 >/dev/null; then
7339         lt_prog_compiler_static_works=yes
7340       fi
7341     else
7342       lt_prog_compiler_static_works=yes
7343     fi
7344   fi
7345   $rm conftest*
7346   LDFLAGS="$save_LDFLAGS"
7347
7348fi
7349echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7350echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7351
7352if test x"$lt_prog_compiler_static_works" = xyes; then
7353    :
7354else
7355    lt_prog_compiler_static=
7356fi
7357
7358
7359echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7360echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7361if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7362  echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364  lt_cv_prog_compiler_c_o=no
7365   $rm -r conftest 2>/dev/null
7366   mkdir conftest
7367   cd conftest
7368   mkdir out
7369   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7370
7371   lt_compiler_flag="-o out/conftest2.$ac_objext"
7372   # Insert the option either (1) after the last *FLAGS variable, or
7373   # (2) before a word containing "conftest.", or (3) at the end.
7374   # Note that $ac_compile itself does not contain backslashes and begins
7375   # with a dollar sign (not a hyphen), so the echo should work correctly.
7376   lt_compile=`echo "$ac_compile" | $SED \
7377   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7378   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7379   -e 's:$: $lt_compiler_flag:'`
7380   (eval echo "\"\$as_me:7380: $lt_compile\"" >&5)
7381   (eval "$lt_compile" 2>out/conftest.err)
7382   ac_status=$?
7383   cat out/conftest.err >&5
7384   echo "$as_me:7384: \$? = $ac_status" >&5
7385   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7386   then
7387     # The compiler can only warn and ignore the option if not recognized
7388     # So say no if there are warnings
7389     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7390     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7391     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7392       lt_cv_prog_compiler_c_o=yes
7393     fi
7394   fi
7395   chmod u+w . 2>&5
7396   $rm conftest*
7397   # SGI C++ compiler will create directory out/ii_files/ for
7398   # template instantiation
7399   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7400   $rm out/* && rmdir out
7401   cd ..
7402   rmdir conftest
7403   $rm conftest*
7404
7405fi
7406echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7407echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7408
7409
7410hard_links="nottested"
7411if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7412  # do not overwrite the value of need_locks provided by the user
7413  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7414echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7415  hard_links=yes
7416  $rm conftest*
7417  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7418  touch conftest.a
7419  ln conftest.a conftest.b 2>&5 || hard_links=no
7420  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7421  echo "$as_me:$LINENO: result: $hard_links" >&5
7422echo "${ECHO_T}$hard_links" >&6
7423  if test "$hard_links" = no; then
7424    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7425echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7426    need_locks=warn
7427  fi
7428else
7429  need_locks=no
7430fi
7431
7432echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7433echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7434
7435  runpath_var=
7436  allow_undefined_flag=
7437  enable_shared_with_static_runtimes=no
7438  archive_cmds=
7439  archive_expsym_cmds=
7440  old_archive_From_new_cmds=
7441  old_archive_from_expsyms_cmds=
7442  export_dynamic_flag_spec=
7443  whole_archive_flag_spec=
7444  thread_safe_flag_spec=
7445  hardcode_libdir_flag_spec=
7446  hardcode_libdir_flag_spec_ld=
7447  hardcode_libdir_separator=
7448  hardcode_direct=no
7449  hardcode_minus_L=no
7450  hardcode_shlibpath_var=unsupported
7451  link_all_deplibs=unknown
7452  hardcode_automatic=no
7453  module_cmds=
7454  module_expsym_cmds=
7455  always_export_symbols=no
7456  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7457  # include_expsyms should be a list of space-separated symbols to be *always*
7458  # included in the symbol list
7459  include_expsyms=
7460  # exclude_expsyms can be an extended regexp of symbols to exclude
7461  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7462  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7463  # as well as any symbol that contains `d'.
7464  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7465  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7466  # platforms (ab)use it in PIC code, but their linkers get confused if
7467  # the symbol is explicitly referenced.  Since portable code cannot
7468  # rely on this symbol name, it's probably fine to never include it in
7469  # preloaded symbol tables.
7470  extract_expsyms_cmds=
7471  # Just being paranoid about ensuring that cc_basename is set.
7472  for cc_temp in $compiler""; do
7473  case $cc_temp in
7474    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7475    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7476    \-*) ;;
7477    *) break;;
7478  esac
7479done
7480cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7481
7482  case $host_os in
7483  cygwin* | mingw* | pw32*)
7484    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7485    # When not using gcc, we currently assume that we are using
7486    # Microsoft Visual C++.
7487    if test "$GCC" != yes; then
7488      with_gnu_ld=no
7489    fi
7490    ;;
7491  interix*)
7492    # we just hope/assume this is gcc and not c89 (= MSVC++)
7493    with_gnu_ld=yes
7494    ;;
7495  openbsd*)
7496    with_gnu_ld=no
7497    ;;
7498  esac
7499
7500  ld_shlibs=yes
7501  if test "$with_gnu_ld" = yes; then
7502    # If archive_cmds runs LD, not CC, wlarc should be empty
7503    wlarc='${wl}'
7504
7505    # Set some defaults for GNU ld with shared library support. These
7506    # are reset later if shared libraries are not supported. Putting them
7507    # here allows them to be overridden if necessary.
7508    runpath_var=LD_RUN_PATH
7509    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7510    export_dynamic_flag_spec='${wl}--export-dynamic'
7511    # ancient GNU ld didn't support --whole-archive et. al.
7512    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7513        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7514      else
7515        whole_archive_flag_spec=
7516    fi
7517    supports_anon_versioning=no
7518    case `$LD -v 2>/dev/null` in
7519      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7520      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7521      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7522      *\ 2.11.*) ;; # other 2.11 versions
7523      *) supports_anon_versioning=yes ;;
7524    esac
7525
7526    # See if GNU ld supports shared libraries.
7527    case $host_os in
7528    aix3* | aix4* | aix5*)
7529      # On AIX/PPC, the GNU linker is very broken
7530      if test "$host_cpu" != ia64; then
7531        ld_shlibs=no
7532        cat <<EOF 1>&2
7533
7534*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7535*** to be unable to reliably create shared libraries on AIX.
7536*** Therefore, libtool is disabling shared libraries support.  If you
7537*** really care for shared libraries, you may want to modify your PATH
7538*** so that a non-GNU linker is found, and then restart.
7539
7540EOF
7541      fi
7542      ;;
7543
7544    amigaos*)
7545      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)'
7546      hardcode_libdir_flag_spec='-L$libdir'
7547      hardcode_minus_L=yes
7548
7549      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7550      # that the semantics of dynamic libraries on AmigaOS, at least up
7551      # to version 4, is to share data among multiple programs linked
7552      # with the same dynamic library.  Since this doesn't match the
7553      # behavior of shared libraries on other platforms, we can't use
7554      # them.
7555      ld_shlibs=no
7556      ;;
7557
7558    beos*)
7559      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7560        allow_undefined_flag=unsupported
7561        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7562        # support --undefined.  This deserves some investigation.  FIXME
7563        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7564      else
7565        ld_shlibs=no
7566      fi
7567      ;;
7568
7569    cygwin* | mingw* | pw32*)
7570      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7571      # as there is no search path for DLLs.
7572      hardcode_libdir_flag_spec='-L$libdir'
7573      allow_undefined_flag=unsupported
7574      always_export_symbols=no
7575      enable_shared_with_static_runtimes=yes
7576      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7577
7578      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7579        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7580        # If the export-symbols file already is a .def file (1st line
7581        # is EXPORTS), use it as is; otherwise, prepend...
7582        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7583          cp $export_symbols $output_objdir/$soname.def;
7584        else
7585          echo EXPORTS > $output_objdir/$soname.def;
7586          cat $export_symbols >> $output_objdir/$soname.def;
7587        fi~
7588        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7589      else
7590        ld_shlibs=no
7591      fi
7592      ;;
7593
7594    interix3*)
7595      hardcode_direct=no
7596      hardcode_shlibpath_var=no
7597      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7598      export_dynamic_flag_spec='${wl}-E'
7599      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7600      # Instead, shared libraries are loaded at an image base (0x10000000 by
7601      # default) and relocated if they conflict, which is a slow very memory
7602      # consuming and fragmenting process.  To avoid this, we pick a random,
7603      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7604      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7605      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7606      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'
7607      ;;
7608
7609    linux*)
7610      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7611        tmp_addflag=
7612        case $cc_basename,$host_cpu in
7613        pgcc*)                          # Portland Group C compiler
7614          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'
7615          tmp_addflag=' $pic_flag'
7616          ;;
7617        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7618          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'
7619          tmp_addflag=' $pic_flag -Mnomain' ;;
7620        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7621          tmp_addflag=' -i_dynamic' ;;
7622        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7623          tmp_addflag=' -i_dynamic -nofor_main' ;;
7624        ifc* | ifort*)                  # Intel Fortran compiler
7625          tmp_addflag=' -nofor_main' ;;
7626        esac
7627        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7628
7629        if test $supports_anon_versioning = yes; then
7630          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7631  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7632  $echo "local: *; };" >> $output_objdir/$libname.ver~
7633          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7634        fi
7635      else
7636        ld_shlibs=no
7637      fi
7638      ;;
7639
7640    netbsd*)
7641      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7642        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7643        wlarc=
7644      else
7645        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7646        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7647      fi
7648      ;;
7649
7650    solaris*)
7651      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7652        ld_shlibs=no
7653        cat <<EOF 1>&2
7654
7655*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7656*** create shared libraries on Solaris systems.  Therefore, libtool
7657*** is disabling shared libraries support.  We urge you to upgrade GNU
7658*** binutils to release 2.9.1 or newer.  Another option is to modify
7659*** your PATH or compiler configuration so that the native linker is
7660*** used, and then restart.
7661
7662EOF
7663      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7664        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7665        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7666      else
7667        ld_shlibs=no
7668      fi
7669      ;;
7670
7671    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7672      case `$LD -v 2>&1` in
7673        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7674        ld_shlibs=no
7675        cat <<_LT_EOF 1>&2
7676
7677*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7678*** reliably create shared libraries on SCO systems.  Therefore, libtool
7679*** is disabling shared libraries support.  We urge you to upgrade GNU
7680*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7681*** your PATH or compiler configuration so that the native linker is
7682*** used, and then restart.
7683
7684_LT_EOF
7685        ;;
7686        *)
7687          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7688            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7689            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7690            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7691          else
7692            ld_shlibs=no
7693          fi
7694        ;;
7695      esac
7696      ;;
7697
7698    sunos4*)
7699      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7700      wlarc=
7701      hardcode_direct=yes
7702      hardcode_shlibpath_var=no
7703      ;;
7704
7705    *)
7706      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7707        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7708        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7709      else
7710        ld_shlibs=no
7711      fi
7712      ;;
7713    esac
7714
7715    if test "$ld_shlibs" = no; then
7716      runpath_var=
7717      hardcode_libdir_flag_spec=
7718      export_dynamic_flag_spec=
7719      whole_archive_flag_spec=
7720    fi
7721  else
7722    # PORTME fill in a description of your system's linker (not GNU ld)
7723    case $host_os in
7724    aix3*)
7725      allow_undefined_flag=unsupported
7726      always_export_symbols=yes
7727      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'
7728      # Note: this linker hardcodes the directories in LIBPATH if there
7729      # are no directories specified by -L.
7730      hardcode_minus_L=yes
7731      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7732        # Neither direct hardcoding nor static linking is supported with a
7733        # broken collect2.
7734        hardcode_direct=unsupported
7735      fi
7736      ;;
7737
7738    aix4* | aix5*)
7739      if test "$host_cpu" = ia64; then
7740        # On IA64, the linker does run time linking by default, so we don't
7741        # have to do anything special.
7742        aix_use_runtimelinking=no
7743        exp_sym_flag='-Bexport'
7744        no_entry_flag=""
7745      else
7746        # If we're using GNU nm, then we don't want the "-C" option.
7747        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7748        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7749          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'
7750        else
7751          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'
7752        fi
7753        aix_use_runtimelinking=no
7754
7755        # Test if we are trying to use run time linking or normal
7756        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7757        # need to do runtime linking.
7758        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7759          for ld_flag in $LDFLAGS; do
7760          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7761            aix_use_runtimelinking=yes
7762            break
7763          fi
7764          done
7765          ;;
7766        esac
7767
7768        exp_sym_flag='-bexport'
7769        no_entry_flag='-bnoentry'
7770      fi
7771
7772      # When large executables or shared objects are built, AIX ld can
7773      # have problems creating the table of contents.  If linking a library
7774      # or program results in "error TOC overflow" add -mminimal-toc to
7775      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7776      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7777
7778      archive_cmds=''
7779      hardcode_direct=yes
7780      hardcode_libdir_separator=':'
7781      link_all_deplibs=yes
7782
7783      if test "$GCC" = yes; then
7784        case $host_os in aix4.[012]|aix4.[012].*)
7785        # We only want to do this on AIX 4.2 and lower, the check
7786        # below for broken collect2 doesn't work under 4.3+
7787          collect2name=`${CC} -print-prog-name=collect2`
7788          if test -f "$collect2name" && \
7789           strings "$collect2name" | grep resolve_lib_name >/dev/null
7790          then
7791          # We have reworked collect2
7792          hardcode_direct=yes
7793          else
7794          # We have old collect2
7795          hardcode_direct=unsupported
7796          # It fails to find uninstalled libraries when the uninstalled
7797          # path is not listed in the libpath.  Setting hardcode_minus_L
7798          # to unsupported forces relinking
7799          hardcode_minus_L=yes
7800          hardcode_libdir_flag_spec='-L$libdir'
7801          hardcode_libdir_separator=
7802          fi
7803          ;;
7804        esac
7805        shared_flag='-shared'
7806        if test "$aix_use_runtimelinking" = yes; then
7807          shared_flag="$shared_flag "'${wl}-G'
7808        fi
7809      else
7810        # not using gcc
7811        if test "$host_cpu" = ia64; then
7812        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7813        # chokes on -Wl,-G. The following line is correct:
7814          shared_flag='-G'
7815        else
7816          if test "$aix_use_runtimelinking" = yes; then
7817            shared_flag='${wl}-G'
7818          else
7819            shared_flag='${wl}-bM:SRE'
7820          fi
7821        fi
7822      fi
7823
7824      # It seems that -bexpall does not export symbols beginning with
7825      # underscore (_), so it is better to generate a list of symbols to export.
7826      always_export_symbols=yes
7827      if test "$aix_use_runtimelinking" = yes; then
7828        # Warning - without using the other runtime loading flags (-brtl),
7829        # -berok will link without error, but may produce a broken library.
7830        allow_undefined_flag='-berok'
7831       # Determine the default libpath from the value encoded in an empty executable.
7832       cat >conftest.$ac_ext <<_ACEOF
7833/* confdefs.h.  */
7834_ACEOF
7835cat confdefs.h >>conftest.$ac_ext
7836cat >>conftest.$ac_ext <<_ACEOF
7837/* end confdefs.h.  */
7838
7839int
7840main ()
7841{
7842
7843  ;
7844  return 0;
7845}
7846_ACEOF
7847rm -f conftest.$ac_objext conftest$ac_exeext
7848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849  (eval $ac_link) 2>conftest.er1
7850  ac_status=$?
7851  grep -v '^ *+' conftest.er1 >conftest.err
7852  rm -f conftest.er1
7853  cat conftest.err >&5
7854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855  (exit $ac_status); } &&
7856         { ac_try='test -z "$ac_c_werror_flag"
7857                         || test ! -s conftest.err'
7858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859  (eval $ac_try) 2>&5
7860  ac_status=$?
7861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862  (exit $ac_status); }; } &&
7863         { ac_try='test -s conftest$ac_exeext'
7864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865  (eval $ac_try) 2>&5
7866  ac_status=$?
7867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868  (exit $ac_status); }; }; then
7869
7870aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7871}'`
7872# Check for a 64-bit object if we didn't find anything.
7873if 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; }
7874}'`; fi
7875else
7876  echo "$as_me: failed program was:" >&5
7877sed 's/^/| /' conftest.$ac_ext >&5
7878
7879fi
7880rm -f conftest.err conftest.$ac_objext \
7881      conftest$ac_exeext conftest.$ac_ext
7882if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7883
7884       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7885        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"
7886       else
7887        if test "$host_cpu" = ia64; then
7888          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7889          allow_undefined_flag="-z nodefs"
7890          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"
7891        else
7892         # Determine the default libpath from the value encoded in an empty executable.
7893         cat >conftest.$ac_ext <<_ACEOF
7894/* confdefs.h.  */
7895_ACEOF
7896cat confdefs.h >>conftest.$ac_ext
7897cat >>conftest.$ac_ext <<_ACEOF
7898/* end confdefs.h.  */
7899
7900int
7901main ()
7902{
7903
7904  ;
7905  return 0;
7906}
7907_ACEOF
7908rm -f conftest.$ac_objext conftest$ac_exeext
7909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910  (eval $ac_link) 2>conftest.er1
7911  ac_status=$?
7912  grep -v '^ *+' conftest.er1 >conftest.err
7913  rm -f conftest.er1
7914  cat conftest.err >&5
7915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916  (exit $ac_status); } &&
7917         { ac_try='test -z "$ac_c_werror_flag"
7918                         || test ! -s conftest.err'
7919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920  (eval $ac_try) 2>&5
7921  ac_status=$?
7922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923  (exit $ac_status); }; } &&
7924         { ac_try='test -s conftest$ac_exeext'
7925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926  (eval $ac_try) 2>&5
7927  ac_status=$?
7928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929  (exit $ac_status); }; }; then
7930
7931aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7932}'`
7933# Check for a 64-bit object if we didn't find anything.
7934if 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; }
7935}'`; fi
7936else
7937  echo "$as_me: failed program was:" >&5
7938sed 's/^/| /' conftest.$ac_ext >&5
7939
7940fi
7941rm -f conftest.err conftest.$ac_objext \
7942      conftest$ac_exeext conftest.$ac_ext
7943if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7944
7945         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7946          # Warning - without using the other run time loading flags,
7947          # -berok will link without error, but may produce a broken library.
7948          no_undefined_flag=' ${wl}-bernotok'
7949          allow_undefined_flag=' ${wl}-berok'
7950          # Exported symbols can be pulled into shared objects from archives
7951          whole_archive_flag_spec='$convenience'
7952          archive_cmds_need_lc=yes
7953          # This is similar to how AIX traditionally builds its shared libraries.
7954          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'
7955        fi
7956      fi
7957      ;;
7958
7959    amigaos*)
7960      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)'
7961      hardcode_libdir_flag_spec='-L$libdir'
7962      hardcode_minus_L=yes
7963      # see comment about different semantics on the GNU ld section
7964      ld_shlibs=no
7965      ;;
7966
7967    bsdi[45]*)
7968      export_dynamic_flag_spec=-rdynamic
7969      ;;
7970
7971    cygwin* | mingw* | pw32*)
7972      # When not using gcc, we currently assume that we are using
7973      # Microsoft Visual C++.
7974      # hardcode_libdir_flag_spec is actually meaningless, as there is
7975      # no search path for DLLs.
7976      hardcode_libdir_flag_spec=' '
7977      allow_undefined_flag=unsupported
7978      # Tell ltmain to make .lib files, not .a files.
7979      libext=lib
7980      # Tell ltmain to make .dll files, not .so files.
7981      shrext_cmds=".dll"
7982      # FIXME: Setting linknames here is a bad hack.
7983      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7984      # The linker will automatically build a .lib file if we build a DLL.
7985      old_archive_From_new_cmds='true'
7986      # FIXME: Should let the user specify the lib program.
7987      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7988      fix_srcfile_path='`cygpath -w "$srcfile"`'
7989      enable_shared_with_static_runtimes=yes
7990      ;;
7991
7992    darwin* | rhapsody*)
7993      case $host_os in
7994        rhapsody* | darwin1.[012])
7995         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7996         ;;
7997       *) # Darwin 1.3 on
7998         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7999           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8000         else
8001           case ${MACOSX_DEPLOYMENT_TARGET} in
8002             10.[012])
8003               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8004               ;;
8005             10.*)
8006               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8007               ;;
8008           esac
8009         fi
8010         ;;
8011      esac
8012      archive_cmds_need_lc=no
8013      hardcode_direct=no
8014      hardcode_automatic=yes
8015      hardcode_shlibpath_var=unsupported
8016      whole_archive_flag_spec=''
8017      link_all_deplibs=yes
8018    if test "$GCC" = yes ; then
8019        output_verbose_link_cmd='echo'
8020        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8021      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8022      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8023      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}'
8024      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}'
8025    else
8026      case $cc_basename in
8027        xlc*)
8028         output_verbose_link_cmd='echo'
8029         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8030         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8031          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8032         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}'
8033          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}'
8034          ;;
8035       *)
8036         ld_shlibs=no
8037          ;;
8038      esac
8039    fi
8040      ;;
8041
8042    dgux*)
8043      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8044      hardcode_libdir_flag_spec='-L$libdir'
8045      hardcode_shlibpath_var=no
8046      ;;
8047
8048    freebsd1*)
8049      ld_shlibs=no
8050      ;;
8051
8052    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8053    # support.  Future versions do this automatically, but an explicit c++rt0.o
8054    # does not break anything, and helps significantly (at the cost of a little
8055    # extra space).
8056    freebsd2.2*)
8057      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8058      hardcode_libdir_flag_spec='-R$libdir'
8059      hardcode_direct=yes
8060      hardcode_shlibpath_var=no
8061      ;;
8062
8063    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8064    freebsd2*)
8065      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8066      hardcode_direct=yes
8067      hardcode_minus_L=yes
8068      hardcode_shlibpath_var=no
8069      ;;
8070
8071    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8072    freebsd* | kfreebsd*-gnu | dragonfly*)
8073      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8074      hardcode_libdir_flag_spec='-R$libdir'
8075      hardcode_direct=yes
8076      hardcode_shlibpath_var=no
8077      ;;
8078
8079    hpux9*)
8080      if test "$GCC" = yes; then
8081        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'
8082      else
8083        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'
8084      fi
8085      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8086      hardcode_libdir_separator=:
8087      hardcode_direct=yes
8088
8089      # hardcode_minus_L: Not really in the search PATH,
8090      # but as the default location of the library.
8091      hardcode_minus_L=yes
8092      export_dynamic_flag_spec='${wl}-E'
8093      ;;
8094
8095    hpux10*)
8096      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8097        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8098      else
8099        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8100      fi
8101      if test "$with_gnu_ld" = no; then
8102        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8103        hardcode_libdir_separator=:
8104
8105        hardcode_direct=yes
8106        export_dynamic_flag_spec='${wl}-E'
8107
8108        # hardcode_minus_L: Not really in the search PATH,
8109        # but as the default location of the library.
8110        hardcode_minus_L=yes
8111      fi
8112      ;;
8113
8114    hpux11*)
8115      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8116        case $host_cpu in
8117        hppa*64*)
8118          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8119          ;;
8120        ia64*)
8121          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8122          ;;
8123        *)
8124          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8125          ;;
8126        esac
8127      else
8128        case $host_cpu in
8129        hppa*64*)
8130          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8131          ;;
8132        ia64*)
8133          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8134          ;;
8135        *)
8136          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8137          ;;
8138        esac
8139      fi
8140      if test "$with_gnu_ld" = no; then
8141        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8142        hardcode_libdir_separator=:
8143
8144        case $host_cpu in
8145        hppa*64*|ia64*)
8146          hardcode_libdir_flag_spec_ld='+b $libdir'
8147          hardcode_direct=no
8148          hardcode_shlibpath_var=no
8149          ;;
8150        *)
8151          hardcode_direct=yes
8152          export_dynamic_flag_spec='${wl}-E'
8153
8154          # hardcode_minus_L: Not really in the search PATH,
8155          # but as the default location of the library.
8156          hardcode_minus_L=yes
8157          ;;
8158        esac
8159      fi
8160      ;;
8161
8162    irix5* | irix6* | nonstopux*)
8163      if test "$GCC" = yes; then
8164        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'
8165      else
8166        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'
8167        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8168      fi
8169      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8170      hardcode_libdir_separator=:
8171      link_all_deplibs=yes
8172      ;;
8173
8174    netbsd*)
8175      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8176        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8177      else
8178        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8179      fi
8180      hardcode_libdir_flag_spec='-R$libdir'
8181      hardcode_direct=yes
8182      hardcode_shlibpath_var=no
8183      ;;
8184
8185    newsos6)
8186      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8187      hardcode_direct=yes
8188      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8189      hardcode_libdir_separator=:
8190      hardcode_shlibpath_var=no
8191      ;;
8192
8193    openbsd*)
8194      hardcode_direct=yes
8195      hardcode_shlibpath_var=no
8196      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8197        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8198        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8199        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8200        export_dynamic_flag_spec='${wl}-E'
8201      else
8202       case $host_os in
8203         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8204           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8205           hardcode_libdir_flag_spec='-R$libdir'
8206           ;;
8207         *)
8208           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8209           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8210           ;;
8211       esac
8212      fi
8213      ;;
8214
8215    os2*)
8216      hardcode_libdir_flag_spec='-L$libdir'
8217      hardcode_minus_L=yes
8218      allow_undefined_flag=unsupported
8219      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'
8220      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8221      ;;
8222
8223    osf3*)
8224      if test "$GCC" = yes; then
8225        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8226        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'
8227      else
8228        allow_undefined_flag=' -expect_unresolved \*'
8229        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'
8230      fi
8231      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8232      hardcode_libdir_separator=:
8233      ;;
8234
8235    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8236      if test "$GCC" = yes; then
8237        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8238        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'
8239        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8240      else
8241        allow_undefined_flag=' -expect_unresolved \*'
8242        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'
8243        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8244        $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'
8245
8246        # Both c and cxx compiler support -rpath directly
8247        hardcode_libdir_flag_spec='-rpath $libdir'
8248      fi
8249      hardcode_libdir_separator=:
8250      ;;
8251
8252    solaris*)
8253      no_undefined_flag=' -z text'
8254      if test "$GCC" = yes; then
8255        wlarc='${wl}'
8256        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8257        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8258          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8259      else
8260        wlarc=''
8261        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8262        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8263        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8264      fi
8265      hardcode_libdir_flag_spec='-R$libdir'
8266      hardcode_shlibpath_var=no
8267      case $host_os in
8268      solaris2.[0-5] | solaris2.[0-5].*) ;;
8269      *)
8270        # The compiler driver will combine linker options so we
8271        # cannot just pass the convience library names through
8272        # without $wl, iff we do not link with $LD.
8273        # Luckily, gcc supports the same syntax we need for Sun Studio.
8274        # Supported since Solaris 2.6 (maybe 2.5.1?)
8275        case $wlarc in
8276        '')
8277          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8278        *)
8279          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' ;;
8280        esac ;;
8281      esac
8282      link_all_deplibs=yes
8283      ;;
8284
8285    sunos4*)
8286      if test "x$host_vendor" = xsequent; then
8287        # Use $CC to link under sequent, because it throws in some extra .o
8288        # files that make .init and .fini sections work.
8289        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8290      else
8291        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8292      fi
8293      hardcode_libdir_flag_spec='-L$libdir'
8294      hardcode_direct=yes
8295      hardcode_minus_L=yes
8296      hardcode_shlibpath_var=no
8297      ;;
8298
8299    sysv4)
8300      case $host_vendor in
8301        sni)
8302          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8303          hardcode_direct=yes # is this really true???
8304        ;;
8305        siemens)
8306          ## LD is ld it makes a PLAMLIB
8307          ## CC just makes a GrossModule.
8308          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8309          reload_cmds='$CC -r -o $output$reload_objs'
8310          hardcode_direct=no
8311        ;;
8312        motorola)
8313          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8314          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8315        ;;
8316      esac
8317      runpath_var='LD_RUN_PATH'
8318      hardcode_shlibpath_var=no
8319      ;;
8320
8321    sysv4.3*)
8322      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8323      hardcode_shlibpath_var=no
8324      export_dynamic_flag_spec='-Bexport'
8325      ;;
8326
8327    sysv4*MP*)
8328      if test -d /usr/nec; then
8329        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8330        hardcode_shlibpath_var=no
8331        runpath_var=LD_RUN_PATH
8332        hardcode_runpath_var=yes
8333        ld_shlibs=yes
8334      fi
8335      ;;
8336
8337    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8338      no_undefined_flag='${wl}-z,text'
8339      archive_cmds_need_lc=no
8340      hardcode_shlibpath_var=no
8341      runpath_var='LD_RUN_PATH'
8342
8343      if test "$GCC" = yes; then
8344        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8345        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8346      else
8347        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8348        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8349      fi
8350      ;;
8351
8352    sysv5* | sco3.2v5* | sco5v6*)
8353      # Note: We can NOT use -z defs as we might desire, because we do not
8354      # link with -lc, and that would cause any symbols used from libc to
8355      # always be unresolved, which means just about no library would
8356      # ever link correctly.  If we're not using GNU ld we use -z text
8357      # though, which does catch some bad symbols but isn't as heavy-handed
8358      # as -z defs.
8359      no_undefined_flag='${wl}-z,text'
8360      allow_undefined_flag='${wl}-z,nodefs'
8361      archive_cmds_need_lc=no
8362      hardcode_shlibpath_var=no
8363      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8364      hardcode_libdir_separator=':'
8365      link_all_deplibs=yes
8366      export_dynamic_flag_spec='${wl}-Bexport'
8367      runpath_var='LD_RUN_PATH'
8368
8369      if test "$GCC" = yes; then
8370        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8371        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8372      else
8373        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8374        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8375      fi
8376      ;;
8377
8378    uts4*)
8379      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8380      hardcode_libdir_flag_spec='-L$libdir'
8381      hardcode_shlibpath_var=no
8382      ;;
8383
8384    *)
8385      ld_shlibs=no
8386      ;;
8387    esac
8388  fi
8389
8390echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8391echo "${ECHO_T}$ld_shlibs" >&6
8392test "$ld_shlibs" = no && can_build_shared=no
8393
8394#
8395# Do we need to explicitly link libc?
8396#
8397case "x$archive_cmds_need_lc" in
8398x|xyes)
8399  # Assume -lc should be added
8400  archive_cmds_need_lc=yes
8401
8402  if test "$enable_shared" = yes && test "$GCC" = yes; then
8403    case $archive_cmds in
8404    *'~'*)
8405      # FIXME: we may have to deal with multi-command sequences.
8406      ;;
8407    '$CC '*)
8408      # Test whether the compiler implicitly links with -lc since on some
8409      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8410      # to ld, don't add -lc before -lgcc.
8411      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8412echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8413      $rm conftest*
8414      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8415
8416      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8417  (eval $ac_compile) 2>&5
8418  ac_status=$?
8419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420  (exit $ac_status); } 2>conftest.err; then
8421        soname=conftest
8422        lib=conftest
8423        libobjs=conftest.$ac_objext
8424        deplibs=
8425        wl=$lt_prog_compiler_wl
8426        pic_flag=$lt_prog_compiler_pic
8427        compiler_flags=-v
8428        linker_flags=-v
8429        verstring=
8430        output_objdir=.
8431        libname=conftest
8432        lt_save_allow_undefined_flag=$allow_undefined_flag
8433        allow_undefined_flag=
8434        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8435  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8436  ac_status=$?
8437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438  (exit $ac_status); }
8439        then
8440          archive_cmds_need_lc=no
8441        else
8442          archive_cmds_need_lc=yes
8443        fi
8444        allow_undefined_flag=$lt_save_allow_undefined_flag
8445      else
8446        cat conftest.err 1>&5
8447      fi
8448      $rm conftest*
8449      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8450echo "${ECHO_T}$archive_cmds_need_lc" >&6
8451      ;;
8452    esac
8453  fi
8454  ;;
8455esac
8456
8457echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8458echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8459library_names_spec=
8460libname_spec='lib$name'
8461soname_spec=
8462shrext_cmds=".so"
8463postinstall_cmds=
8464postuninstall_cmds=
8465finish_cmds=
8466finish_eval=
8467shlibpath_var=
8468shlibpath_overrides_runpath=unknown
8469version_type=none
8470dynamic_linker="$host_os ld.so"
8471sys_lib_dlsearch_path_spec="/lib /usr/lib"
8472if test "$GCC" = yes; then
8473  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8474  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8475    # if the path contains ";" then we assume it to be the separator
8476    # otherwise default to the standard path separator (i.e. ":") - it is
8477    # assumed that no part of a normal pathname contains ";" but that should
8478    # okay in the real world where ";" in dirpaths is itself problematic.
8479    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8480  else
8481    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8482  fi
8483else
8484  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8485fi
8486need_lib_prefix=unknown
8487hardcode_into_libs=no
8488
8489# when you set need_version to no, make sure it does not cause -set_version
8490# flags to be left without arguments
8491need_version=unknown
8492
8493case $host_os in
8494aix3*)
8495  version_type=linux
8496  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8497  shlibpath_var=LIBPATH
8498
8499  # AIX 3 has no versioning support, so we append a major version to the name.
8500  soname_spec='${libname}${release}${shared_ext}$major'
8501  ;;
8502
8503aix4* | aix5*)
8504  version_type=linux
8505  need_lib_prefix=no
8506  need_version=no
8507  hardcode_into_libs=yes
8508  if test "$host_cpu" = ia64; then
8509    # AIX 5 supports IA64
8510    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8511    shlibpath_var=LD_LIBRARY_PATH
8512  else
8513    # With GCC up to 2.95.x, collect2 would create an import file
8514    # for dependence libraries.  The import file would start with
8515    # the line `#! .'.  This would cause the generated library to
8516    # depend on `.', always an invalid library.  This was fixed in
8517    # development snapshots of GCC prior to 3.0.
8518    case $host_os in
8519      aix4 | aix4.[01] | aix4.[01].*)
8520      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8521           echo ' yes '
8522           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8523        :
8524      else
8525        can_build_shared=no
8526      fi
8527      ;;
8528    esac
8529    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8530    # soname into executable. Probably we can add versioning support to
8531    # collect2, so additional links can be useful in future.
8532    if test "$aix_use_runtimelinking" = yes; then
8533      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8534      # instead of lib<name>.a to let people know that these are not
8535      # typical AIX shared libraries.
8536      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8537    else
8538      # We preserve .a as extension for shared libraries through AIX4.2
8539      # and later when we are not doing run time linking.
8540      library_names_spec='${libname}${release}.a $libname.a'
8541      soname_spec='${libname}${release}${shared_ext}$major'
8542    fi
8543    shlibpath_var=LIBPATH
8544  fi
8545  ;;
8546
8547amigaos*)
8548  library_names_spec='$libname.ixlibrary $libname.a'
8549  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8550  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'
8551  ;;
8552
8553beos*)
8554  library_names_spec='${libname}${shared_ext}'
8555  dynamic_linker="$host_os ld.so"
8556  shlibpath_var=LIBRARY_PATH
8557  ;;
8558
8559bsdi[45]*)
8560  version_type=linux
8561  need_version=no
8562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8563  soname_spec='${libname}${release}${shared_ext}$major'
8564  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8565  shlibpath_var=LD_LIBRARY_PATH
8566  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8567  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8568  # the default ld.so.conf also contains /usr/contrib/lib and
8569  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8570  # libtool to hard-code these into programs
8571  ;;
8572
8573cygwin* | mingw* | pw32*)
8574  version_type=windows
8575  shrext_cmds=".dll"
8576  need_version=no
8577  need_lib_prefix=no
8578
8579  case $GCC,$host_os in
8580  yes,cygwin* | yes,mingw* | yes,pw32*)
8581    library_names_spec='$libname.dll.a'
8582    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8583    postinstall_cmds='base_file=`basename \${file}`~
8584      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8585      dldir=$destdir/`dirname \$dlpath`~
8586      test -d \$dldir || mkdir -p \$dldir~
8587      $install_prog $dir/$dlname \$dldir/$dlname~
8588      chmod a+x \$dldir/$dlname'
8589    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8590      dlpath=$dir/\$dldll~
8591       $rm \$dlpath'
8592    shlibpath_overrides_runpath=yes
8593
8594    case $host_os in
8595    cygwin*)
8596      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8597      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8598      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8599      ;;
8600    mingw*)
8601      # MinGW DLLs use traditional 'lib' prefix
8602      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8603      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8604      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8605        # It is most probably a Windows format PATH printed by
8606        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8607        # path with ; separators, and with drive letters. We can handle the
8608        # drive letters (cygwin fileutils understands them), so leave them,
8609        # especially as we might pass files found there to a mingw objdump,
8610        # which wouldn't understand a cygwinified path. Ahh.
8611        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8612      else
8613        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8614      fi
8615      ;;
8616    pw32*)
8617      # pw32 DLLs use 'pw' prefix rather than 'lib'
8618      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8619      ;;
8620    esac
8621    ;;
8622
8623  *)
8624    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8625    ;;
8626  esac
8627  dynamic_linker='Win32 ld.exe'
8628  # FIXME: first we should search . and the directory the executable is in
8629  shlibpath_var=PATH
8630  ;;
8631
8632darwin* | rhapsody*)
8633  dynamic_linker="$host_os dyld"
8634  version_type=darwin
8635  need_lib_prefix=no
8636  need_version=no
8637  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8638  soname_spec='${libname}${release}${major}$shared_ext'
8639  shlibpath_overrides_runpath=yes
8640  shlibpath_var=DYLD_LIBRARY_PATH
8641  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8642  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8643  if test "$GCC" = yes; then
8644    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"`
8645  else
8646    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8647  fi
8648  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8649  ;;
8650
8651dgux*)
8652  version_type=linux
8653  need_lib_prefix=no
8654  need_version=no
8655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8656  soname_spec='${libname}${release}${shared_ext}$major'
8657  shlibpath_var=LD_LIBRARY_PATH
8658  ;;
8659
8660freebsd1*)
8661  dynamic_linker=no
8662  ;;
8663
8664kfreebsd*-gnu)
8665  version_type=linux
8666  need_lib_prefix=no
8667  need_version=no
8668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8669  soname_spec='${libname}${release}${shared_ext}$major'
8670  shlibpath_var=LD_LIBRARY_PATH
8671  shlibpath_overrides_runpath=no
8672  hardcode_into_libs=yes
8673  dynamic_linker='GNU ld.so'
8674  ;;
8675
8676freebsd* | dragonfly*)
8677  # DragonFly does not have aout.  When/if they implement a new
8678  # versioning mechanism, adjust this.
8679  if test -x /usr/bin/objformat; then
8680    objformat=`/usr/bin/objformat`
8681  else
8682    case $host_os in
8683    freebsd[123]*) objformat=aout ;;
8684    *) objformat=elf ;;
8685    esac
8686  fi
8687  version_type=freebsd-$objformat
8688  case $version_type in
8689    freebsd-elf*)
8690      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8691      need_version=no
8692      need_lib_prefix=no
8693      ;;
8694    freebsd-*)
8695      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8696      need_version=yes
8697      ;;
8698  esac
8699  shlibpath_var=LD_LIBRARY_PATH
8700  case $host_os in
8701  freebsd2*)
8702    shlibpath_overrides_runpath=yes
8703    ;;
8704  freebsd3.[01]* | freebsdelf3.[01]*)
8705    shlibpath_overrides_runpath=yes
8706    hardcode_into_libs=yes
8707    ;;
8708  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8709  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8710    shlibpath_overrides_runpath=no
8711    hardcode_into_libs=yes
8712    ;;
8713  freebsd*) # from 4.6 on
8714    shlibpath_overrides_runpath=yes
8715    hardcode_into_libs=yes
8716    ;;
8717  esac
8718  ;;
8719
8720gnu*)
8721  version_type=linux
8722  need_lib_prefix=no
8723  need_version=no
8724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8725  soname_spec='${libname}${release}${shared_ext}$major'
8726  shlibpath_var=LD_LIBRARY_PATH
8727  hardcode_into_libs=yes
8728  ;;
8729
8730hpux9* | hpux10* | hpux11*)
8731  # Give a soname corresponding to the major version so that dld.sl refuses to
8732  # link against other versions.
8733  version_type=sunos
8734  need_lib_prefix=no
8735  need_version=no
8736  case $host_cpu in
8737  ia64*)
8738    shrext_cmds='.so'
8739    hardcode_into_libs=yes
8740    dynamic_linker="$host_os dld.so"
8741    shlibpath_var=LD_LIBRARY_PATH
8742    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8743    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8744    soname_spec='${libname}${release}${shared_ext}$major'
8745    if test "X$HPUX_IA64_MODE" = X32; then
8746      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8747    else
8748      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8749    fi
8750    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8751    ;;
8752   hppa*64*)
8753     shrext_cmds='.sl'
8754     hardcode_into_libs=yes
8755     dynamic_linker="$host_os dld.sl"
8756     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8757     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8759     soname_spec='${libname}${release}${shared_ext}$major'
8760     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8761     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8762     ;;
8763   *)
8764    shrext_cmds='.sl'
8765    dynamic_linker="$host_os dld.sl"
8766    shlibpath_var=SHLIB_PATH
8767    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8768    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8769    soname_spec='${libname}${release}${shared_ext}$major'
8770    ;;
8771  esac
8772  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8773  postinstall_cmds='chmod 555 $lib'
8774  ;;
8775
8776interix3*)
8777  version_type=linux
8778  need_lib_prefix=no
8779  need_version=no
8780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8781  soname_spec='${libname}${release}${shared_ext}$major'
8782  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8783  shlibpath_var=LD_LIBRARY_PATH
8784  shlibpath_overrides_runpath=no
8785  hardcode_into_libs=yes
8786  ;;
8787
8788irix5* | irix6* | nonstopux*)
8789  case $host_os in
8790    nonstopux*) version_type=nonstopux ;;
8791    *)
8792        if test "$lt_cv_prog_gnu_ld" = yes; then
8793                version_type=linux
8794        else
8795                version_type=irix
8796        fi ;;
8797  esac
8798  need_lib_prefix=no
8799  need_version=no
8800  soname_spec='${libname}${release}${shared_ext}$major'
8801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8802  case $host_os in
8803  irix5* | nonstopux*)
8804    libsuff= shlibsuff=
8805    ;;
8806  *)
8807    case $LD in # libtool.m4 will add one of these switches to LD
8808    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8809      libsuff= shlibsuff= libmagic=32-bit;;
8810    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8811      libsuff=32 shlibsuff=N32 libmagic=N32;;
8812    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8813      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8814    *) libsuff= shlibsuff= libmagic=never-match;;
8815    esac
8816    ;;
8817  esac
8818  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8819  shlibpath_overrides_runpath=no
8820  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8821  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8822  hardcode_into_libs=yes
8823  ;;
8824
8825# No shared lib support for Linux oldld, aout, or coff.
8826linux*oldld* | linux*aout* | linux*coff*)
8827  dynamic_linker=no
8828  ;;
8829
8830# This must be Linux ELF.
8831linux*)
8832  version_type=linux
8833  need_lib_prefix=no
8834  need_version=no
8835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836  soname_spec='${libname}${release}${shared_ext}$major'
8837  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8838  shlibpath_var=LD_LIBRARY_PATH
8839  shlibpath_overrides_runpath=no
8840  # This implies no fast_install, which is unacceptable.
8841  # Some rework will be needed to allow for fast_install
8842  # before this can be enabled.
8843  hardcode_into_libs=yes
8844
8845  # Append ld.so.conf contents to the search path
8846  if test -f /etc/ld.so.conf; then
8847    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' ' '`
8848    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8849  fi
8850
8851  # We used to test for /lib/ld.so.1 and disable shared libraries on
8852  # powerpc, because MkLinux only supported shared libraries with the
8853  # GNU dynamic linker.  Since this was broken with cross compilers,
8854  # most powerpc-linux boxes support dynamic linking these days and
8855  # people can always --disable-shared, the test was removed, and we
8856  # assume the GNU/Linux dynamic linker is in use.
8857  dynamic_linker='GNU/Linux ld.so'
8858  ;;
8859
8860knetbsd*-gnu)
8861  version_type=linux
8862  need_lib_prefix=no
8863  need_version=no
8864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8865  soname_spec='${libname}${release}${shared_ext}$major'
8866  shlibpath_var=LD_LIBRARY_PATH
8867  shlibpath_overrides_runpath=no
8868  hardcode_into_libs=yes
8869  dynamic_linker='GNU ld.so'
8870  ;;
8871
8872netbsd*)
8873  version_type=sunos
8874  need_lib_prefix=no
8875  need_version=no
8876  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8877    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8878    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8879    dynamic_linker='NetBSD (a.out) ld.so'
8880  else
8881    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8882    soname_spec='${libname}${release}${shared_ext}$major'
8883    dynamic_linker='NetBSD ld.elf_so'
8884  fi
8885  shlibpath_var=LD_LIBRARY_PATH
8886  shlibpath_overrides_runpath=yes
8887  hardcode_into_libs=yes
8888  ;;
8889
8890newsos6)
8891  version_type=linux
8892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893  shlibpath_var=LD_LIBRARY_PATH
8894  shlibpath_overrides_runpath=yes
8895  ;;
8896
8897nto-qnx*)
8898  version_type=linux
8899  need_lib_prefix=no
8900  need_version=no
8901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8902  soname_spec='${libname}${release}${shared_ext}$major'
8903  shlibpath_var=LD_LIBRARY_PATH
8904  shlibpath_overrides_runpath=yes
8905  ;;
8906
8907openbsd*)
8908  version_type=sunos
8909  sys_lib_dlsearch_path_spec="/usr/lib"
8910  need_lib_prefix=no
8911  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8912  case $host_os in
8913    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8914    *)                         need_version=no  ;;
8915  esac
8916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8917  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8918  shlibpath_var=LD_LIBRARY_PATH
8919  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8920    case $host_os in
8921      openbsd2.[89] | openbsd2.[89].*)
8922        shlibpath_overrides_runpath=no
8923        ;;
8924      *)
8925        shlibpath_overrides_runpath=yes
8926        ;;
8927      esac
8928  else
8929    shlibpath_overrides_runpath=yes
8930  fi
8931  ;;
8932
8933os2*)
8934  libname_spec='$name'
8935  shrext_cmds=".dll"
8936  need_lib_prefix=no
8937  library_names_spec='$libname${shared_ext} $libname.a'
8938  dynamic_linker='OS/2 ld.exe'
8939  shlibpath_var=LIBPATH
8940  ;;
8941
8942osf3* | osf4* | osf5*)
8943  version_type=osf
8944  need_lib_prefix=no
8945  need_version=no
8946  soname_spec='${libname}${release}${shared_ext}$major'
8947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948  shlibpath_var=LD_LIBRARY_PATH
8949  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8950  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8951  ;;
8952
8953solaris*)
8954  version_type=linux
8955  need_lib_prefix=no
8956  need_version=no
8957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958  soname_spec='${libname}${release}${shared_ext}$major'
8959  shlibpath_var=LD_LIBRARY_PATH
8960  shlibpath_overrides_runpath=yes
8961  hardcode_into_libs=yes
8962  # ldd complains unless libraries are executable
8963  postinstall_cmds='chmod +x $lib'
8964  ;;
8965
8966sunos4*)
8967  version_type=sunos
8968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8969  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8970  shlibpath_var=LD_LIBRARY_PATH
8971  shlibpath_overrides_runpath=yes
8972  if test "$with_gnu_ld" = yes; then
8973    need_lib_prefix=no
8974  fi
8975  need_version=yes
8976  ;;
8977
8978sysv4 | sysv4.3*)
8979  version_type=linux
8980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8981  soname_spec='${libname}${release}${shared_ext}$major'
8982  shlibpath_var=LD_LIBRARY_PATH
8983  case $host_vendor in
8984    sni)
8985      shlibpath_overrides_runpath=no
8986      need_lib_prefix=no
8987      export_dynamic_flag_spec='${wl}-Blargedynsym'
8988      runpath_var=LD_RUN_PATH
8989      ;;
8990    siemens)
8991      need_lib_prefix=no
8992      ;;
8993    motorola)
8994      need_lib_prefix=no
8995      need_version=no
8996      shlibpath_overrides_runpath=no
8997      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8998      ;;
8999  esac
9000  ;;
9001
9002sysv4*MP*)
9003  if test -d /usr/nec ;then
9004    version_type=linux
9005    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9006    soname_spec='$libname${shared_ext}.$major'
9007    shlibpath_var=LD_LIBRARY_PATH
9008  fi
9009  ;;
9010
9011sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9012  version_type=freebsd-elf
9013  need_lib_prefix=no
9014  need_version=no
9015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9016  soname_spec='${libname}${release}${shared_ext}$major'
9017  shlibpath_var=LD_LIBRARY_PATH
9018  hardcode_into_libs=yes
9019  if test "$with_gnu_ld" = yes; then
9020    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9021    shlibpath_overrides_runpath=no
9022  else
9023    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9024    shlibpath_overrides_runpath=yes
9025    case $host_os in
9026      sco3.2v5*)
9027        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9028        ;;
9029    esac
9030  fi
9031  sys_lib_dlsearch_path_spec='/usr/lib'
9032  ;;
9033
9034uts4*)
9035  version_type=linux
9036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037  soname_spec='${libname}${release}${shared_ext}$major'
9038  shlibpath_var=LD_LIBRARY_PATH
9039  ;;
9040
9041*)
9042  dynamic_linker=no
9043  ;;
9044esac
9045echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9046echo "${ECHO_T}$dynamic_linker" >&6
9047test "$dynamic_linker" = no && can_build_shared=no
9048
9049variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9050if test "$GCC" = yes; then
9051  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9052fi
9053
9054echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9055echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9056hardcode_action=
9057if test -n "$hardcode_libdir_flag_spec" || \
9058   test -n "$runpath_var" || \
9059   test "X$hardcode_automatic" = "Xyes" ; then
9060
9061  # We can hardcode non-existant directories.
9062  if test "$hardcode_direct" != no &&
9063     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9064     # have to relink, otherwise we might link with an installed library
9065     # when we should be linking with a yet-to-be-installed one
9066     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9067     test "$hardcode_minus_L" != no; then
9068    # Linking always hardcodes the temporary library directory.
9069    hardcode_action=relink
9070  else
9071    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9072    hardcode_action=immediate
9073  fi
9074else
9075  # We cannot hardcode anything, or else we can only hardcode existing
9076  # directories.
9077  hardcode_action=unsupported
9078fi
9079echo "$as_me:$LINENO: result: $hardcode_action" >&5
9080echo "${ECHO_T}$hardcode_action" >&6
9081
9082if test "$hardcode_action" = relink; then
9083  # Fast installation is not supported
9084  enable_fast_install=no
9085elif test "$shlibpath_overrides_runpath" = yes ||
9086     test "$enable_shared" = no; then
9087  # Fast installation is not necessary
9088  enable_fast_install=needless
9089fi
9090
9091striplib=
9092old_striplib=
9093echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9094echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9095if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9096  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9097  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9098  echo "$as_me:$LINENO: result: yes" >&5
9099echo "${ECHO_T}yes" >&6
9100else
9101# FIXME - insert some real tests, host_os isn't really good enough
9102  case $host_os in
9103   darwin*)
9104       if test -n "$STRIP" ; then
9105         striplib="$STRIP -x"
9106         echo "$as_me:$LINENO: result: yes" >&5
9107echo "${ECHO_T}yes" >&6
9108       else
9109  echo "$as_me:$LINENO: result: no" >&5
9110echo "${ECHO_T}no" >&6
9111fi
9112       ;;
9113   *)
9114  echo "$as_me:$LINENO: result: no" >&5
9115echo "${ECHO_T}no" >&6
9116    ;;
9117  esac
9118fi
9119
9120if test "x$enable_dlopen" != xyes; then
9121  enable_dlopen=unknown
9122  enable_dlopen_self=unknown
9123  enable_dlopen_self_static=unknown
9124else
9125  lt_cv_dlopen=no
9126  lt_cv_dlopen_libs=
9127
9128  case $host_os in
9129  beos*)
9130    lt_cv_dlopen="load_add_on"
9131    lt_cv_dlopen_libs=
9132    lt_cv_dlopen_self=yes
9133    ;;
9134
9135  mingw* | pw32*)
9136    lt_cv_dlopen="LoadLibrary"
9137    lt_cv_dlopen_libs=
9138   ;;
9139
9140  cygwin*)
9141    lt_cv_dlopen="dlopen"
9142    lt_cv_dlopen_libs=
9143   ;;
9144
9145  darwin*)
9146  # if libdl is installed we need to link against it
9147    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9148echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9149if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9150  echo $ECHO_N "(cached) $ECHO_C" >&6
9151else
9152  ac_check_lib_save_LIBS=$LIBS
9153LIBS="-ldl  $LIBS"
9154cat >conftest.$ac_ext <<_ACEOF
9155/* confdefs.h.  */
9156_ACEOF
9157cat confdefs.h >>conftest.$ac_ext
9158cat >>conftest.$ac_ext <<_ACEOF
9159/* end confdefs.h.  */
9160
9161/* Override any gcc2 internal prototype to avoid an error.  */
9162#ifdef __cplusplus
9163extern "C"
9164#endif
9165/* We use char because int might match the return type of a gcc2
9166   builtin and then its argument prototype would still apply.  */
9167char dlopen ();
9168int
9169main ()
9170{
9171dlopen ();
9172  ;
9173  return 0;
9174}
9175_ACEOF
9176rm -f conftest.$ac_objext conftest$ac_exeext
9177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9178  (eval $ac_link) 2>conftest.er1
9179  ac_status=$?
9180  grep -v '^ *+' conftest.er1 >conftest.err
9181  rm -f conftest.er1
9182  cat conftest.err >&5
9183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184  (exit $ac_status); } &&
9185         { ac_try='test -z "$ac_c_werror_flag"
9186                         || test ! -s conftest.err'
9187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188  (eval $ac_try) 2>&5
9189  ac_status=$?
9190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191  (exit $ac_status); }; } &&
9192         { ac_try='test -s conftest$ac_exeext'
9193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194  (eval $ac_try) 2>&5
9195  ac_status=$?
9196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197  (exit $ac_status); }; }; then
9198  ac_cv_lib_dl_dlopen=yes
9199else
9200  echo "$as_me: failed program was:" >&5
9201sed 's/^/| /' conftest.$ac_ext >&5
9202
9203ac_cv_lib_dl_dlopen=no
9204fi
9205rm -f conftest.err conftest.$ac_objext \
9206      conftest$ac_exeext conftest.$ac_ext
9207LIBS=$ac_check_lib_save_LIBS
9208fi
9209echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9210echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9211if test $ac_cv_lib_dl_dlopen = yes; then
9212  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9213else
9214
9215    lt_cv_dlopen="dyld"
9216    lt_cv_dlopen_libs=
9217    lt_cv_dlopen_self=yes
9218
9219fi
9220
9221   ;;
9222
9223  *)
9224    echo "$as_me:$LINENO: checking for shl_load" >&5
9225echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9226if test "${ac_cv_func_shl_load+set}" = set; then
9227  echo $ECHO_N "(cached) $ECHO_C" >&6
9228else
9229  cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h.  */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h.  */
9235/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9236   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9237#define shl_load innocuous_shl_load
9238
9239/* System header to define __stub macros and hopefully few prototypes,
9240    which can conflict with char shl_load (); below.
9241    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9242    <limits.h> exists even on freestanding compilers.  */
9243
9244#ifdef __STDC__
9245# include <limits.h>
9246#else
9247# include <assert.h>
9248#endif
9249
9250#undef shl_load
9251
9252/* Override any gcc2 internal prototype to avoid an error.  */
9253#ifdef __cplusplus
9254extern "C"
9255{
9256#endif
9257/* We use char because int might match the return type of a gcc2
9258   builtin and then its argument prototype would still apply.  */
9259char shl_load ();
9260/* The GNU C library defines this for functions which it implements
9261    to always fail with ENOSYS.  Some functions are actually named
9262    something starting with __ and the normal name is an alias.  */
9263#if defined (__stub_shl_load) || defined (__stub___shl_load)
9264choke me
9265#else
9266char (*f) () = shl_load;
9267#endif
9268#ifdef __cplusplus
9269}
9270#endif
9271
9272int
9273main ()
9274{
9275return f != shl_load;
9276  ;
9277  return 0;
9278}
9279_ACEOF
9280rm -f conftest.$ac_objext conftest$ac_exeext
9281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9282  (eval $ac_link) 2>conftest.er1
9283  ac_status=$?
9284  grep -v '^ *+' conftest.er1 >conftest.err
9285  rm -f conftest.er1
9286  cat conftest.err >&5
9287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288  (exit $ac_status); } &&
9289         { ac_try='test -z "$ac_c_werror_flag"
9290                         || test ! -s conftest.err'
9291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292  (eval $ac_try) 2>&5
9293  ac_status=$?
9294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295  (exit $ac_status); }; } &&
9296         { ac_try='test -s conftest$ac_exeext'
9297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298  (eval $ac_try) 2>&5
9299  ac_status=$?
9300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301  (exit $ac_status); }; }; then
9302  ac_cv_func_shl_load=yes
9303else
9304  echo "$as_me: failed program was:" >&5
9305sed 's/^/| /' conftest.$ac_ext >&5
9306
9307ac_cv_func_shl_load=no
9308fi
9309rm -f conftest.err conftest.$ac_objext \
9310      conftest$ac_exeext conftest.$ac_ext
9311fi
9312echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9313echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9314if test $ac_cv_func_shl_load = yes; then
9315  lt_cv_dlopen="shl_load"
9316else
9317  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9318echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9319if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9320  echo $ECHO_N "(cached) $ECHO_C" >&6
9321else
9322  ac_check_lib_save_LIBS=$LIBS
9323LIBS="-ldld  $LIBS"
9324cat >conftest.$ac_ext <<_ACEOF
9325/* confdefs.h.  */
9326_ACEOF
9327cat confdefs.h >>conftest.$ac_ext
9328cat >>conftest.$ac_ext <<_ACEOF
9329/* end confdefs.h.  */
9330
9331/* Override any gcc2 internal prototype to avoid an error.  */
9332#ifdef __cplusplus
9333extern "C"
9334#endif
9335/* We use char because int might match the return type of a gcc2
9336   builtin and then its argument prototype would still apply.  */
9337char shl_load ();
9338int
9339main ()
9340{
9341shl_load ();
9342  ;
9343  return 0;
9344}
9345_ACEOF
9346rm -f conftest.$ac_objext conftest$ac_exeext
9347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9348  (eval $ac_link) 2>conftest.er1
9349  ac_status=$?
9350  grep -v '^ *+' conftest.er1 >conftest.err
9351  rm -f conftest.er1
9352  cat conftest.err >&5
9353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354  (exit $ac_status); } &&
9355         { ac_try='test -z "$ac_c_werror_flag"
9356                         || test ! -s conftest.err'
9357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358  (eval $ac_try) 2>&5
9359  ac_status=$?
9360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361  (exit $ac_status); }; } &&
9362         { ac_try='test -s conftest$ac_exeext'
9363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364  (eval $ac_try) 2>&5
9365  ac_status=$?
9366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367  (exit $ac_status); }; }; then
9368  ac_cv_lib_dld_shl_load=yes
9369else
9370  echo "$as_me: failed program was:" >&5
9371sed 's/^/| /' conftest.$ac_ext >&5
9372
9373ac_cv_lib_dld_shl_load=no
9374fi
9375rm -f conftest.err conftest.$ac_objext \
9376      conftest$ac_exeext conftest.$ac_ext
9377LIBS=$ac_check_lib_save_LIBS
9378fi
9379echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9380echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9381if test $ac_cv_lib_dld_shl_load = yes; then
9382  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9383else
9384  echo "$as_me:$LINENO: checking for dlopen" >&5
9385echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9386if test "${ac_cv_func_dlopen+set}" = set; then
9387  echo $ECHO_N "(cached) $ECHO_C" >&6
9388else
9389  cat >conftest.$ac_ext <<_ACEOF
9390/* confdefs.h.  */
9391_ACEOF
9392cat confdefs.h >>conftest.$ac_ext
9393cat >>conftest.$ac_ext <<_ACEOF
9394/* end confdefs.h.  */
9395/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9396   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9397#define dlopen innocuous_dlopen
9398
9399/* System header to define __stub macros and hopefully few prototypes,
9400    which can conflict with char dlopen (); below.
9401    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9402    <limits.h> exists even on freestanding compilers.  */
9403
9404#ifdef __STDC__
9405# include <limits.h>
9406#else
9407# include <assert.h>
9408#endif
9409
9410#undef dlopen
9411
9412/* Override any gcc2 internal prototype to avoid an error.  */
9413#ifdef __cplusplus
9414extern "C"
9415{
9416#endif
9417/* We use char because int might match the return type of a gcc2
9418   builtin and then its argument prototype would still apply.  */
9419char dlopen ();
9420/* The GNU C library defines this for functions which it implements
9421    to always fail with ENOSYS.  Some functions are actually named
9422    something starting with __ and the normal name is an alias.  */
9423#if defined (__stub_dlopen) || defined (__stub___dlopen)
9424choke me
9425#else
9426char (*f) () = dlopen;
9427#endif
9428#ifdef __cplusplus
9429}
9430#endif
9431
9432int
9433main ()
9434{
9435return f != dlopen;
9436  ;
9437  return 0;
9438}
9439_ACEOF
9440rm -f conftest.$ac_objext conftest$ac_exeext
9441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9442  (eval $ac_link) 2>conftest.er1
9443  ac_status=$?
9444  grep -v '^ *+' conftest.er1 >conftest.err
9445  rm -f conftest.er1
9446  cat conftest.err >&5
9447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448  (exit $ac_status); } &&
9449         { ac_try='test -z "$ac_c_werror_flag"
9450                         || test ! -s conftest.err'
9451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452  (eval $ac_try) 2>&5
9453  ac_status=$?
9454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455  (exit $ac_status); }; } &&
9456         { ac_try='test -s conftest$ac_exeext'
9457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458  (eval $ac_try) 2>&5
9459  ac_status=$?
9460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461  (exit $ac_status); }; }; then
9462  ac_cv_func_dlopen=yes
9463else
9464  echo "$as_me: failed program was:" >&5
9465sed 's/^/| /' conftest.$ac_ext >&5
9466
9467ac_cv_func_dlopen=no
9468fi
9469rm -f conftest.err conftest.$ac_objext \
9470      conftest$ac_exeext conftest.$ac_ext
9471fi
9472echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9473echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9474if test $ac_cv_func_dlopen = yes; then
9475  lt_cv_dlopen="dlopen"
9476else
9477  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9478echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9479if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9480  echo $ECHO_N "(cached) $ECHO_C" >&6
9481else
9482  ac_check_lib_save_LIBS=$LIBS
9483LIBS="-ldl  $LIBS"
9484cat >conftest.$ac_ext <<_ACEOF
9485/* confdefs.h.  */
9486_ACEOF
9487cat confdefs.h >>conftest.$ac_ext
9488cat >>conftest.$ac_ext <<_ACEOF
9489/* end confdefs.h.  */
9490
9491/* Override any gcc2 internal prototype to avoid an error.  */
9492#ifdef __cplusplus
9493extern "C"
9494#endif
9495/* We use char because int might match the return type of a gcc2
9496   builtin and then its argument prototype would still apply.  */
9497char dlopen ();
9498int
9499main ()
9500{
9501dlopen ();
9502  ;
9503  return 0;
9504}
9505_ACEOF
9506rm -f conftest.$ac_objext conftest$ac_exeext
9507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9508  (eval $ac_link) 2>conftest.er1
9509  ac_status=$?
9510  grep -v '^ *+' conftest.er1 >conftest.err
9511  rm -f conftest.er1
9512  cat conftest.err >&5
9513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514  (exit $ac_status); } &&
9515         { ac_try='test -z "$ac_c_werror_flag"
9516                         || test ! -s conftest.err'
9517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518  (eval $ac_try) 2>&5
9519  ac_status=$?
9520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521  (exit $ac_status); }; } &&
9522         { ac_try='test -s conftest$ac_exeext'
9523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524  (eval $ac_try) 2>&5
9525  ac_status=$?
9526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527  (exit $ac_status); }; }; then
9528  ac_cv_lib_dl_dlopen=yes
9529else
9530  echo "$as_me: failed program was:" >&5
9531sed 's/^/| /' conftest.$ac_ext >&5
9532
9533ac_cv_lib_dl_dlopen=no
9534fi
9535rm -f conftest.err conftest.$ac_objext \
9536      conftest$ac_exeext conftest.$ac_ext
9537LIBS=$ac_check_lib_save_LIBS
9538fi
9539echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9540echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9541if test $ac_cv_lib_dl_dlopen = yes; then
9542  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9543else
9544  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9545echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9546if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9547  echo $ECHO_N "(cached) $ECHO_C" >&6
9548else
9549  ac_check_lib_save_LIBS=$LIBS
9550LIBS="-lsvld  $LIBS"
9551cat >conftest.$ac_ext <<_ACEOF
9552/* confdefs.h.  */
9553_ACEOF
9554cat confdefs.h >>conftest.$ac_ext
9555cat >>conftest.$ac_ext <<_ACEOF
9556/* end confdefs.h.  */
9557
9558/* Override any gcc2 internal prototype to avoid an error.  */
9559#ifdef __cplusplus
9560extern "C"
9561#endif
9562/* We use char because int might match the return type of a gcc2
9563   builtin and then its argument prototype would still apply.  */
9564char dlopen ();
9565int
9566main ()
9567{
9568dlopen ();
9569  ;
9570  return 0;
9571}
9572_ACEOF
9573rm -f conftest.$ac_objext conftest$ac_exeext
9574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575  (eval $ac_link) 2>conftest.er1
9576  ac_status=$?
9577  grep -v '^ *+' conftest.er1 >conftest.err
9578  rm -f conftest.er1
9579  cat conftest.err >&5
9580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581  (exit $ac_status); } &&
9582         { ac_try='test -z "$ac_c_werror_flag"
9583                         || test ! -s conftest.err'
9584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585  (eval $ac_try) 2>&5
9586  ac_status=$?
9587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588  (exit $ac_status); }; } &&
9589         { ac_try='test -s conftest$ac_exeext'
9590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591  (eval $ac_try) 2>&5
9592  ac_status=$?
9593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594  (exit $ac_status); }; }; then
9595  ac_cv_lib_svld_dlopen=yes
9596else
9597  echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600ac_cv_lib_svld_dlopen=no
9601fi
9602rm -f conftest.err conftest.$ac_objext \
9603      conftest$ac_exeext conftest.$ac_ext
9604LIBS=$ac_check_lib_save_LIBS
9605fi
9606echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9607echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9608if test $ac_cv_lib_svld_dlopen = yes; then
9609  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9610else
9611  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9612echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9613if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9614  echo $ECHO_N "(cached) $ECHO_C" >&6
9615else
9616  ac_check_lib_save_LIBS=$LIBS
9617LIBS="-ldld  $LIBS"
9618cat >conftest.$ac_ext <<_ACEOF
9619/* confdefs.h.  */
9620_ACEOF
9621cat confdefs.h >>conftest.$ac_ext
9622cat >>conftest.$ac_ext <<_ACEOF
9623/* end confdefs.h.  */
9624
9625/* Override any gcc2 internal prototype to avoid an error.  */
9626#ifdef __cplusplus
9627extern "C"
9628#endif
9629/* We use char because int might match the return type of a gcc2
9630   builtin and then its argument prototype would still apply.  */
9631char dld_link ();
9632int
9633main ()
9634{
9635dld_link ();
9636  ;
9637  return 0;
9638}
9639_ACEOF
9640rm -f conftest.$ac_objext conftest$ac_exeext
9641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9642  (eval $ac_link) 2>conftest.er1
9643  ac_status=$?
9644  grep -v '^ *+' conftest.er1 >conftest.err
9645  rm -f conftest.er1
9646  cat conftest.err >&5
9647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648  (exit $ac_status); } &&
9649         { ac_try='test -z "$ac_c_werror_flag"
9650                         || test ! -s conftest.err'
9651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652  (eval $ac_try) 2>&5
9653  ac_status=$?
9654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655  (exit $ac_status); }; } &&
9656         { ac_try='test -s conftest$ac_exeext'
9657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658  (eval $ac_try) 2>&5
9659  ac_status=$?
9660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661  (exit $ac_status); }; }; then
9662  ac_cv_lib_dld_dld_link=yes
9663else
9664  echo "$as_me: failed program was:" >&5
9665sed 's/^/| /' conftest.$ac_ext >&5
9666
9667ac_cv_lib_dld_dld_link=no
9668fi
9669rm -f conftest.err conftest.$ac_objext \
9670      conftest$ac_exeext conftest.$ac_ext
9671LIBS=$ac_check_lib_save_LIBS
9672fi
9673echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9674echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9675if test $ac_cv_lib_dld_dld_link = yes; then
9676  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9677fi
9678
9679
9680fi
9681
9682
9683fi
9684
9685
9686fi
9687
9688
9689fi
9690
9691
9692fi
9693
9694    ;;
9695  esac
9696
9697  if test "x$lt_cv_dlopen" != xno; then
9698    enable_dlopen=yes
9699  else
9700    enable_dlopen=no
9701  fi
9702
9703  case $lt_cv_dlopen in
9704  dlopen)
9705    save_CPPFLAGS="$CPPFLAGS"
9706    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9707
9708    save_LDFLAGS="$LDFLAGS"
9709    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9710
9711    save_LIBS="$LIBS"
9712    LIBS="$lt_cv_dlopen_libs $LIBS"
9713
9714    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9715echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9716if test "${lt_cv_dlopen_self+set}" = set; then
9717  echo $ECHO_N "(cached) $ECHO_C" >&6
9718else
9719          if test "$cross_compiling" = yes; then :
9720  lt_cv_dlopen_self=cross
9721else
9722  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9723  lt_status=$lt_dlunknown
9724  cat > conftest.$ac_ext <<EOF
9725#line 9725 "configure"
9726#include "confdefs.h"
9727
9728#if HAVE_DLFCN_H
9729#include <dlfcn.h>
9730#endif
9731
9732#include <stdio.h>
9733
9734#ifdef RTLD_GLOBAL
9735#  define LT_DLGLOBAL           RTLD_GLOBAL
9736#else
9737#  ifdef DL_GLOBAL
9738#    define LT_DLGLOBAL         DL_GLOBAL
9739#  else
9740#    define LT_DLGLOBAL         0
9741#  endif
9742#endif
9743
9744/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9745   find out it does not work in some platform. */
9746#ifndef LT_DLLAZY_OR_NOW
9747#  ifdef RTLD_LAZY
9748#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9749#  else
9750#    ifdef DL_LAZY
9751#      define LT_DLLAZY_OR_NOW          DL_LAZY
9752#    else
9753#      ifdef RTLD_NOW
9754#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9755#      else
9756#        ifdef DL_NOW
9757#          define LT_DLLAZY_OR_NOW      DL_NOW
9758#        else
9759#          define LT_DLLAZY_OR_NOW      0
9760#        endif
9761#      endif
9762#    endif
9763#  endif
9764#endif
9765
9766#ifdef __cplusplus
9767extern "C" void exit (int);
9768#endif
9769
9770void fnord() { int i=42;}
9771int main ()
9772{
9773  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9774  int status = $lt_dlunknown;
9775
9776  if (self)
9777    {
9778      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9779      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9780      /* dlclose (self); */
9781    }
9782  else
9783    puts (dlerror ());
9784
9785    exit (status);
9786}
9787EOF
9788  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789  (eval $ac_link) 2>&5
9790  ac_status=$?
9791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9793    (./conftest; exit; ) >&5 2>/dev/null
9794    lt_status=$?
9795    case x$lt_status in
9796      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9797      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9798      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9799    esac
9800  else :
9801    # compilation failed
9802    lt_cv_dlopen_self=no
9803  fi
9804fi
9805rm -fr conftest*
9806
9807
9808fi
9809echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9810echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9811
9812    if test "x$lt_cv_dlopen_self" = xyes; then
9813      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9814      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9815echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9816if test "${lt_cv_dlopen_self_static+set}" = set; then
9817  echo $ECHO_N "(cached) $ECHO_C" >&6
9818else
9819          if test "$cross_compiling" = yes; then :
9820  lt_cv_dlopen_self_static=cross
9821else
9822  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9823  lt_status=$lt_dlunknown
9824  cat > conftest.$ac_ext <<EOF
9825#line 9825 "configure"
9826#include "confdefs.h"
9827
9828#if HAVE_DLFCN_H
9829#include <dlfcn.h>
9830#endif
9831
9832#include <stdio.h>
9833
9834#ifdef RTLD_GLOBAL
9835#  define LT_DLGLOBAL           RTLD_GLOBAL
9836#else
9837#  ifdef DL_GLOBAL
9838#    define LT_DLGLOBAL         DL_GLOBAL
9839#  else
9840#    define LT_DLGLOBAL         0
9841#  endif
9842#endif
9843
9844/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9845   find out it does not work in some platform. */
9846#ifndef LT_DLLAZY_OR_NOW
9847#  ifdef RTLD_LAZY
9848#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9849#  else
9850#    ifdef DL_LAZY
9851#      define LT_DLLAZY_OR_NOW          DL_LAZY
9852#    else
9853#      ifdef RTLD_NOW
9854#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9855#      else
9856#        ifdef DL_NOW
9857#          define LT_DLLAZY_OR_NOW      DL_NOW
9858#        else
9859#          define LT_DLLAZY_OR_NOW      0
9860#        endif
9861#      endif
9862#    endif
9863#  endif
9864#endif
9865
9866#ifdef __cplusplus
9867extern "C" void exit (int);
9868#endif
9869
9870void fnord() { int i=42;}
9871int main ()
9872{
9873  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9874  int status = $lt_dlunknown;
9875
9876  if (self)
9877    {
9878      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9879      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9880      /* dlclose (self); */
9881    }
9882  else
9883    puts (dlerror ());
9884
9885    exit (status);
9886}
9887EOF
9888  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9889  (eval $ac_link) 2>&5
9890  ac_status=$?
9891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9893    (./conftest; exit; ) >&5 2>/dev/null
9894    lt_status=$?
9895    case x$lt_status in
9896      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9897      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9898      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9899    esac
9900  else :
9901    # compilation failed
9902    lt_cv_dlopen_self_static=no
9903  fi
9904fi
9905rm -fr conftest*
9906
9907
9908fi
9909echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9910echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9911    fi
9912
9913    CPPFLAGS="$save_CPPFLAGS"
9914    LDFLAGS="$save_LDFLAGS"
9915    LIBS="$save_LIBS"
9916    ;;
9917  esac
9918
9919  case $lt_cv_dlopen_self in
9920  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9921  *) enable_dlopen_self=unknown ;;
9922  esac
9923
9924  case $lt_cv_dlopen_self_static in
9925  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9926  *) enable_dlopen_self_static=unknown ;;
9927  esac
9928fi
9929
9930
9931# Report which library types will actually be built
9932echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9933echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9934echo "$as_me:$LINENO: result: $can_build_shared" >&5
9935echo "${ECHO_T}$can_build_shared" >&6
9936
9937echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9938echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9939test "$can_build_shared" = "no" && enable_shared=no
9940
9941# On AIX, shared libraries and static libraries use the same namespace, and
9942# are all built from PIC.
9943case $host_os in
9944aix3*)
9945  test "$enable_shared" = yes && enable_static=no
9946  if test -n "$RANLIB"; then
9947    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9948    postinstall_cmds='$RANLIB $lib'
9949  fi
9950  ;;
9951
9952aix4* | aix5*)
9953  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9954    test "$enable_shared" = yes && enable_static=no
9955  fi
9956    ;;
9957esac
9958echo "$as_me:$LINENO: result: $enable_shared" >&5
9959echo "${ECHO_T}$enable_shared" >&6
9960
9961echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9962echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9963# Make sure either enable_shared or enable_static is yes.
9964test "$enable_shared" = yes || enable_static=yes
9965echo "$as_me:$LINENO: result: $enable_static" >&5
9966echo "${ECHO_T}$enable_static" >&6
9967
9968# The else clause should only fire when bootstrapping the
9969# libtool distribution, otherwise you forgot to ship ltmain.sh
9970# with your package, and you will get complaints that there are
9971# no rules to generate ltmain.sh.
9972if test -f "$ltmain"; then
9973  # See if we are running on zsh, and set the options which allow our commands through
9974  # without removal of \ escapes.
9975  if test -n "${ZSH_VERSION+set}" ; then
9976    setopt NO_GLOB_SUBST
9977  fi
9978  # Now quote all the things that may contain metacharacters while being
9979  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9980  # variables and quote the copies for generation of the libtool script.
9981  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9982    SED SHELL STRIP \
9983    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9984    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9985    deplibs_check_method reload_flag reload_cmds need_locks \
9986    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9987    lt_cv_sys_global_symbol_to_c_name_address \
9988    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9989    old_postinstall_cmds old_postuninstall_cmds \
9990    compiler \
9991    CC \
9992    LD \
9993    lt_prog_compiler_wl \
9994    lt_prog_compiler_pic \
9995    lt_prog_compiler_static \
9996    lt_prog_compiler_no_builtin_flag \
9997    export_dynamic_flag_spec \
9998    thread_safe_flag_spec \
9999    whole_archive_flag_spec \
10000    enable_shared_with_static_runtimes \
10001    old_archive_cmds \
10002    old_archive_from_new_cmds \
10003    predep_objects \
10004    postdep_objects \
10005    predeps \
10006    postdeps \
10007    compiler_lib_search_path \
10008    archive_cmds \
10009    archive_expsym_cmds \
10010    postinstall_cmds \
10011    postuninstall_cmds \
10012    old_archive_from_expsyms_cmds \
10013    allow_undefined_flag \
10014    no_undefined_flag \
10015    export_symbols_cmds \
10016    hardcode_libdir_flag_spec \
10017    hardcode_libdir_flag_spec_ld \
10018    hardcode_libdir_separator \
10019    hardcode_automatic \
10020    module_cmds \
10021    module_expsym_cmds \
10022    lt_cv_prog_compiler_c_o \
10023    exclude_expsyms \
10024    include_expsyms; do
10025
10026    case $var in
10027    old_archive_cmds | \
10028    old_archive_from_new_cmds | \
10029    archive_cmds | \
10030    archive_expsym_cmds | \
10031    module_cmds | \
10032    module_expsym_cmds | \
10033    old_archive_from_expsyms_cmds | \
10034    export_symbols_cmds | \
10035    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10036    postinstall_cmds | postuninstall_cmds | \
10037    old_postinstall_cmds | old_postuninstall_cmds | \
10038    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10039      # Double-quote double-evaled strings.
10040      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10041      ;;
10042    *)
10043      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10044      ;;
10045    esac
10046  done
10047
10048  case $lt_echo in
10049  *'\$0 --fallback-echo"')
10050    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10051    ;;
10052  esac
10053
10054cfgfile="${ofile}T"
10055  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10056  $rm -f "$cfgfile"
10057  { echo "$as_me:$LINENO: creating $ofile" >&5
10058echo "$as_me: creating $ofile" >&6;}
10059
10060  cat <<__EOF__ >> "$cfgfile"
10061#! $SHELL
10062
10063# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10064# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10065# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10066#
10067# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10068# Free Software Foundation, Inc.
10069#
10070# This file is part of GNU Libtool:
10071# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10072#
10073# This program is free software; you can redistribute it and/or modify
10074# it under the terms of the GNU General Public License as published by
10075# the Free Software Foundation; either version 2 of the License, or
10076# (at your option) any later version.
10077#
10078# This program is distributed in the hope that it will be useful, but
10079# WITHOUT ANY WARRANTY; without even the implied warranty of
10080# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10081# General Public License for more details.
10082#
10083# You should have received a copy of the GNU General Public License
10084# along with this program; if not, write to the Free Software
10085# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10086#
10087# As a special exception to the GNU General Public License, if you
10088# distribute this file as part of a program that contains a
10089# configuration script generated by Autoconf, you may include it under
10090# the same distribution terms that you use for the rest of that program.
10091
10092# A sed program that does not truncate output.
10093SED=$lt_SED
10094
10095# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10096Xsed="$SED -e 1s/^X//"
10097
10098# The HP-UX ksh and POSIX shell print the target directory to stdout
10099# if CDPATH is set.
10100(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10101
10102# The names of the tagged configurations supported by this script.
10103available_tags=
10104
10105# ### BEGIN LIBTOOL CONFIG
10106
10107# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10108
10109# Shell to use when invoking shell scripts.
10110SHELL=$lt_SHELL
10111
10112# Whether or not to build shared libraries.
10113build_libtool_libs=$enable_shared
10114
10115# Whether or not to build static libraries.
10116build_old_libs=$enable_static
10117
10118# Whether or not to add -lc for building shared libraries.
10119build_libtool_need_lc=$archive_cmds_need_lc
10120
10121# Whether or not to disallow shared libs when runtime libs are static
10122allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10123
10124# Whether or not to optimize for fast installation.
10125fast_install=$enable_fast_install
10126
10127# The host system.
10128host_alias=$host_alias
10129host=$host
10130host_os=$host_os
10131
10132# The build system.
10133build_alias=$build_alias
10134build=$build
10135build_os=$build_os
10136
10137# An echo program that does not interpret backslashes.
10138echo=$lt_echo
10139
10140# The archiver.
10141AR=$lt_AR
10142AR_FLAGS=$lt_AR_FLAGS
10143
10144# A C compiler.
10145LTCC=$lt_LTCC
10146
10147# LTCC compiler flags.
10148LTCFLAGS=$lt_LTCFLAGS
10149
10150# A language-specific compiler.
10151CC=$lt_compiler
10152
10153# Is the compiler the GNU C compiler?
10154with_gcc=$GCC
10155
10156# An ERE matcher.
10157EGREP=$lt_EGREP
10158
10159# The linker used to build libraries.
10160LD=$lt_LD
10161
10162# Whether we need hard or soft links.
10163LN_S=$lt_LN_S
10164
10165# A BSD-compatible nm program.
10166NM=$lt_NM
10167
10168# A symbol stripping program
10169STRIP=$lt_STRIP
10170
10171# Used to examine libraries when file_magic_cmd begins "file"
10172MAGIC_CMD=$MAGIC_CMD
10173
10174# Used on cygwin: DLL creation program.
10175DLLTOOL="$DLLTOOL"
10176
10177# Used on cygwin: object dumper.
10178OBJDUMP="$OBJDUMP"
10179
10180# Used on cygwin: assembler.
10181AS="$AS"
10182
10183# The name of the directory that contains temporary libtool files.
10184objdir=$objdir
10185
10186# How to create reloadable object files.
10187reload_flag=$lt_reload_flag
10188reload_cmds=$lt_reload_cmds
10189
10190# How to pass a linker flag through the compiler.
10191wl=$lt_lt_prog_compiler_wl
10192
10193# Object file suffix (normally "o").
10194objext="$ac_objext"
10195
10196# Old archive suffix (normally "a").
10197libext="$libext"
10198
10199# Shared library suffix (normally ".so").
10200shrext_cmds='$shrext_cmds'
10201
10202# Executable file suffix (normally "").
10203exeext="$exeext"
10204
10205# Additional compiler flags for building library objects.
10206pic_flag=$lt_lt_prog_compiler_pic
10207pic_mode=$pic_mode
10208
10209# What is the maximum length of a command?
10210max_cmd_len=$lt_cv_sys_max_cmd_len
10211
10212# Does compiler simultaneously support -c and -o options?
10213compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10214
10215# Must we lock files when doing compilation?
10216need_locks=$lt_need_locks
10217
10218# Do we need the lib prefix for modules?
10219need_lib_prefix=$need_lib_prefix
10220
10221# Do we need a version for libraries?
10222need_version=$need_version
10223
10224# Whether dlopen is supported.
10225dlopen_support=$enable_dlopen
10226
10227# Whether dlopen of programs is supported.
10228dlopen_self=$enable_dlopen_self
10229
10230# Whether dlopen of statically linked programs is supported.
10231dlopen_self_static=$enable_dlopen_self_static
10232
10233# Compiler flag to prevent dynamic linking.
10234link_static_flag=$lt_lt_prog_compiler_static
10235
10236# Compiler flag to turn off builtin functions.
10237no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10238
10239# Compiler flag to allow reflexive dlopens.
10240export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10241
10242# Compiler flag to generate shared objects directly from archives.
10243whole_archive_flag_spec=$lt_whole_archive_flag_spec
10244
10245# Compiler flag to generate thread-safe objects.
10246thread_safe_flag_spec=$lt_thread_safe_flag_spec
10247
10248# Library versioning type.
10249version_type=$version_type
10250
10251# Format of library name prefix.
10252libname_spec=$lt_libname_spec
10253
10254# List of archive names.  First name is the real one, the rest are links.
10255# The last name is the one that the linker finds with -lNAME.
10256library_names_spec=$lt_library_names_spec
10257
10258# The coded name of the library, if different from the real name.
10259soname_spec=$lt_soname_spec
10260
10261# Commands used to build and install an old-style archive.
10262RANLIB=$lt_RANLIB
10263old_archive_cmds=$lt_old_archive_cmds
10264old_postinstall_cmds=$lt_old_postinstall_cmds
10265old_postuninstall_cmds=$lt_old_postuninstall_cmds
10266
10267# Create an old-style archive from a shared archive.
10268old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10269
10270# Create a temporary old-style archive to link instead of a shared archive.
10271old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10272
10273# Commands used to build and install a shared archive.
10274archive_cmds=$lt_archive_cmds
10275archive_expsym_cmds=$lt_archive_expsym_cmds
10276postinstall_cmds=$lt_postinstall_cmds
10277postuninstall_cmds=$lt_postuninstall_cmds
10278
10279# Commands used to build a loadable module (assumed same as above if empty)
10280module_cmds=$lt_module_cmds
10281module_expsym_cmds=$lt_module_expsym_cmds
10282
10283# Commands to strip libraries.
10284old_striplib=$lt_old_striplib
10285striplib=$lt_striplib
10286
10287# Dependencies to place before the objects being linked to create a
10288# shared library.
10289predep_objects=$lt_predep_objects
10290
10291# Dependencies to place after the objects being linked to create a
10292# shared library.
10293postdep_objects=$lt_postdep_objects
10294
10295# Dependencies to place before the objects being linked to create a
10296# shared library.
10297predeps=$lt_predeps
10298
10299# Dependencies to place after the objects being linked to create a
10300# shared library.
10301postdeps=$lt_postdeps
10302
10303# The library search path used internally by the compiler when linking
10304# a shared library.
10305compiler_lib_search_path=$lt_compiler_lib_search_path
10306
10307# Method to check whether dependent libraries are shared objects.
10308deplibs_check_method=$lt_deplibs_check_method
10309
10310# Command to use when deplibs_check_method == file_magic.
10311file_magic_cmd=$lt_file_magic_cmd
10312
10313# Flag that allows shared libraries with undefined symbols to be built.
10314allow_undefined_flag=$lt_allow_undefined_flag
10315
10316# Flag that forces no undefined symbols.
10317no_undefined_flag=$lt_no_undefined_flag
10318
10319# Commands used to finish a libtool library installation in a directory.
10320finish_cmds=$lt_finish_cmds
10321
10322# Same as above, but a single script fragment to be evaled but not shown.
10323finish_eval=$lt_finish_eval
10324
10325# Take the output of nm and produce a listing of raw symbols and C names.
10326global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10327
10328# Transform the output of nm in a proper C declaration
10329global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10330
10331# Transform the output of nm in a C name address pair
10332global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10333
10334# This is the shared library runtime path variable.
10335runpath_var=$runpath_var
10336
10337# This is the shared library path variable.
10338shlibpath_var=$shlibpath_var
10339
10340# Is shlibpath searched before the hard-coded library search path?
10341shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10342
10343# How to hardcode a shared library path into an executable.
10344hardcode_action=$hardcode_action
10345
10346# Whether we should hardcode library paths into libraries.
10347hardcode_into_libs=$hardcode_into_libs
10348
10349# Flag to hardcode \$libdir into a binary during linking.
10350# This must work even if \$libdir does not exist.
10351hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10352
10353# If ld is used when linking, flag to hardcode \$libdir into
10354# a binary during linking. This must work even if \$libdir does
10355# not exist.
10356hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10357
10358# Whether we need a single -rpath flag with a separated argument.
10359hardcode_libdir_separator=$lt_hardcode_libdir_separator
10360
10361# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10362# resulting binary.
10363hardcode_direct=$hardcode_direct
10364
10365# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10366# resulting binary.
10367hardcode_minus_L=$hardcode_minus_L
10368
10369# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10370# the resulting binary.
10371hardcode_shlibpath_var=$hardcode_shlibpath_var
10372
10373# Set to yes if building a shared library automatically hardcodes DIR into the library
10374# and all subsequent libraries and executables linked against it.
10375hardcode_automatic=$hardcode_automatic
10376
10377# Variables whose values should be saved in libtool wrapper scripts and
10378# restored at relink time.
10379variables_saved_for_relink="$variables_saved_for_relink"
10380
10381# Whether libtool must link a program against all its dependency libraries.
10382link_all_deplibs=$link_all_deplibs
10383
10384# Compile-time system search path for libraries
10385sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10386
10387# Run-time system search path for libraries
10388sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10389
10390# Fix the shell variable \$srcfile for the compiler.
10391fix_srcfile_path="$fix_srcfile_path"
10392
10393# Set to yes if exported symbols are required.
10394always_export_symbols=$always_export_symbols
10395
10396# The commands to list exported symbols.
10397export_symbols_cmds=$lt_export_symbols_cmds
10398
10399# The commands to extract the exported symbol list from a shared archive.
10400extract_expsyms_cmds=$lt_extract_expsyms_cmds
10401
10402# Symbols that should not be listed in the preloaded symbols.
10403exclude_expsyms=$lt_exclude_expsyms
10404
10405# Symbols that must always be exported.
10406include_expsyms=$lt_include_expsyms
10407
10408# ### END LIBTOOL CONFIG
10409
10410__EOF__
10411
10412
10413  case $host_os in
10414  aix3*)
10415    cat <<\EOF >> "$cfgfile"
10416
10417# AIX sometimes has problems with the GCC collect2 program.  For some
10418# reason, if we set the COLLECT_NAMES environment variable, the problems
10419# vanish in a puff of smoke.
10420if test "X${COLLECT_NAMES+set}" != Xset; then
10421  COLLECT_NAMES=
10422  export COLLECT_NAMES
10423fi
10424EOF
10425    ;;
10426  esac
10427
10428  # We use sed instead of cat because bash on DJGPP gets confused if
10429  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10430  # text mode, it properly converts lines to CR/LF.  This bash problem
10431  # is reportedly fixed, but why not run on old versions too?
10432  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10433
10434  mv -f "$cfgfile" "$ofile" || \
10435    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10436  chmod +x "$ofile"
10437
10438else
10439  # If there is no Makefile yet, we rely on a make rule to execute
10440  # `config.status --recheck' to rerun these tests and create the
10441  # libtool script then.
10442  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10443  if test -f "$ltmain_in"; then
10444    test -f Makefile && make "$ltmain"
10445  fi
10446fi
10447
10448
10449ac_ext=c
10450ac_cpp='$CPP $CPPFLAGS'
10451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10453ac_compiler_gnu=$ac_cv_c_compiler_gnu
10454
10455CC="$lt_save_CC"
10456
10457
10458# Check whether --with-tags or --without-tags was given.
10459if test "${with_tags+set}" = set; then
10460  withval="$with_tags"
10461  tagnames="$withval"
10462fi;
10463
10464if test -f "$ltmain" && test -n "$tagnames"; then
10465  if test ! -f "${ofile}"; then
10466    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10467echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10468  fi
10469
10470  if test -z "$LTCC"; then
10471    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10472    if test -z "$LTCC"; then
10473      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10474echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10475    else
10476      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10477echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10478    fi
10479  fi
10480  if test -z "$LTCFLAGS"; then
10481    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10482  fi
10483
10484  # Extract list of available tagged configurations in $ofile.
10485  # Note that this assumes the entire list is on one line.
10486  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10487
10488  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10489  for tagname in $tagnames; do
10490    IFS="$lt_save_ifs"
10491    # Check whether tagname contains only valid characters
10492    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10493    "") ;;
10494    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10495echo "$as_me: error: invalid tag name: $tagname" >&2;}
10496   { (exit 1); exit 1; }; }
10497        ;;
10498    esac
10499
10500    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10501    then
10502      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10503echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10504   { (exit 1); exit 1; }; }
10505    fi
10506
10507    # Update the list of available tags.
10508    if test -n "$tagname"; then
10509      echo appending configuration tag \"$tagname\" to $ofile
10510
10511      case $tagname in
10512      CXX)
10513        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10514            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10515            (test "X$CXX" != "Xg++"))) ; then
10516          ac_ext=cc
10517ac_cpp='$CXXCPP $CPPFLAGS'
10518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10521
10522
10523
10524
10525archive_cmds_need_lc_CXX=no
10526allow_undefined_flag_CXX=
10527always_export_symbols_CXX=no
10528archive_expsym_cmds_CXX=
10529export_dynamic_flag_spec_CXX=
10530hardcode_direct_CXX=no
10531hardcode_libdir_flag_spec_CXX=
10532hardcode_libdir_flag_spec_ld_CXX=
10533hardcode_libdir_separator_CXX=
10534hardcode_minus_L_CXX=no
10535hardcode_shlibpath_var_CXX=unsupported
10536hardcode_automatic_CXX=no
10537module_cmds_CXX=
10538module_expsym_cmds_CXX=
10539link_all_deplibs_CXX=unknown
10540old_archive_cmds_CXX=$old_archive_cmds
10541no_undefined_flag_CXX=
10542whole_archive_flag_spec_CXX=
10543enable_shared_with_static_runtimes_CXX=no
10544
10545# Dependencies to place before and after the object being linked:
10546predep_objects_CXX=
10547postdep_objects_CXX=
10548predeps_CXX=
10549postdeps_CXX=
10550compiler_lib_search_path_CXX=
10551
10552# Source file extension for C++ test sources.
10553ac_ext=cpp
10554
10555# Object file extension for compiled C++ test sources.
10556objext=o
10557objext_CXX=$objext
10558
10559# Code to be used in simple compile tests
10560lt_simple_compile_test_code="int some_variable = 0;\n"
10561
10562# Code to be used in simple link tests
10563lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10564
10565# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10566
10567# If no C compiler was specified, use CC.
10568LTCC=${LTCC-"$CC"}
10569
10570# If no C compiler flags were specified, use CFLAGS.
10571LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10572
10573# Allow CC to be a program name with arguments.
10574compiler=$CC
10575
10576
10577# save warnings/boilerplate of simple test code
10578ac_outfile=conftest.$ac_objext
10579printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10580eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10581_lt_compiler_boilerplate=`cat conftest.err`
10582$rm conftest*
10583
10584ac_outfile=conftest.$ac_objext
10585printf "$lt_simple_link_test_code" >conftest.$ac_ext
10586eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10587_lt_linker_boilerplate=`cat conftest.err`
10588$rm conftest*
10589
10590
10591# Allow CC to be a program name with arguments.
10592lt_save_CC=$CC
10593lt_save_LD=$LD
10594lt_save_GCC=$GCC
10595GCC=$GXX
10596lt_save_with_gnu_ld=$with_gnu_ld
10597lt_save_path_LD=$lt_cv_path_LD
10598if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10599  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10600else
10601  $as_unset lt_cv_prog_gnu_ld
10602fi
10603if test -n "${lt_cv_path_LDCXX+set}"; then
10604  lt_cv_path_LD=$lt_cv_path_LDCXX
10605else
10606  $as_unset lt_cv_path_LD
10607fi
10608test -z "${LDCXX+set}" || LD=$LDCXX
10609CC=${CXX-"c++"}
10610compiler=$CC
10611compiler_CXX=$CC
10612for cc_temp in $compiler""; do
10613  case $cc_temp in
10614    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10615    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10616    \-*) ;;
10617    *) break;;
10618  esac
10619done
10620cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10621
10622
10623# We don't want -fno-exception wen compiling C++ code, so set the
10624# no_builtin_flag separately
10625if test "$GXX" = yes; then
10626  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10627else
10628  lt_prog_compiler_no_builtin_flag_CXX=
10629fi
10630
10631if test "$GXX" = yes; then
10632  # Set up default GNU C++ configuration
10633
10634
10635# Check whether --with-gnu-ld or --without-gnu-ld was given.
10636if test "${with_gnu_ld+set}" = set; then
10637  withval="$with_gnu_ld"
10638  test "$withval" = no || with_gnu_ld=yes
10639else
10640  with_gnu_ld=no
10641fi;
10642ac_prog=ld
10643if test "$GCC" = yes; then
10644  # Check if gcc -print-prog-name=ld gives a path.
10645  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10646echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10647  case $host in
10648  *-*-mingw*)
10649    # gcc leaves a trailing carriage return which upsets mingw
10650    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10651  *)
10652    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10653  esac
10654  case $ac_prog in
10655    # Accept absolute paths.
10656    [\\/]* | ?:[\\/]*)
10657      re_direlt='/[^/][^/]*/\.\./'
10658      # Canonicalize the pathname of ld
10659      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10660      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10661        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10662      done
10663      test -z "$LD" && LD="$ac_prog"
10664      ;;
10665  "")
10666    # If it fails, then pretend we aren't using GCC.
10667    ac_prog=ld
10668    ;;
10669  *)
10670    # If it is relative, then search for the first ld in PATH.
10671    with_gnu_ld=unknown
10672    ;;
10673  esac
10674elif test "$with_gnu_ld" = yes; then
10675  echo "$as_me:$LINENO: checking for GNU ld" >&5
10676echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10677else
10678  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10679echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10680fi
10681if test "${lt_cv_path_LD+set}" = set; then
10682  echo $ECHO_N "(cached) $ECHO_C" >&6
10683else
10684  if test -z "$LD"; then
10685  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10686  for ac_dir in $PATH; do
10687    IFS="$lt_save_ifs"
10688    test -z "$ac_dir" && ac_dir=.
10689    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10690      lt_cv_path_LD="$ac_dir/$ac_prog"
10691      # Check to see if the program is GNU ld.  I'd rather use --version,
10692      # but apparently some variants of GNU ld only accept -v.
10693      # Break only if it was the GNU/non-GNU ld that we prefer.
10694      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10695      *GNU* | *'with BFD'*)
10696        test "$with_gnu_ld" != no && break
10697        ;;
10698      *)
10699        test "$with_gnu_ld" != yes && break
10700        ;;
10701      esac
10702    fi
10703  done
10704  IFS="$lt_save_ifs"
10705else
10706  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10707fi
10708fi
10709
10710LD="$lt_cv_path_LD"
10711if test -n "$LD"; then
10712  echo "$as_me:$LINENO: result: $LD" >&5
10713echo "${ECHO_T}$LD" >&6
10714else
10715  echo "$as_me:$LINENO: result: no" >&5
10716echo "${ECHO_T}no" >&6
10717fi
10718test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10719echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10720   { (exit 1); exit 1; }; }
10721echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10722echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10723if test "${lt_cv_prog_gnu_ld+set}" = set; then
10724  echo $ECHO_N "(cached) $ECHO_C" >&6
10725else
10726  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10727case `$LD -v 2>&1 </dev/null` in
10728*GNU* | *'with BFD'*)
10729  lt_cv_prog_gnu_ld=yes
10730  ;;
10731*)
10732  lt_cv_prog_gnu_ld=no
10733  ;;
10734esac
10735fi
10736echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10737echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10738with_gnu_ld=$lt_cv_prog_gnu_ld
10739
10740
10741
10742  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10743  # archiving commands below assume that GNU ld is being used.
10744  if test "$with_gnu_ld" = yes; then
10745    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10746    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10747
10748    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10749    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10750
10751    # If archive_cmds runs LD, not CC, wlarc should be empty
10752    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10753    #     investigate it a little bit more. (MM)
10754    wlarc='${wl}'
10755
10756    # ancient GNU ld didn't support --whole-archive et. al.
10757    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10758        grep 'no-whole-archive' > /dev/null; then
10759      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10760    else
10761      whole_archive_flag_spec_CXX=
10762    fi
10763  else
10764    with_gnu_ld=no
10765    wlarc=
10766
10767    # A generic and very simple default shared library creation
10768    # command for GNU C++ for the case where it uses the native
10769    # linker, instead of GNU ld.  If possible, this setting should
10770    # overridden to take advantage of the native linker features on
10771    # the platform it is being used on.
10772    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10773  fi
10774
10775  # Commands to make compiler produce verbose output that lists
10776  # what "hidden" libraries, object files and flags are used when
10777  # linking a shared library.
10778  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10779
10780else
10781  GXX=no
10782  with_gnu_ld=no
10783  wlarc=
10784fi
10785
10786# PORTME: fill in a description of your system's C++ link characteristics
10787echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10788echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10789ld_shlibs_CXX=yes
10790case $host_os in
10791  aix3*)
10792    # FIXME: insert proper C++ library support
10793    ld_shlibs_CXX=no
10794    ;;
10795  aix4* | aix5*)
10796    if test "$host_cpu" = ia64; then
10797      # On IA64, the linker does run time linking by default, so we don't
10798      # have to do anything special.
10799      aix_use_runtimelinking=no
10800      exp_sym_flag='-Bexport'
10801      no_entry_flag=""
10802    else
10803      aix_use_runtimelinking=no
10804
10805      # Test if we are trying to use run time linking or normal
10806      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10807      # need to do runtime linking.
10808      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10809        for ld_flag in $LDFLAGS; do
10810          case $ld_flag in
10811          *-brtl*)
10812            aix_use_runtimelinking=yes
10813            break
10814            ;;
10815          esac
10816        done
10817        ;;
10818      esac
10819
10820      exp_sym_flag='-bexport'