source: ThirdParty/HSL/trunk/configure @ 162

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

included latest changes from coin.m4

  • Property svn:executable set to *
File size: 697.1 KB
<
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyHSL 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyHSL'
431PACKAGE_TARNAME='thirdpartyhsl'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyHSL 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="configure.ac"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL 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 $LIBS"
1594
1595
1596# Initialize the FADDLIBS variable (which is to be used with a fortran
1597# compiler and will not include FLIBS)
1598FADDLIBS="$LIBS"
1599
1600
1601# A useful makefile conditional that is always false
1602
1603
1604if false; then
1605  ALWAYS_FALSE_TRUE=
1606  ALWAYS_FALSE_FALSE='#'
1607else
1608  ALWAYS_FALSE_TRUE='#'
1609  ALWAYS_FALSE_FALSE=
1610fi
1611
1612
1613# We set the following variable so that we know later in AC_COIN_FINALIZE
1614# that we are in a project main directory
1615coin_projectdir=yes
1616
1617
1618#############################################################################
1619#                         Standard build tool stuff                         #
1620#############################################################################
1621
1622# Get the system type
1623ac_aux_dir=
1624for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1625  if test -f $ac_dir/install-sh; then
1626    ac_aux_dir=$ac_dir
1627    ac_install_sh="$ac_aux_dir/install-sh -c"
1628    break
1629  elif test -f $ac_dir/install.sh; then
1630    ac_aux_dir=$ac_dir
1631    ac_install_sh="$ac_aux_dir/install.sh -c"
1632    break
1633  elif test -f $ac_dir/shtool; then
1634    ac_aux_dir=$ac_dir
1635    ac_install_sh="$ac_aux_dir/shtool install -c"
1636    break
1637  fi
1638done
1639if test -z "$ac_aux_dir"; then
1640  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1641echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1642   { (exit 1); exit 1; }; }
1643fi
1644ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1645ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1646ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1647
1648# Make sure we can run config.sub.
1649$ac_config_sub sun4 >/dev/null 2>&1 ||
1650  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1651echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1652   { (exit 1); exit 1; }; }
1653
1654echo "$as_me:$LINENO: checking build system type" >&5
1655echo $ECHO_N "checking build system type... $ECHO_C" >&6
1656if test "${ac_cv_build+set}" = set; then
1657  echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659  ac_cv_build_alias=$build_alias
1660test -z "$ac_cv_build_alias" &&
1661  ac_cv_build_alias=`$ac_config_guess`
1662test -z "$ac_cv_build_alias" &&
1663  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1664echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1665   { (exit 1); exit 1; }; }
1666ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1667  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1668echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1669   { (exit 1); exit 1; }; }
1670
1671fi
1672echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1673echo "${ECHO_T}$ac_cv_build" >&6
1674build=$ac_cv_build
1675build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1676build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1677build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1678
1679
1680
1681# Check if user wants to produce debugging code
1682
1683echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1684echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1685
1686# Check whether --enable-debug or --disable-debug was given.
1687if test "${enable_debug+set}" = set; then
1688  enableval="$enable_debug"
1689  case "${enableval}" in
1690   yes) coin_debug_compile=true
1691        enable_shared=no
1692        ;;
1693   no)  coin_debug_compile=false
1694        ;;
1695   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1696echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1697   { (exit 1); exit 1; }; }
1698        ;;
1699esac
1700else
1701  coin_debug_compile=false
1702fi;
1703
1704# Check whether --enable-debug-hsl or --disable-debug-hsl was given.
1705if test "${enable_debug_hsl+set}" = set; then
1706  enableval="$enable_debug_hsl"
1707  case "${enableval}" in
1708    yes) coin_debug_compile=true
1709         enable_shared=no
1710         ;;
1711    no)  coin_debug_compile=false
1712         ;;
1713    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-hsl" >&5
1714echo "$as_me: error: bad value ${enableval} for --enable-debug-hsl" >&2;}
1715   { (exit 1); exit 1; }; }
1716         ;;
1717 esac
1718else
1719  :
1720fi;
1721
1722 # m4_ifvaln([HSL],
1723
1724if test $coin_debug_compile = true; then
1725  echo "$as_me:$LINENO: result: yes" >&5
1726echo "${ECHO_T}yes" >&6
1727else
1728  echo "$as_me:$LINENO: result: no" >&5
1729echo "${ECHO_T}no" >&6
1730fi
1731
1732
1733# Check whether --with-hsl-verbosity or --without-hsl-verbosity was given.
1734if test "${with_hsl_verbosity+set}" = set; then
1735  withval="$with_hsl_verbosity"
1736  coin_hsl_verbosity=$withval
1737else
1738  coin_hsl_verbosity=0
1739fi;
1740
1741cat >>confdefs.h <<_ACEOF
1742#define COIN_HSL_VERBOSITY $coin_hsl_verbosity
1743_ACEOF
1744
1745
1746
1747# Check whether --with-hsl-checklevel or --without-hsl-checklevel was given.
1748if test "${with_hsl_checklevel+set}" = set; then
1749  withval="$with_hsl_checklevel"
1750  coin_hsl_checklevel=$withval
1751else
1752  coin_hsl_checklevel=0
1753fi;
1754
1755cat >>confdefs.h <<_ACEOF
1756#define COIN_HSL_CHECKLEVEL $coin_hsl_checklevel
1757_ACEOF
1758
1759
1760# We use the following variable to have a string with the upper case
1761# version of the project name
1762COIN_PRJCT=HSL
1763
1764
1765 # m4_ifvaln([HSL],
1766
1767
1768
1769# Get the name of the Fortran compiler and appropriate compiler options
1770case $build in
1771  *-mingw*)
1772    if test "${LD+set}" = set; then :; else
1773      LD=link
1774    fi
1775    ;;
1776esac
1777
1778# Check whether --enable-doscompile or --disable-doscompile was given.
1779if test "${enable_doscompile+set}" = set; then
1780  enableval="$enable_doscompile"
1781  if test "$enable_doscompile = yes"; then
1782  case $build in
1783    *-cygwin*) ;;
1784    *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes only sense under Cygwin" >&5
1785echo "$as_me: error: --enable-doscompile option makes only sense under Cygwin" >&2;}
1786   { (exit 1); exit 1; }; } ;;
1787  esac
1788fi
1789else
1790  enable_doscompile=no
1791fi;
1792
1793
1794
1795
1796ac_ext=c
1797ac_cpp='$CPP $CPPFLAGS'
1798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800ac_compiler_gnu=$ac_cv_c_compiler_gnu
1801
1802
1803# For consistency, we set the C compiler to the same value of the C++
1804# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1805if test x"$CXX" != x; then
1806  case "$CXX" in
1807    cl* | */cl*)
1808      if test x"$CC" = x; then
1809        CC="$CXX"
1810        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1811echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1812      fi
1813      ;;
1814  esac
1815fi
1816
1817
1818
1819
1820
1821
1822coin_has_cc=yes
1823
1824save_cflags="$CFLAGS"
1825case $build in
1826  *-cygwin* | *-mingw*)
1827             comps="gcc cl" ;;
1828  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1829  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1830esac
1831
1832# We delete the cached value, since the test might not have been
1833# performed with our choice of compilers earlier
1834$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1835ac_ext=c
1836ac_cpp='$CPP $CPPFLAGS'
1837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1839ac_compiler_gnu=$ac_cv_c_compiler_gnu
1840if test -n "$ac_tool_prefix"; then
1841  for ac_prog in $comps
1842  do
1843    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_CC+set}" = set; then
1848  echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850  if test -n "$CC"; then
1851  ac_cv_prog_CC="$CC" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856  IFS=$as_save_IFS
1857  test -z "$as_dir" && as_dir=.
1858  for ac_exec_ext in '' $ac_executable_extensions; do
1859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862    break 2
1863  fi
1864done
1865done
1866
1867fi
1868fi
1869CC=$ac_cv_prog_CC
1870if test -n "$CC"; then
1871  echo "$as_me:$LINENO: result: $CC" >&5
1872echo "${ECHO_T}$CC" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878    test -n "$CC" && break
1879  done
1880fi
1881if test -z "$CC"; then
1882  ac_ct_CC=$CC
1883  for ac_prog in $comps
1884do
1885  # Extract the first word of "$ac_prog", so it can be a program name with args.
1886set dummy $ac_prog; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890  echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892  if test -n "$ac_ct_CC"; then
1893  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898  IFS=$as_save_IFS
1899  test -z "$as_dir" && as_dir=.
1900  for ac_exec_ext in '' $ac_executable_extensions; do
1901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902    ac_cv_prog_ac_ct_CC="$ac_prog"
1903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904    break 2
1905  fi
1906done
1907done
1908
1909fi
1910fi
1911ac_ct_CC=$ac_cv_prog_ac_ct_CC
1912if test -n "$ac_ct_CC"; then
1913  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914echo "${ECHO_T}$ac_ct_CC" >&6
1915else
1916  echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920  test -n "$ac_ct_CC" && break
1921done
1922
1923  CC=$ac_ct_CC
1924fi
1925
1926
1927test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1928See \`config.log' for more details." >&5
1929echo "$as_me: error: no acceptable C compiler found in \$PATH
1930See \`config.log' for more details." >&2;}
1931   { (exit 1); exit 1; }; }
1932
1933# Provide some information about the compiler.
1934echo "$as_me:$LINENO:" \
1935     "checking for C compiler version" >&5
1936ac_compiler=`set X $ac_compile; echo $2`
1937{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1938  (eval $ac_compiler --version </dev/null >&5) 2>&5
1939  ac_status=$?
1940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941  (exit $ac_status); }
1942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1943  (eval $ac_compiler -v </dev/null >&5) 2>&5
1944  ac_status=$?
1945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946  (exit $ac_status); }
1947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1948  (eval $ac_compiler -V </dev/null >&5) 2>&5
1949  ac_status=$?
1950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951  (exit $ac_status); }
1952
1953cat >conftest.$ac_ext <<_ACEOF
1954/* confdefs.h.  */
1955_ACEOF
1956cat confdefs.h >>conftest.$ac_ext
1957cat >>conftest.$ac_ext <<_ACEOF
1958/* end confdefs.h.  */
1959
1960int
1961main ()
1962{
1963
1964  ;
1965  return 0;
1966}
1967_ACEOF
1968ac_clean_files_save=$ac_clean_files
1969ac_clean_files="$ac_clean_files a.out a.exe b.out"
1970# Try to create an executable without -o first, disregard a.out.
1971# It will help us diagnose broken compilers, and finding out an intuition
1972# of exeext.
1973echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1974echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1975ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1976if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1977  (eval $ac_link_default) 2>&5
1978  ac_status=$?
1979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980  (exit $ac_status); }; then
1981  # Find the output, starting from the most likely.  This scheme is
1982# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1983# resort.
1984
1985# Be careful to initialize this variable, since it used to be cached.
1986# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1987ac_cv_exeext=
1988# b.out is created by i960 compilers.
1989for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1990do
1991  test -f "$ac_file" || continue
1992  case $ac_file in
1993    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1994        ;;
1995    conftest.$ac_ext )
1996        # This is the source file.
1997        ;;
1998    [ab].out )
1999        # We found the default executable, but exeext='' is most
2000        # certainly right.
2001        break;;
2002    *.* )
2003        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2004        # FIXME: I believe we export ac_cv_exeext for Libtool,
2005        # but it would be cool to find out if it's true.  Does anybody
2006        # maintain Libtool? --akim.
2007        export ac_cv_exeext
2008        break;;
2009    * )
2010        break;;
2011  esac
2012done
2013else
2014  echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
2016
2017{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2018See \`config.log' for more details." >&5
2019echo "$as_me: error: C compiler cannot create executables
2020See \`config.log' for more details." >&2;}
2021   { (exit 77); exit 77; }; }
2022fi
2023
2024ac_exeext=$ac_cv_exeext
2025echo "$as_me:$LINENO: result: $ac_file" >&5
2026echo "${ECHO_T}$ac_file" >&6
2027
2028# Check the compiler produces executables we can run.  If not, either
2029# the compiler is broken, or we cross compile.
2030echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2031echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2032# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2033# If not cross compiling, check that we can run a simple program.
2034if test "$cross_compiling" != yes; then
2035  if { ac_try='./$ac_file'
2036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037  (eval $ac_try) 2>&5
2038  ac_status=$?
2039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040  (exit $ac_status); }; }; then
2041    cross_compiling=no
2042  else
2043    if test "$cross_compiling" = maybe; then
2044        cross_compiling=yes
2045    else
2046        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2047If you meant to cross compile, use \`--host'.
2048See \`config.log' for more details." >&5
2049echo "$as_me: error: cannot run C compiled programs.
2050If you meant to cross compile, use \`--host'.
2051See \`config.log' for more details." >&2;}
2052   { (exit 1); exit 1; }; }
2053    fi
2054  fi
2055fi
2056echo "$as_me:$LINENO: result: yes" >&5
2057echo "${ECHO_T}yes" >&6
2058
2059rm -f a.out a.exe conftest$ac_cv_exeext b.out
2060ac_clean_files=$ac_clean_files_save
2061# Check the compiler produces executables we can run.  If not, either
2062# the compiler is broken, or we cross compile.
2063echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2064echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2065echo "$as_me:$LINENO: result: $cross_compiling" >&5
2066echo "${ECHO_T}$cross_compiling" >&6
2067
2068echo "$as_me:$LINENO: checking for suffix of executables" >&5
2069echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2071  (eval $ac_link) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }; then
2075  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2076# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2077# work properly (i.e., refer to `conftest.exe'), while it won't with
2078# `rm'.
2079for ac_file in conftest.exe conftest conftest.*; do
2080  test -f "$ac_file" || continue
2081  case $ac_file in
2082    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2083    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2084          export ac_cv_exeext
2085          break;;
2086    * ) break;;
2087  esac
2088done
2089else
2090  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2091See \`config.log' for more details." >&5
2092echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2093See \`config.log' for more details." >&2;}
2094   { (exit 1); exit 1; }; }
2095fi
2096
2097rm -f conftest$ac_cv_exeext
2098echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2099echo "${ECHO_T}$ac_cv_exeext" >&6
2100
2101rm -f conftest.$ac_ext
2102EXEEXT=$ac_cv_exeext
2103ac_exeext=$EXEEXT
2104echo "$as_me:$LINENO: checking for suffix of object files" >&5
2105echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2106if test "${ac_cv_objext+set}" = set; then
2107  echo $ECHO_N "(cached) $ECHO_C" >&6
2108else
2109  cat >conftest.$ac_ext <<_ACEOF
2110/* confdefs.h.  */
2111_ACEOF
2112cat confdefs.h >>conftest.$ac_ext
2113cat >>conftest.$ac_ext <<_ACEOF
2114/* end confdefs.h.  */
2115
2116int
2117main ()
2118{
2119
2120  ;
2121  return 0;
2122}
2123_ACEOF
2124rm -f conftest.o conftest.obj
2125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126  (eval $ac_compile) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }; then
2130  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2131  case $ac_file in
2132    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2133    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2134       break;;
2135  esac
2136done
2137else
2138  echo "$as_me: failed program was:" >&5
2139sed 's/^/| /' conftest.$ac_ext >&5
2140
2141{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2142See \`config.log' for more details." >&5
2143echo "$as_me: error: cannot compute suffix of object files: cannot compile
2144See \`config.log' for more details." >&2;}
2145   { (exit 1); exit 1; }; }
2146fi
2147
2148rm -f conftest.$ac_cv_objext conftest.$ac_ext
2149fi
2150echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2151echo "${ECHO_T}$ac_cv_objext" >&6
2152OBJEXT=$ac_cv_objext
2153ac_objext=$OBJEXT
2154echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2155echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2156if test "${ac_cv_c_compiler_gnu+set}" = set; then
2157  echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159  cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h.  */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h.  */
2165
2166int
2167main ()
2168{
2169#ifndef __GNUC__
2170       choke me
2171#endif
2172
2173  ;
2174  return 0;
2175}
2176_ACEOF
2177rm -f conftest.$ac_objext
2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179  (eval $ac_compile) 2>conftest.er1
2180  ac_status=$?
2181  grep -v '^ *+' conftest.er1 >conftest.err
2182  rm -f conftest.er1
2183  cat conftest.err >&5
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); } &&
2186         { ac_try='test -z "$ac_c_werror_flag"
2187                         || test ! -s conftest.err'
2188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189  (eval $ac_try) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }; } &&
2193         { ac_try='test -s conftest.$ac_objext'
2194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195  (eval $ac_try) 2>&5
2196  ac_status=$?
2197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198  (exit $ac_status); }; }; then
2199  ac_compiler_gnu=yes
2200else
2201  echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204ac_compiler_gnu=no
2205fi
2206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207ac_cv_c_compiler_gnu=$ac_compiler_gnu
2208
2209fi
2210echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212GCC=`test $ac_compiler_gnu = yes && echo yes`
2213ac_test_CFLAGS=${CFLAGS+set}
2214ac_save_CFLAGS=$CFLAGS
2215CFLAGS="-g"
2216echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218if test "${ac_cv_prog_cc_g+set}" = set; then
2219  echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221  cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h.  */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h.  */
2227
2228int
2229main ()
2230{
2231
2232  ;
2233  return 0;
2234}
2235_ACEOF
2236rm -f conftest.$ac_objext
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238  (eval $ac_compile) 2>conftest.er1
2239  ac_status=$?
2240  grep -v '^ *+' conftest.er1 >conftest.err
2241  rm -f conftest.er1
2242  cat conftest.err >&5
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); } &&
2245         { ac_try='test -z "$ac_c_werror_flag"
2246                         || test ! -s conftest.err'
2247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248  (eval $ac_try) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }; } &&
2252         { ac_try='test -s conftest.$ac_objext'
2253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254  (eval $ac_try) 2>&5
2255  ac_status=$?
2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257  (exit $ac_status); }; }; then
2258  ac_cv_prog_cc_g=yes
2259else
2260  echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263ac_cv_prog_cc_g=no
2264fi
2265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269if test "$ac_test_CFLAGS" = set; then
2270  CFLAGS=$ac_save_CFLAGS
2271elif test $ac_cv_prog_cc_g = yes; then
2272  if test "$GCC" = yes; then
2273    CFLAGS="-g -O2"
2274  else
2275    CFLAGS="-g"
2276  fi
2277else
2278  if test "$GCC" = yes; then
2279    CFLAGS="-O2"
2280  else
2281    CFLAGS=
2282  fi
2283fi
2284echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2285echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2286if test "${ac_cv_prog_cc_stdc+set}" = set; then
2287  echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289  ac_cv_prog_cc_stdc=no
2290ac_save_CC=$CC
2291cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h.  */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h.  */
2297#include <stdarg.h>
2298#include <stdio.h>
2299#include <sys/types.h>
2300#include <sys/stat.h>
2301/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2302struct buf { int x; };
2303FILE * (*rcsopen) (struct buf *, struct stat *, int);
2304static char *e (p, i)
2305     char **p;
2306     int i;
2307{
2308  return p[i];
2309}
2310static char *f (char * (*g) (char **, int), char **p, ...)
2311{
2312  char *s;
2313  va_list v;
2314  va_start (v,p);
2315  s = g (p, va_arg (v,int));
2316  va_end (v);
2317  return s;
2318}
2319
2320/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2321   function prototypes and stuff, but not '\xHH' hex character constants.
2322   These don't provoke an error unfortunately, instead are silently treated
2323   as 'x'.  The following induces an error, until -std1 is added to get
2324   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2325   array size at least.  It's necessary to write '\x00'==0 to get something
2326   that's true only with -std1.  */
2327int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2328
2329int test (int i, double x);
2330struct s1 {int (*f) (int a);};
2331struct s2 {int (*f) (double a);};
2332int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2333int argc;
2334char **argv;
2335int
2336main ()
2337{
2338return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2339  ;
2340  return 0;
2341}
2342_ACEOF
2343# Don't try gcc -ansi; that turns off useful extensions and
2344# breaks some systems' header files.
2345# AIX                   -qlanglvl=ansi
2346# Ultrix and OSF/1      -std1
2347# HP-UX 10.20 and later -Ae
2348# HP-UX older versions  -Aa -D_HPUX_SOURCE
2349# SVR4                  -Xc -D__EXTENSIONS__
2350for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2351do
2352  CC="$ac_save_CC $ac_arg"
2353  rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355  (eval $ac_compile) 2>conftest.er1
2356  ac_status=$?
2357  grep -v '^ *+' conftest.er1 >conftest.err
2358  rm -f conftest.er1
2359  cat conftest.err >&5
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); } &&
2362         { ac_try='test -z "$ac_c_werror_flag"
2363                         || test ! -s conftest.err'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; } &&
2369         { ac_try='test -s conftest.$ac_objext'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; }; then
2375  ac_cv_prog_cc_stdc=$ac_arg
2376break
2377else
2378  echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381fi
2382rm -f conftest.err conftest.$ac_objext
2383done
2384rm -f conftest.$ac_ext conftest.$ac_objext
2385CC=$ac_save_CC
2386
2387fi
2388
2389case "x$ac_cv_prog_cc_stdc" in
2390  x|xno)
2391    echo "$as_me:$LINENO: result: none needed" >&5
2392echo "${ECHO_T}none needed" >&6 ;;
2393  *)
2394    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2395echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2396    CC="$CC $ac_cv_prog_cc_stdc" ;;
2397esac
2398
2399# Some people use a C++ compiler to compile C.  Since we use `exit',
2400# in C++ we need to declare it.  In case someone uses the same compiler
2401# for both compiling C and C++ we need to have the C++ compiler decide
2402# the declaration of exit, since it's the most demanding environment.
2403cat >conftest.$ac_ext <<_ACEOF
2404#ifndef __cplusplus
2405  choke me
2406#endif
2407_ACEOF
2408rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>conftest.er1
2411  ac_status=$?
2412  grep -v '^ *+' conftest.er1 >conftest.err
2413  rm -f conftest.er1
2414  cat conftest.err >&5
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); } &&
2417         { ac_try='test -z "$ac_c_werror_flag"
2418                         || test ! -s conftest.err'
2419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420  (eval $ac_try) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }; } &&
2424         { ac_try='test -s conftest.$ac_objext'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; }; then
2430  for ac_declaration in \
2431   '' \
2432   'extern "C" void std::exit (int) throw (); using std::exit;' \
2433   'extern "C" void std::exit (int); using std::exit;' \
2434   'extern "C" void exit (int) throw ();' \
2435   'extern "C" void exit (int);' \
2436   'void exit (int);'
2437do
2438  cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h.  */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h.  */
2444$ac_declaration
2445#include <stdlib.h>
2446int
2447main ()
2448{
2449exit (42);
2450  ;
2451  return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456  (eval $ac_compile) 2>conftest.er1
2457  ac_status=$?
2458  grep -v '^ *+' conftest.er1 >conftest.err
2459  rm -f conftest.er1
2460  cat conftest.err >&5
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); } &&
2463         { ac_try='test -z "$ac_c_werror_flag"
2464                         || test ! -s conftest.err'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; } &&
2470         { ac_try='test -s conftest.$ac_objext'
2471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472  (eval $ac_try) 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }; }; then
2476  :
2477else
2478  echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481continue
2482fi
2483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484  cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h.  */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h.  */
2490$ac_declaration
2491int
2492main ()
2493{
2494exit (42);
2495  ;
2496  return 0;
2497}
2498_ACEOF
2499rm -f conftest.$ac_objext
2500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501  (eval $ac_compile) 2>conftest.er1
2502  ac_status=$?
2503  grep -v '^ *+' conftest.er1 >conftest.err
2504  rm -f conftest.er1
2505  cat conftest.err >&5
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); } &&
2508         { ac_try='test -z "$ac_c_werror_flag"
2509                         || test ! -s conftest.err'
2510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511  (eval $ac_try) 2>&5
2512  ac_status=$?
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); }; } &&
2515         { ac_try='test -s conftest.$ac_objext'
2516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517  (eval $ac_try) 2>&5
2518  ac_status=$?
2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520  (exit $ac_status); }; }; then
2521  break
2522else
2523  echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528done
2529rm -f conftest*
2530if test -n "$ac_declaration"; then
2531  echo '#ifdef __cplusplus' >>confdefs.h
2532  echo $ac_declaration      >>confdefs.h
2533  echo '#endif'             >>confdefs.h
2534fi
2535
2536else
2537  echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540fi
2541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542ac_ext=c
2543ac_cpp='$CPP $CPPFLAGS'
2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548if test -z "$CC" ; then
2549  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2550echo "$as_me: error: Failed to find a C compiler!" >&2;}
2551   { (exit 1); exit 1; }; }
2552fi
2553# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2554case "$CC" in
2555  cl* | */cl*)
2556    if test "$ac_cv_prog_cc_g" = yes ; then
2557      ac_cv_prog_cc_g=no
2558      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2559echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2560    fi ;;
2561esac
2562CFLAGS="$save_cflags"
2563
2564# Check if a project specific CFLAGS variable has been set
2565if test x$COIN_PRJCT != x; then
2566  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2567  if test x$coin_tmp = xset; then
2568    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2569  fi
2570fi
2571
2572if test x"$CFLAGS" = x; then
2573
2574  coin_add_cflags=
2575  coin_opt_cflags=
2576  coin_dbg_cflags=
2577  coin_warn_cflags=
2578
2579  if test "$GCC" = "yes"; then
2580    case "$CC" in
2581      icc* | */icc*)
2582        ;;
2583      *)
2584        coin_opt_cflags="-O3 -fomit-frame-pointer"
2585        coin_add_cflags="-pipe"
2586        coin_dbg_cflags="-g"
2587        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2588        if test "$enable_doscompile" = yes; then
2589          case $build in
2590            *-cygwin*)
2591              CFLAGS="-mno-cygwin"
2592              cat >conftest.$ac_ext <<_ACEOF
2593/* confdefs.h.  */
2594_ACEOF
2595cat confdefs.h >>conftest.$ac_ext
2596cat >>conftest.$ac_ext <<_ACEOF
2597/* end confdefs.h.  */
2598
2599int
2600main ()
2601{
2602int i=0; i++;
2603  ;
2604  return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext conftest$ac_exeext
2608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2609  (eval $ac_link) 2>conftest.er1
2610  ac_status=$?
2611  grep -v '^ *+' conftest.er1 >conftest.err
2612  rm -f conftest.er1
2613  cat conftest.err >&5
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); } &&
2616         { ac_try='test -z "$ac_c_werror_flag"
2617                         || test ! -s conftest.err'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; } &&
2623         { ac_try='test -s conftest$ac_exeext'
2624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625  (eval $ac_try) 2>&5
2626  ac_status=$?
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); }; }; then
2629  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2630else
2631  echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
2634fi
2635rm -f conftest.err conftest.$ac_objext \
2636      conftest$ac_exeext conftest.$ac_ext
2637              CFLAGS=
2638            ;;
2639          esac
2640        fi
2641    esac
2642  fi
2643  if test -z "$coin_opt_cflags"; then
2644    case $build in
2645      *-cygwin* | *-mingw*)
2646        case "$CC" in
2647          cl* | */cl*)
2648            coin_opt_cflags='-O2'
2649            coin_add_cflags='-nologo'
2650            coin_dbg_cflags='-Yd'
2651            ;;
2652        esac
2653        ;;
2654      *-linux-*)
2655        case "$CC" in
2656          icc* | */icc*)
2657            coin_opt_cflags="-O3 -ip"
2658            coin_add_cflags=""
2659            coin_dbg_cflags="-g"
2660            # Check if -i_dynamic is necessary (for new glibc library)
2661            CFLAGS=
2662            cat >conftest.$ac_ext <<_ACEOF
2663/* confdefs.h.  */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h.  */
2668
2669int
2670main ()
2671{
2672int i=0; i++;
2673  ;
2674  return 0;
2675}
2676_ACEOF
2677rm -f conftest.$ac_objext conftest$ac_exeext
2678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2679  (eval $ac_link) 2>conftest.er1
2680  ac_status=$?
2681  grep -v '^ *+' conftest.er1 >conftest.err
2682  rm -f conftest.er1
2683  cat conftest.err >&5
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); } &&
2686         { ac_try='test -z "$ac_c_werror_flag"
2687                         || test ! -s conftest.err'
2688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689  (eval $ac_try) 2>&5
2690  ac_status=$?
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); }; } &&
2693         { ac_try='test -s conftest$ac_exeext'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; }; then
2699  :
2700else
2701  echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704coin_add_cflags="-i_dynamic $coin_add_cflags"
2705fi
2706rm -f conftest.err conftest.$ac_objext \
2707      conftest$ac_exeext conftest.$ac_ext
2708            ;;
2709          pgcc* | */pgcc*)
2710            coin_opt_cflags="-fast"
2711            coin_add_cflags="-Kieee -pc 64"
2712            coin_dbg_cflags="-g"
2713            ;;
2714        esac
2715        ;;
2716      *-ibm-*)
2717        case "$CC" in
2718          xlc* | */xlc* | mpxlc* | */mpxlc*)
2719            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2720            coin_add_cflags="-bmaxdata:0x80000000"
2721            coin_dbg_cflags="-g"
2722          ;;
2723        esac
2724        ;;
2725      *-hp-*)
2726        coin_opt_cflags="-O"
2727        coin_add_cflags="-Ae"
2728        coin_dbg_cflags="-g"
2729        ;;
2730      *-sun-*)
2731        coin_opt_cflags="-xO4"
2732        coin_dbg_cflags="-g"
2733        ;;
2734      *-sgi-*)
2735        coin_opt_cflags="-O -OPT:Olimit=0"
2736        coin_dbg_cflags="-g"
2737        ;;
2738    esac
2739  fi
2740
2741  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2742    coin_dbg_cflags="-g"
2743  fi
2744
2745  if test -z "$coin_opt_cflags"; then
2746    # Try if -O option works if nothing else is set
2747    CFLAGS="-O"
2748    cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h.  */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h.  */
2754
2755int
2756main ()
2757{
2758int i=0; i++;
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext conftest$ac_exeext
2764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2765  (eval $ac_link) 2>conftest.er1
2766  ac_status=$?
2767  grep -v '^ *+' conftest.er1 >conftest.err
2768  rm -f conftest.er1
2769  cat conftest.err >&5
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); } &&
2772         { ac_try='test -z "$ac_c_werror_flag"
2773                         || test ! -s conftest.err'
2774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775  (eval $ac_try) 2>&5
2776  ac_status=$?
2777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778  (exit $ac_status); }; } &&
2779         { ac_try='test -s conftest$ac_exeext'
2780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781  (eval $ac_try) 2>&5
2782  ac_status=$?
2783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784  (exit $ac_status); }; }; then
2785  coin_opt_cflags="-O"
2786else
2787  echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790fi
2791rm -f conftest.err conftest.$ac_objext \
2792      conftest$ac_exeext conftest.$ac_ext
2793  fi
2794
2795  # if PM doesn't want the warning messages, take them out
2796  if test x"$coin_skip_warn_cflags" = xyes; then
2797    coin_warn_cflags=
2798  fi
2799
2800  if test x${DBG_CFLAGS+set} != xset; then
2801    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2802  fi
2803  if test x${OPT_CFLAGS+set} != xset; then
2804    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2805  fi
2806
2807  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2808  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2809
2810  if test "$coin_debug_compile" = "true"; then
2811    CFLAGS="$DBG_CFLAGS"
2812  else
2813    CFLAGS="$OPT_CFLAGS"
2814  fi
2815else
2816  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2817  if test x${DBG_CFLAGS+set} != xset; then
2818    DBG_CFLAGS="$CFLAGS"
2819  fi
2820  if test x${OPT_CFLAGS+set} != xset; then
2821    OPT_CFLAGS="$CFLAGS"
2822  fi
2823fi
2824
2825# Check if user wants to have additional CFLAGS options
2826
2827if test x"$ADD_CFLAGS" != x; then
2828  CFLAGS="$CFLAGS $ADD_CFLAGS"
2829fi
2830
2831# Try if CFLAGS works
2832save_CFLAGS="$CFLAGS"
2833cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h.  */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h.  */
2839
2840int
2841main ()
2842{
2843int i=0; i++;
2844  ;
2845  return 0;
2846}
2847_ACEOF
2848rm -f conftest.$ac_objext conftest$ac_exeext
2849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2850  (eval $ac_link) 2>conftest.er1
2851  ac_status=$?
2852  grep -v '^ *+' conftest.er1 >conftest.err
2853  rm -f conftest.er1
2854  cat conftest.err >&5
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); } &&
2857         { ac_try='test -z "$ac_c_werror_flag"
2858                         || test ! -s conftest.err'
2859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860  (eval $ac_try) 2>&5
2861  ac_status=$?
2862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863  (exit $ac_status); }; } &&
2864         { ac_try='test -s conftest$ac_exeext'
2865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866  (eval $ac_try) 2>&5
2867  ac_status=$?
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); }; }; then
2870  :
2871else
2872  echo "$as_me: failed program was:" >&5
2873sed 's/^/| /' conftest.$ac_ext >&5
2874
2875CFLAGS=
2876fi
2877rm -f conftest.err conftest.$ac_objext \
2878      conftest$ac_exeext conftest.$ac_ext
2879if test -z "$CFLAGS"; then
2880  { 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
2881echo "$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;}
2882  CFLAGS='-O'
2883  cat >conftest.$ac_ext <<_ACEOF
2884/* confdefs.h.  */
2885_ACEOF
2886cat confdefs.h >>conftest.$ac_ext
2887cat >>conftest.$ac_ext <<_ACEOF
2888/* end confdefs.h.  */
2889
2890int
2891main ()
2892{
2893int i=0; i++;
2894  ;
2895  return 0;
2896}
2897_ACEOF
2898rm -f conftest.$ac_objext conftest$ac_exeext
2899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2900  (eval $ac_link) 2>conftest.er1
2901  ac_status=$?
2902  grep -v '^ *+' conftest.er1 >conftest.err
2903  rm -f conftest.er1
2904  cat conftest.err >&5
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); } &&
2907         { ac_try='test -z "$ac_c_werror_flag"
2908                         || test ! -s conftest.err'
2909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910  (eval $ac_try) 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }; } &&
2914         { ac_try='test -s conftest$ac_exeext'
2915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916  (eval $ac_try) 2>&5
2917  ac_status=$?
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); }; }; then
2920  :
2921else
2922  echo "$as_me: failed program was:" >&5
2923sed 's/^/| /' conftest.$ac_ext >&5
2924
2925CFLAGS=
2926fi
2927rm -f conftest.err conftest.$ac_objext \
2928      conftest$ac_exeext conftest.$ac_ext
2929  if test -z "$CFLAGS"; then
2930    { 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
2931echo "$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;}
2932  fi
2933fi
2934
2935{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2936echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2937
2938
2939if test x"$MPICC" = x; then :; else
2940  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2941echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2942  CC="$MPICC"
2943fi
2944
2945# Correct ADDLIBS initialization if we are using the MS compiler
2946case "$CC" in
2947  cl* | */cl*)
2948    ADDLIBS=
2949    case $build in
2950  *-mingw*)
2951    if test "${LD+set}" = set; then :; else
2952      LD=link
2953    fi
2954    ;;
2955esac
2956
2957    ;;
2958esac
2959
2960ac_ext=c
2961ac_cpp='$CPP $CPPFLAGS'
2962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965
2966
2967case $build in
2968  *-cygwin* | *-mingw*)
2969     coin_f77_comps="gfortran g77 ifort fl32" ;;
2970  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
2971esac
2972
2973
2974
2975
2976
2977
2978ac_ext=f
2979ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2980ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2982
2983
2984
2985
2986
2987
2988coin_has_f77=yes
2989
2990save_fflags="$FFLAGS"
2991comps="$coin_f77_comps" #This comes from AC_COIN_F77_COMPS
2992
2993# We delete the cached value, since the test might not have been
2994# performed with our choice of compilers earlier
2995$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
2996ac_ext=f
2997ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2998ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3000if test -n "$ac_tool_prefix"; then
3001  for ac_prog in $comps
3002  do
3003    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3004set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3005echo "$as_me:$LINENO: checking for $ac_word" >&5
3006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3007if test "${ac_cv_prog_F77+set}" = set; then
3008  echo $ECHO_N "(cached) $ECHO_C" >&6
3009else
3010  if test -n "$F77"; then
3011  ac_cv_prog_F77="$F77" # Let the user override the test.
3012else
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  test -z "$as_dir" && as_dir=.
3018  for ac_exec_ext in '' $ac_executable_extensions; do
3019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3022    break 2
3023  fi
3024done
3025done
3026
3027fi
3028fi
3029F77=$ac_cv_prog_F77
3030if test -n "$F77"; then
3031  echo "$as_me:$LINENO: result: $F77" >&5
3032echo "${ECHO_T}$F77" >&6
3033else
3034  echo "$as_me:$LINENO: result: no" >&5
3035echo "${ECHO_T}no" >&6
3036fi
3037
3038    test -n "$F77" && break
3039  done
3040fi
3041if test -z "$F77"; then
3042  ac_ct_F77=$F77
3043  for ac_prog in $comps
3044do
3045  # Extract the first word of "$ac_prog", so it can be a program name with args.
3046set dummy $ac_prog; ac_word=$2
3047echo "$as_me:$LINENO: checking for $ac_word" >&5
3048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3049if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3050  echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052  if test -n "$ac_ct_F77"; then
3053  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058  IFS=$as_save_IFS
3059  test -z "$as_dir" && as_dir=.
3060  for ac_exec_ext in '' $ac_executable_extensions; do
3061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062    ac_cv_prog_ac_ct_F77="$ac_prog"
3063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064    break 2
3065  fi
3066done
3067done
3068
3069fi
3070fi
3071ac_ct_F77=$ac_cv_prog_ac_ct_F77
3072if test -n "$ac_ct_F77"; then
3073  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3074echo "${ECHO_T}$ac_ct_F77" >&6
3075else
3076  echo "$as_me:$LINENO: result: no" >&5
3077echo "${ECHO_T}no" >&6
3078fi
3079
3080  test -n "$ac_ct_F77" && break
3081done
3082
3083  F77=$ac_ct_F77
3084fi
3085
3086
3087# Provide some information about the compiler.
3088echo "$as_me:3088:" \
3089     "checking for Fortran 77 compiler version" >&5
3090ac_compiler=`set X $ac_compile; echo $2`
3091{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3092  (eval $ac_compiler --version </dev/null >&5) 2>&5
3093  ac_status=$?
3094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095  (exit $ac_status); }
3096{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3097  (eval $ac_compiler -v </dev/null >&5) 2>&5
3098  ac_status=$?
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }
3101{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3102  (eval $ac_compiler -V </dev/null >&5) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }
3106rm -f a.out
3107
3108# If we don't use `.F' as extension, the preprocessor is not run on the
3109# input file.  (Note that this only needs to work for GNU compilers.)
3110ac_save_ext=$ac_ext
3111ac_ext=F
3112echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3113echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3114if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3115  echo $ECHO_N "(cached) $ECHO_C" >&6
3116else
3117  cat >conftest.$ac_ext <<_ACEOF
3118      program main
3119#ifndef __GNUC__
3120       choke me
3121#endif
3122
3123      end
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127  (eval $ac_compile) 2>conftest.er1
3128  ac_status=$?
3129  grep -v '^ *+' conftest.er1 >conftest.err
3130  rm -f conftest.er1
3131  cat conftest.err >&5
3132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133  (exit $ac_status); } &&
3134         { ac_try='test -z "$ac_f77_werror_flag"
3135                         || test ! -s conftest.err'
3136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137  (eval $ac_try) 2>&5
3138  ac_status=$?
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); }; } &&
3141         { ac_try='test -s conftest.$ac_objext'
3142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143  (eval $ac_try) 2>&5
3144  ac_status=$?
3145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); }; }; then
3147  ac_compiler_gnu=yes
3148else
3149  echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152ac_compiler_gnu=no
3153fi
3154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3155ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3156
3157fi
3158echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3159echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3160ac_ext=$ac_save_ext
3161ac_test_FFLAGS=${FFLAGS+set}
3162ac_save_FFLAGS=$FFLAGS
3163FFLAGS=
3164echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3165echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3166if test "${ac_cv_prog_f77_g+set}" = set; then
3167  echo $ECHO_N "(cached) $ECHO_C" >&6
3168else
3169  FFLAGS=-g
3170cat >conftest.$ac_ext <<_ACEOF
3171      program main
3172
3173      end
3174_ACEOF
3175rm -f conftest.$ac_objext
3176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3177  (eval $ac_compile) 2>conftest.er1
3178  ac_status=$?
3179  grep -v '^ *+' conftest.er1 >conftest.err
3180  rm -f conftest.er1
3181  cat conftest.err >&5
3182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); } &&
3184         { ac_try='test -z "$ac_f77_werror_flag"
3185                         || test ! -s conftest.err'
3186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187  (eval $ac_try) 2>&5
3188  ac_status=$?
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); }; } &&
3191         { ac_try='test -s conftest.$ac_objext'
3192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193  (eval $ac_try) 2>&5
3194  ac_status=$?
3195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196  (exit $ac_status); }; }; then
3197  ac_cv_prog_f77_g=yes
3198else
3199  echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202ac_cv_prog_f77_g=no
3203fi
3204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3205
3206fi
3207echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3208echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3209if test "$ac_test_FFLAGS" = set; then
3210  FFLAGS=$ac_save_FFLAGS
3211elif test $ac_cv_prog_f77_g = yes; then
3212  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3213    FFLAGS="-g -O2"
3214  else
3215    FFLAGS="-g"
3216  fi
3217else
3218  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3219    FFLAGS="-O2"
3220  else
3221    FFLAGS=
3222  fi
3223fi
3224
3225G77=`test $ac_compiler_gnu = yes && echo yes`
3226ac_ext=f
3227ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3228ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3230
3231if test -z "$F77" ; then
3232  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3233echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3234fi
3235FFLAGS="$save_fflags"
3236
3237# Check if a project specific FFLAGS variable has been set
3238if test x$COIN_PRJCT != x; then
3239  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3240  if test x$coin_tmp = xset; then
3241    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3242  fi
3243fi
3244
3245if test x"$FFLAGS" = x; then
3246
3247  coin_add_fflags=
3248  coin_opt_fflags=
3249  coin_dbg_fflags=
3250  coin_warn_fflags=
3251
3252  if test "$G77" = "yes"; then
3253    coin_opt_fflags="-O3 -fomit-frame-pointer"
3254    coin_add_fflags="-pipe"
3255    coin_dbg_fflags="-g"
3256    if test "$enable_doscompile" = yes; then
3257      case $build in
3258        *-cygwin*)
3259          FFLAGS="-mno-cygwin"
3260          cat >conftest.$ac_ext <<_ACEOF
3261      program main
3262      write(*,*) 'Hello world'
3263      end
3264_ACEOF
3265rm -f conftest.$ac_objext conftest$ac_exeext
3266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3267  (eval $ac_link) 2>conftest.er1
3268  ac_status=$?
3269  grep -v '^ *+' conftest.er1 >conftest.err
3270  rm -f conftest.er1
3271  cat conftest.err >&5
3272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273  (exit $ac_status); } &&
3274         { ac_try='test -z "$ac_f77_werror_flag"
3275                         || test ! -s conftest.err'
3276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277  (eval $ac_try) 2>&5
3278  ac_status=$?
3279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280  (exit $ac_status); }; } &&
3281         { ac_try='test -s conftest$ac_exeext'
3282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283  (eval $ac_try) 2>&5
3284  ac_status=$?
3285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286  (exit $ac_status); }; }; then
3287  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3288else
3289  echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
3292fi
3293rm -f conftest.err conftest.$ac_objext \
3294      conftest$ac_exeext conftest.$ac_ext
3295          FFLAGS=
3296        ;;
3297      esac
3298    fi
3299  else
3300    case $build in
3301      *-cygwin* | *-mingw*)
3302        case $F77 in
3303          ifort* | */ifort*)
3304            coin_opt_fflags='-O3'
3305            coin_add_fflags='-nologo -MT'
3306            coin_dbg_fflags='-debug'
3307          ;;
3308        esac
3309        ;;
3310      *-linux-*)
3311        case $F77 in
3312          ifc* | */ifc* | ifort* | */ifort*)
3313            coin_opt_fflags="-O3 -ip"
3314            coin_add_fflags="-cm -w90 -w95"
3315            coin_dbg_fflags="-g -CA -CB -CS"
3316            # Check if -i_dynamic is necessary (for new glibc library)
3317            FFLAGS=
3318            cat >conftest.$ac_ext <<_ACEOF
3319      program main
3320      write(*,*) 'Hello world'
3321      end
3322_ACEOF
3323rm -f conftest.$ac_objext conftest$ac_exeext
3324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3325  (eval $ac_link) 2>conftest.er1
3326  ac_status=$?
3327  grep -v '^ *+' conftest.er1 >conftest.err
3328  rm -f conftest.er1
3329  cat conftest.err >&5
3330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331  (exit $ac_status); } &&
3332         { ac_try='test -z "$ac_f77_werror_flag"
3333                         || test ! -s conftest.err'
3334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335  (eval $ac_try) 2>&5
3336  ac_status=$?
3337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338  (exit $ac_status); }; } &&
3339         { ac_try='test -s conftest$ac_exeext'
3340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341  (eval $ac_try) 2>&5
3342  ac_status=$?
3343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344  (exit $ac_status); }; }; then
3345  :
3346else
3347  echo "$as_me: failed program was:" >&5
3348sed 's/^/| /' conftest.$ac_ext >&5
3349
3350coin_add_fflags="-i_dynamic $coin_add_fflags"
3351fi
3352rm -f conftest.err conftest.$ac_objext \
3353      conftest$ac_exeext conftest.$ac_ext
3354            ;;
3355          pgf77* | */pgf77* | pgf90* | */pgf90*)
3356            coin_opt_fflags="-fast"
3357            coin_add_fflags="-Kieee -pc 64"
3358            coin_dbg_fflags="-g"
3359          ;;
3360        esac
3361        ;;
3362      *-ibm-*)
3363        case "$F77" in
3364          xlf* | */xlf* | mpxlf* | */mpxlf* )
3365            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3366            coin_add_fflags="-bmaxdata:0x80000000"
3367            coin_dbg_fflags="-g -C"
3368            ;;
3369        esac
3370        ;;
3371      *-hp-*)
3372        coin_opt_fflags="+O3"
3373        coin_add_fflags="+U77"
3374        coin_dbg_fflags="-C -g"
3375        ;;
3376      *-sun-*)
3377        coin_opt_fflags="-O4"
3378        coin_dbg_fflags="-g"
3379        ;;
3380      *-sgi-*)
3381        coin_opt_fflags="-O5 -OPT:Olimit=0"
3382        coin_dbg_fflags="-g"
3383        ;;
3384    esac
3385  fi
3386
3387  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3388    coin_dbg_fflags="-g"
3389  fi
3390
3391  if test -z "$coin_opt_fflags"; then
3392    # Try if -O option works if nothing else is set
3393    FFLAGS=-O
3394    cat >conftest.$ac_ext <<_ACEOF
3395      program main
3396      integer i
3397      end
3398_ACEOF
3399rm -f conftest.$ac_objext conftest$ac_exeext
3400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3401  (eval $ac_link) 2>conftest.er1
3402  ac_status=$?
3403  grep -v '^ *+' conftest.er1 >conftest.err
3404  rm -f conftest.er1
3405  cat conftest.err >&5
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); } &&
3408         { ac_try='test -z "$ac_f77_werror_flag"
3409                         || test ! -s conftest.err'
3410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411  (eval $ac_try) 2>&5
3412  ac_status=$?
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); }; } &&
3415         { ac_try='test -s conftest$ac_exeext'
3416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417  (eval $ac_try) 2>&5
3418  ac_status=$?
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); }; }; then
3421  coin_opt_fflags="-O"
3422else
3423  echo "$as_me: failed program was:" >&5
3424sed 's/^/| /' conftest.$ac_ext >&5
3425
3426fi
3427rm -f conftest.err conftest.$ac_objext \
3428      conftest$ac_exeext conftest.$ac_ext
3429  fi
3430
3431  # if PM doesn't want the warning messages, take them out
3432  if test x"$coin_skip_warn_fflags" = xyes; then
3433    coin_warn_fflags=
3434  fi
3435
3436  if test x${DBG_FFLAGS+set} != xset; then
3437    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3438  fi
3439  if test x${OPT_FFLAGS+set} != xset; then
3440    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3441  fi
3442
3443  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3444  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3445
3446  if test "$coin_debug_compile" = "true"; then
3447    FFLAGS="$DBG_FFLAGS"
3448  else
3449    FFLAGS="$OPT_FFLAGS"
3450  fi
3451else
3452  FFLAGS="$FFLAGS $ADD_FFLAGS"
3453  if test x${DBG_FFLAGS+set} != xset; then
3454    DBG_FFLAGS="$FFLAGS"
3455  fi
3456  if test x${OPT_FFLAGS+set} != xset; then
3457    OPT_FFLAGS="$FFLAGS"
3458  fi
3459fi
3460
3461# Try if FFLAGS works
3462cat >conftest.$ac_ext <<_ACEOF
3463      program main
3464      integer i
3465      end
3466_ACEOF
3467rm -f conftest.$ac_objext conftest$ac_exeext
3468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3469  (eval $ac_link) 2>conftest.er1
3470  ac_status=$?
3471  grep -v '^ *+' conftest.er1 >conftest.err
3472  rm -f conftest.er1
3473  cat conftest.err >&5
3474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475  (exit $ac_status); } &&
3476         { ac_try='test -z "$ac_f77_werror_flag"
3477                         || test ! -s conftest.err'
3478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479  (eval $ac_try) 2>&5
3480  ac_status=$?
3481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); }; } &&
3483         { ac_try='test -s conftest$ac_exeext'
3484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485  (eval $ac_try) 2>&5
3486  ac_status=$?
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); }; }; then
3489  :
3490else
3491  echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494FFLAGS=
3495fi
3496rm -f conftest.err conftest.$ac_objext \
3497      conftest$ac_exeext conftest.$ac_ext
3498if test -z "$FFLAGS"; then
3499  { 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
3500echo "$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;}
3501  FFLAGS='-O'
3502  cat >conftest.$ac_ext <<_ACEOF
3503      program main
3504      integer i
3505      end
3506_ACEOF
3507rm -f conftest.$ac_objext conftest$ac_exeext
3508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3509  (eval $ac_link) 2>conftest.er1
3510  ac_status=$?
3511  grep -v '^ *+' conftest.er1 >conftest.err
3512  rm -f conftest.er1
3513  cat conftest.err >&5
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); } &&
3516         { ac_try='test -z "$ac_f77_werror_flag"
3517                         || test ! -s conftest.err'
3518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519  (eval $ac_try) 2>&5
3520  ac_status=$?
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); }; } &&
3523         { ac_try='test -s conftest$ac_exeext'
3524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525  (eval $ac_try) 2>&5
3526  ac_status=$?
3527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528  (exit $ac_status); }; }; then
3529  :
3530else
3531  echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534FFLAGS=
3535fi
3536rm -f conftest.err conftest.$ac_objext \
3537      conftest$ac_exeext conftest.$ac_ext
3538  if test -z "$FFLAGS"; then
3539    { 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
3540echo "$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;}
3541  fi
3542fi
3543
3544{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3545echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3546
3547
3548if test x"$MPIF77" = x; then :; else
3549  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3550echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3551  F77="$MPIF77"
3552fi
3553
3554case "$F77" in
3555  ifort*)
3556    case $build in
3557  *-mingw*)
3558    if test "${LD+set}" = set; then :; else
3559      LD=link
3560    fi
3561    ;;
3562esac
3563
3564    ;;
3565esac
3566
3567ac_ext=c
3568ac_cpp='$CPP $CPPFLAGS'
3569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572
3573
3574
3575# Need egrep later on
3576echo "$as_me:$LINENO: checking for egrep" >&5
3577echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3578if test "${ac_cv_prog_egrep+set}" = set; then
3579  echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
3581  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3582    then ac_cv_prog_egrep='grep -E'
3583    else ac_cv_prog_egrep='egrep'
3584    fi
3585fi
3586echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3587echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3588 EGREP=$ac_cv_prog_egrep
3589
3590
3591
3592# Initialize autotools
3593
3594# On Cygwin, building DLLs doesn't work
3595case $build in
3596  *-cygwin*)
3597    coin_disable_shared=yes
3598    platform=Cygwin
3599  ;;
3600  *-mingw*)
3601    coin_disable_shared=yes
3602    platform="Msys"
3603#    case "$CXX" in
3604#      cl*)
3605#        coin_disable_shared=yes
3606#        platform="Msys with cl"
3607#    ;;
3608#    esac
3609  ;;
3610esac
3611if test x"$coin_disable_shared" = xyes; then
3612  if test x"$enable_shared" = xyes; then
3613    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3614echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3615  fi
3616  enable_shared=no
3617fi
3618# By default, we only want the shared objects to be compiled
3619# Check whether --enable-static or --disable-static was given.
3620if test "${enable_static+set}" = set; then
3621  enableval="$enable_static"
3622  p=${PACKAGE-default}
3623    case $enableval in
3624    yes) enable_static=yes ;;
3625    no) enable_static=no ;;
3626    *)
3627     enable_static=no
3628      # Look at the argument we got.  We use all the common list separators.
3629      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3630      for pkg in $enableval; do
3631        IFS="$lt_save_ifs"
3632        if test "X$pkg" = "X$p"; then
3633          enable_static=yes
3634        fi
3635      done
3636      IFS="$lt_save_ifs"
3637      ;;
3638    esac
3639else
3640  enable_static=no
3641fi;
3642
3643
3644
3645am__api_version="1.9"
3646# Find a good install program.  We prefer a C program (faster),
3647# so one script is as good as another.  But avoid the broken or
3648# incompatible versions:
3649# SysV /etc/install, /usr/sbin/install
3650# SunOS /usr/etc/install
3651# IRIX /sbin/install
3652# AIX /bin/install
3653# AmigaOS /C/install, which installs bootblocks on floppy discs
3654# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3655# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3656# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3657# OS/2's system install, which has a completely different semantic
3658# ./install, which can be erroneously created by make from ./install.sh.
3659echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3660echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3661if test -z "$INSTALL"; then
3662if test "${ac_cv_path_install+set}" = set; then
3663  echo $ECHO_N "(cached) $ECHO_C" >&6
3664else
3665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666for as_dir in $PATH
3667do
3668  IFS=$as_save_IFS
3669  test -z "$as_dir" && as_dir=.
3670  # Account for people who put trailing slashes in PATH elements.
3671case $as_dir/ in
3672  ./ | .// | /cC/* | \
3673  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3674  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3675  /usr/ucb/* ) ;;
3676  *)
3677    # OSF1 and SCO ODT 3.0 have their own names for install.
3678    # Don't use installbsd from OSF since it installs stuff as root
3679    # by default.
3680    for ac_prog in ginstall scoinst install; do
3681      for ac_exec_ext in '' $ac_executable_extensions; do
3682        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3683          if test $ac_prog = install &&
3684            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3685            # AIX install.  It has an incompatible calling convention.
3686            :
3687          elif test $ac_prog = install &&
3688            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3689            # program-specific install script used by HP pwplus--don't use.
3690            :
3691          else
3692            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3693            break 3
3694          fi
3695        fi
3696      done
3697    done
3698    ;;
3699esac
3700done
3701
3702
3703fi
3704  if test "${ac_cv_path_install+set}" = set; then
3705    INSTALL=$ac_cv_path_install
3706  else
3707    # As a last resort, use the slow shell script.  We don't cache a
3708    # path for INSTALL within a source directory, because that will
3709    # break other packages using the cache if that directory is
3710    # removed, or if the path is relative.
3711    INSTALL=$ac_install_sh
3712  fi
3713fi
3714echo "$as_me:$LINENO: result: $INSTALL" >&5
3715echo "${ECHO_T}$INSTALL" >&6
3716
3717# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3718# It thinks the first close brace ends the variable substitution.
3719test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3720
3721test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3722
3723test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3724
3725echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3726echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3727# Just in case
3728sleep 1
3729echo timestamp > conftest.file
3730# Do `set' in a subshell so we don't clobber the current shell's
3731# arguments.  Must try -L first in case configure is actually a
3732# symlink; some systems play weird games with the mod time of symlinks
3733# (eg FreeBSD returns the mod time of the symlink's containing
3734# directory).
3735if (
3736   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3737   if test "$*" = "X"; then
3738      # -L didn't work.
3739      set X `ls -t $srcdir/configure conftest.file`
3740   fi
3741   rm -f conftest.file
3742   if test "$*" != "X $srcdir/configure conftest.file" \
3743      && test "$*" != "X conftest.file $srcdir/configure"; then
3744
3745      # If neither matched, then we have a broken ls.  This can happen
3746      # if, for instance, CONFIG_SHELL is bash and it inherits a
3747      # broken ls alias from the environment.  This has actually
3748      # happened.  Such a system could not be considered "sane".
3749      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3750alias in your environment" >&5
3751echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3752alias in your environment" >&2;}
3753   { (exit 1); exit 1; }; }
3754   fi
3755
3756   test "$2" = conftest.file
3757   )
3758then
3759   # Ok.
3760   :
3761else
3762   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3763Check your system clock" >&5
3764echo "$as_me: error: newly created file is older than distributed files!
3765Check your system clock" >&2;}
3766   { (exit 1); exit 1; }; }
3767fi
3768echo "$as_me:$LINENO: result: yes" >&5
3769echo "${ECHO_T}yes" >&6
3770test "$program_prefix" != NONE &&
3771  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3772# Use a double $ so make ignores it.
3773test "$program_suffix" != NONE &&
3774  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3775# Double any \ or $.  echo might interpret backslashes.
3776# By default was `s,x,x', remove it if useless.
3777cat <<\_ACEOF >conftest.sed
3778s/[\\$]/&&/g;s/;s,x,x,$//
3779_ACEOF
3780program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3781rm conftest.sed
3782
3783# expand $ac_aux_dir to an absolute path
3784am_aux_dir=`cd $ac_aux_dir && pwd`
3785
3786test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3787# Use eval to expand $SHELL
3788if eval "$MISSING --run true"; then
3789  am_missing_run="$MISSING --run "
3790else
3791  am_missing_run=
3792  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3793echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3794fi
3795
3796if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3797  # We used to keeping the `.' as first argument, in order to
3798  # allow $(mkdir_p) to be used without argument.  As in
3799  #   $(mkdir_p) $(somedir)
3800  # where $(somedir) is conditionally defined.  However this is wrong
3801  # for two reasons:
3802  #  1. if the package is installed by a user who cannot write `.'
3803  #     make install will fail,
3804  #  2. the above comment should most certainly read
3805  #     $(mkdir_p) $(DESTDIR)$(somedir)
3806  #     so it does not work when $(somedir) is undefined and
3807  #     $(DESTDIR) is not.
3808  #  To support the latter case, we have to write
3809  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3810  #  so the `.' trick is pointless.
3811  mkdir_p='mkdir -p --'
3812else
3813  # On NextStep and OpenStep, the `mkdir' command does not
3814  # recognize any option.  It will interpret all options as
3815  # directories to create, and then abort because `.' already
3816  # exists.
3817  for d in ./-p ./--version;
3818  do
3819    test -d $d && rmdir $d
3820  done
3821  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3822  if test -f "$ac_aux_dir/mkinstalldirs"; then
3823    mkdir_p='$(mkinstalldirs)'
3824  else
3825    mkdir_p='$(install_sh) -d'
3826  fi
3827fi
3828
3829for ac_prog in gawk mawk nawk awk
3830do
3831  # Extract the first word of "$ac_prog", so it can be a program name with args.
3832set dummy $ac_prog; ac_word=$2
3833echo "$as_me:$LINENO: checking for $ac_word" >&5
3834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3835if test "${ac_cv_prog_AWK+set}" = set; then
3836  echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838  if test -n "$AWK"; then
3839  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3840else
3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842for as_dir in $PATH
3843do
3844  IFS=$as_save_IFS
3845  test -z "$as_dir" && as_dir=.
3846  for ac_exec_ext in '' $ac_executable_extensions; do
3847  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848    ac_cv_prog_AWK="$ac_prog"
3849    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850    break 2
3851  fi
3852done
3853done
3854
3855fi
3856fi
3857AWK=$ac_cv_prog_AWK
3858if test -n "$AWK"; then
3859  echo "$as_me:$LINENO: result: $AWK" >&5
3860echo "${ECHO_T}$AWK" >&6
3861else
3862  echo "$as_me:$LINENO: result: no" >&5
3863echo "${ECHO_T}no" >&6
3864fi
3865
3866  test -n "$AWK" && break
3867done
3868
3869echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3870echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3871set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3872if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3873  echo $ECHO_N "(cached) $ECHO_C" >&6
3874else
3875  cat >conftest.make <<\_ACEOF
3876all:
3877        @echo 'ac_maketemp="$(MAKE)"'
3878_ACEOF
3879# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3880eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3881if test -n "$ac_maketemp"; then
3882  eval ac_cv_prog_make_${ac_make}_set=yes
3883else
3884  eval ac_cv_prog_make_${ac_make}_set=no
3885fi
3886rm -f conftest.make
3887fi
3888if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3889  echo "$as_me:$LINENO: result: yes" >&5
3890echo "${ECHO_T}yes" >&6
3891  SET_MAKE=
3892else
3893  echo "$as_me:$LINENO: result: no" >&5
3894echo "${ECHO_T}no" >&6
3895  SET_MAKE="MAKE=${MAKE-make}"
3896fi
3897
3898rm -rf .tst 2>/dev/null
3899mkdir .tst 2>/dev/null
3900if test -d .tst; then
3901  am__leading_dot=.
3902else
3903  am__leading_dot=_
3904fi
3905rmdir .tst 2>/dev/null
3906
3907DEPDIR="${am__leading_dot}deps"
3908
3909          ac_config_commands="$ac_config_commands depfiles"
3910
3911
3912am_make=${MAKE-make}
3913cat > confinc << 'END'
3914am__doit:
3915        @echo done
3916.PHONY: am__doit
3917END
3918# If we don't find an include directive, just comment out the code.
3919echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3920echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3921am__include="#"
3922am__quote=
3923_am_result=none
3924# First try GNU make style include.
3925echo "include confinc" > confmf
3926# We grep out `Entering directory' and `Leaving directory'
3927# messages which can occur if `w' ends up in MAKEFLAGS.
3928# In particular we don't look at `^make:' because GNU make might
3929# be invoked under some other name (usually "gmake"), in which
3930# case it prints its new name instead of `make'.
3931if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3932   am__include=include
3933   am__quote=
3934   _am_result=GNU
3935fi
3936# Now try BSD make style include.
3937if test "$am__include" = "#"; then
3938   echo '.include "confinc"' > confmf
3939   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3940      am__include=.include
3941      am__quote="\""
3942      _am_result=BSD
3943   fi
3944fi
3945
3946
3947echo "$as_me:$LINENO: result: $_am_result" >&5
3948echo "${ECHO_T}$_am_result" >&6
3949rm -f confinc confmf
3950
3951# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3952if test "${enable_dependency_tracking+set}" = set; then
3953  enableval="$enable_dependency_tracking"
3954
3955fi;
3956if test "x$enable_dependency_tracking" != xno; then
3957  am_depcomp="$ac_aux_dir/depcomp"
3958  AMDEPBACKSLASH='\'
3959fi
3960
3961
3962if test "x$enable_dependency_tracking" != xno; then
3963  AMDEP_TRUE=
3964  AMDEP_FALSE='#'
3965else
3966  AMDEP_TRUE='#'
3967  AMDEP_FALSE=
3968fi
3969
3970
3971
3972ac_ext=c
3973ac_cpp='$CPP $CPPFLAGS'
3974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977
3978if test x"" = x; then
3979  hdr="#include <dlfcn.h>"
3980else
3981  hdr=""
3982fi
3983
3984for ac_header in dlfcn.h
3985do
3986as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3987echo "$as_me:$LINENO: checking for $ac_header" >&5
3988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3989if eval "test \"\${$as_ac_Header+set}\" = set"; then
3990  echo $ECHO_N "(cached) $ECHO_C" >&6
3991else
3992  cat >conftest.$ac_ext <<_ACEOF
3993/* confdefs.h.  */
3994_ACEOF
3995cat confdefs.h >>conftest.$ac_ext
3996cat >>conftest.$ac_ext <<_ACEOF
3997/* end confdefs.h.  */
3998$hdr
3999
4000#include <$ac_header>
4001_ACEOF
4002rm -f conftest.$ac_objext
4003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4004  (eval $ac_compile) 2>conftest.er1
4005  ac_status=$?
4006  grep -v '^ *+' conftest.er1 >conftest.err
4007  rm -f conftest.er1
4008  cat conftest.err >&5
4009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010  (exit $ac_status); } &&
4011         { ac_try='test -z "$ac_c_werror_flag"
4012                         || test ! -s conftest.err'
4013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014  (eval $ac_try) 2>&5
4015  ac_status=$?
4016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017  (exit $ac_status); }; } &&
4018         { ac_try='test -s conftest.$ac_objext'
4019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020  (eval $ac_try) 2>&5
4021  ac_status=$?
4022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023  (exit $ac_status); }; }; then
4024  eval "$as_ac_Header=yes"
4025else
4026  echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
4028
4029eval "$as_ac_Header=no"
4030fi
4031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4032fi
4033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4034echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4035if test `eval echo '${'$as_ac_Header'}'` = yes; then
4036  cat >>confdefs.h <<_ACEOF
4037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4038_ACEOF
4039
4040fi
4041
4042done
4043
4044
4045ac_ext=c
4046ac_cpp='$CPP $CPPFLAGS'
4047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050
4051
4052# Check whether --enable-shared or --disable-shared was given.
4053if test "${enable_shared+set}" = set; then
4054  enableval="$enable_shared"
4055  p=${PACKAGE-default}
4056    case $enableval in
4057    yes) enable_shared=yes ;;
4058    no) enable_shared=no ;;
4059    *)
4060      enable_shared=no
4061      # Look at the argument we got.  We use all the common list separators.
4062      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4063      for pkg in $enableval; do
4064        IFS="$lt_save_ifs"
4065        if test "X$pkg" = "X$p"; then
4066          enable_shared=yes
4067        fi
4068      done
4069      IFS="$lt_save_ifs"
4070      ;;
4071    esac
4072else
4073  enable_shared=yes
4074fi;
4075
4076# Check whether --enable-fast-install or --disable-fast-install was given.
4077if test "${enable_fast_install+set}" = set; then
4078  enableval="$enable_fast_install"
4079  p=${PACKAGE-default}
4080    case $enableval in
4081    yes) enable_fast_install=yes ;;
4082    no) enable_fast_install=no ;;
4083    *)
4084      enable_fast_install=no
4085      # Look at the argument we got.  We use all the common list separators.
4086      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4087      for pkg in $enableval; do
4088        IFS="$lt_save_ifs"
4089        if test "X$pkg" = "X$p"; then
4090          enable_fast_install=yes
4091        fi
4092      done
4093      IFS="$lt_save_ifs"
4094      ;;
4095    esac
4096else
4097  enable_fast_install=yes
4098fi;
4099
4100echo "$as_me:$LINENO: checking host system type" >&5
4101echo $ECHO_N "checking host system type... $ECHO_C" >&6
4102if test "${ac_cv_host+set}" = set; then
4103  echo $ECHO_N "(cached) $ECHO_C" >&6
4104else
4105  ac_cv_host_alias=$host_alias
4106test -z "$ac_cv_host_alias" &&
4107  ac_cv_host_alias=$ac_cv_build_alias
4108ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4109  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4110echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4111   { (exit 1); exit 1; }; }
4112
4113fi
4114echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4115echo "${ECHO_T}$ac_cv_host" >&6
4116host=$ac_cv_host
4117host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4118host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4119host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4120
4121
4122echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4123echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4124if test "${lt_cv_path_SED+set}" = set; then
4125  echo $ECHO_N "(cached) $ECHO_C" >&6
4126else
4127  # Loop through the user's path and test for sed and gsed.
4128# Then use that list of sed's as ones to test for truncation.
4129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130for as_dir in $PATH
4131do
4132  IFS=$as_save_IFS
4133  test -z "$as_dir" && as_dir=.
4134  for lt_ac_prog in sed gsed; do
4135    for ac_exec_ext in '' $ac_executable_extensions; do
4136      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4137        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4138      fi
4139    done
4140  done
4141done
4142lt_ac_max=0
4143lt_ac_count=0
4144# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4145# along with /bin/sed that truncates output.
4146for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4147  test ! -f $lt_ac_sed && continue
4148  cat /dev/null > conftest.in
4149  lt_ac_count=0
4150  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4151  # Check for GNU sed and select it if it is found.
4152  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4153    lt_cv_path_SED=$lt_ac_sed
4154    break
4155  fi
4156  while true; do
4157    cat conftest.in conftest.in >conftest.tmp
4158    mv conftest.tmp conftest.in
4159    cp conftest.in conftest.nl
4160    echo >>conftest.nl
4161    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4162    cmp -s conftest.out conftest.nl || break
4163    # 10000 chars as input seems more than enough
4164    test $lt_ac_count -gt 10 && break
4165    lt_ac_count=`expr $lt_ac_count + 1`
4166    if test $lt_ac_count -gt $lt_ac_max; then
4167      lt_ac_max=$lt_ac_count
4168      lt_cv_path_SED=$lt_ac_sed
4169    fi
4170  done
4171done
4172
4173fi
4174
4175SED=$lt_cv_path_SED
4176echo "$as_me:$LINENO: result: $SED" >&5
4177echo "${ECHO_T}$SED" >&6
4178
4179
4180# Check whether --with-gnu-ld or --without-gnu-ld was given.
4181if test "${with_gnu_ld+set}" = set; then
4182  withval="$with_gnu_ld"
4183  test "$withval" = no || with_gnu_ld=yes
4184else
4185  with_gnu_ld=no
4186fi;
4187ac_prog=ld
4188if test "$GCC" = yes; then
4189  # Check if gcc -print-prog-name=ld gives a path.
4190  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4191echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4192  case $host in
4193  *-*-mingw*)
4194    # gcc leaves a trailing carriage return which upsets mingw
4195    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4196  *)
4197    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4198  esac
4199  case $ac_prog in
4200    # Accept absolute paths.
4201    [\\/]* | ?:[\\/]*)
4202      re_direlt='/[^/][^/]*/\.\./'
4203      # Canonicalize the pathname of ld
4204      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4205      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4206        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4207      done
4208      test -z "$LD" && LD="$ac_prog"
4209      ;;
4210  "")
4211    # If it fails, then pretend we aren't using GCC.
4212    ac_prog=ld
4213    ;;
4214  *)
4215    # If it is relative, then search for the first ld in PATH.
4216    with_gnu_ld=unknown
4217    ;;
4218  esac
4219elif test "$with_gnu_ld" = yes; then
4220  echo "$as_me:$LINENO: checking for GNU ld" >&5
4221echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4222else
4223  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4224echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4225fi
4226if test "${lt_cv_path_LD+set}" = set; then
4227  echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229  if test -z "$LD"; then
4230  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4231  for ac_dir in $PATH; do
4232    IFS="$lt_save_ifs"
4233    test -z "$ac_dir" && ac_dir=.
4234    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4235      lt_cv_path_LD="$ac_dir/$ac_prog"
4236      # Check to see if the program is GNU ld.  I'd rather use --version,
4237      # but apparently some variants of GNU ld only accept -v.
4238      # Break only if it was the GNU/non-GNU ld that we prefer.
4239      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4240      *GNU* | *'with BFD'*)
4241        test "$with_gnu_ld" != no && break
4242        ;;
4243      *)
4244        test "$with_gnu_ld" != yes && break
4245        ;;
4246      esac
4247    fi
4248  done
4249  IFS="$lt_save_ifs"
4250else
4251  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4252fi
4253fi
4254
4255LD="$lt_cv_path_LD"
4256if test -n "$LD"; then
4257  echo "$as_me:$LINENO: result: $LD" >&5
4258echo "${ECHO_T}$LD" >&6
4259else
4260  echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
4262fi
4263test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4264echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4265   { (exit 1); exit 1; }; }
4266echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4267echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4268if test "${lt_cv_prog_gnu_ld+set}" = set; then
4269  echo $ECHO_N "(cached) $ECHO_C" >&6
4270else
4271  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4272case `$LD -v 2>&1 </dev/null` in
4273*GNU* | *'with BFD'*)
4274  lt_cv_prog_gnu_ld=yes
4275  ;;
4276*)
4277  lt_cv_prog_gnu_ld=no
4278  ;;
4279esac
4280fi
4281echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4282echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4283with_gnu_ld=$lt_cv_prog_gnu_ld
4284
4285
4286echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4287echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4288if test "${lt_cv_ld_reload_flag+set}" = set; then
4289  echo $ECHO_N "(cached) $ECHO_C" >&6
4290else
4291  lt_cv_ld_reload_flag='-r'
4292fi
4293echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4294echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4295reload_flag=$lt_cv_ld_reload_flag
4296case $reload_flag in
4297"" | " "*) ;;
4298*) reload_flag=" $reload_flag" ;;
4299esac
4300reload_cmds='$LD$reload_flag -o $output$reload_objs'
4301case $host_os in
4302  darwin*)
4303    if test "$GCC" = yes; then
4304      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4305    else
4306      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4307    fi
4308    ;;
4309esac
4310
4311echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4312echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4313if test "${lt_cv_path_NM+set}" = set; then
4314  echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316  if test -n "$NM"; then
4317  # Let the user override the test.
4318  lt_cv_path_NM="$NM"
4319else
4320  lt_nm_to_check="${ac_tool_prefix}nm"
4321  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4322    lt_nm_to_check="$lt_nm_to_check nm"
4323  fi
4324  for lt_tmp_nm in $lt_nm_to_check; do
4325    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4326    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4327      IFS="$lt_save_ifs"
4328      test -z "$ac_dir" && ac_dir=.
4329      tmp_nm="$ac_dir/$lt_tmp_nm"
4330      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4331        # Check to see if the nm accepts a BSD-compat flag.
4332        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4333        #   nm: unknown option "B" ignored
4334        # Tru64's nm complains that /dev/null is an invalid object file
4335        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4336        */dev/null* | *'Invalid file or object type'*)
4337          lt_cv_path_NM="$tmp_nm -B"
4338          break
4339          ;;
4340        *)
4341          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4342          */dev/null*)
4343            lt_cv_path_NM="$tmp_nm -p"
4344            break
4345            ;;
4346          *)
4347            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4348            continue # so that we can try to find one that supports BSD flags
4349            ;;
4350          esac
4351          ;;
4352        esac
4353      fi
4354    done
4355    IFS="$lt_save_ifs"
4356  done
4357  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4358fi
4359fi
4360echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4361echo "${ECHO_T}$lt_cv_path_NM" >&6
4362NM="$lt_cv_path_NM"
4363
4364echo "$as_me:$LINENO: checking whether ln -s works" >&5
4365echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4366LN_S=$as_ln_s
4367if test "$LN_S" = "ln -s"; then
4368  echo "$as_me:$LINENO: result: yes" >&5
4369echo "${ECHO_T}yes" >&6
4370else
4371  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4372echo "${ECHO_T}no, using $LN_S" >&6
4373fi
4374
4375echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4376echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4377if test "${lt_cv_deplibs_check_method+set}" = set; then
4378  echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380  lt_cv_file_magic_cmd='$MAGIC_CMD'
4381lt_cv_file_magic_test_file=
4382lt_cv_deplibs_check_method='unknown'
4383# Need to set the preceding variable on all platforms that support
4384# interlibrary dependencies.
4385# 'none' -- dependencies not supported.
4386# `unknown' -- same as none, but documents that we really don't know.
4387# 'pass_all' -- all dependencies passed with no checks.
4388# 'test_compile' -- check by making test program.
4389# 'file_magic [[regex]]' -- check by looking for files in library path
4390# which responds to the $file_magic_cmd with a given extended regex.
4391# If you have `file' or equivalent on your system and you're not sure
4392# whether `pass_all' will *always* work, you probably want this one.
4393
4394case $host_os in
4395aix4* | aix5*)
4396  lt_cv_deplibs_check_method=pass_all
4397  ;;
4398
4399beos*)
4400  lt_cv_deplibs_check_method=pass_all
4401  ;;
4402
4403bsdi[45]*)
4404  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4405  lt_cv_file_magic_cmd='/usr/bin/file -L'
4406  lt_cv_file_magic_test_file=/shlib/libc.so
4407  ;;
4408
4409cygwin*)
4410  # func_win32_libid is a shell function defined in ltmain.sh
4411  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4412  lt_cv_file_magic_cmd='func_win32_libid'
4413  ;;
4414
4415mingw* | pw32*)
4416  # Base MSYS/MinGW do not provide the 'file' command needed by
4417  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4418  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4419  lt_cv_file_magic_cmd='$OBJDUMP -f'
4420  ;;
4421
4422darwin* | rhapsody*)
4423  lt_cv_deplibs_check_method=pass_all
4424  ;;
4425
4426freebsd* | kfreebsd*-gnu | dragonfly*)
4427  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4428    case $host_cpu in
4429    i*86 )
4430      # Not sure whether the presence of OpenBSD here was a mistake.
4431      # Let's accept both of them until this is cleared up.
4432      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4433      lt_cv_file_magic_cmd=/usr/bin/file
4434      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4435      ;;
4436    esac
4437  else
4438    lt_cv_deplibs_check_method=pass_all
4439  fi
4440  ;;
4441
4442gnu*)
4443  lt_cv_deplibs_check_method=pass_all
4444  ;;
4445
4446hpux10.20* | hpux11*)
4447  lt_cv_file_magic_cmd=/usr/bin/file
4448  case $host_cpu in
4449  ia64*)
4450    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4451    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4452    ;;
4453  hppa*64*)
4454    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]'
4455    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4456    ;;
4457  *)
4458    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4459    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4460    ;;
4461  esac
4462  ;;
4463
4464interix3*)
4465  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4466  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4467  ;;
4468
4469irix5* | irix6* | nonstopux*)
4470  case $LD in
4471  *-32|*"-32 ") libmagic=32-bit;;
4472  *-n32|*"-n32 ") libmagic=N32;;
4473  *-64|*"-64 ") libmagic=64-bit;;
4474  *) libmagic=never-match;;
4475  esac
4476  lt_cv_deplibs_check_method=pass_all
4477  ;;
4478
4479# This must be Linux ELF.
4480linux*)
4481  lt_cv_deplibs_check_method=pass_all
4482  ;;
4483
4484netbsd*)
4485  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4486    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4487  else
4488    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4489  fi
4490  ;;
4491
4492newos6*)
4493  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4494  lt_cv_file_magic_cmd=/usr/bin/file
4495  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4496  ;;
4497
4498nto-qnx*)
4499  lt_cv_deplibs_check_method=unknown
4500  ;;
4501
4502openbsd*)
4503  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4504    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4505  else
4506    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4507  fi
4508  ;;
4509
4510osf3* | osf4* | osf5*)
4511  lt_cv_deplibs_check_method=pass_all
4512  ;;
4513
4514solaris*)
4515  lt_cv_deplibs_check_method=pass_all
4516  ;;
4517
4518sysv4 | sysv4.3*)
4519  case $host_vendor in
4520  motorola)
4521    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]'
4522    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4523    ;;
4524  ncr)
4525    lt_cv_deplibs_check_method=pass_all
4526    ;;
4527  sequent)
4528    lt_cv_file_magic_cmd='/bin/file'
4529    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4530    ;;
4531  sni)
4532    lt_cv_file_magic_cmd='/bin/file'
4533    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4534    lt_cv_file_magic_test_file=/lib/libc.so
4535    ;;
4536  siemens)
4537    lt_cv_deplibs_check_method=pass_all
4538    ;;
4539  pc)
4540    lt_cv_deplibs_check_method=pass_all
4541    ;;
4542  esac
4543  ;;
4544
4545sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4546  lt_cv_deplibs_check_method=pass_all
4547  ;;
4548esac
4549
4550fi
4551echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4552echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4553file_magic_cmd=$lt_cv_file_magic_cmd
4554deplibs_check_method=$lt_cv_deplibs_check_method
4555test -z "$deplibs_check_method" && deplibs_check_method=unknown
4556
4557
4558
4559
4560# If no C compiler was specified, use CC.
4561LTCC=${LTCC-"$CC"}
4562
4563# If no C compiler flags were specified, use CFLAGS.
4564LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4565
4566# Allow CC to be a program name with arguments.
4567compiler=$CC
4568
4569# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4570if test "${enable_libtool_lock+set}" = set; then
4571  enableval="$enable_libtool_lock"
4572
4573fi;
4574test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4575
4576# Some flags need to be propagated to the compiler or linker for good
4577# libtool support.
4578case $host in
4579ia64-*-hpux*)
4580  # Find out which ABI we are using.
4581  echo 'int i;' > conftest.$ac_ext
4582  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583  (eval $ac_compile) 2>&5
4584  ac_status=$?
4585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586  (exit $ac_status); }; then
4587    case `/usr/bin/file conftest.$ac_objext` in
4588    *ELF-32*)
4589      HPUX_IA64_MODE="32"
4590      ;;
4591    *ELF-64*)
4592      HPUX_IA64_MODE="64"
4593      ;;
4594    esac
4595  fi
4596  rm -rf conftest*
4597  ;;
4598*-*-irix6*)
4599  # Find out which ABI we are using.
4600  echo '#line 4600 "configure"' > conftest.$ac_ext
4601  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602  (eval $ac_compile) 2>&5
4603  ac_status=$?
4604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605  (exit $ac_status); }; then
4606   if test "$lt_cv_prog_gnu_ld" = yes; then
4607    case `/usr/bin/file conftest.$ac_objext` in
4608    *32-bit*)
4609      LD="${LD-ld} -melf32bsmip"
4610      ;;
4611    *N32*)
4612      LD="${LD-ld} -melf32bmipn32"
4613      ;;
4614    *64-bit*)
4615      LD="${LD-ld} -melf64bmip"
4616      ;;
4617    esac
4618   else
4619    case `/usr/bin/file conftest.$ac_objext` in
4620    *32-bit*)
4621      LD="${LD-ld} -32"
4622      ;;
4623    *N32*)
4624      LD="${LD-ld} -n32"
4625      ;;
4626    *64-bit*)
4627      LD="${LD-ld} -64"
4628      ;;
4629    esac
4630   fi
4631  fi
4632  rm -rf conftest*
4633  ;;
4634
4635x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4636  # Find out which ABI we are using.
4637  echo 'int i;' > conftest.$ac_ext
4638  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4639  (eval $ac_compile) 2>&5
4640  ac_status=$?
4641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642  (exit $ac_status); }; then
4643    case `/usr/bin/file conftest.o` in
4644    *32-bit*)
4645      case $host in
4646        x86_64-*linux*)
4647          LD="${LD-ld} -m elf_i386"
4648          ;;
4649        ppc64-*linux*|powerpc64-*linux*)
4650          LD="${LD-ld} -m elf32ppclinux"
4651          ;;
4652        s390x-*linux*)
4653          LD="${LD-ld} -m elf_s390"
4654          ;;
4655        sparc64-*linux*)
4656          LD="${LD-ld} -m elf32_sparc"
4657          ;;
4658      esac
4659      ;;
4660    *64-bit*)
4661      case $host in
4662        x86_64-*linux*)
4663          LD="${LD-ld} -m elf_x86_64"
4664          ;;
4665        ppc*-*linux*|powerpc*-*linux*)
4666          LD="${LD-ld} -m elf64ppc"
4667          ;;
4668        s390*-*linux*)
4669          LD="${LD-ld} -m elf64_s390"
4670          ;;
4671        sparc*-*linux*)
4672          LD="${LD-ld} -m elf64_sparc"
4673          ;;
4674      esac
4675      ;;
4676    esac
4677  fi
4678  rm -rf conftest*
4679  ;;
4680
4681*-*-sco3.2v5*)
4682  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4683  SAVE_CFLAGS="$CFLAGS"
4684  CFLAGS="$CFLAGS -belf"
4685  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4686echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4687if test "${lt_cv_cc_needs_belf+set}" = set; then
4688  echo $ECHO_N "(cached) $ECHO_C" >&6
4689else
4690  ac_ext=c
4691ac_cpp='$CPP $CPPFLAGS'
4692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695
4696     cat >conftest.$ac_ext <<_ACEOF
4697/* confdefs.h.  */
4698_ACEOF
4699cat confdefs.h >>conftest.$ac_ext
4700cat >>conftest.$ac_ext <<_ACEOF
4701/* end confdefs.h.  */
4702
4703int
4704main ()
4705{
4706
4707  ;
4708  return 0;
4709}
4710_ACEOF
4711rm -f conftest.$ac_objext conftest$ac_exeext
4712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713  (eval $ac_link) 2>conftest.er1
4714  ac_status=$?
4715  grep -v '^ *+' conftest.er1 >conftest.err
4716  rm -f conftest.er1
4717  cat conftest.err >&5
4718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719  (exit $ac_status); } &&
4720         { ac_try='test -z "$ac_c_werror_flag"
4721                         || test ! -s conftest.err'
4722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723  (eval $ac_try) 2>&5
4724  ac_status=$?
4725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726  (exit $ac_status); }; } &&
4727         { ac_try='test -s conftest$ac_exeext'
4728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729  (eval $ac_try) 2>&5
4730  ac_status=$?
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); }; }; then
4733  lt_cv_cc_needs_belf=yes
4734else
4735  echo "$as_me: failed program was:" >&5
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738lt_cv_cc_needs_belf=no
4739fi
4740rm -f conftest.err conftest.$ac_objext \
4741      conftest$ac_exeext conftest.$ac_ext
4742     ac_ext=c
4743ac_cpp='$CPP $CPPFLAGS'
4744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746ac_compiler_gnu=$ac_cv_c_compiler_gnu
4747
4748fi
4749echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4750echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4751  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4752    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4753    CFLAGS="$SAVE_CFLAGS"
4754  fi
4755  ;;
4756sparc*-*solaris*)
4757  # Find out which ABI we are using.
4758  echo 'int i;' > conftest.$ac_ext
4759  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760  (eval $ac_compile) 2>&5
4761  ac_status=$?
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); }; then
4764    case `/usr/bin/file conftest.o` in
4765    *64-bit*)
4766      case $lt_cv_prog_gnu_ld in
4767      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4768      *)    LD="${LD-ld} -64" ;;
4769      esac
4770      ;;
4771    esac
4772  fi
4773  rm -rf conftest*
4774  ;;
4775
4776
4777esac
4778
4779need_locks="$enable_libtool_lock"
4780
4781
4782ac_ext=c
4783ac_cpp='$CPP $CPPFLAGS'
4784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4788echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4789# On Suns, sometimes $CPP names a directory.
4790if test -n "$CPP" && test -d "$CPP"; then
4791  CPP=
4792fi
4793if test -z "$CPP"; then
4794  if test "${ac_cv_prog_CPP+set}" = set; then
4795  echo $ECHO_N "(cached) $ECHO_C" >&6
4796else
4797      # Double quotes because CPP needs to be expanded
4798    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4799    do
4800      ac_preproc_ok=false
4801for ac_c_preproc_warn_flag in '' yes
4802do
4803  # Use a header file that comes with gcc, so configuring glibc
4804  # with a fresh cross-compiler works.
4805  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4806  # <limits.h> exists even on freestanding compilers.
4807  # On the NeXT, cc -E runs the code through the compiler's parser,
4808  # not just through cpp. "Syntax error" is here to catch this case.
4809  cat >conftest.$ac_ext <<_ACEOF
4810/* confdefs.h.  */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h.  */
4815#ifdef __STDC__
4816# include <limits.h>
4817#else
4818# include <assert.h>
4819#endif
4820                     Syntax error
4821_ACEOF
4822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4823  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4824  ac_status=$?
4825  grep -v '^ *+' conftest.er1 >conftest.err
4826  rm -f conftest.er1
4827  cat conftest.err >&5
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); } >/dev/null; then
4830  if test -s conftest.err; then
4831    ac_cpp_err=$ac_c_preproc_warn_flag
4832    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4833  else
4834    ac_cpp_err=
4835  fi
4836else
4837  ac_cpp_err=yes
4838fi
4839if test -z "$ac_cpp_err"; then
4840  :
4841else
4842  echo "$as_me: failed program was:" >&5
4843sed 's/^/| /' conftest.$ac_ext >&5
4844
4845  # Broken: fails on valid input.
4846continue
4847fi
4848rm -f conftest.err conftest.$ac_ext
4849
4850  # OK, works on sane cases.  Now check whether non-existent headers
4851  # can be detected and how.
4852  cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h.  */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h.  */
4858#include <ac_nonexistent.h>
4859_ACEOF
4860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4862  ac_status=$?
4863  grep -v '^ *+' conftest.er1 >conftest.err
4864  rm -f conftest.er1
4865  cat conftest.err >&5
4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867  (exit $ac_status); } >/dev/null; then
4868  if test -s conftest.err; then
4869    ac_cpp_err=$ac_c_preproc_warn_flag
4870    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4871  else
4872    ac_cpp_err=
4873  fi
4874else
4875  ac_cpp_err=yes
4876fi
4877if test -z "$ac_cpp_err"; then
4878  # Broken: success on invalid input.
4879continue
4880else
4881  echo "$as_me: failed program was:" >&5
4882sed 's/^/| /' conftest.$ac_ext >&5
4883
4884  # Passes both tests.
4885ac_preproc_ok=:
4886break
4887fi
4888rm -f conftest.err conftest.$ac_ext
4889
4890done
4891# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4892rm -f conftest.err conftest.$ac_ext
4893if $ac_preproc_ok; then
4894  break
4895fi
4896
4897    done
4898    ac_cv_prog_CPP=$CPP
4899
4900fi
4901  CPP=$ac_cv_prog_CPP
4902else
4903  ac_cv_prog_CPP=$CPP
4904fi
4905echo "$as_me:$LINENO: result: $CPP" >&5
4906echo "${ECHO_T}$CPP" >&6
4907ac_preproc_ok=false
4908for ac_c_preproc_warn_flag in '' yes
4909do
4910  # Use a header file that comes with gcc, so configuring glibc
4911  # with a fresh cross-compiler works.
4912  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913  # <limits.h> exists even on freestanding compilers.
4914  # On the NeXT, cc -E runs the code through the compiler's parser,
4915  # not just through cpp. "Syntax error" is here to catch this case.
4916  cat >conftest.$ac_ext <<_ACEOF
4917/* confdefs.h.  */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h.  */
4922#ifdef __STDC__
4923# include <limits.h>
4924#else
4925# include <assert.h>
4926#endif
4927                     Syntax error
4928_ACEOF
4929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4930  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4931  ac_status=$?
4932  grep -v '^ *+' conftest.er1 >conftest.err
4933  rm -f conftest.er1
4934  cat conftest.err >&5
4935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936  (exit $ac_status); } >/dev/null; then
4937  if test -s conftest.err; then
4938    ac_cpp_err=$ac_c_preproc_warn_flag
4939    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4940  else
4941    ac_cpp_err=
4942  fi
4943else
4944  ac_cpp_err=yes
4945fi
4946if test -z "$ac_cpp_err"; then
4947  :
4948else
4949  echo "$as_me: failed program was:" >&5
4950sed 's/^/| /' conftest.$ac_ext >&5
4951
4952  # Broken: fails on valid input.
4953continue
4954fi
4955rm -f conftest.err conftest.$ac_ext
4956
4957  # OK, works on sane cases.  Now check whether non-existent headers
4958  # can be detected and how.
4959  cat >conftest.$ac_ext <<_ACEOF
4960/* confdefs.h.  */
4961_ACEOF
4962cat confdefs.h >>conftest.$ac_ext
4963cat >>conftest.$ac_ext <<_ACEOF
4964/* end confdefs.h.  */
4965#include <ac_nonexistent.h>
4966_ACEOF
4967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4968  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4969  ac_status=$?
4970  grep -v '^ *+' conftest.er1 >conftest.err
4971  rm -f conftest.er1
4972  cat conftest.err >&5
4973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974  (exit $ac_status); } >/dev/null; then
4975  if test -s conftest.err; then
4976    ac_cpp_err=$ac_c_preproc_warn_flag
4977    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4978  else
4979    ac_cpp_err=
4980  fi
4981else
4982  ac_cpp_err=yes
4983fi
4984if test -z "$ac_cpp_err"; then
4985  # Broken: success on invalid input.
4986continue
4987else
4988  echo "$as_me: failed program was:" >&5
4989sed 's/^/| /' conftest.$ac_ext >&5
4990
4991  # Passes both tests.
4992ac_preproc_ok=:
4993break
4994fi
4995rm -f conftest.err conftest.$ac_ext
4996
4997done
4998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4999rm -f conftest.err conftest.$ac_ext
5000if $ac_preproc_ok; then
5001  :
5002else
5003  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5004See \`config.log' for more details." >&5
5005echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5006See \`config.log' for more details." >&2;}
5007   { (exit 1); exit 1; }; }
5008fi
5009
5010ac_ext=c
5011ac_cpp='$CPP $CPPFLAGS'
5012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015
5016
5017echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5018echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5019if test "${ac_cv_header_stdc+set}" = set; then
5020  echo $ECHO_N "(cached) $ECHO_C" >&6
5021else
5022  cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h.  */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h.  */
5028#include <stdlib.h>
5029#include <stdarg.h>
5030#include <string.h>
5031#include <float.h>
5032
5033int
5034main ()
5035{
5036
5037  ;
5038  return 0;
5039}
5040_ACEOF
5041rm -f conftest.$ac_objext
5042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5043  (eval $ac_compile) 2>conftest.er1
5044  ac_status=$?
5045  grep -v '^ *+' conftest.er1 >conftest.err
5046  rm -f conftest.er1
5047  cat conftest.err >&5
5048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049  (exit $ac_status); } &&
5050         { ac_try='test -z "$ac_c_werror_flag"
5051                         || test ! -s conftest.err'
5052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053  (eval $ac_try) 2>&5
5054  ac_status=$?
5055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056  (exit $ac_status); }; } &&
5057         { ac_try='test -s conftest.$ac_objext'
5058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059  (eval $ac_try) 2>&5
5060  ac_status=$?
5061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062  (exit $ac_status); }; }; then
5063  ac_cv_header_stdc=yes
5064else
5065  echo "$as_me: failed program was:" >&5
5066sed 's/^/| /' conftest.$ac_ext >&5
5067
5068ac_cv_header_stdc=no
5069fi
5070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5071
5072if test $ac_cv_header_stdc = yes; then
5073  # SunOS 4.x string.h does not declare mem*, 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 <string.h>
5081
5082_ACEOF
5083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5084  $EGREP "memchr" >/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  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5095  cat >conftest.$ac_ext <<_ACEOF
5096/* confdefs.h.  */
5097_ACEOF
5098cat confdefs.h >>conftest.$ac_ext
5099cat >>conftest.$ac_ext <<_ACEOF
5100/* end confdefs.h.  */
5101#include <stdlib.h>
5102
5103_ACEOF
5104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5105  $EGREP "free" >/dev/null 2>&1; then
5106  :
5107else
5108  ac_cv_header_stdc=no
5109fi
5110rm -f conftest*
5111
5112fi
5113
5114if test $ac_cv_header_stdc = yes; then
5115  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5116  if test "$cross_compiling" = yes; then
5117  :
5118else
5119  cat >conftest.$ac_ext <<_ACEOF
5120/* confdefs.h.  */
5121_ACEOF
5122cat confdefs.h >>conftest.$ac_ext
5123cat >>conftest.$ac_ext <<_ACEOF
5124/* end confdefs.h.  */
5125#include <ctype.h>
5126#if ((' ' & 0x0FF) == 0x020)
5127# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5128# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5129#else
5130# define ISLOWER(c) \
5131                   (('a' <= (c) && (c) <= 'i') \
5132                     || ('j' <= (c) && (c) <= 'r') \
5133                     || ('s' <= (c) && (c) <= 'z'))
5134# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5135#endif
5136
5137#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5138int
5139main ()
5140{
5141  int i;
5142  for (i = 0; i < 256; i++)
5143    if (XOR (islower (i), ISLOWER (i))
5144        || toupper (i) != TOUPPER (i))
5145      exit(2);
5146  exit (0);
5147}
5148_ACEOF
5149rm -f conftest$ac_exeext
5150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5151  (eval $ac_link) 2>&5
5152  ac_status=$?
5153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156  (eval $ac_try) 2>&5
5157  ac_status=$?
5158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159  (exit $ac_status); }; }; then
5160  :
5161else
5162  echo "$as_me: program exited with status $ac_status" >&5
5163echo "$as_me: failed program was:" >&5
5164sed 's/^/| /' conftest.$ac_ext >&5
5165
5166( exit $ac_status )
5167ac_cv_header_stdc=no
5168fi
5169rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5170fi
5171fi
5172fi
5173echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5174echo "${ECHO_T}$ac_cv_header_stdc" >&6
5175if test $ac_cv_header_stdc = yes; then
5176
5177cat >>confdefs.h <<\_ACEOF
5178#define STDC_HEADERS 1
5179_ACEOF
5180
5181fi
5182
5183# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5194                  inttypes.h stdint.h unistd.h
5195do
5196as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5197echo "$as_me:$LINENO: checking for $ac_header" >&5
5198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5199if eval "test \"\${$as_ac_Header+set}\" = set"; then
5200  echo $ECHO_N "(cached) $ECHO_C" >&6
5201else
5202  cat >conftest.$ac_ext <<_ACEOF
5203/* confdefs.h.  */
5204_ACEOF
5205cat confdefs.h >>conftest.$ac_ext
5206cat >>conftest.$ac_ext <<_ACEOF
5207/* end confdefs.h.  */
5208$ac_includes_default
5209
5210#include <$ac_header>
5211_ACEOF
5212rm -f conftest.$ac_objext
5213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5214  (eval $ac_compile) 2>conftest.er1
5215  ac_status=$?
5216  grep -v '^ *+' conftest.er1 >conftest.err
5217  rm -f conftest.er1
5218  cat conftest.err >&5
5219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220  (exit $ac_status); } &&
5221         { ac_try='test -z "$ac_c_werror_flag"
5222                         || test ! -s conftest.err'
5223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224  (eval $ac_try) 2>&5
5225  ac_status=$?
5226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227  (exit $ac_status); }; } &&
5228         { ac_try='test -s conftest.$ac_objext'
5229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230  (eval $ac_try) 2>&5
5231  ac_status=$?
5232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233  (exit $ac_status); }; }; then
5234  eval "$as_ac_Header=yes"
5235else
5236  echo "$as_me: failed program was:" >&5
5237sed 's/^/| /' conftest.$ac_ext >&5
5238
5239eval "$as_ac_Header=no"
5240fi
5241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5242fi
5243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5245if test `eval echo '${'$as_ac_Header'}'` = yes; then
5246  cat >>confdefs.h <<_ACEOF
5247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5248_ACEOF
5249
5250fi
5251
5252done
5253
5254
5255
5256for ac_header in dlfcn.h
5257do
5258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5259if eval "test \"\${$as_ac_Header+set}\" = set"; then
5260  echo "$as_me:$LINENO: checking for $ac_header" >&5
5261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5262if eval "test \"\${$as_ac_Header+set}\" = set"; then
5263  echo $ECHO_N "(cached) $ECHO_C" >&6
5264fi
5265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5267else
5268  # Is the header compilable?
5269echo "$as_me:$LINENO: checking $ac_header usability" >&5
5270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5271cat >conftest.$ac_ext <<_ACEOF
5272/* confdefs.h.  */
5273_ACEOF
5274cat confdefs.h >>conftest.$ac_ext
5275cat >>conftest.$ac_ext <<_ACEOF
5276/* end confdefs.h.  */
5277$ac_includes_default
5278#include <$ac_header>
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282  (eval $ac_compile) 2>conftest.er1
5283  ac_status=$?
5284  grep -v '^ *+' conftest.er1 >conftest.err
5285  rm -f conftest.er1
5286  cat conftest.err >&5
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); } &&
5289         { ac_try='test -z "$ac_c_werror_flag"
5290                         || test ! -s conftest.err'
5291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292  (eval $ac_try) 2>&5
5293  ac_status=$?
5294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295  (exit $ac_status); }; } &&
5296         { ac_try='test -s conftest.$ac_objext'
5297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298  (eval $ac_try) 2>&5
5299  ac_status=$?
5300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301  (exit $ac_status); }; }; then
5302  ac_header_compiler=yes
5303else
5304  echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307ac_header_compiler=no
5308fi
5309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5310echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5311echo "${ECHO_T}$ac_header_compiler" >&6
5312
5313# Is the header present?
5314echo "$as_me:$LINENO: checking $ac_header presence" >&5
5315echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5316cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h.  */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h.  */
5322#include <$ac_header>
5323_ACEOF
5324if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5325  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5326  ac_status=$?
5327  grep -v '^ *+' conftest.er1 >conftest.err
5328  rm -f conftest.er1
5329  cat conftest.err >&5
5330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331  (exit $ac_status); } >/dev/null; then
5332  if test -s conftest.err; then
5333    ac_cpp_err=$ac_c_preproc_warn_flag
5334    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5335  else
5336    ac_cpp_err=
5337  fi
5338else
5339  ac_cpp_err=yes
5340fi
5341if test -z "$ac_cpp_err"; then
5342  ac_header_preproc=yes
5343else
5344  echo "$as_me: failed program was:" >&5
5345sed 's/^/| /' conftest.$ac_ext >&5
5346
5347  ac_header_preproc=no
5348fi
5349rm -f conftest.err conftest.$ac_ext
5350echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5351echo "${ECHO_T}$ac_header_preproc" >&6
5352
5353# So?  What about this header?
5354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5355  yes:no: )
5356    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5358    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5360    ac_header_preproc=yes
5361    ;;
5362  no:yes:* )
5363    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5365    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5366echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5367    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5369    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5370echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5371    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5373    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5375    (
5376      cat <<\_ASBOX
5377## --------------------------------------------------------------- ##
5378## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5379## --------------------------------------------------------------- ##
5380_ASBOX
5381    ) |
5382      sed "s/^/$as_me: WARNING:     /" >&2
5383    ;;
5384esac
5385echo "$as_me:$LINENO: checking for $ac_header" >&5
5386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5387if eval "test \"\${$as_ac_Header+set}\" = set"; then
5388  echo $ECHO_N "(cached) $ECHO_C" >&6
5389else
5390  eval "$as_ac_Header=\$ac_header_preproc"
5391fi
5392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5394
5395fi
5396if test `eval echo '${'$as_ac_Header'}'` = yes; then
5397  cat >>confdefs.h <<_ACEOF
5398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5399_ACEOF
5400
5401fi
5402
5403done
5404
5405ac_ext=cc
5406ac_cpp='$CXXCPP $CPPFLAGS'
5407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5410if test -n "$ac_tool_prefix"; then
5411  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5412  do
5413    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5414set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5415echo "$as_me:$LINENO: checking for $ac_word" >&5
5416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5417if test "${ac_cv_prog_CXX+set}" = set; then
5418  echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420  if test -n "$CXX"; then
5421  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5422else
5423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424for as_dir in $PATH
5425do
5426  IFS=$as_save_IFS
5427  test -z "$as_dir" && as_dir=.
5428  for ac_exec_ext in '' $ac_executable_extensions; do
5429  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432    break 2
5433  fi
5434done
5435done
5436
5437fi
5438fi
5439CXX=$ac_cv_prog_CXX
5440if test -n "$CXX"; then
5441  echo "$as_me:$LINENO: result: $CXX" >&5
5442echo "${ECHO_T}$CXX" >&6
5443else
5444  echo "$as_me:$LINENO: result: no" >&5
5445echo "${ECHO_T}no" >&6
5446fi
5447
5448    test -n "$CXX" && break
5449  done
5450fi
5451if test -z "$CXX"; then
5452  ac_ct_CXX=$CXX
5453  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5454do
5455  # Extract the first word of "$ac_prog", so it can be a program name with args.
5456set dummy $ac_prog; ac_word=$2
5457echo "$as_me:$LINENO: checking for $ac_word" >&5
5458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5459if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5460  echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5462  if test -n "$ac_ct_CXX"; then
5463  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5464else
5465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466for as_dir in $PATH
5467do
5468  IFS=$as_save_IFS
5469  test -z "$as_dir" && as_dir=.
5470  for ac_exec_ext in '' $ac_executable_extensions; do
5471  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472    ac_cv_prog_ac_ct_CXX="$ac_prog"
5473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474    break 2
5475  fi
5476done
5477done
5478
5479fi
5480fi
5481ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5482if test -n "$ac_ct_CXX"; then
5483  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5484echo "${ECHO_T}$ac_ct_CXX" >&6
5485else
5486  echo "$as_me:$LINENO: result: no" >&5
5487echo "${ECHO_T}no" >&6
5488fi
5489
5490  test -n "$ac_ct_CXX" && break
5491done
5492test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5493
5494  CXX=$ac_ct_CXX
5495fi
5496
5497
5498# Provide some information about the compiler.
5499echo "$as_me:$LINENO:" \
5500     "checking for C++ compiler version" >&5
5501ac_compiler=`set X $ac_compile; echo $2`
5502{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5503  (eval $ac_compiler --version </dev/null >&5) 2>&5
5504  ac_status=$?
5505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506  (exit $ac_status); }
5507{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5508  (eval $ac_compiler -v </dev/null >&5) 2>&5
5509  ac_status=$?
5510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511  (exit $ac_status); }
5512{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5513  (eval $ac_compiler -V </dev/null >&5) 2>&5
5514  ac_status=$?
5515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516  (exit $ac_status); }
5517
5518echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5519echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5520if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5521  echo $ECHO_N "(cached) $ECHO_C" >&6
5522else
5523  cat >conftest.$ac_ext <<_ACEOF
5524/* confdefs.h.  */
5525_ACEOF
5526cat confdefs.h >>conftest.$ac_ext
5527cat >>conftest.$ac_ext <<_ACEOF
5528/* end confdefs.h.  */
5529
5530int
5531main ()
5532{
5533#ifndef __GNUC__
5534       choke me
5535#endif
5536
5537  ;
5538  return 0;
5539}
5540_ACEOF
5541rm -f conftest.$ac_objext
5542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543  (eval $ac_compile) 2>conftest.er1
5544  ac_status=$?
5545  grep -v '^ *+' conftest.er1 >conftest.err
5546  rm -f conftest.er1
5547  cat conftest.err >&5
5548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549  (exit $ac_status); } &&
5550         { ac_try='test -z "$ac_cxx_werror_flag"
5551                         || test ! -s conftest.err'
5552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553  (eval $ac_try) 2>&5
5554  ac_status=$?
5555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556  (exit $ac_status); }; } &&
5557         { ac_try='test -s conftest.$ac_objext'
5558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559  (eval $ac_try) 2>&5
5560  ac_status=$?
5561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562  (exit $ac_status); }; }; then
5563  ac_compiler_gnu=yes
5564else
5565  echo "$as_me: failed program was:" >&5
5566sed 's/^/| /' conftest.$ac_ext >&5
5567
5568ac_compiler_gnu=no
5569fi
5570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5571ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5572
5573fi
5574echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5575echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5576GXX=`test $ac_compiler_gnu = yes && echo yes`
5577ac_test_CXXFLAGS=${CXXFLAGS+set}
5578ac_save_CXXFLAGS=$CXXFLAGS
5579CXXFLAGS="-g"
5580echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5581echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5582if test "${ac_cv_prog_cxx_g+set}" = set; then
5583  echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585  cat >conftest.$ac_ext <<_ACEOF
5586/* confdefs.h.  */
5587_ACEOF
5588cat confdefs.h >>conftest.$ac_ext
5589cat >>conftest.$ac_ext <<_ACEOF
5590/* end confdefs.h.  */
5591
5592int
5593main ()
5594{
5595
5596  ;
5597  return 0;
5598}
5599_ACEOF
5600rm -f conftest.$ac_objext
5601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602  (eval $ac_compile) 2>conftest.er1
5603  ac_status=$?
5604  grep -v '^ *+' conftest.er1 >conftest.err
5605  rm -f conftest.er1
5606  cat conftest.err >&5
5607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608  (exit $ac_status); } &&
5609         { ac_try='test -z "$ac_cxx_werror_flag"
5610                         || test ! -s conftest.err'
5611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612  (eval $ac_try) 2>&5
5613  ac_status=$?
5614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615  (exit $ac_status); }; } &&
5616         { ac_try='test -s conftest.$ac_objext'
5617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618  (eval $ac_try) 2>&5
5619  ac_status=$?
5620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621  (exit $ac_status); }; }; then
5622  ac_cv_prog_cxx_g=yes
5623else
5624  echo "$as_me: failed program was:" >&5
5625sed 's/^/| /' conftest.$ac_ext >&5
5626
5627ac_cv_prog_cxx_g=no
5628fi
5629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630fi
5631echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5632echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5633if test "$ac_test_CXXFLAGS" = set; then
5634  CXXFLAGS=$ac_save_CXXFLAGS
5635elif test $ac_cv_prog_cxx_g = yes; then
5636  if test "$GXX" = yes; then
5637    CXXFLAGS="-g -O2"
5638  else
5639    CXXFLAGS="-g"
5640  fi
5641else
5642  if test "$GXX" = yes; then
5643    CXXFLAGS="-O2"
5644  else
5645    CXXFLAGS=
5646  fi
5647fi
5648for ac_declaration in \
5649   '' \
5650   'extern "C" void std::exit (int) throw (); using std::exit;' \
5651   'extern "C" void std::exit (int); using std::exit;' \
5652   'extern "C" void exit (int) throw ();' \
5653   'extern "C" void exit (int);' \
5654   'void exit (int);'
5655do
5656  cat >conftest.$ac_ext <<_ACEOF
5657/* confdefs.h.  */
5658_ACEOF
5659cat confdefs.h >>conftest.$ac_ext
5660cat >>conftest.$ac_ext <<_ACEOF
5661/* end confdefs.h.  */
5662$ac_declaration
5663#include <stdlib.h>
5664int
5665main ()
5666{
5667exit (42);
5668  ;
5669  return 0;
5670}
5671_ACEOF
5672rm -f conftest.$ac_objext
5673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674  (eval $ac_compile) 2>conftest.er1
5675  ac_status=$?
5676  grep -v '^ *+' conftest.er1 >conftest.err
5677  rm -f conftest.er1
5678  cat conftest.err >&5
5679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680  (exit $ac_status); } &&
5681         { ac_try='test -z "$ac_cxx_werror_flag"
5682                         || test ! -s conftest.err'
5683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684  (eval $ac_try) 2>&5
5685  ac_status=$?
5686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687  (exit $ac_status); }; } &&
5688         { ac_try='test -s conftest.$ac_objext'
5689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690  (eval $ac_try) 2>&5
5691  ac_status=$?
5692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693  (exit $ac_status); }; }; then
5694  :
5695else
5696  echo "$as_me: failed program was:" >&5
5697sed 's/^/| /' conftest.$ac_ext >&5
5698
5699continue
5700fi
5701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5702  cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h.  */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h.  */
5708$ac_declaration
5709int
5710main ()
5711{
5712exit (42);
5713  ;
5714  return 0;
5715}
5716_ACEOF
5717rm -f conftest.$ac_objext
5718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5719  (eval $ac_compile) 2>conftest.er1
5720  ac_status=$?
5721  grep -v '^ *+' conftest.er1 >conftest.err
5722  rm -f conftest.er1
5723  cat conftest.err >&5
5724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725  (exit $ac_status); } &&
5726         { ac_try='test -z "$ac_cxx_werror_flag"
5727                         || test ! -s conftest.err'
5728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729  (eval $ac_try) 2>&5
5730  ac_status=$?
5731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732  (exit $ac_status); }; } &&
5733         { ac_try='test -s conftest.$ac_objext'
5734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735  (eval $ac_try) 2>&5
5736  ac_status=$?
5737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738  (exit $ac_status); }; }; then
5739  break
5740else
5741  echo "$as_me: failed program was:" >&5
5742sed 's/^/| /' conftest.$ac_ext >&5
5743
5744fi
5745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5746done
5747rm -f conftest*
5748if test -n "$ac_declaration"; then
5749  echo '#ifdef __cplusplus' >>confdefs.h
5750  echo $ac_declaration      >>confdefs.h
5751  echo '#endif'             >>confdefs.h
5752fi
5753
5754ac_ext=cc
5755ac_cpp='$CXXCPP $CPPFLAGS'
5756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5759
5760depcc="$CXX"  am_compiler_list=
5761
5762echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5763echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5764if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5765  echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5768  # We make a subdir and do the tests there.  Otherwise we can end up
5769  # making bogus files that we don't know about and never remove.  For
5770  # instance it was reported that on HP-UX the gcc test will end up
5771  # making a dummy file named `D' -- because `-MD' means `put the output
5772  # in D'.
5773  mkdir conftest.dir
5774  # Copy depcomp to subdir because otherwise we won't find it if we're
5775  # using a relative directory.
5776  cp "$am_depcomp" conftest.dir
5777  cd conftest.dir
5778  # We will build objects and dependencies in a subdirectory because
5779  # it helps to detect inapplicable dependency modes.  For instance
5780  # both Tru64's cc and ICC support -MD to output dependencies as a
5781  # side effect of compilation, but ICC will put the dependencies in
5782  # the current directory while Tru64 will put them in the object
5783  # directory.
5784  mkdir sub
5785
5786  am_cv_CXX_dependencies_compiler_type=none
5787  if test "$am_compiler_list" = ""; then
5788     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5789  fi
5790  for depmode in $am_compiler_list; do
5791    # Setup a source with many dependencies, because some compilers
5792    # like to wrap large dependency lists on column 80 (with \), and
5793    # we should not choose a depcomp mode which is confused by this.
5794    #
5795    # We need to recreate these files for each test, as the compiler may
5796    # overwrite some of them when testing with obscure command lines.
5797    # This happens at least with the AIX C compiler.
5798    : > sub/conftest.c
5799    for i in 1 2 3 4 5 6; do
5800      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5801      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5802      # Solaris 8's {/usr,}/bin/sh.
5803      touch sub/conftst$i.h
5804    done
5805    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5806
5807    case $depmode in
5808    nosideeffect)
5809      # after this tag, mechanisms are not by side-effect, so they'll
5810      # only be used when explicitly requested
5811      if test "x$enable_dependency_tracking" = xyes; then
5812        continue
5813      else
5814        break
5815      fi
5816      ;;
5817    none) break ;;
5818    esac
5819    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5820    # mode.  It turns out that the SunPro C++ compiler does not properly
5821    # handle `-M -o', and we need to detect this.
5822    if depmode=$depmode \
5823       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5824       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5825       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5826         >/dev/null 2>conftest.err &&
5827       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5828       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5829       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5830      # icc doesn't choke on unknown options, it will just issue warnings
5831      # or remarks (even with -Werror).  So we grep stderr for any message
5832      # that says an option was ignored or not supported.
5833      # When given -MP, icc 7.0 and 7.1 complain thusly:
5834      #   icc: Command line warning: ignoring option '-M'; no argument required
5835      # The diagnosis changed in icc 8.0:
5836      #   icc: Command line remark: option '-MP' not supported
5837      if (grep 'ignoring option' conftest.err ||
5838          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5839        am_cv_CXX_dependencies_compiler_type=$depmode
5840        break
5841      fi
5842    fi
5843  done
5844
5845  cd ..
5846  rm -rf conftest.dir
5847else
5848  am_cv_CXX_dependencies_compiler_type=none
5849fi
5850
5851fi
5852echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5853echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5854CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5855
5856
5857
5858if
5859  test "x$enable_dependency_tracking" != xno \
5860  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5861  am__fastdepCXX_TRUE=
5862  am__fastdepCXX_FALSE='#'
5863else
5864  am__fastdepCXX_TRUE='#'
5865  am__fastdepCXX_FALSE=
5866fi
5867
5868
5869
5870
5871if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5872    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5873    (test "X$CXX" != "Xg++"))) ; then
5874  ac_ext=cc
5875ac_cpp='$CXXCPP $CPPFLAGS'
5876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5879echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5880echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5881if test -z "$CXXCPP"; then
5882  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5883  echo $ECHO_N "(cached) $ECHO_C" >&6
5884else
5885      # Double quotes because CXXCPP needs to be expanded
5886    for CXXCPP in "$CXX -E" "/lib/cpp"
5887    do
5888      ac_preproc_ok=false
5889for ac_cxx_preproc_warn_flag in '' yes
5890do
5891  # Use a header file that comes with gcc, so configuring glibc
5892  # with a fresh cross-compiler works.
5893  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5894  # <limits.h> exists even on freestanding compilers.
5895  # On the NeXT, cc -E runs the code through the compiler's parser,
5896  # not just through cpp. "Syntax error" is here to catch this case.
5897  cat >conftest.$ac_ext <<_ACEOF
5898/* confdefs.h.  */
5899_ACEOF
5900cat confdefs.h >>conftest.$ac_ext
5901cat >>conftest.$ac_ext <<_ACEOF
5902/* end confdefs.h.  */
5903#ifdef __STDC__
5904# include <limits.h>
5905#else
5906# include <assert.h>
5907#endif
5908                     Syntax error
5909_ACEOF
5910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5911  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5912  ac_status=$?
5913  grep -v '^ *+' conftest.er1 >conftest.err
5914  rm -f conftest.er1
5915  cat conftest.err >&5
5916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917  (exit $ac_status); } >/dev/null; then
5918  if test -s conftest.err; then
5919    ac_cpp_err=$ac_cxx_preproc_warn_flag
5920    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5921  else
5922    ac_cpp_err=
5923  fi
5924else
5925  ac_cpp_err=yes
5926fi
5927if test -z "$ac_cpp_err"; then
5928  :
5929else
5930  echo "$as_me: failed program was:" >&5
5931sed 's/^/| /' conftest.$ac_ext >&5
5932
5933  # Broken: fails on valid input.
5934continue
5935fi
5936rm -f conftest.err conftest.$ac_ext
5937
5938  # OK, works on sane cases.  Now check whether non-existent headers
5939  # can be detected and how.
5940  cat >conftest.$ac_ext <<_ACEOF
5941/* confdefs.h.  */
5942_ACEOF
5943cat confdefs.h >>conftest.$ac_ext
5944cat >>conftest.$ac_ext <<_ACEOF
5945/* end confdefs.h.  */
5946#include <ac_nonexistent.h>
5947_ACEOF
5948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5949  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5950  ac_status=$?
5951  grep -v '^ *+' conftest.er1 >conftest.err
5952  rm -f conftest.er1
5953  cat conftest.err >&5
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); } >/dev/null; then
5956  if test -s conftest.err; then
5957    ac_cpp_err=$ac_cxx_preproc_warn_flag
5958    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5959  else
5960    ac_cpp_err=
5961  fi
5962else
5963  ac_cpp_err=yes
5964fi
5965if test -z "$ac_cpp_err"; then
5966  # Broken: success on invalid input.
5967continue
5968else
5969  echo "$as_me: failed program was:" >&5
5970sed 's/^/| /' conftest.$ac_ext >&5
5971
5972  # Passes both tests.
5973ac_preproc_ok=:
5974break
5975fi
5976rm -f conftest.err conftest.$ac_ext
5977
5978done
5979# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5980rm -f conftest.err conftest.$ac_ext
5981if $ac_preproc_ok; then
5982  break
5983fi
5984
5985    done
5986    ac_cv_prog_CXXCPP=$CXXCPP
5987
5988fi
5989  CXXCPP=$ac_cv_prog_CXXCPP
5990else
5991  ac_cv_prog_CXXCPP=$CXXCPP
5992fi
5993echo "$as_me:$LINENO: result: $CXXCPP" >&5
5994echo "${ECHO_T}$CXXCPP" >&6
5995ac_preproc_ok=false
5996for ac_cxx_preproc_warn_flag in '' yes
5997do
5998  # Use a header file that comes with gcc, so configuring glibc
5999  # with a fresh cross-compiler works.
6000  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6001  # <limits.h> exists even on freestanding compilers.
6002  # On the NeXT, cc -E runs the code through the compiler's parser,
6003  # not just through cpp. "Syntax error" is here to catch this case.
6004  cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h.  */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
6009/* end confdefs.h.  */
6010#ifdef __STDC__
6011# include <limits.h>
6012#else
6013# include <assert.h>
6014#endif
6015                     Syntax error
6016_ACEOF
6017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6018  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6019  ac_status=$?
6020  grep -v '^ *+' conftest.er1 >conftest.err
6021  rm -f conftest.er1
6022  cat conftest.err >&5
6023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024  (exit $ac_status); } >/dev/null; then
6025  if test -s conftest.err; then
6026    ac_cpp_err=$ac_cxx_preproc_warn_flag
6027    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6028  else
6029    ac_cpp_err=
6030  fi
6031else
6032  ac_cpp_err=yes
6033fi
6034if test -z "$ac_cpp_err"; then
6035  :
6036else
6037  echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040  # Broken: fails on valid input.
6041continue
6042fi
6043rm -f conftest.err conftest.$ac_ext
6044
6045  # OK, works on sane cases.  Now check whether non-existent headers
6046  # can be detected and how.
6047  cat >conftest.$ac_ext <<_ACEOF
6048/* confdefs.h.  */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
6052/* end confdefs.h.  */
6053#include <ac_nonexistent.h>
6054_ACEOF
6055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6056  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6057  ac_status=$?
6058  grep -v '^ *+' conftest.er1 >conftest.err
6059  rm -f conftest.er1
6060  cat conftest.err >&5
6061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062  (exit $ac_status); } >/dev/null; then
6063  if test -s conftest.err; then
6064    ac_cpp_err=$ac_cxx_preproc_warn_flag
6065    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6066  else
6067    ac_cpp_err=
6068  fi
6069else
6070  ac_cpp_err=yes
6071fi
6072if test -z "$ac_cpp_err"; then
6073  # Broken: success on invalid input.
6074continue
6075else
6076  echo "$as_me: failed program was:" >&5
6077sed 's/^/| /' conftest.$ac_ext >&5
6078
6079  # Passes both tests.
6080ac_preproc_ok=:
6081break
6082fi
6083rm -f conftest.err conftest.$ac_ext
6084
6085done
6086# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6087rm -f conftest.err conftest.$ac_ext
6088if $ac_preproc_ok; then
6089  :
6090else
6091  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6092See \`config.log' for more details." >&5
6093echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6094See \`config.log' for more details." >&2;}
6095   { (exit 1); exit 1; }; }
6096fi
6097
6098ac_ext=cc
6099ac_cpp='$CXXCPP $CPPFLAGS'
6100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6103
6104fi
6105
6106
6107
6108# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6109
6110# find the maximum length of command line arguments
6111echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6112echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6113if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6114  echo $ECHO_N "(cached) $ECHO_C" >&6
6115else
6116    i=0
6117  teststring="ABCD"
6118
6119  case $build_os in
6120  msdosdjgpp*)
6121    # On DJGPP, this test can blow up pretty badly due to problems in libc
6122    # (any single argument exceeding 2000 bytes causes a buffer overrun
6123    # during glob expansion).  Even if it were fixed, the result of this
6124    # check would be larger than it should be.
6125    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6126    ;;
6127
6128  gnu*)
6129    # Under GNU Hurd, this test is not required because there is
6130    # no limit to the length of command line arguments.
6131    # Libtool will interpret -1 as no limit whatsoever
6132    lt_cv_sys_max_cmd_len=-1;
6133    ;;
6134
6135  cygwin* | mingw*)
6136    # On Win9x/ME, this test blows up -- it succeeds, but takes
6137    # about 5 minutes as the teststring grows exponentially.
6138    # Worse, since 9x/ME are not pre-emptively multitasking,
6139    # you end up with a "frozen" computer, even though with patience
6140    # the test eventually succeeds (with a max line length of 256k).
6141    # Instead, let's just punt: use the minimum linelength reported by
6142    # all of the supported platforms: 8192 (on NT/2K/XP).
6143    lt_cv_sys_max_cmd_len=8192;
6144    ;;
6145
6146  amigaos*)
6147    # On AmigaOS with pdksh, this test takes hours, literally.
6148    # So we just punt and use a minimum line length of 8192.
6149    lt_cv_sys_max_cmd_len=8192;
6150    ;;
6151
6152  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6153    # This has been around since 386BSD, at least.  Likely further.
6154    if test -x /sbin/sysctl; then
6155      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6156    elif test -x /usr/sbin/sysctl; then
6157      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6158    else
6159      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6160    fi
6161    # And add a safety zone
6162    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6163    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6164    ;;
6165
6166  interix*)
6167    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6168    lt_cv_sys_max_cmd_len=196608
6169    ;;
6170
6171  osf*)
6172    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6173    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6174    # nice to cause kernel panics so lets avoid the loop below.
6175    # First set a reasonable default.
6176    lt_cv_sys_max_cmd_len=16384
6177    #
6178    if test -x /sbin/sysconfig; then
6179      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6180        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6181      esac
6182    fi
6183    ;;
6184  sco3.2v5*)
6185    lt_cv_sys_max_cmd_len=102400
6186    ;;
6187  sysv5* | sco5v6* | sysv4.2uw2*)
6188    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6189    if test -n "$kargmax"; then
6190      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6191    else
6192      lt_cv_sys_max_cmd_len=32768
6193    fi
6194    ;;
6195  *)
6196    # If test is not a shell built-in, we'll probably end up computing a
6197    # maximum length that is only half of the actual maximum length, but
6198    # we can't tell.
6199    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6200    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6201               = "XX$teststring") >/dev/null 2>&1 &&
6202            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6203            lt_cv_sys_max_cmd_len=$new_result &&
6204            test $i != 17 # 1/2 MB should be enough
6205    do
6206      i=`expr $i + 1`
6207      teststring=$teststring$teststring
6208    done
6209    teststring=
6210    # Add a significant safety factor because C++ compilers can tack on massive
6211    # amounts of additional arguments before passing them to the linker.
6212    # It appears as though 1/2 is a usable value.
6213    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6214    ;;
6215  esac
6216
6217fi
6218
6219if test -n $lt_cv_sys_max_cmd_len ; then
6220  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6221echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6222else
6223  echo "$as_me:$LINENO: result: none" >&5
6224echo "${ECHO_T}none" >&6
6225fi
6226
6227
6228
6229
6230# Check for command to grab the raw symbol name followed by C symbol from nm.
6231echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6232echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6233if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6234  echo $ECHO_N "(cached) $ECHO_C" >&6
6235else
6236
6237# These are sane defaults that work on at least a few old systems.
6238# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6239
6240# Character class describing NM global symbol codes.
6241symcode='[BCDEGRST]'
6242
6243# Regexp to match symbols that can be accessed directly from C.
6244sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6245
6246# Transform an extracted symbol line into a proper C declaration
6247lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6248
6249# Transform an extracted symbol line into symbol name and symbol address
6250lt_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
6252# Define system-specific variables.
6253case $host_os in
6254aix*)
6255  symcode='[BCDT]'
6256  ;;
6257cygwin* | mingw* | pw32*)
6258  symcode='[ABCDGISTW]'
6259  ;;
6260hpux*) # Its linker distinguishes data from code symbols
6261  if test "$host_cpu" = ia64; then
6262    symcode='[ABCDEGRST]'
6263  fi
6264  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6265  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'"
6266  ;;
6267linux*)
6268  if test "$host_cpu" = ia64; then
6269    symcode='[ABCDGIRSTW]'
6270    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6271    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'"
6272  fi
6273  ;;
6274irix* | nonstopux*)
6275  symcode='[BCDEGRST]'
6276  ;;
6277osf*)
6278  symcode='[BCDEGQRST]'
6279  ;;
6280solaris*)
6281  symcode='[BDRT]'
6282  ;;
6283sco3.2v5*)
6284  symcode='[DT]'
6285  ;;
6286sysv4.2uw2*)
6287  symcode='[DT]'
6288  ;;
6289sysv5* | sco5v6* | unixware* | OpenUNIX*)
6290  symcode='[ABDT]'
6291  ;;
6292sysv4)
6293  symcode='[DFNSTU]'
6294  ;;
6295esac
6296
6297# Handle CRLF in mingw tool chain
6298opt_cr=
6299case $build_os in
6300mingw*)
6301  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6302  ;;
6303esac
6304
6305# If we're using GNU nm, then use its standard symbol codes.
6306case `$NM -V 2>&1` in
6307*GNU* | *'with BFD'*)
6308  symcode='[ABCDGIRSTW]' ;;
6309esac
6310
6311# Try without a prefix undercore, then with it.
6312for ac_symprfx in "" "_"; do
6313
6314  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6315  symxfrm="\\1 $ac_symprfx\\2 \\2"
6316
6317  # Write the raw and C identifiers.
6318  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6319
6320  # Check to see that the pipe works correctly.
6321  pipe_works=no
6322
6323  rm -f conftest*
6324  cat > conftest.$ac_ext <<EOF
6325#ifdef __cplusplus
6326extern "C" {
6327#endif
6328char nm_test_var;
6329void nm_test_func(){}
6330#ifdef __cplusplus
6331}
6332#endif
6333int main(){nm_test_var='a';nm_test_func();return(0);}
6334EOF
6335
6336  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337  (eval $ac_compile) 2>&5
6338  ac_status=$?
6339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340  (exit $ac_status); }; then
6341    # Now try to grab the symbols.
6342    nlist=conftest.nm
6343    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6344  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6345  ac_status=$?
6346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347  (exit $ac_status); } && test -s "$nlist"; then
6348      # Try sorting and uniquifying the output.
6349      if sort "$nlist" | uniq > "$nlist"T; then
6350        mv -f "$nlist"T "$nlist"
6351      else
6352        rm -f "$nlist"T
6353      fi
6354
6355      # Make sure that we snagged all the symbols we need.
6356      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6357        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6358          cat <<EOF > conftest.$ac_ext
6359#ifdef __cplusplus
6360extern "C" {
6361#endif
6362
6363EOF
6364          # Now generate the symbol file.
6365          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6366
6367          cat <<EOF >> conftest.$ac_ext
6368#if defined (__STDC__) && __STDC__
6369# define lt_ptr_t void *
6370#else
6371# define lt_ptr_t char *
6372# define const
6373#endif
6374
6375/* The mapping between symbol names and symbols. */
6376const struct {
6377  const char *name;
6378  lt_ptr_t address;
6379}
6380lt_preloaded_symbols[] =
6381{
6382EOF
6383          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6384          cat <<\EOF >> conftest.$ac_ext
6385  {0, (lt_ptr_t) 0}
6386};
6387
6388#ifdef __cplusplus
6389}
6390#endif
6391EOF
6392          # Now try linking the two files.
6393          mv conftest.$ac_objext conftstm.$ac_objext
6394          lt_save_LIBS="$LIBS"
6395          lt_save_CFLAGS="$CFLAGS"
6396          LIBS="conftstm.$ac_objext"
6397          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6398          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399  (eval $ac_link) 2>&5
6400  ac_status=$?
6401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6403            pipe_works=yes
6404          fi
6405          LIBS="$lt_save_LIBS"
6406          CFLAGS="$lt_save_CFLAGS"
6407        else
6408          echo "cannot find nm_test_func in $nlist" >&5
6409        fi
6410      else
6411        echo "cannot find nm_test_var in $nlist" >&5
6412      fi
6413    else
6414      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6415    fi
6416  else
6417    echo "$progname: failed program was:" >&5
6418    cat conftest.$ac_ext >&5
6419  fi
6420  rm -f conftest* conftst*
6421
6422  # Do not use the global_symbol_pipe unless it works.
6423  if test "$pipe_works" = yes; then
6424    break
6425  else
6426    lt_cv_sys_global_symbol_pipe=
6427  fi
6428done
6429
6430fi
6431
6432if test -z "$lt_cv_sys_global_symbol_pipe"; then
6433  lt_cv_sys_global_symbol_to_cdecl=
6434fi
6435if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6436  echo "$as_me:$LINENO: result: failed" >&5
6437echo "${ECHO_T}failed" >&6
6438else
6439  echo "$as_me:$LINENO: result: ok" >&5
6440echo "${ECHO_T}ok" >&6
6441fi
6442
6443echo "$as_me:$LINENO: checking for objdir" >&5
6444echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6445if test "${lt_cv_objdir+set}" = set; then
6446  echo $ECHO_N "(cached) $ECHO_C" >&6
6447else
6448  rm -f .libs 2>/dev/null
6449mkdir .libs 2>/dev/null
6450if test -d .libs; then
6451  lt_cv_objdir=.libs
6452else
6453  # MS-DOS does not allow filenames that begin with a dot.
6454  lt_cv_objdir=_libs
6455fi
6456rmdir .libs 2>/dev/null
6457fi
6458echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6459echo "${ECHO_T}$lt_cv_objdir" >&6
6460objdir=$lt_cv_objdir
6461
6462
6463
6464
6465
6466case $host_os in
6467aix3*)
6468  # AIX sometimes has problems with the GCC collect2 program.  For some
6469  # reason, if we set the COLLECT_NAMES environment variable, the problems
6470  # vanish in a puff of smoke.
6471  if test "X${COLLECT_NAMES+set}" != Xset; then
6472    COLLECT_NAMES=
6473    export COLLECT_NAMES
6474  fi
6475  ;;
6476esac
6477
6478# Sed substitution that helps us do robust quoting.  It backslashifies
6479# metacharacters that are still active within double-quoted strings.
6480Xsed='sed -e 1s/^X//'
6481sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6482
6483# Same as above, but do not quote variable references.
6484double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6485
6486# Sed substitution to delay expansion of an escaped shell variable in a
6487# double_quote_subst'ed string.
6488delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6489
6490# Sed substitution to avoid accidental globbing in evaled expressions
6491no_glob_subst='s/\*/\\\*/g'
6492
6493# Constants:
6494rm="rm -f"
6495
6496# Global variables:
6497default_ofile=libtool
6498can_build_shared=yes
6499
6500# All known linkers require a `.a' archive for static linking (except MSVC,
6501# which needs '.lib').
6502libext=a
6503ltmain="$ac_aux_dir/ltmain.sh"
6504ofile="$default_ofile"
6505with_gnu_ld="$lt_cv_prog_gnu_ld"
6506
6507if test -n "$ac_tool_prefix"; then
6508  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6509set dummy ${ac_tool_prefix}ar; ac_word=$2
6510echo "$as_me:$LINENO: checking for $ac_word" >&5
6511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6512if test "${ac_cv_prog_AR+set}" = set; then
6513  echo $ECHO_N "(cached) $ECHO_C" >&6
6514else
6515  if test -n "$AR"; then
6516  ac_cv_prog_AR="$AR" # Let the user override the test.
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521  IFS=$as_save_IFS
6522  test -z "$as_dir" && as_dir=.
6523  for ac_exec_ext in '' $ac_executable_extensions; do
6524  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525    ac_cv_prog_AR="${ac_tool_prefix}ar"
6526    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527    break 2
6528  fi
6529done
6530done
6531
6532fi
6533fi
6534AR=$ac_cv_prog_AR
6535if test -n "$AR"; then
6536  echo "$as_me:$LINENO: result: $AR" >&5
6537echo "${ECHO_T}$AR" >&6
6538else
6539  echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6
6541fi
6542
6543fi
6544if test -z "$ac_cv_prog_AR"; then
6545  ac_ct_AR=$AR
6546  # Extract the first word of "ar", so it can be a program name with args.
6547set dummy ar; ac_word=$2
6548echo "$as_me:$LINENO: checking for $ac_word" >&5
6549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6550if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6551  echo $ECHO_N "(cached) $ECHO_C" >&6
6552else
6553  if test -n "$ac_ct_AR"; then
6554  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6555else
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559  IFS=$as_save_IFS
6560  test -z "$as_dir" && as_dir=.
6561  for ac_exec_ext in '' $ac_executable_extensions; do
6562  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563    ac_cv_prog_ac_ct_AR="ar"
6564    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565    break 2
6566  fi
6567done
6568done
6569
6570  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6571fi
6572fi
6573ac_ct_AR=$ac_cv_prog_ac_ct_AR
6574if test -n "$ac_ct_AR"; then
6575  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6576echo "${ECHO_T}$ac_ct_AR" >&6
6577else
6578  echo "$as_me:$LINENO: result: no" >&5
6579echo "${ECHO_T}no" >&6
6580fi
6581
6582  AR=$ac_ct_AR
6583else
6584  AR="$ac_cv_prog_AR"
6585fi
6586
6587if test -n "$ac_tool_prefix"; then
6588  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6589set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6590echo "$as_me:$LINENO: checking for $ac_word" >&5
6591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6592if test "${ac_cv_prog_RANLIB+set}" = set; then
6593  echo $ECHO_N "(cached) $ECHO_C" >&6
6594else
6595  if test -n "$RANLIB"; then
6596  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6597else
6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601  IFS=$as_save_IFS
6602  test -z "$as_dir" && as_dir=.
6603  for ac_exec_ext in '' $ac_executable_extensions; do
6604  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6605    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6606    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607    break 2
6608  fi
6609done
6610done
6611
6612fi
6613fi
6614RANLIB=$ac_cv_prog_RANLIB
6615if test -n "$RANLIB"; then
6616  echo "$as_me:$LINENO: result: $RANLIB" >&5
6617echo "${ECHO_T}$RANLIB" >&6
6618else
6619  echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6
6621fi
6622
6623fi
6624if test -z "$ac_cv_prog_RANLIB"; then
6625  ac_ct_RANLIB=$RANLIB
6626  # Extract the first word of "ranlib", so it can be a program name with args.
6627set dummy ranlib; ac_word=$2
6628echo "$as_me:$LINENO: checking for $ac_word" >&5
6629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6630if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6631  echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633  if test -n "$ac_ct_RANLIB"; then
6634  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6635else
6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639  IFS=$as_save_IFS
6640  test -z "$as_dir" && as_dir=.
6641  for ac_exec_ext in '' $ac_executable_extensions; do
6642  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6643    ac_cv_prog_ac_ct_RANLIB="ranlib"
6644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645    break 2
6646  fi
6647done
6648done
6649
6650  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6651fi
6652fi
6653ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6654if test -n "$ac_ct_RANLIB"; then
6655  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6656echo "${ECHO_T}$ac_ct_RANLIB" >&6
6657else
6658  echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6
6660fi
6661
6662  RANLIB=$ac_ct_RANLIB
6663else
6664  RANLIB="$ac_cv_prog_RANLIB"
6665fi
6666
6667if test -n "$ac_tool_prefix"; then
6668  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6669set dummy ${ac_tool_prefix}strip; ac_word=$2
6670echo "$as_me:$LINENO: checking for $ac_word" >&5
6671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6672if test "${ac_cv_prog_STRIP+set}" = set; then
6673  echo $ECHO_N "(cached) $ECHO_C" >&6
6674else
6675  if test -n "$STRIP"; then
6676  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6677else
6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681  IFS=$as_save_IFS
6682  test -z "$as_dir" && as_dir=.
6683  for ac_exec_ext in '' $ac_executable_extensions; do
6684  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6686    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687    break 2
6688  fi
6689done
6690done
6691
6692fi
6693fi
6694STRIP=$ac_cv_prog_STRIP
6695if test -n "$STRIP"; then
6696  echo "$as_me:$LINENO: result: $STRIP" >&5
6697echo "${ECHO_T}$STRIP" >&6
6698else
6699  echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6
6701fi
6702
6703fi
6704if test -z "$ac_cv_prog_STRIP"; then
6705  ac_ct_STRIP=$STRIP
6706  # Extract the first word of "strip", so it can be a program name with args.
6707set dummy strip; ac_word=$2
6708echo "$as_me:$LINENO: checking for $ac_word" >&5
6709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6710if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6711  echo $ECHO_N "(cached) $ECHO_C" >&6
6712else
6713  if test -n "$ac_ct_STRIP"; then
6714  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6715else
6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719  IFS=$as_save_IFS
6720  test -z "$as_dir" && as_dir=.
6721  for ac_exec_ext in '' $ac_executable_extensions; do
6722  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723    ac_cv_prog_ac_ct_STRIP="strip"
6724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725    break 2
6726  fi
6727done
6728done
6729
6730  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6731fi
6732fi
6733ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6734if test -n "$ac_ct_STRIP"; then
6735  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6736echo "${ECHO_T}$ac_ct_STRIP" >&6
6737else
6738  echo "$as_me:$LINENO: result: no" >&5
6739echo "${ECHO_T}no" >&6
6740fi
6741
6742  STRIP=$ac_ct_STRIP
6743else
6744  STRIP="$ac_cv_prog_STRIP"
6745fi
6746
6747
6748old_CC="$CC"
6749old_CFLAGS="$CFLAGS"
6750
6751# Set sane defaults for various variables
6752test -z "$AR" && AR=ar
6753test -z "$AR_FLAGS" && AR_FLAGS=cru
6754test -z "$AS" && AS=as
6755test -z "$CC" && CC=cc
6756test -z "$LTCC" && LTCC=$CC
6757test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6758test -z "$DLLTOOL" && DLLTOOL=dlltool
6759test -z "$LD" && LD=ld
6760test -z "$LN_S" && LN_S="ln -s"
6761test -z "$MAGIC_CMD" && MAGIC_CMD=file
6762test -z "$NM" && NM=nm
6763test -z "$SED" && SED=sed
6764test -z "$OBJDUMP" && OBJDUMP=objdump
6765test -z "$RANLIB" && RANLIB=:
6766test -z "$STRIP" && STRIP=:
6767test -z "$ac_objext" && ac_objext=o
6768
6769# Determine commands to create old-style static archives.
6770old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6771old_postinstall_cmds='chmod 644 $oldlib'
6772old_postuninstall_cmds=
6773
6774if test -n "$RANLIB"; then
6775  case $host_os in
6776  openbsd*)
6777    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6778    ;;
6779  *)
6780    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6781    ;;
6782  esac
6783  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6784fi
6785
6786for cc_temp in $compiler""; do
6787  case $cc_temp in
6788    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6789    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6790    \-*) ;;
6791    *) break;;
6792  esac
6793done
6794cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6795
6796
6797# Only perform the check for file, if the check method requires it
6798case $deplibs_check_method in
6799file_magic*)
6800  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6801    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6802echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6803if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6804  echo $ECHO_N "(cached) $ECHO_C" >&6
6805else
6806  case $MAGIC_CMD in
6807[\\/*] |  ?:[\\/]*)
6808  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6809  ;;
6810*)
6811  lt_save_MAGIC_CMD="$MAGIC_CMD"
6812  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6813  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6814  for ac_dir in $ac_dummy; do
6815    IFS="$lt_save_ifs"
6816    test -z "$ac_dir" && ac_dir=.
6817    if test -f $ac_dir/${ac_tool_prefix}file; then
6818      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6819      if test -n "$file_magic_test_file"; then
6820        case $deplibs_check_method in
6821        "file_magic "*)
6822          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6823          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6824          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6825            $EGREP "$file_magic_regex" > /dev/null; then
6826            :
6827          else
6828            cat <<EOF 1>&2
6829
6830*** Warning: the command libtool uses to detect shared libraries,
6831*** $file_magic_cmd, produces output that libtool cannot recognize.
6832*** The result is that libtool may fail to recognize shared libraries
6833*** as such.  This will affect the creation of libtool libraries that
6834*** depend on shared libraries, but programs linked with such libtool
6835*** libraries will work regardless of this problem.  Nevertheless, you
6836*** may want to report the problem to your system manager and/or to
6837*** bug-libtool@gnu.org
6838
6839EOF
6840          fi ;;
6841        esac
6842      fi
6843      break
6844    fi
6845  done
6846  IFS="$lt_save_ifs"
6847  MAGIC_CMD="$lt_save_MAGIC_CMD"
6848  ;;
6849esac
6850fi
6851
6852MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6853if test -n "$MAGIC_CMD"; then
6854  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6855echo "${ECHO_T}$MAGIC_CMD" >&6
6856else
6857  echo "$as_me:$LINENO: result: no" >&5
6858echo "${ECHO_T}no" >&6
6859fi
6860
6861if test -z "$lt_cv_path_MAGIC_CMD"; then
6862  if test -n "$ac_tool_prefix"; then
6863    echo "$as_me:$LINENO: checking for file" >&5
6864echo $ECHO_N "checking for file... $ECHO_C" >&6
6865if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6866  echo $ECHO_N "(cached) $ECHO_C" >&6
6867else
6868  case $MAGIC_CMD in
6869[\\/*] |  ?:[\\/]*)
6870  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6871  ;;
6872*)
6873  lt_save_MAGIC_CMD="$MAGIC_CMD"
6874  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6875  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6876  for ac_dir in $ac_dummy; do
6877    IFS="$lt_save_ifs"
6878    test -z "$ac_dir" && ac_dir=.
6879    if test -f $ac_dir/file; then
6880      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6881      if test -n "$file_magic_test_file"; then
6882        case $deplibs_check_method in
6883        "file_magic "*)
6884          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6885          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6886          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6887            $EGREP "$file_magic_regex" > /dev/null; then
6888            :
6889          else
6890            cat <<EOF 1>&2
6891
6892*** Warning: the command libtool uses to detect shared libraries,
6893*** $file_magic_cmd, produces output that libtool cannot recognize.
6894*** The result is that libtool may fail to recognize shared libraries
6895*** as such.  This will affect the creation of libtool libraries that
6896*** depend on shared libraries, but programs linked with such libtool
6897*** libraries will work regardless of this problem.  Nevertheless, you
6898*** may want to report the problem to your system manager and/or to
6899*** bug-libtool@gnu.org
6900
6901EOF
6902          fi ;;
6903        esac
6904      fi
6905      break
6906    fi
6907  done
6908  IFS="$lt_save_ifs"
6909  MAGIC_CMD="$lt_save_MAGIC_CMD"
6910  ;;
6911esac
6912fi
6913
6914MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6915if test -n "$MAGIC_CMD"; then
6916  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6917echo "${ECHO_T}$MAGIC_CMD" >&6
6918else
6919  echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6
6921fi
6922
6923  else
6924    MAGIC_CMD=:
6925  fi
6926fi
6927
6928  fi
6929  ;;
6930esac
6931
6932enable_dlopen=no
6933enable_win32_dll=no
6934
6935# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6936if test "${enable_libtool_lock+set}" = set; then
6937  enableval="$enable_libtool_lock"
6938
6939fi;
6940test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6941
6942
6943# Check whether --with-pic or --without-pic was given.
6944if test "${with_pic+set}" = set; then
6945  withval="$with_pic"
6946  pic_mode="$withval"
6947else
6948  pic_mode=default
6949fi;
6950test -z "$pic_mode" && pic_mode=default
6951
6952# Use C for the default configuration in the libtool script
6953tagname=
6954lt_save_CC="$CC"
6955ac_ext=c
6956ac_cpp='$CPP $CPPFLAGS'
6957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959ac_compiler_gnu=$ac_cv_c_compiler_gnu
6960
6961
6962# Source file extension for C test sources.
6963ac_ext=c
6964
6965# Object file extension for compiled C test sources.
6966objext=o
6967objext=$objext
6968
6969# Code to be used in simple compile tests
6970lt_simple_compile_test_code="int some_variable = 0;\n"
6971
6972# Code to be used in simple link tests
6973lt_simple_link_test_code='int main(){return(0);}\n'
6974
6975
6976# If no C compiler was specified, use CC.
6977LTCC=${LTCC-"$CC"}
6978
6979# If no C compiler flags were specified, use CFLAGS.
6980LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6981
6982# Allow CC to be a program name with arguments.
6983compiler=$CC
6984
6985
6986# save warnings/boilerplate of simple test code
6987ac_outfile=conftest.$ac_objext
6988printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6989eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6990_lt_compiler_boilerplate=`cat conftest.err`
6991$rm conftest*
6992
6993ac_outfile=conftest.$ac_objext
6994printf "$lt_simple_link_test_code" >conftest.$ac_ext
6995eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6996_lt_linker_boilerplate=`cat conftest.err`
6997$rm conftest*
6998
6999
7000## CAVEAT EMPTOR:
7001## There is no encapsulation within the following macros, do not change
7002## the running order or otherwise move them around unless you know exactly
7003## what you are doing...
7004
7005lt_prog_compiler_no_builtin_flag=
7006
7007if test "$GCC" = yes; then
7008  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7009
7010
7011echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7012echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7013if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7014  echo $ECHO_N "(cached) $ECHO_C" >&6
7015else
7016  lt_cv_prog_compiler_rtti_exceptions=no
7017  ac_outfile=conftest.$ac_objext
7018   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7019   lt_compiler_flag="-fno-rtti -fno-exceptions"
7020   # Insert the option either (1) after the last *FLAGS variable, or
7021   # (2) before a word containing "conftest.", or (3) at the end.
7022   # Note that $ac_compile itself does not contain backslashes and begins
7023   # with a dollar sign (not a hyphen), so the echo should work correctly.
7024   # The option is referenced via a variable to avoid confusing sed.
7025   lt_compile=`echo "$ac_compile" | $SED \
7026   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7027   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7028   -e 's:$: $lt_compiler_flag:'`
7029   (eval echo "\"\$as_me:7029: $lt_compile\"" >&5)
7030   (eval "$lt_compile" 2>conftest.err)
7031   ac_status=$?
7032   cat conftest.err >&5
7033   echo "$as_me:7033: \$? = $ac_status" >&5
7034   if (exit $ac_status) && test -s "$ac_outfile"; then
7035     # The compiler can only warn and ignore the option if not recognized
7036     # So say no if there are warnings other than the usual output.
7037     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7038     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7039     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7040       lt_cv_prog_compiler_rtti_exceptions=yes
7041     fi
7042   fi
7043   $rm conftest*
7044
7045fi
7046echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7047echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7048
7049if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7050    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7051else
7052    :
7053fi
7054
7055fi
7056
7057lt_prog_compiler_wl=
7058lt_prog_compiler_pic=
7059lt_prog_compiler_static=
7060
7061echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7062echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7063
7064  if test "$GCC" = yes; then
7065    lt_prog_compiler_wl='-Wl,'
7066    lt_prog_compiler_static='-static'
7067
7068    case $host_os in
7069      aix*)
7070      # All AIX code is PIC.
7071      if test "$host_cpu" = ia64; then
7072        # AIX 5 now supports IA64 processor
7073        lt_prog_compiler_static='-Bstatic'
7074      fi
7075      ;;
7076
7077    amigaos*)
7078      # FIXME: we need at least 68020 code to build shared libraries, but
7079      # adding the `-m68020' flag to GCC prevents building anything better,
7080      # like `-m68040'.
7081      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7082      ;;
7083
7084    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7085      # PIC is the default for these OSes.
7086      ;;
7087
7088    mingw* | pw32* | os2*)
7089      # This hack is so that the source file can tell whether it is being
7090      # built for inclusion in a dll (and should export symbols for example).
7091      lt_prog_compiler_pic='-DDLL_EXPORT'
7092      ;;
7093
7094    darwin* | rhapsody*)
7095      # PIC is the default on this platform
7096      # Common symbols not allowed in MH_DYLIB files
7097      lt_prog_compiler_pic='-fno-common'
7098      ;;
7099
7100    interix3*)
7101      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7102      # Instead, we relocate shared libraries at runtime.
7103      ;;
7104
7105    msdosdjgpp*)
7106      # Just because we use GCC doesn't mean we suddenly get shared libraries
7107      # on systems that don't support them.
7108      lt_prog_compiler_can_build_shared=no
7109      enable_shared=no
7110      ;;
7111
7112    sysv4*MP*)
7113      if test -d /usr/nec; then
7114        lt_prog_compiler_pic=-Kconform_pic
7115      fi
7116      ;;
7117
7118    hpux*)
7119      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7120      # not for PA HP-UX.
7121      case $host_cpu in
7122      hppa*64*|ia64*)
7123        # +Z the default
7124        ;;
7125      *)
7126        lt_prog_compiler_pic='-fPIC'
7127        ;;
7128      esac
7129      ;;
7130
7131    *)
7132      lt_prog_compiler_pic='-fPIC'
7133      ;;
7134    esac
7135  else
7136    # PORTME Check for flag to pass linker flags through the system compiler.
7137    case $host_os in
7138    aix*)
7139      lt_prog_compiler_wl='-Wl,'
7140      if test "$host_cpu" = ia64; then
7141        # AIX 5 now supports IA64 processor
7142        lt_prog_compiler_static='-Bstatic'
7143      else
7144        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7145      fi
7146      ;;
7147      darwin*)
7148        # PIC is the default on this platform
7149        # Common symbols not allowed in MH_DYLIB files
7150       case $cc_basename in
7151         xlc*)
7152         lt_prog_compiler_pic='-qnocommon'
7153         lt_prog_compiler_wl='-Wl,'
7154         ;;
7155       esac
7156       ;;
7157
7158    mingw* | pw32* | os2*)
7159      # This hack is so that the source file can tell whether it is being
7160      # built for inclusion in a dll (and should export symbols for example).
7161      lt_prog_compiler_pic='-DDLL_EXPORT'
7162      ;;
7163
7164    hpux9* | hpux10* | hpux11*)
7165      lt_prog_compiler_wl='-Wl,'
7166      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7167      # not for PA HP-UX.
7168      case $host_cpu in
7169      hppa*64*|ia64*)
7170        # +Z the default
7171        ;;
7172      *)
7173        lt_prog_compiler_pic='+Z'
7174        ;;
7175      esac
7176      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7177      lt_prog_compiler_static='${wl}-a ${wl}archive'
7178      ;;
7179
7180    irix5* | irix6* | nonstopux*)
7181      lt_prog_compiler_wl='-Wl,'
7182      # PIC (with -KPIC) is the default.
7183      lt_prog_compiler_static='-non_shared'
7184      ;;
7185
7186    newsos6)
7187      lt_prog_compiler_pic='-KPIC'
7188      lt_prog_compiler_static='-Bstatic'
7189      ;;
7190
7191    linux*)
7192      case $cc_basename in
7193      icc* | ecc*)
7194        lt_prog_compiler_wl='-Wl,'
7195        lt_prog_compiler_pic='-KPIC'
7196        lt_prog_compiler_static='-static'
7197        ;;
7198      pgcc* | pgf77* | pgf90* | pgf95*)
7199        # Portland Group compilers (*not* the Pentium gcc compiler,
7200        # which looks to be a dead project)
7201        lt_prog_compiler_wl='-Wl,'
7202        lt_prog_compiler_pic='-fpic'
7203        lt_prog_compiler_static='-Bstatic'
7204        ;;
7205      ccc*)
7206        lt_prog_compiler_wl='-Wl,'
7207        # All Alpha code is PIC.
7208        lt_prog_compiler_static='-non_shared'
7209        ;;
7210      esac
7211      ;;
7212
7213    osf3* | osf4* | osf5*)
7214      lt_prog_compiler_wl='-Wl,'
7215      # All OSF/1 code is PIC.
7216      lt_prog_compiler_static='-non_shared'
7217      ;;
7218
7219    solaris*)
7220      lt_prog_compiler_pic='-KPIC'
7221      lt_prog_compiler_static='-Bstatic'
7222      case $cc_basename in
7223      f77* | f90* | f95*)
7224        lt_prog_compiler_wl='-Qoption ld ';;
7225      *)
7226        lt_prog_compiler_wl='-Wl,';;
7227      esac
7228      ;;
7229
7230    sunos4*)
7231      lt_prog_compiler_wl='-Qoption ld '
7232      lt_prog_compiler_pic='-PIC'
7233      lt_prog_compiler_static='-Bstatic'
7234      ;;
7235
7236    sysv4 | sysv4.2uw2* | sysv4.3*)
7237      lt_prog_compiler_wl='-Wl,'
7238      lt_prog_compiler_pic='-KPIC'
7239      lt_prog_compiler_static='-Bstatic'
7240      ;;
7241
7242    sysv4*MP*)
7243      if test -d /usr/nec ;then
7244        lt_prog_compiler_pic='-Kconform_pic'
7245        lt_prog_compiler_static='-Bstatic'
7246      fi
7247      ;;
7248
7249    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7250      lt_prog_compiler_wl='-Wl,'
7251      lt_prog_compiler_pic='-KPIC'
7252      lt_prog_compiler_static='-Bstatic'
7253      ;;
7254
7255    unicos*)
7256      lt_prog_compiler_wl='-Wl,'
7257      lt_prog_compiler_can_build_shared=no
7258      ;;
7259
7260    uts4*)
7261      lt_prog_compiler_pic='-pic'
7262      lt_prog_compiler_static='-Bstatic'
7263      ;;
7264
7265    *)
7266      lt_prog_compiler_can_build_shared=no
7267      ;;
7268    esac
7269  fi
7270
7271echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7272echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7273
7274#
7275# Check to make sure the PIC flag actually works.
7276#
7277if test -n "$lt_prog_compiler_pic"; then
7278
7279echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7280echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7281if test "${lt_prog_compiler_pic_works+set}" = set; then
7282  echo $ECHO_N "(cached) $ECHO_C" >&6
7283else
7284  lt_prog_compiler_pic_works=no
7285  ac_outfile=conftest.$ac_objext
7286   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7287   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7288   # Insert the option either (1) after the last *FLAGS variable, or
7289   # (2) before a word containing "conftest.", or (3) at the end.
7290   # Note that $ac_compile itself does not contain backslashes and begins
7291   # with a dollar sign (not a hyphen), so the echo should work correctly.
7292   # The option is referenced via a variable to avoid confusing sed.
7293   lt_compile=`echo "$ac_compile" | $SED \
7294   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7295   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7296   -e 's:$: $lt_compiler_flag:'`
7297   (eval echo "\"\$as_me:7297: $lt_compile\"" >&5)
7298   (eval "$lt_compile" 2>conftest.err)
7299   ac_status=$?
7300   cat conftest.err >&5
7301   echo "$as_me:7301: \$? = $ac_status" >&5
7302   if (exit $ac_status) && test -s "$ac_outfile"; then
7303     # The compiler can only warn and ignore the option if not recognized
7304     # So say no if there are warnings other than the usual output.
7305     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7306     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7307     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7308       lt_prog_compiler_pic_works=yes
7309     fi
7310   fi
7311   $rm conftest*
7312
7313fi
7314echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7315echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7316
7317if test x"$lt_prog_compiler_pic_works" = xyes; then
7318    case $lt_prog_compiler_pic in
7319     "" | " "*) ;;
7320     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7321     esac
7322else
7323    lt_prog_compiler_pic=
7324     lt_prog_compiler_can_build_shared=no
7325fi
7326
7327fi
7328case $host_os in
7329  # For platforms which do not support PIC, -DPIC is meaningless:
7330  *djgpp*)
7331    lt_prog_compiler_pic=
7332    ;;
7333  *)
7334    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7335    ;;
7336esac
7337
7338#
7339# Check to make sure the static flag actually works.
7340#
7341wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7342echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7343echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7344if test "${lt_prog_compiler_static_works+set}" = set; then
7345  echo $ECHO_N "(cached) $ECHO_C" >&6
7346else
7347  lt_prog_compiler_static_works=no
7348   save_LDFLAGS="$LDFLAGS"
7349   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7350   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7351   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7352     # The linker can only warn and ignore the option if not recognized
7353     # So say no if there are warnings
7354     if test -s conftest.err; then
7355       # Append any errors to the config.log.
7356       cat conftest.err 1>&5
7357       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7358       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7359       if diff conftest.exp conftest.er2 >/dev/null; then
7360         lt_prog_compiler_static_works=yes
7361       fi
7362     else
7363       lt_prog_compiler_static_works=yes
7364     fi
7365   fi
7366   $rm conftest*
7367   LDFLAGS="$save_LDFLAGS"
7368
7369fi
7370echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7371echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7372
7373if test x"$lt_prog_compiler_static_works" = xyes; then
7374    :
7375else
7376    lt_prog_compiler_static=
7377fi
7378
7379
7380echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7381echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7382if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7383  echo $ECHO_N "(cached) $ECHO_C" >&6
7384else
7385  lt_cv_prog_compiler_c_o=no
7386   $rm -r conftest 2>/dev/null
7387   mkdir conftest
7388   cd conftest
7389   mkdir out
7390   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7391
7392   lt_compiler_flag="-o out/conftest2.$ac_objext"
7393   # Insert the option either (1) after the last *FLAGS variable, or
7394   # (2) before a word containing "conftest.", or (3) at the end.
7395   # Note that $ac_compile itself does not contain backslashes and begins
7396   # with a dollar sign (not a hyphen), so the echo should work correctly.
7397   lt_compile=`echo "$ac_compile" | $SED \
7398   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7399   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7400   -e 's:$: $lt_compiler_flag:'`
7401   (eval echo "\"\$as_me:7401: $lt_compile\"" >&5)
7402   (eval "$lt_compile" 2>out/conftest.err)
7403   ac_status=$?
7404   cat out/conftest.err >&5
7405   echo "$as_me:7405: \$? = $ac_status" >&5
7406   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7407   then
7408     # The compiler can only warn and ignore the option if not recognized
7409     # So say no if there are warnings
7410     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7411     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7412     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7413       lt_cv_prog_compiler_c_o=yes
7414     fi
7415   fi
7416   chmod u+w . 2>&5
7417   $rm conftest*
7418   # SGI C++ compiler will create directory out/ii_files/ for
7419   # template instantiation
7420   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7421   $rm out/* && rmdir out
7422   cd ..
7423   rmdir conftest
7424   $rm conftest*
7425
7426fi
7427echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7428echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7429
7430
7431hard_links="nottested"
7432if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7433  # do not overwrite the value of need_locks provided by the user
7434  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7435echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7436  hard_links=yes
7437  $rm conftest*
7438  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7439  touch conftest.a
7440  ln conftest.a conftest.b 2>&5 || hard_links=no
7441  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7442  echo "$as_me:$LINENO: result: $hard_links" >&5
7443echo "${ECHO_T}$hard_links" >&6
7444  if test "$hard_links" = no; then
7445    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7446echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7447    need_locks=warn
7448  fi
7449else
7450  need_locks=no
7451fi
7452
7453echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7454echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7455
7456  runpath_var=
7457  allow_undefined_flag=
7458  enable_shared_with_static_runtimes=no
7459  archive_cmds=
7460  archive_expsym_cmds=
7461  old_archive_From_new_cmds=
7462  old_archive_from_expsyms_cmds=
7463  export_dynamic_flag_spec=
7464  whole_archive_flag_spec=
7465  thread_safe_flag_spec=
7466  hardcode_libdir_flag_spec=
7467  hardcode_libdir_flag_spec_ld=
7468  hardcode_libdir_separator=
7469  hardcode_direct=no
7470  hardcode_minus_L=no
7471  hardcode_shlibpath_var=unsupported
7472  link_all_deplibs=unknown
7473  hardcode_automatic=no
7474  module_cmds=
7475  module_expsym_cmds=
7476  always_export_symbols=no
7477  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7478  # include_expsyms should be a list of space-separated symbols to be *always*
7479  # included in the symbol list
7480  include_expsyms=
7481  # exclude_expsyms can be an extended regexp of symbols to exclude
7482  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7483  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7484  # as well as any symbol that contains `d'.
7485  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7486  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7487  # platforms (ab)use it in PIC code, but their linkers get confused if
7488  # the symbol is explicitly referenced.  Since portable code cannot
7489  # rely on this symbol name, it's probably fine to never include it in
7490  # preloaded symbol tables.
7491  extract_expsyms_cmds=
7492  # Just being paranoid about ensuring that cc_basename is set.
7493  for cc_temp in $compiler""; do
7494  case $cc_temp in
7495    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7496    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7497    \-*) ;;
7498    *) break;;
7499  esac
7500done
7501cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7502
7503  case $host_os in
7504  cygwin* | mingw* | pw32*)
7505    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7506    # When not using gcc, we currently assume that we are using
7507    # Microsoft Visual C++.
7508    if test "$GCC" != yes; then
7509      with_gnu_ld=no
7510    fi
7511    ;;
7512  interix*)
7513    # we just hope/assume this is gcc and not c89 (= MSVC++)
7514    with_gnu_ld=yes
7515    ;;
7516  openbsd*)
7517    with_gnu_ld=no
7518    ;;
7519  esac
7520
7521  ld_shlibs=yes
7522  if test "$with_gnu_ld" = yes; then
7523    # If archive_cmds runs LD, not CC, wlarc should be empty
7524    wlarc='${wl}'
7525
7526    # Set some defaults for GNU ld with shared library support. These
7527    # are reset later if shared libraries are not supported. Putting them
7528    # here allows them to be overridden if necessary.
7529    runpath_var=LD_RUN_PATH
7530    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7531    export_dynamic_flag_spec='${wl}--export-dynamic'
7532    # ancient GNU ld didn't support --whole-archive et. al.
7533    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7534        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7535      else
7536        whole_archive_flag_spec=
7537    fi
7538    supports_anon_versioning=no
7539    case `$LD -v 2>/dev/null` in
7540      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7541      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7542      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7543      *\ 2.11.*) ;; # other 2.11 versions
7544      *) supports_anon_versioning=yes ;;
7545    esac
7546
7547    # See if GNU ld supports shared libraries.
7548    case $host_os in
7549    aix3* | aix4* | aix5*)
7550      # On AIX/PPC, the GNU linker is very broken
7551      if test "$host_cpu" != ia64; then
7552        ld_shlibs=no
7553        cat <<EOF 1>&2
7554
7555*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7556*** to be unable to reliably create shared libraries on AIX.
7557*** Therefore, libtool is disabling shared libraries support.  If you
7558*** really care for shared libraries, you may want to modify your PATH
7559*** so that a non-GNU linker is found, and then restart.
7560
7561EOF
7562      fi
7563      ;;
7564
7565    amigaos*)
7566      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)'
7567      hardcode_libdir_flag_spec='-L$libdir'
7568      hardcode_minus_L=yes
7569
7570      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7571      # that the semantics of dynamic libraries on AmigaOS, at least up
7572      # to version 4, is to share data among multiple programs linked
7573      # with the same dynamic library.  Since this doesn't match the
7574      # behavior of shared libraries on other platforms, we can't use
7575      # them.
7576      ld_shlibs=no
7577      ;;
7578
7579    beos*)
7580      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7581        allow_undefined_flag=unsupported
7582        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7583        # support --undefined.  This deserves some investigation.  FIXME
7584        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7585      else
7586        ld_shlibs=no
7587      fi
7588      ;;
7589
7590    cygwin* | mingw* | pw32*)
7591      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7592      # as there is no search path for DLLs.
7593      hardcode_libdir_flag_spec='-L$libdir'
7594      allow_undefined_flag=unsupported
7595      always_export_symbols=no
7596      enable_shared_with_static_runtimes=yes
7597      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7598
7599      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7600        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7601        # If the export-symbols file already is a .def file (1st line
7602        # is EXPORTS), use it as is; otherwise, prepend...
7603        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7604          cp $export_symbols $output_objdir/$soname.def;
7605        else
7606          echo EXPORTS > $output_objdir/$soname.def;
7607          cat $export_symbols >> $output_objdir/$soname.def;
7608        fi~
7609        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7610      else
7611        ld_shlibs=no
7612      fi
7613      ;;
7614
7615    interix3*)
7616      hardcode_direct=no
7617      hardcode_shlibpath_var=no
7618      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7619      export_dynamic_flag_spec='${wl}-E'
7620      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7621      # Instead, shared libraries are loaded at an image base (0x10000000 by
7622      # default) and relocated if they conflict, which is a slow very memory
7623      # consuming and fragmenting process.  To avoid this, we pick a random,
7624      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7625      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7626      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7627      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'
7628      ;;
7629
7630    linux*)
7631      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7632        tmp_addflag=
7633        case $cc_basename,$host_cpu in
7634        pgcc*)                          # Portland Group C compiler
7635          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'
7636          tmp_addflag=' $pic_flag'
7637          ;;
7638        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7639          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'
7640          tmp_addflag=' $pic_flag -Mnomain' ;;
7641        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7642          tmp_addflag=' -i_dynamic' ;;
7643        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7644          tmp_addflag=' -i_dynamic -nofor_main' ;;
7645        ifc* | ifort*)                  # Intel Fortran compiler
7646          tmp_addflag=' -nofor_main' ;;
7647        esac
7648        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7649
7650        if test $supports_anon_versioning = yes; then
7651          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7652  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7653  $echo "local: *; };" >> $output_objdir/$libname.ver~
7654          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7655        fi
7656      else
7657        ld_shlibs=no
7658      fi
7659      ;;
7660
7661    netbsd*)
7662      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7663        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7664        wlarc=
7665      else
7666        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7667        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7668      fi
7669      ;;
7670
7671    solaris*)
7672      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7673        ld_shlibs=no
7674        cat <<EOF 1>&2
7675
7676*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7677*** create shared libraries on Solaris systems.  Therefore, libtool
7678*** is disabling shared libraries support.  We urge you to upgrade GNU
7679*** binutils to release 2.9.1 or newer.  Another option is to modify
7680*** your PATH or compiler configuration so that the native linker is
7681*** used, and then restart.
7682
7683EOF
7684      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7685        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7686        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7687      else
7688        ld_shlibs=no
7689      fi
7690      ;;
7691
7692    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7693      case `$LD -v 2>&1` in
7694        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7695        ld_shlibs=no
7696        cat <<_LT_EOF 1>&2
7697
7698*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7699*** reliably create shared libraries on SCO systems.  Therefore, libtool
7700*** is disabling shared libraries support.  We urge you to upgrade GNU
7701*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7702*** your PATH or compiler configuration so that the native linker is
7703*** used, and then restart.
7704
7705_LT_EOF
7706        ;;
7707        *)
7708          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7709            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7710            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7711            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7712          else
7713            ld_shlibs=no
7714          fi
7715        ;;
7716      esac
7717      ;;
7718
7719    sunos4*)
7720      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7721      wlarc=
7722      hardcode_direct=yes
7723      hardcode_shlibpath_var=no
7724      ;;
7725
7726    *)
7727      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7728        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7729        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7730      else
7731        ld_shlibs=no
7732      fi
7733      ;;
7734    esac
7735
7736    if test "$ld_shlibs" = no; then
7737      runpath_var=
7738      hardcode_libdir_flag_spec=
7739      export_dynamic_flag_spec=
7740      whole_archive_flag_spec=
7741    fi
7742  else
7743    # PORTME fill in a description of your system's linker (not GNU ld)
7744    case $host_os in
7745    aix3*)
7746      allow_undefined_flag=unsupported
7747      always_export_symbols=yes
7748      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'
7749      # Note: this linker hardcodes the directories in LIBPATH if there
7750      # are no directories specified by -L.
7751      hardcode_minus_L=yes
7752      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7753        # Neither direct hardcoding nor static linking is supported with a
7754        # broken collect2.
7755        hardcode_direct=unsupported
7756      fi
7757      ;;
7758
7759    aix4* | aix5*)
7760      if test "$host_cpu" = ia64; then
7761        # On IA64, the linker does run time linking by default, so we don't
7762        # have to do anything special.
7763        aix_use_runtimelinking=no
7764        exp_sym_flag='-Bexport'
7765        no_entry_flag=""
7766      else
7767        # If we're using GNU nm, then we don't want the "-C" option.
7768        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7769        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7770          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'
7771        else
7772          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'
7773        fi
7774        aix_use_runtimelinking=no
7775
7776        # Test if we are trying to use run time linking or normal
7777        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7778        # need to do runtime linking.
7779        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7780          for ld_flag in $LDFLAGS; do
7781          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7782            aix_use_runtimelinking=yes
7783            break
7784          fi
7785          done
7786          ;;
7787        esac
7788
7789        exp_sym_flag='-bexport'
7790        no_entry_flag='-bnoentry'
7791      fi
7792
7793      # When large executables or shared objects are built, AIX ld can
7794      # have problems creating the table of contents.  If linking a library
7795      # or program results in "error TOC overflow" add -mminimal-toc to
7796      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7797      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7798
7799      archive_cmds=''
7800      hardcode_direct=yes
7801      hardcode_libdir_separator=':'
7802      link_all_deplibs=yes
7803
7804      if test "$GCC" = yes; then
7805        case $host_os in aix4.[012]|aix4.[012].*)
7806        # We only want to do this on AIX 4.2 and lower, the check
7807        # below for broken collect2 doesn't work under 4.3+
7808          collect2name=`${CC} -print-prog-name=collect2`
7809          if test -f "$collect2name" && \
7810           strings "$collect2name" | grep resolve_lib_name >/dev/null
7811          then
7812          # We have reworked collect2
7813          hardcode_direct=yes
7814          else
7815          # We have old collect2
7816          hardcode_direct=unsupported
7817          # It fails to find uninstalled libraries when the uninstalled
7818          # path is not listed in the libpath.  Setting hardcode_minus_L
7819          # to unsupported forces relinking
7820          hardcode_minus_L=yes
7821          hardcode_libdir_flag_spec='-L$libdir'
7822          hardcode_libdir_separator=
7823          fi
7824          ;;
7825        esac
7826        shared_flag='-shared'
7827        if test "$aix_use_runtimelinking" = yes; then
7828          shared_flag="$shared_flag "'${wl}-G'
7829        fi
7830      else
7831        # not using gcc
7832        if test "$host_cpu" = ia64; then
7833        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7834        # chokes on -Wl,-G. The following line is correct:
7835          shared_flag='-G'
7836        else
7837          if test "$aix_use_runtimelinking" = yes; then
7838            shared_flag='${wl}-G'
7839          else
7840            shared_flag='${wl}-bM:SRE'
7841          fi
7842        fi
7843      fi
7844
7845      # It seems that -bexpall does not export symbols beginning with
7846      # underscore (_), so it is better to generate a list of symbols to export.
7847      always_export_symbols=yes
7848      if test "$aix_use_runtimelinking" = yes; then
7849        # Warning - without using the other runtime loading flags (-brtl),
7850        # -berok will link without error, but may produce a broken library.
7851        allow_undefined_flag='-berok'
7852       # Determine the default libpath from the value encoded in an empty executable.
7853       cat >conftest.$ac_ext <<_ACEOF
7854/* confdefs.h.  */
7855_ACEOF
7856cat confdefs.h >>conftest.$ac_ext
7857cat >>conftest.$ac_ext <<_ACEOF
7858/* end confdefs.h.  */
7859
7860int
7861main ()
7862{
7863
7864  ;
7865  return 0;
7866}
7867_ACEOF
7868rm -f conftest.$ac_objext conftest$ac_exeext
7869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7870  (eval $ac_link) 2>conftest.er1
7871  ac_status=$?
7872  grep -v '^ *+' conftest.er1 >conftest.err
7873  rm -f conftest.er1
7874  cat conftest.err >&5
7875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876  (exit $ac_status); } &&
7877         { ac_try='test -z "$ac_c_werror_flag"
7878                         || test ! -s conftest.err'
7879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880  (eval $ac_try) 2>&5
7881  ac_status=$?
7882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883  (exit $ac_status); }; } &&
7884         { ac_try='test -s conftest$ac_exeext'
7885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886  (eval $ac_try) 2>&5
7887  ac_status=$?
7888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889  (exit $ac_status); }; }; then
7890
7891aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7892}'`
7893# Check for a 64-bit object if we didn't find anything.
7894if 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; }
7895}'`; fi
7896else
7897  echo "$as_me: failed program was:" >&5
7898sed 's/^/| /' conftest.$ac_ext >&5
7899
7900fi
7901rm -f conftest.err conftest.$ac_objext \
7902      conftest$ac_exeext conftest.$ac_ext
7903if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7904
7905       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7906        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"
7907       else
7908        if test "$host_cpu" = ia64; then
7909          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7910          allow_undefined_flag="-z nodefs"
7911          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"
7912        else
7913         # Determine the default libpath from the value encoded in an empty executable.
7914         cat >conftest.$ac_ext <<_ACEOF
7915/* confdefs.h.  */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
7919/* end confdefs.h.  */
7920
7921int
7922main ()
7923{
7924
7925  ;
7926  return 0;
7927}
7928_ACEOF
7929rm -f conftest.$ac_objext conftest$ac_exeext
7930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7931  (eval $ac_link) 2>conftest.er1
7932  ac_status=$?
7933  grep -v '^ *+' conftest.er1 >conftest.err
7934  rm -f conftest.er1
7935  cat conftest.err >&5
7936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937  (exit $ac_status); } &&
7938         { ac_try='test -z "$ac_c_werror_flag"
7939                         || test ! -s conftest.err'
7940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941  (eval $ac_try) 2>&5
7942  ac_status=$?
7943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944  (exit $ac_status); }; } &&
7945         { ac_try='test -s conftest$ac_exeext'
7946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947  (eval $ac_try) 2>&5
7948  ac_status=$?
7949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950  (exit $ac_status); }; }; then
7951
7952aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7953}'`
7954# Check for a 64-bit object if we didn't find anything.
7955if 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; }
7956}'`; fi
7957else
7958  echo "$as_me: failed program was:" >&5
7959sed 's/^/| /' conftest.$ac_ext >&5
7960
7961fi
7962rm -f conftest.err conftest.$ac_objext \
7963      conftest$ac_exeext conftest.$ac_ext
7964if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7965
7966         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7967          # Warning - without using the other run time loading flags,
7968          # -berok will link without error, but may produce a broken library.
7969          no_undefined_flag=' ${wl}-bernotok'
7970          allow_undefined_flag=' ${wl}-berok'
7971          # Exported symbols can be pulled into shared objects from archives
7972          whole_archive_flag_spec='$convenience'
7973          archive_cmds_need_lc=yes
7974          # This is similar to how AIX traditionally builds its shared libraries.
7975          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'
7976        fi
7977      fi
7978      ;;
7979
7980    amigaos*)
7981      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)'
7982      hardcode_libdir_flag_spec='-L$libdir'
7983      hardcode_minus_L=yes
7984      # see comment about different semantics on the GNU ld section
7985      ld_shlibs=no
7986      ;;
7987
7988    bsdi[45]*)
7989      export_dynamic_flag_spec=-rdynamic
7990      ;;
7991
7992    cygwin* | mingw* | pw32*)
7993      # When not using gcc, we currently assume that we are using
7994      # Microsoft Visual C++.
7995      # hardcode_libdir_flag_spec is actually meaningless, as there is
7996      # no search path for DLLs.
7997      hardcode_libdir_flag_spec=' '
7998      allow_undefined_flag=unsupported
7999      # Tell ltmain to make .lib files, not .a files.
8000      libext=lib
8001      # Tell ltmain to make .dll files, not .so files.
8002      shrext_cmds=".dll"
8003      # FIXME: Setting linknames here is a bad hack.
8004      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8005      # The linker will automatically build a .lib file if we build a DLL.
8006      old_archive_From_new_cmds='true'
8007      # FIXME: Should let the user specify the lib program.
8008      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8009      fix_srcfile_path='`cygpath -w "$srcfile"`'
8010      enable_shared_with_static_runtimes=yes
8011      ;;
8012
8013    darwin* | rhapsody*)
8014      case $host_os in
8015        rhapsody* | darwin1.[012])
8016         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8017         ;;
8018       *) # Darwin 1.3 on
8019         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8020           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8021         else
8022           case ${MACOSX_DEPLOYMENT_TARGET} in
8023             10.[012])
8024               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8025               ;;
8026             10.*)
8027               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8028               ;;
8029           esac
8030         fi
8031         ;;
8032      esac
8033      archive_cmds_need_lc=no
8034      hardcode_direct=no
8035      hardcode_automatic=yes
8036      hardcode_shlibpath_var=unsupported
8037      whole_archive_flag_spec=''
8038      link_all_deplibs=yes
8039    if test "$GCC" = yes ; then
8040        output_verbose_link_cmd='echo'
8041        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8042      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8043      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8044      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}'
8045      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}'
8046    else
8047      case $cc_basename in
8048        xlc*)
8049         output_verbose_link_cmd='echo'
8050         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8051         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8052          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8053         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}'
8054          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}'
8055          ;;
8056       *)
8057         ld_shlibs=no
8058          ;;
8059      esac
8060    fi
8061      ;;
8062
8063    dgux*)
8064      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8065      hardcode_libdir_flag_spec='-L$libdir'
8066      hardcode_shlibpath_var=no
8067      ;;
8068
8069    freebsd1*)
8070      ld_shlibs=no
8071      ;;
8072
8073    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8074    # support.  Future versions do this automatically, but an explicit c++rt0.o
8075    # does not break anything, and helps significantly (at the cost of a little
8076    # extra space).
8077    freebsd2.2*)
8078      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8079      hardcode_libdir_flag_spec='-R$libdir'
8080      hardcode_direct=yes
8081      hardcode_shlibpath_var=no
8082      ;;
8083
8084    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8085    freebsd2*)
8086      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8087      hardcode_direct=yes
8088      hardcode_minus_L=yes
8089      hardcode_shlibpath_var=no
8090      ;;
8091
8092    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8093    freebsd* | kfreebsd*-gnu | dragonfly*)
8094      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8095      hardcode_libdir_flag_spec='-R$libdir'
8096      hardcode_direct=yes
8097      hardcode_shlibpath_var=no
8098      ;;
8099
8100    hpux9*)
8101      if test "$GCC" = yes; then
8102        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'
8103      else
8104        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'
8105      fi
8106      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8107      hardcode_libdir_separator=:
8108      hardcode_direct=yes
8109
8110      # hardcode_minus_L: Not really in the search PATH,
8111      # but as the default location of the library.
8112      hardcode_minus_L=yes
8113      export_dynamic_flag_spec='${wl}-E'
8114      ;;
8115
8116    hpux10*)
8117      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8118        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8119      else
8120        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8121      fi
8122      if test "$with_gnu_ld" = no; then
8123        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8124        hardcode_libdir_separator=:
8125
8126        hardcode_direct=yes
8127        export_dynamic_flag_spec='${wl}-E'
8128
8129        # hardcode_minus_L: Not really in the search PATH,
8130        # but as the default location of the library.
8131        hardcode_minus_L=yes
8132      fi
8133      ;;
8134
8135    hpux11*)
8136      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8137        case $host_cpu in
8138        hppa*64*)
8139          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8140          ;;
8141        ia64*)
8142          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8143          ;;
8144        *)
8145          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8146          ;;
8147        esac
8148      else
8149        case $host_cpu in
8150        hppa*64*)
8151          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8152          ;;
8153        ia64*)
8154          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8155          ;;
8156        *)
8157          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8158          ;;
8159        esac
8160      fi
8161      if test "$with_gnu_ld" = no; then
8162        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8163        hardcode_libdir_separator=:
8164
8165        case $host_cpu in
8166        hppa*64*|ia64*)
8167          hardcode_libdir_flag_spec_ld='+b $libdir'
8168          hardcode_direct=no
8169          hardcode_shlibpath_var=no
8170          ;;
8171        *)
8172          hardcode_direct=yes
8173          export_dynamic_flag_spec='${wl}-E'
8174
8175          # hardcode_minus_L: Not really in the search PATH,
8176          # but as the default location of the library.
8177          hardcode_minus_L=yes
8178          ;;
8179        esac
8180      fi
8181      ;;
8182
8183    irix5* | irix6* | nonstopux*)
8184      if test "$GCC" = yes; then
8185        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'
8186      else
8187        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'
8188        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8189      fi
8190      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8191      hardcode_libdir_separator=:
8192      link_all_deplibs=yes
8193      ;;
8194
8195    netbsd*)
8196      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8197        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8198      else
8199        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8200      fi
8201      hardcode_libdir_flag_spec='-R$libdir'
8202      hardcode_direct=yes
8203      hardcode_shlibpath_var=no
8204      ;;
8205
8206    newsos6)
8207      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8208      hardcode_direct=yes
8209      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8210      hardcode_libdir_separator=:
8211      hardcode_shlibpath_var=no
8212      ;;
8213
8214    openbsd*)
8215      hardcode_direct=yes
8216      hardcode_shlibpath_var=no
8217      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8218        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8219        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8220        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8221        export_dynamic_flag_spec='${wl}-E'
8222      else
8223       case $host_os in
8224         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8225           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8226           hardcode_libdir_flag_spec='-R$libdir'
8227           ;;
8228         *)
8229           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8230           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8231           ;;
8232       esac
8233      fi
8234      ;;
8235
8236    os2*)
8237      hardcode_libdir_flag_spec='-L$libdir'
8238      hardcode_minus_L=yes
8239      allow_undefined_flag=unsupported
8240      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'
8241      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8242      ;;
8243
8244    osf3*)
8245      if test "$GCC" = yes; then
8246        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8247        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'
8248      else
8249        allow_undefined_flag=' -expect_unresolved \*'
8250        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'
8251      fi
8252      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8253      hardcode_libdir_separator=:
8254      ;;
8255
8256    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8257      if test "$GCC" = yes; then
8258        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8259        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'
8260        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8261      else
8262        allow_undefined_flag=' -expect_unresolved \*'
8263        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'
8264        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8265        $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'
8266
8267        # Both c and cxx compiler support -rpath directly
8268        hardcode_libdir_flag_spec='-rpath $libdir'
8269      fi
8270      hardcode_libdir_separator=:
8271      ;;
8272
8273    solaris*)
8274      no_undefined_flag=' -z text'
8275      if test "$GCC" = yes; then
8276        wlarc='${wl}'
8277        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8278        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8279          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8280      else
8281        wlarc=''
8282        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8283        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8284        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8285      fi
8286      hardcode_libdir_flag_spec='-R$libdir'
8287      hardcode_shlibpath_var=no
8288      case $host_os in
8289      solaris2.[0-5] | solaris2.[0-5].*) ;;
8290      *)
8291        # The compiler driver will combine linker options so we
8292        # cannot just pass the convience library names through
8293        # without $wl, iff we do not link with $LD.
8294        # Luckily, gcc supports the same syntax we need for Sun Studio.
8295        # Supported since Solaris 2.6 (maybe 2.5.1?)
8296        case $wlarc in
8297        '')
8298          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8299        *)
8300          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' ;;
8301        esac ;;
8302      esac
8303      link_all_deplibs=yes
8304      ;;
8305
8306    sunos4*)
8307      if test "x$host_vendor" = xsequent; then
8308        # Use $CC to link under sequent, because it throws in some extra .o
8309        # files that make .init and .fini sections work.
8310        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8311      else
8312        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8313      fi
8314      hardcode_libdir_flag_spec='-L$libdir'
8315      hardcode_direct=yes
8316      hardcode_minus_L=yes
8317      hardcode_shlibpath_var=no
8318      ;;
8319
8320    sysv4)
8321      case $host_vendor in
8322        sni)
8323          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8324          hardcode_direct=yes # is this really true???
8325        ;;
8326        siemens)
8327          ## LD is ld it makes a PLAMLIB
8328          ## CC just makes a GrossModule.
8329          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8330          reload_cmds='$CC -r -o $output$reload_objs'
8331          hardcode_direct=no
8332        ;;
8333        motorola)
8334          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8335          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8336        ;;
8337      esac
8338      runpath_var='LD_RUN_PATH'
8339      hardcode_shlibpath_var=no
8340      ;;
8341
8342    sysv4.3*)
8343      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8344      hardcode_shlibpath_var=no
8345      export_dynamic_flag_spec='-Bexport'
8346      ;;
8347
8348    sysv4*MP*)
8349      if test -d /usr/nec; then
8350        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8351        hardcode_shlibpath_var=no
8352        runpath_var=LD_RUN_PATH
8353        hardcode_runpath_var=yes
8354        ld_shlibs=yes
8355      fi
8356      ;;
8357
8358    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8359      no_undefined_flag='${wl}-z,text'
8360      archive_cmds_need_lc=no
8361      hardcode_shlibpath_var=no
8362      runpath_var='LD_RUN_PATH'
8363
8364      if test "$GCC" = yes; then
8365        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8366        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8367      else
8368        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8369        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8370      fi
8371      ;;
8372
8373    sysv5* | sco3.2v5* | sco5v6*)
8374      # Note: We can NOT use -z defs as we might desire, because we do not
8375      # link with -lc, and that would cause any symbols used from libc to
8376      # always be unresolved, which means just about no library would
8377      # ever link correctly.  If we're not using GNU ld we use -z text
8378      # though, which does catch some bad symbols but isn't as heavy-handed
8379      # as -z defs.
8380      no_undefined_flag='${wl}-z,text'
8381      allow_undefined_flag='${wl}-z,nodefs'
8382      archive_cmds_need_lc=no
8383      hardcode_shlibpath_var=no
8384      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8385      hardcode_libdir_separator=':'
8386      link_all_deplibs=yes
8387      export_dynamic_flag_spec='${wl}-Bexport'
8388      runpath_var='LD_RUN_PATH'
8389
8390      if test "$GCC" = yes; then
8391        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8392        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8393      else
8394        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8395        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8396      fi
8397      ;;
8398
8399    uts4*)
8400      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8401      hardcode_libdir_flag_spec='-L$libdir'
8402      hardcode_shlibpath_var=no
8403      ;;
8404
8405    *)
8406      ld_shlibs=no
8407      ;;
8408    esac
8409  fi
8410
8411echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8412echo "${ECHO_T}$ld_shlibs" >&6
8413test "$ld_shlibs" = no && can_build_shared=no
8414
8415#
8416# Do we need to explicitly link libc?
8417#
8418case "x$archive_cmds_need_lc" in
8419x|xyes)
8420  # Assume -lc should be added
8421  archive_cmds_need_lc=yes
8422
8423  if test "$enable_shared" = yes && test "$GCC" = yes; then
8424    case $archive_cmds in
8425    *'~'*)
8426      # FIXME: we may have to deal with multi-command sequences.
8427      ;;
8428    '$CC '*)
8429      # Test whether the compiler implicitly links with -lc since on some
8430      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8431      # to ld, don't add -lc before -lgcc.
8432      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8433echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8434      $rm conftest*
8435      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8436
8437      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8438  (eval $ac_compile) 2>&5
8439  ac_status=$?
8440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441  (exit $ac_status); } 2>conftest.err; then
8442        soname=conftest
8443        lib=conftest
8444        libobjs=conftest.$ac_objext
8445        deplibs=
8446        wl=$lt_prog_compiler_wl
8447        pic_flag=$lt_prog_compiler_pic
8448        compiler_flags=-v
8449        linker_flags=-v
8450        verstring=
8451        output_objdir=.
8452        libname=conftest
8453        lt_save_allow_undefined_flag=$allow_undefined_flag
8454        allow_undefined_flag=
8455        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8456  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8457  ac_status=$?
8458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459  (exit $ac_status); }
8460        then
8461          archive_cmds_need_lc=no
8462        else
8463          archive_cmds_need_lc=yes
8464        fi
8465        allow_undefined_flag=$lt_save_allow_undefined_flag
8466      else
8467        cat conftest.err 1>&5
8468      fi
8469      $rm conftest*
8470      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8471echo "${ECHO_T}$archive_cmds_need_lc" >&6
8472      ;;
8473    esac
8474  fi
8475  ;;
8476esac
8477
8478echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8479echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8480library_names_spec=
8481libname_spec='lib$name'
8482soname_spec=
8483shrext_cmds=".so"
8484postinstall_cmds=
8485postuninstall_cmds=
8486finish_cmds=
8487finish_eval=
8488shlibpath_var=
8489shlibpath_overrides_runpath=unknown
8490version_type=none
8491dynamic_linker="$host_os ld.so"
8492sys_lib_dlsearch_path_spec="/lib /usr/lib"
8493if test "$GCC" = yes; then
8494  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8495  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8496    # if the path contains ";" then we assume it to be the separator
8497    # otherwise default to the standard path separator (i.e. ":") - it is
8498    # assumed that no part of a normal pathname contains ";" but that should
8499    # okay in the real world where ";" in dirpaths is itself problematic.
8500    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8501  else
8502    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8503  fi
8504else
8505  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8506fi
8507need_lib_prefix=unknown
8508hardcode_into_libs=no
8509
8510# when you set need_version to no, make sure it does not cause -set_version
8511# flags to be left without arguments
8512need_version=unknown
8513
8514case $host_os in
8515aix3*)
8516  version_type=linux
8517  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8518  shlibpath_var=LIBPATH
8519
8520  # AIX 3 has no versioning support, so we append a major version to the name.
8521  soname_spec='${libname}${release}${shared_ext}$major'
8522  ;;
8523
8524aix4* | aix5*)
8525  version_type=linux
8526  need_lib_prefix=no
8527  need_version=no
8528  hardcode_into_libs=yes
8529  if test "$host_cpu" = ia64; then
8530    # AIX 5 supports IA64
8531    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8532    shlibpath_var=LD_LIBRARY_PATH
8533  else
8534    # With GCC up to 2.95.x, collect2 would create an import file
8535    # for dependence libraries.  The import file would start with
8536    # the line `#! .'.  This would cause the generated library to
8537    # depend on `.', always an invalid library.  This was fixed in
8538    # development snapshots of GCC prior to 3.0.
8539    case $host_os in
8540      aix4 | aix4.[01] | aix4.[01].*)
8541      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8542           echo ' yes '
8543           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8544        :
8545      else
8546        can_build_shared=no
8547      fi
8548      ;;
8549    esac
8550    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8551    # soname into executable. Probably we can add versioning support to
8552    # collect2, so additional links can be useful in future.
8553    if test "$aix_use_runtimelinking" = yes; then
8554      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8555      # instead of lib<name>.a to let people know that these are not
8556      # typical AIX shared libraries.
8557      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8558    else
8559      # We preserve .a as extension for shared libraries through AIX4.2
8560      # and later when we are not doing run time linking.
8561      library_names_spec='${libname}${release}.a $libname.a'
8562      soname_spec='${libname}${release}${shared_ext}$major'
8563    fi
8564    shlibpath_var=LIBPATH
8565  fi
8566  ;;
8567
8568amigaos*)
8569  library_names_spec='$libname.ixlibrary $libname.a'
8570  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8571  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'
8572  ;;
8573
8574beos*)
8575  library_names_spec='${libname}${shared_ext}'
8576  dynamic_linker="$host_os ld.so"
8577  shlibpath_var=LIBRARY_PATH
8578  ;;
8579
8580bsdi[45]*)
8581  version_type=linux
8582  need_version=no
8583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8584  soname_spec='${libname}${release}${shared_ext}$major'
8585  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8586  shlibpath_var=LD_LIBRARY_PATH
8587  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8588  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8589  # the default ld.so.conf also contains /usr/contrib/lib and
8590  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8591  # libtool to hard-code these into programs
8592  ;;
8593
8594cygwin* | mingw* | pw32*)
8595  version_type=windows
8596  shrext_cmds=".dll"
8597  need_version=no
8598  need_lib_prefix=no
8599
8600  case $GCC,$host_os in
8601  yes,cygwin* | yes,mingw* | yes,pw32*)
8602    library_names_spec='$libname.dll.a'
8603    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8604    postinstall_cmds='base_file=`basename \${file}`~
8605      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8606      dldir=$destdir/`dirname \$dlpath`~
8607      test -d \$dldir || mkdir -p \$dldir~
8608      $install_prog $dir/$dlname \$dldir/$dlname~
8609      chmod a+x \$dldir/$dlname'
8610    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8611      dlpath=$dir/\$dldll~
8612       $rm \$dlpath'
8613    shlibpath_overrides_runpath=yes
8614
8615    case $host_os in
8616    cygwin*)
8617      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8618      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8619      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8620      ;;
8621    mingw*)
8622      # MinGW DLLs use traditional 'lib' prefix
8623      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8624      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8625      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8626        # It is most probably a Windows format PATH printed by
8627        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8628        # path with ; separators, and with drive letters. We can handle the
8629        # drive letters (cygwin fileutils understands them), so leave them,
8630        # especially as we might pass files found there to a mingw objdump,
8631        # which wouldn't understand a cygwinified path. Ahh.
8632        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8633      else
8634        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8635      fi
8636      ;;
8637    pw32*)
8638      # pw32 DLLs use 'pw' prefix rather than 'lib'
8639      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8640      ;;
8641    esac
8642    ;;
8643
8644  *)
8645    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8646    ;;
8647  esac
8648  dynamic_linker='Win32 ld.exe'
8649  # FIXME: first we should search . and the directory the executable is in
8650  shlibpath_var=PATH
8651  ;;
8652
8653darwin* | rhapsody*)
8654  dynamic_linker="$host_os dyld"
8655  version_type=darwin
8656  need_lib_prefix=no
8657  need_version=no
8658  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8659  soname_spec='${libname}${release}${major}$shared_ext'
8660  shlibpath_overrides_runpath=yes
8661  shlibpath_var=DYLD_LIBRARY_PATH
8662  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8663  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8664  if test "$GCC" = yes; then
8665    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"`
8666  else
8667    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8668  fi
8669  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8670  ;;
8671
8672dgux*)
8673  version_type=linux
8674  need_lib_prefix=no
8675  need_version=no
8676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8677  soname_spec='${libname}${release}${shared_ext}$major'
8678  shlibpath_var=LD_LIBRARY_PATH
8679  ;;
8680
8681freebsd1*)
8682  dynamic_linker=no
8683  ;;
8684
8685kfreebsd*-gnu)
8686  version_type=linux
8687  need_lib_prefix=no
8688  need_version=no
8689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8690  soname_spec='${libname}${release}${shared_ext}$major'
8691  shlibpath_var=LD_LIBRARY_PATH
8692  shlibpath_overrides_runpath=no
8693  hardcode_into_libs=yes
8694  dynamic_linker='GNU ld.so'
8695  ;;
8696
8697freebsd* | dragonfly*)
8698  # DragonFly does not have aout.  When/if they implement a new
8699  # versioning mechanism, adjust this.
8700  if test -x /usr/bin/objformat; then
8701    objformat=`/usr/bin/objformat`
8702  else
8703    case $host_os in
8704    freebsd[123]*) objformat=aout ;;
8705    *) objformat=elf ;;
8706    esac
8707  fi
8708  version_type=freebsd-$objformat
8709  case $version_type in
8710    freebsd-elf*)
8711      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8712      need_version=no
8713      need_lib_prefix=no
8714      ;;
8715    freebsd-*)
8716      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8717      need_version=yes
8718      ;;
8719  esac
8720  shlibpath_var=LD_LIBRARY_PATH
8721  case $host_os in
8722  freebsd2*)
8723    shlibpath_overrides_runpath=yes
8724    ;;
8725  freebsd3.[01]* | freebsdelf3.[01]*)
8726    shlibpath_overrides_runpath=yes
8727    hardcode_into_libs=yes
8728    ;;
8729  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8730  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8731    shlibpath_overrides_runpath=no
8732    hardcode_into_libs=yes
8733    ;;
8734  freebsd*) # from 4.6 on
8735    shlibpath_overrides_runpath=yes
8736    hardcode_into_libs=yes
8737    ;;
8738  esac
8739  ;;
8740
8741gnu*)
8742  version_type=linux
8743  need_lib_prefix=no
8744  need_version=no
8745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8746  soname_spec='${libname}${release}${shared_ext}$major'
8747  shlibpath_var=LD_LIBRARY_PATH
8748  hardcode_into_libs=yes
8749  ;;
8750
8751hpux9* | hpux10* | hpux11*)
8752  # Give a soname corresponding to the major version so that dld.sl refuses to
8753  # link against other versions.
8754  version_type=sunos
8755  need_lib_prefix=no
8756  need_version=no
8757  case $host_cpu in
8758  ia64*)
8759    shrext_cmds='.so'
8760    hardcode_into_libs=yes
8761    dynamic_linker="$host_os dld.so"
8762    shlibpath_var=LD_LIBRARY_PATH
8763    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8764    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8765    soname_spec='${libname}${release}${shared_ext}$major'
8766    if test "X$HPUX_IA64_MODE" = X32; then
8767      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8768    else
8769      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8770    fi
8771    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8772    ;;
8773   hppa*64*)
8774     shrext_cmds='.sl'
8775     hardcode_into_libs=yes
8776     dynamic_linker="$host_os dld.sl"
8777     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8778     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8780     soname_spec='${libname}${release}${shared_ext}$major'
8781     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8782     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8783     ;;
8784   *)
8785    shrext_cmds='.sl'
8786    dynamic_linker="$host_os dld.sl"
8787    shlibpath_var=SHLIB_PATH
8788    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8789    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8790    soname_spec='${libname}${release}${shared_ext}$major'
8791    ;;
8792  esac
8793  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8794  postinstall_cmds='chmod 555 $lib'
8795  ;;
8796
8797interix3*)
8798  version_type=linux
8799  need_lib_prefix=no
8800  need_version=no
8801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8802  soname_spec='${libname}${release}${shared_ext}$major'
8803  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8804  shlibpath_var=LD_LIBRARY_PATH
8805  shlibpath_overrides_runpath=no
8806  hardcode_into_libs=yes
8807  ;;
8808
8809irix5* | irix6* | nonstopux*)
8810  case $host_os in
8811    nonstopux*) version_type=nonstopux ;;
8812    *)
8813        if test "$lt_cv_prog_gnu_ld" = yes; then
8814                version_type=linux
8815        else
8816                version_type=irix
8817        fi ;;
8818  esac
8819  need_lib_prefix=no
8820  need_version=no
8821  soname_spec='${libname}${release}${shared_ext}$major'
8822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8823  case $host_os in
8824  irix5* | nonstopux*)
8825    libsuff= shlibsuff=
8826    ;;
8827  *)
8828    case $LD in # libtool.m4 will add one of these switches to LD
8829    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8830      libsuff= shlibsuff= libmagic=32-bit;;
8831    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8832      libsuff=32 shlibsuff=N32 libmagic=N32;;
8833    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8834      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8835    *) libsuff= shlibsuff= libmagic=never-match;;
8836    esac
8837    ;;
8838  esac
8839  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8840  shlibpath_overrides_runpath=no
8841  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8842  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8843  hardcode_into_libs=yes
8844  ;;
8845
8846# No shared lib support for Linux oldld, aout, or coff.
8847linux*oldld* | linux*aout* | linux*coff*)
8848  dynamic_linker=no
8849  ;;
8850
8851# This must be Linux ELF.
8852linux*)
8853  version_type=linux
8854  need_lib_prefix=no
8855  need_version=no
8856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857  soname_spec='${libname}${release}${shared_ext}$major'
8858  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8859  shlibpath_var=LD_LIBRARY_PATH
8860  shlibpath_overrides_runpath=no
8861  # This implies no fast_install, which is unacceptable.
8862  # Some rework will be needed to allow for fast_install
8863  # before this can be enabled.
8864  hardcode_into_libs=yes
8865
8866  # Append ld.so.conf contents to the search path
8867  if test -f /etc/ld.so.conf; then
8868    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' ' '`
8869    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8870  fi
8871
8872  # We used to test for /lib/ld.so.1 and disable shared libraries on
8873  # powerpc, because MkLinux only supported shared libraries with the
8874  # GNU dynamic linker.  Since this was broken with cross compilers,
8875  # most powerpc-linux boxes support dynamic linking these days and
8876  # people can always --disable-shared, the test was removed, and we
8877  # assume the GNU/Linux dynamic linker is in use.
8878  dynamic_linker='GNU/Linux ld.so'
8879  ;;
8880
8881knetbsd*-gnu)
8882  version_type=linux
8883  need_lib_prefix=no
8884  need_version=no
8885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8886  soname_spec='${libname}${release}${shared_ext}$major'
8887  shlibpath_var=LD_LIBRARY_PATH
8888  shlibpath_overrides_runpath=no
8889  hardcode_into_libs=yes
8890  dynamic_linker='GNU ld.so'
8891  ;;
8892
8893netbsd*)
8894  version_type=sunos
8895  need_lib_prefix=no
8896  need_version=no
8897  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8898    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8899    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8900    dynamic_linker='NetBSD (a.out) ld.so'
8901  else
8902    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8903    soname_spec='${libname}${release}${shared_ext}$major'
8904    dynamic_linker='NetBSD ld.elf_so'
8905  fi
8906  shlibpath_var=LD_LIBRARY_PATH
8907  shlibpath_overrides_runpath=yes
8908  hardcode_into_libs=yes
8909  ;;
8910
8911newsos6)
8912  version_type=linux
8913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914  shlibpath_var=LD_LIBRARY_PATH
8915  shlibpath_overrides_runpath=yes
8916  ;;
8917
8918nto-qnx*)
8919  version_type=linux
8920  need_lib_prefix=no
8921  need_version=no
8922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923  soname_spec='${libname}${release}${shared_ext}$major'
8924  shlibpath_var=LD_LIBRARY_PATH
8925  shlibpath_overrides_runpath=yes
8926  ;;
8927
8928openbsd*)
8929  version_type=sunos
8930  sys_lib_dlsearch_path_spec="/usr/lib"
8931  need_lib_prefix=no
8932  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8933  case $host_os in
8934    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8935    *)                         need_version=no  ;;
8936  esac
8937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8938  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8939  shlibpath_var=LD_LIBRARY_PATH
8940  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8941    case $host_os in
8942      openbsd2.[89] | openbsd2.[89].*)
8943        shlibpath_overrides_runpath=no
8944        ;;
8945      *)
8946        shlibpath_overrides_runpath=yes
8947        ;;
8948      esac
8949  else
8950    shlibpath_overrides_runpath=yes
8951  fi
8952  ;;
8953
8954os2*)
8955  libname_spec='$name'
8956  shrext_cmds=".dll"
8957  need_lib_prefix=no
8958  library_names_spec='$libname${shared_ext} $libname.a'
8959  dynamic_linker='OS/2 ld.exe'
8960  shlibpath_var=LIBPATH
8961  ;;
8962
8963osf3* | osf4* | osf5*)
8964  version_type=osf
8965  need_lib_prefix=no
8966  need_version=no
8967  soname_spec='${libname}${release}${shared_ext}$major'
8968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8969  shlibpath_var=LD_LIBRARY_PATH
8970  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8971  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8972  ;;
8973
8974solaris*)
8975  version_type=linux
8976  need_lib_prefix=no
8977  need_version=no
8978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979  soname_spec='${libname}${release}${shared_ext}$major'
8980  shlibpath_var=LD_LIBRARY_PATH
8981  shlibpath_overrides_runpath=yes
8982  hardcode_into_libs=yes
8983  # ldd complains unless libraries are executable
8984  postinstall_cmds='chmod +x $lib'
8985  ;;
8986
8987sunos4*)
8988  version_type=sunos
8989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8990  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8991  shlibpath_var=LD_LIBRARY_PATH
8992  shlibpath_overrides_runpath=yes
8993  if test "$with_gnu_ld" = yes; then
8994    need_lib_prefix=no
8995  fi
8996  need_version=yes
8997  ;;
8998
8999sysv4 | sysv4.3*)
9000  version_type=linux
9001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002  soname_spec='${libname}${release}${shared_ext}$major'
9003  shlibpath_var=LD_LIBRARY_PATH
9004  case $host_vendor in
9005    sni)
9006      shlibpath_overrides_runpath=no
9007      need_lib_prefix=no
9008      export_dynamic_flag_spec='${wl}-Blargedynsym'
9009      runpath_var=LD_RUN_PATH
9010      ;;
9011    siemens)
9012      need_lib_prefix=no
9013      ;;
9014    motorola)
9015      need_lib_prefix=no
9016      need_version=no
9017      shlibpath_overrides_runpath=no
9018      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9019      ;;
9020  esac
9021  ;;
9022
9023sysv4*MP*)
9024  if test -d /usr/nec ;then
9025    version_type=linux
9026    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9027    soname_spec='$libname${shared_ext}.$major'
9028    shlibpath_var=LD_LIBRARY_PATH
9029  fi
9030  ;;
9031
9032sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9033  version_type=freebsd-elf
9034  need_lib_prefix=no
9035  need_version=no
9036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9037  soname_spec='${libname}${release}${shared_ext}$major'
9038  shlibpath_var=LD_LIBRARY_PATH
9039  hardcode_into_libs=yes
9040  if test "$with_gnu_ld" = yes; then
9041    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9042    shlibpath_overrides_runpath=no
9043  else
9044    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9045    shlibpath_overrides_runpath=yes
9046    case $host_os in
9047      sco3.2v5*)
9048        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9049        ;;
9050    esac
9051  fi
9052  sys_lib_dlsearch_path_spec='/usr/lib'
9053  ;;
9054
9055uts4*)
9056  version_type=linux
9057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058  soname_spec='${libname}${release}${shared_ext}$major'
9059  shlibpath_var=LD_LIBRARY_PATH
9060  ;;
9061
9062*)
9063  dynamic_linker=no
9064  ;;
9065esac
9066echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9067echo "${ECHO_T}$dynamic_linker" >&6
9068test "$dynamic_linker" = no && can_build_shared=no
9069
9070variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9071if test "$GCC" = yes; then
9072  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9073fi
9074
9075echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9076echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9077hardcode_action=
9078if test -n "$hardcode_libdir_flag_spec" || \
9079   test -n "$runpath_var" || \
9080   test "X$hardcode_automatic" = "Xyes" ; then
9081
9082  # We can hardcode non-existant directories.
9083  if test "$hardcode_direct" != no &&
9084     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9085     # have to relink, otherwise we might link with an installed library
9086     # when we should be linking with a yet-to-be-installed one
9087     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9088     test "$hardcode_minus_L" != no; then
9089    # Linking always hardcodes the temporary library directory.
9090    hardcode_action=relink
9091  else
9092    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9093    hardcode_action=immediate
9094  fi
9095else
9096  # We cannot hardcode anything, or else we can only hardcode existing
9097  # directories.
9098  hardcode_action=unsupported
9099fi
9100echo "$as_me:$LINENO: result: $hardcode_action" >&5
9101echo "${ECHO_T}$hardcode_action" >&6
9102
9103if test "$hardcode_action" = relink; then
9104  # Fast installation is not supported
9105  enable_fast_install=no
9106elif test "$shlibpath_overrides_runpath" = yes ||
9107     test "$enable_shared" = no; then
9108  # Fast installation is not necessary
9109  enable_fast_install=needless
9110fi
9111
9112striplib=
9113old_striplib=
9114echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9115echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9116if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9117  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9118  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9119  echo "$as_me:$LINENO: result: yes" >&5
9120echo "${ECHO_T}yes" >&6
9121else
9122# FIXME - insert some real tests, host_os isn't really good enough
9123  case $host_os in
9124   darwin*)
9125       if test -n "$STRIP" ; then
9126         striplib="$STRIP -x"
9127         echo "$as_me:$LINENO: result: yes" >&5
9128echo "${ECHO_T}yes" >&6
9129       else
9130  echo "$as_me:$LINENO: result: no" >&5
9131echo "${ECHO_T}no" >&6
9132fi
9133       ;;
9134   *)
9135  echo "$as_me:$LINENO: result: no" >&5
9136echo "${ECHO_T}no" >&6
9137    ;;
9138  esac
9139fi
9140
9141if test "x$enable_dlopen" != xyes; then
9142  enable_dlopen=unknown
9143  enable_dlopen_self=unknown
9144  enable_dlopen_self_static=unknown
9145else
9146  lt_cv_dlopen=no
9147  lt_cv_dlopen_libs=
9148
9149  case $host_os in
9150  beos*)
9151    lt_cv_dlopen="load_add_on"
9152    lt_cv_dlopen_libs=
9153    lt_cv_dlopen_self=yes
9154    ;;
9155
9156  mingw* | pw32*)
9157    lt_cv_dlopen="LoadLibrary"
9158    lt_cv_dlopen_libs=
9159   ;;
9160
9161  cygwin*)
9162    lt_cv_dlopen="dlopen"
9163    lt_cv_dlopen_libs=
9164   ;;
9165
9166  darwin*)
9167  # if libdl is installed we need to link against it
9168    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9169echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9170if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9171  echo $ECHO_N "(cached) $ECHO_C" >&6
9172else
9173  ac_check_lib_save_LIBS=$LIBS
9174LIBS="-ldl  $LIBS"
9175cat >conftest.$ac_ext <<_ACEOF
9176/* confdefs.h.  */
9177_ACEOF
9178cat confdefs.h >>conftest.$ac_ext
9179cat >>conftest.$ac_ext <<_ACEOF
9180/* end confdefs.h.  */
9181
9182/* Override any gcc2 internal prototype to avoid an error.  */
9183#ifdef __cplusplus
9184extern "C"
9185#endif
9186/* We use char because int might match the return type of a gcc2
9187   builtin and then its argument prototype would still apply.  */
9188char dlopen ();
9189int
9190main ()
9191{
9192dlopen ();
9193  ;
9194  return 0;
9195}
9196_ACEOF
9197rm -f conftest.$ac_objext conftest$ac_exeext
9198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199  (eval $ac_link) 2>conftest.er1
9200  ac_status=$?
9201  grep -v '^ *+' conftest.er1 >conftest.err
9202  rm -f conftest.er1
9203  cat conftest.err >&5
9204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205  (exit $ac_status); } &&
9206         { ac_try='test -z "$ac_c_werror_flag"
9207                         || test ! -s conftest.err'
9208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209  (eval $ac_try) 2>&5
9210  ac_status=$?
9211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212  (exit $ac_status); }; } &&
9213         { ac_try='test -s conftest$ac_exeext'
9214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215  (eval $ac_try) 2>&5
9216  ac_status=$?
9217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218  (exit $ac_status); }; }; then
9219  ac_cv_lib_dl_dlopen=yes
9220else
9221  echo "$as_me: failed program was:" >&5
9222sed 's/^/| /' conftest.$ac_ext >&5
9223
9224ac_cv_lib_dl_dlopen=no
9225fi
9226rm -f conftest.err conftest.$ac_objext \
9227      conftest$ac_exeext conftest.$ac_ext
9228LIBS=$ac_check_lib_save_LIBS
9229fi
9230echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9231echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9232if test $ac_cv_lib_dl_dlopen = yes; then
9233  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9234else
9235
9236    lt_cv_dlopen="dyld"
9237    lt_cv_dlopen_libs=
9238    lt_cv_dlopen_self=yes
9239
9240fi
9241
9242   ;;
9243
9244  *)
9245    echo "$as_me:$LINENO: checking for shl_load" >&5
9246echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9247if test "${ac_cv_func_shl_load+set}" = set; then
9248  echo $ECHO_N "(cached) $ECHO_C" >&6
9249else
9250  cat >conftest.$ac_ext <<_ACEOF
9251/* confdefs.h.  */
9252_ACEOF
9253cat confdefs.h >>conftest.$ac_ext
9254cat >>conftest.$ac_ext <<_ACEOF
9255/* end confdefs.h.  */
9256/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9257   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9258#define shl_load innocuous_shl_load
9259
9260/* System header to define __stub macros and hopefully few prototypes,
9261    which can conflict with char shl_load (); below.
9262    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9263    <limits.h> exists even on freestanding compilers.  */
9264
9265#ifdef __STDC__
9266# include <limits.h>
9267#else
9268# include <assert.h>
9269#endif
9270
9271#undef shl_load
9272
9273/* Override any gcc2 internal prototype to avoid an error.  */
9274#ifdef __cplusplus
9275extern "C"
9276{
9277#endif
9278/* We use char because int might match the return type of a gcc2
9279   builtin and then its argument prototype would still apply.  */
9280char shl_load ();
9281/* The GNU C library defines this for functions which it implements
9282    to always fail with ENOSYS.  Some functions are actually named
9283    something starting with __ and the normal name is an alias.  */
9284#if defined (__stub_shl_load) || defined (__stub___shl_load)
9285choke me
9286#else
9287char (*f) () = shl_load;
9288#endif
9289#ifdef __cplusplus
9290}
9291#endif
9292
9293int
9294main ()
9295{
9296return f != shl_load;
9297  ;
9298  return 0;
9299}
9300_ACEOF
9301rm -f conftest.$ac_objext conftest$ac_exeext
9302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303  (eval $ac_link) 2>conftest.er1
9304  ac_status=$?
9305  grep -v '^ *+' conftest.er1 >conftest.err
9306  rm -f conftest.er1
9307  cat conftest.err >&5
9308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309  (exit $ac_status); } &&
9310         { ac_try='test -z "$ac_c_werror_flag"
9311                         || test ! -s conftest.err'
9312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313  (eval $ac_try) 2>&5
9314  ac_status=$?
9315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316  (exit $ac_status); }; } &&
9317         { ac_try='test -s conftest$ac_exeext'
9318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319  (eval $ac_try) 2>&5
9320  ac_status=$?
9321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322  (exit $ac_status); }; }; then
9323  ac_cv_func_shl_load=yes
9324else
9325  echo "$as_me: failed program was:" >&5
9326sed 's/^/| /' conftest.$ac_ext >&5
9327
9328ac_cv_func_shl_load=no
9329fi
9330rm -f conftest.err conftest.$ac_objext \
9331      conftest$ac_exeext conftest.$ac_ext
9332fi
9333echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9334echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9335if test $ac_cv_func_shl_load = yes; then
9336  lt_cv_dlopen="shl_load"
9337else
9338  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9339echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9340if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9341  echo $ECHO_N "(cached) $ECHO_C" >&6
9342else
9343  ac_check_lib_save_LIBS=$LIBS
9344LIBS="-ldld  $LIBS"
9345cat >conftest.$ac_ext <<_ACEOF
9346/* confdefs.h.  */
9347_ACEOF
9348cat confdefs.h >>conftest.$ac_ext
9349cat >>conftest.$ac_ext <<_ACEOF
9350/* end confdefs.h.  */
9351
9352/* Override any gcc2 internal prototype to avoid an error.  */
9353#ifdef __cplusplus
9354extern "C"
9355#endif
9356/* We use char because int might match the return type of a gcc2
9357   builtin and then its argument prototype would still apply.  */
9358char shl_load ();
9359int
9360main ()
9361{
9362shl_load ();
9363  ;
9364  return 0;
9365}
9366_ACEOF
9367rm -f conftest.$ac_objext conftest$ac_exeext
9368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369  (eval $ac_link) 2>conftest.er1
9370  ac_status=$?
9371  grep -v '^ *+' conftest.er1 >conftest.err
9372  rm -f conftest.er1
9373  cat conftest.err >&5
9374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375  (exit $ac_status); } &&
9376         { ac_try='test -z "$ac_c_werror_flag"
9377                         || test ! -s conftest.err'
9378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379  (eval $ac_try) 2>&5
9380  ac_status=$?
9381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382  (exit $ac_status); }; } &&
9383         { ac_try='test -s conftest$ac_exeext'
9384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385  (eval $ac_try) 2>&5
9386  ac_status=$?
9387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388  (exit $ac_status); }; }; then
9389  ac_cv_lib_dld_shl_load=yes
9390else
9391  echo "$as_me: failed program was:" >&5
9392sed 's/^/| /' conftest.$ac_ext >&5
9393
9394ac_cv_lib_dld_shl_load=no
9395fi
9396rm -f conftest.err conftest.$ac_objext \
9397      conftest$ac_exeext conftest.$ac_ext
9398LIBS=$ac_check_lib_save_LIBS
9399fi
9400echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9401echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9402if test $ac_cv_lib_dld_shl_load = yes; then
9403  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9404else
9405  echo "$as_me:$LINENO: checking for dlopen" >&5
9406echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9407if test "${ac_cv_func_dlopen+set}" = set; then
9408  echo $ECHO_N "(cached) $ECHO_C" >&6
9409else
9410  cat >conftest.$ac_ext <<_ACEOF
9411/* confdefs.h.  */
9412_ACEOF
9413cat confdefs.h >>conftest.$ac_ext
9414cat >>conftest.$ac_ext <<_ACEOF
9415/* end confdefs.h.  */
9416/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9417   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9418#define dlopen innocuous_dlopen
9419
9420/* System header to define __stub macros and hopefully few prototypes,
9421    which can conflict with char dlopen (); below.
9422    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9423    <limits.h> exists even on freestanding compilers.  */
9424
9425#ifdef __STDC__
9426# include <limits.h>
9427#else
9428# include <assert.h>
9429#endif
9430
9431#undef dlopen
9432
9433/* Override any gcc2 internal prototype to avoid an error.  */
9434#ifdef __cplusplus
9435extern "C"
9436{
9437#endif
9438/* We use char because int might match the return type of a gcc2
9439   builtin and then its argument prototype would still apply.  */
9440char dlopen ();
9441/* The GNU C library defines this for functions which it implements
9442    to always fail with ENOSYS.  Some functions are actually named
9443    something starting with __ and the normal name is an alias.  */
9444#if defined (__stub_dlopen) || defined (__stub___dlopen)
9445choke me
9446#else
9447char (*f) () = dlopen;
9448#endif
9449#ifdef __cplusplus
9450}
9451#endif
9452
9453int
9454main ()
9455{
9456return f != dlopen;
9457  ;
9458  return 0;
9459}
9460_ACEOF
9461rm -f conftest.$ac_objext conftest$ac_exeext
9462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463  (eval $ac_link) 2>conftest.er1
9464  ac_status=$?
9465  grep -v '^ *+' conftest.er1 >conftest.err
9466  rm -f conftest.er1
9467  cat conftest.err >&5
9468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469  (exit $ac_status); } &&
9470         { ac_try='test -z "$ac_c_werror_flag"
9471                         || test ! -s conftest.err'
9472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473  (eval $ac_try) 2>&5
9474  ac_status=$?
9475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476  (exit $ac_status); }; } &&
9477         { ac_try='test -s conftest$ac_exeext'
9478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479  (eval $ac_try) 2>&5
9480  ac_status=$?
9481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482  (exit $ac_status); }; }; then
9483  ac_cv_func_dlopen=yes
9484else
9485  echo "$as_me: failed program was:" >&5
9486sed 's/^/| /' conftest.$ac_ext >&5
9487
9488ac_cv_func_dlopen=no
9489fi
9490rm -f conftest.err conftest.$ac_objext \
9491      conftest$ac_exeext conftest.$ac_ext
9492fi
9493echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9494echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9495if test $ac_cv_func_dlopen = yes; then
9496  lt_cv_dlopen="dlopen"
9497else
9498  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9499echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9500if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9501  echo $ECHO_N "(cached) $ECHO_C" >&6
9502else
9503  ac_check_lib_save_LIBS=$LIBS
9504LIBS="-ldl  $LIBS"
9505cat >conftest.$ac_ext <<_ACEOF
9506/* confdefs.h.  */
9507_ACEOF
9508cat confdefs.h >>conftest.$ac_ext
9509cat >>conftest.$ac_ext <<_ACEOF
9510/* end confdefs.h.  */
9511
9512/* Override any gcc2 internal prototype to avoid an error.  */
9513#ifdef __cplusplus
9514extern "C"
9515#endif
9516/* We use char because int might match the return type of a gcc2
9517   builtin and then its argument prototype would still apply.  */
9518char dlopen ();
9519int
9520main ()
9521{
9522dlopen ();
9523  ;
9524  return 0;
9525}
9526_ACEOF
9527rm -f conftest.$ac_objext conftest$ac_exeext
9528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529  (eval $ac_link) 2>conftest.er1
9530  ac_status=$?
9531  grep -v '^ *+' conftest.er1 >conftest.err
9532  rm -f conftest.er1
9533  cat conftest.err >&5
9534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535  (exit $ac_status); } &&
9536         { ac_try='test -z "$ac_c_werror_flag"
9537                         || test ! -s conftest.err'
9538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539  (eval $ac_try) 2>&5
9540  ac_status=$?
9541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542  (exit $ac_status); }; } &&
9543         { ac_try='test -s conftest$ac_exeext'
9544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545  (eval $ac_try) 2>&5
9546  ac_status=$?
9547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548  (exit $ac_status); }; }; then
9549  ac_cv_lib_dl_dlopen=yes
9550else
9551  echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554ac_cv_lib_dl_dlopen=no
9555fi
9556rm -f conftest.err conftest.$ac_objext \
9557      conftest$ac_exeext conftest.$ac_ext
9558LIBS=$ac_check_lib_save_LIBS
9559fi
9560echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9561echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9562if test $ac_cv_lib_dl_dlopen = yes; then
9563  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9564else
9565  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9566echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9567if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9568  echo $ECHO_N "(cached) $ECHO_C" >&6
9569else
9570  ac_check_lib_save_LIBS=$LIBS
9571LIBS="-lsvld  $LIBS"
9572cat >conftest.$ac_ext <<_ACEOF
9573/* confdefs.h.  */
9574_ACEOF
9575cat confdefs.h >>conftest.$ac_ext
9576cat >>conftest.$ac_ext <<_ACEOF
9577/* end confdefs.h.  */
9578
9579/* Override any gcc2 internal prototype to avoid an error.  */
9580#ifdef __cplusplus
9581extern "C"
9582#endif
9583/* We use char because int might match the return type of a gcc2
9584   builtin and then its argument prototype would still apply.  */
9585char dlopen ();
9586int
9587main ()
9588{
9589dlopen ();
9590  ;
9591  return 0;
9592}
9593_ACEOF
9594rm -f conftest.$ac_objext conftest$ac_exeext
9595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596  (eval $ac_link) 2>conftest.er1
9597  ac_status=$?
9598  grep -v '^ *+' conftest.er1 >conftest.err
9599  rm -f conftest.er1
9600  cat conftest.err >&5
9601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602  (exit $ac_status); } &&
9603         { ac_try='test -z "$ac_c_werror_flag"
9604                         || test ! -s conftest.err'
9605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606  (eval $ac_try) 2>&5
9607  ac_status=$?
9608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609  (exit $ac_status); }; } &&
9610         { ac_try='test -s conftest$ac_exeext'
9611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612  (eval $ac_try) 2>&5
9613  ac_status=$?
9614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615  (exit $ac_status); }; }; then
9616  ac_cv_lib_svld_dlopen=yes
9617else
9618  echo "$as_me: failed program was:" >&5
9619sed 's/^/| /' conftest.$ac_ext >&5
9620
9621ac_cv_lib_svld_dlopen=no
9622fi
9623rm -f conftest.err conftest.$ac_objext \
9624      conftest$ac_exeext conftest.$ac_ext
9625LIBS=$ac_check_lib_save_LIBS
9626fi
9627echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9628echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9629if test $ac_cv_lib_svld_dlopen = yes; then
9630  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9631else
9632  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9633echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9634if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9635  echo $ECHO_N "(cached) $ECHO_C" >&6
9636else
9637  ac_check_lib_save_LIBS=$LIBS
9638LIBS="-ldld  $LIBS"
9639cat >conftest.$ac_ext <<_ACEOF
9640/* confdefs.h.  */
9641_ACEOF
9642cat confdefs.h >>conftest.$ac_ext
9643cat >>conftest.$ac_ext <<_ACEOF
9644/* end confdefs.h.  */
9645
9646/* Override any gcc2 internal prototype to avoid an error.  */
9647#ifdef __cplusplus
9648extern "C"
9649#endif
9650/* We use char because int might match the return type of a gcc2
9651   builtin and then its argument prototype would still apply.  */
9652char dld_link ();
9653int
9654main ()
9655{
9656dld_link ();
9657  ;
9658  return 0;
9659}
9660_ACEOF
9661rm -f conftest.$ac_objext conftest$ac_exeext
9662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663  (eval $ac_link) 2>conftest.er1
9664  ac_status=$?
9665  grep -v '^ *+' conftest.er1 >conftest.err
9666  rm -f conftest.er1
9667  cat conftest.err >&5
9668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669  (exit $ac_status); } &&
9670         { ac_try='test -z "$ac_c_werror_flag"
9671                         || test ! -s conftest.err'
9672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673  (eval $ac_try) 2>&5
9674  ac_status=$?
9675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676  (exit $ac_status); }; } &&
9677         { ac_try='test -s conftest$ac_exeext'
9678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679  (eval $ac_try) 2>&5
9680  ac_status=$?
9681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682  (exit $ac_status); }; }; then
9683  ac_cv_lib_dld_dld_link=yes
9684else
9685  echo "$as_me: failed program was:" >&5
9686sed 's/^/| /' conftest.$ac_ext >&5
9687
9688ac_cv_lib_dld_dld_link=no
9689fi
9690rm -f conftest.err conftest.$ac_objext \
9691      conftest$ac_exeext conftest.$ac_ext
9692LIBS=$ac_check_lib_save_LIBS
9693fi
9694echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9695echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9696if test $ac_cv_lib_dld_dld_link = yes; then
9697  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9698fi
9699
9700
9701fi
9702
9703
9704fi
9705
9706
9707fi
9708
9709
9710fi
9711
9712
9713fi
9714
9715    ;;
9716  esac
9717
9718  if test "x$lt_cv_dlopen" != xno; then
9719    enable_dlopen=yes
9720  else
9721    enable_dlopen=no
9722  fi
9723
9724  case $lt_cv_dlopen in
9725  dlopen)
9726    save_CPPFLAGS="$CPPFLAGS"
9727    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9728
9729    save_LDFLAGS="$LDFLAGS"
9730    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9731
9732    save_LIBS="$LIBS"
9733    LIBS="$lt_cv_dlopen_libs $LIBS"
9734
9735    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9736echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9737if test "${lt_cv_dlopen_self+set}" = set; then
9738  echo $ECHO_N "(cached) $ECHO_C" >&6
9739else
9740          if test "$cross_compiling" = yes; then :
9741  lt_cv_dlopen_self=cross
9742else
9743  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9744  lt_status=$lt_dlunknown
9745  cat > conftest.$ac_ext <<EOF
9746#line 9746 "configure"
9747#include "confdefs.h"
9748
9749#if HAVE_DLFCN_H
9750#include <dlfcn.h>
9751#endif
9752
9753#include <stdio.h>
9754
9755#ifdef RTLD_GLOBAL
9756#  define LT_DLGLOBAL           RTLD_GLOBAL
9757#else
9758#  ifdef DL_GLOBAL
9759#    define LT_DLGLOBAL         DL_GLOBAL
9760#  else
9761#    define LT_DLGLOBAL         0
9762#  endif
9763#endif
9764
9765/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9766   find out it does not work in some platform. */
9767#ifndef LT_DLLAZY_OR_NOW
9768#  ifdef RTLD_LAZY
9769#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9770#  else
9771#    ifdef DL_LAZY
9772#      define LT_DLLAZY_OR_NOW          DL_LAZY
9773#    else
9774#      ifdef RTLD_NOW
9775#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9776#      else
9777#        ifdef DL_NOW
9778#          define LT_DLLAZY_OR_NOW      DL_NOW
9779#        else
9780#          define LT_DLLAZY_OR_NOW      0
9781#        endif
9782#      endif
9783#    endif
9784#  endif
9785#endif
9786
9787#ifdef __cplusplus
9788extern "C" void exit (int);
9789#endif
9790
9791void fnord() { int i=42;}
9792int main ()
9793{
9794  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9795  int status = $lt_dlunknown;
9796
9797  if (self)
9798    {
9799      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9800      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9801      /* dlclose (self); */
9802    }
9803  else
9804    puts (dlerror ());
9805
9806    exit (status);
9807}
9808EOF
9809  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810  (eval $ac_link) 2>&5
9811  ac_status=$?
9812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9814    (./conftest; exit; ) >&5 2>/dev/null
9815    lt_status=$?
9816    case x$lt_status in
9817      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9818      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9819      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9820    esac
9821  else :
9822    # compilation failed
9823    lt_cv_dlopen_self=no
9824  fi
9825fi
9826rm -fr conftest*
9827
9828
9829fi
9830echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9831echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9832
9833    if test "x$lt_cv_dlopen_self" = xyes; then
9834      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9835      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9836echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9837if test "${lt_cv_dlopen_self_static+set}" = set; then
9838  echo $ECHO_N "(cached) $ECHO_C" >&6
9839else
9840          if test "$cross_compiling" = yes; then :
9841  lt_cv_dlopen_self_static=cross
9842else
9843  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9844  lt_status=$lt_dlunknown
9845  cat > conftest.$ac_ext <<EOF
9846#line 9846 "configure"
9847#include "confdefs.h"
9848
9849#if HAVE_DLFCN_H
9850#include <dlfcn.h>
9851#endif
9852
9853#include <stdio.h>
9854
9855#ifdef RTLD_GLOBAL
9856#  define LT_DLGLOBAL           RTLD_GLOBAL
9857#else
9858#  ifdef DL_GLOBAL
9859#    define LT_DLGLOBAL         DL_GLOBAL
9860#  else
9861#    define LT_DLGLOBAL         0
9862#  endif
9863#endif
9864
9865/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9866   find out it does not work in some platform. */
9867#ifndef LT_DLLAZY_OR_NOW
9868#  ifdef RTLD_LAZY
9869#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9870#  else
9871#    ifdef DL_LAZY
9872#      define LT_DLLAZY_OR_NOW          DL_LAZY
9873#    else
9874#      ifdef RTLD_NOW
9875#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9876#      else
9877#        ifdef DL_NOW
9878#          define LT_DLLAZY_OR_NOW      DL_NOW
9879#        else
9880#          define LT_DLLAZY_OR_NOW      0
9881#        endif
9882#      endif
9883#    endif
9884#  endif
9885#endif
9886
9887#ifdef __cplusplus
9888extern "C" void exit (int);
9889#endif
9890
9891void fnord() { int i=42;}
9892int main ()
9893{
9894  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9895  int status = $lt_dlunknown;
9896
9897  if (self)
9898    {
9899      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9900      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9901      /* dlclose (self); */
9902    }
9903  else
9904    puts (dlerror ());
9905
9906    exit (status);
9907}
9908EOF
9909  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9910  (eval $ac_link) 2>&5
9911  ac_status=$?
9912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9914    (./conftest; exit; ) >&5 2>/dev/null
9915    lt_status=$?
9916    case x$lt_status in
9917      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9918      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9919      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9920    esac
9921  else :
9922    # compilation failed
9923    lt_cv_dlopen_self_static=no
9924  fi
9925fi
9926rm -fr conftest*
9927
9928
9929fi
9930echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9931echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9932    fi
9933
9934    CPPFLAGS="$save_CPPFLAGS"
9935    LDFLAGS="$save_LDFLAGS"
9936    LIBS="$save_LIBS"
9937    ;;
9938  esac
9939
9940  case $lt_cv_dlopen_self in
9941  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9942  *) enable_dlopen_self=unknown ;;
9943  esac
9944
9945  case $lt_cv_dlopen_self_static in
9946  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9947  *) enable_dlopen_self_static=unknown ;;
9948  esac
9949fi
9950
9951
9952# Report which library types will actually be built
9953echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9954echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9955echo "$as_me:$LINENO: result: $can_build_shared" >&5
9956echo "${ECHO_T}$can_build_shared" >&6
9957
9958echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9959echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9960test "$can_build_shared" = "no" && enable_shared=no
9961
9962# On AIX, shared libraries and static libraries use the same namespace, and
9963# are all built from PIC.
9964case $host_os in
9965aix3*)
9966  test "$enable_shared" = yes && enable_static=no
9967  if test -n "$RANLIB"; then
9968    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9969    postinstall_cmds='$RANLIB $lib'
9970  fi
9971  ;;
9972
9973aix4* | aix5*)
9974  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9975    test "$enable_shared" = yes && enable_static=no
9976  fi
9977    ;;
9978esac
9979echo "$as_me:$LINENO: result: $enable_shared" >&5
9980echo "${ECHO_T}$enable_shared" >&6
9981
9982echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9983echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9984# Make sure either enable_shared or enable_static is yes.
9985test "$enable_shared" = yes || enable_static=yes
9986echo "$as_me:$LINENO: result: $enable_static" >&5
9987echo "${ECHO_T}$enable_static" >&6
9988
9989# The else clause should only fire when bootstrapping the
9990# libtool distribution, otherwise you forgot to ship ltmain.sh
9991# with your package, and you will get complaints that there are
9992# no rules to generate ltmain.sh.
9993if test -f "$ltmain"; then
9994  # See if we are running on zsh, and set the options which allow our commands through
9995  # without removal of \ escapes.
9996  if test -n "${ZSH_VERSION+set}" ; then
9997    setopt NO_GLOB_SUBST
9998  fi
9999  # Now quote all the things that may contain metacharacters while being
10000  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10001  # variables and quote the copies for generation of the libtool script.
10002  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10003    SED SHELL STRIP \
10004    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10005    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10006    deplibs_check_method reload_flag reload_cmds need_locks \
10007    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10008    lt_cv_sys_global_symbol_to_c_name_address \
10009    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10010    old_postinstall_cmds old_postuninstall_cmds \
10011    compiler \
10012    CC \
10013    LD \
10014    lt_prog_compiler_wl \
10015    lt_prog_compiler_pic \
10016    lt_prog_compiler_static \
10017    lt_prog_compiler_no_builtin_flag \
10018    export_dynamic_flag_spec \
10019    thread_safe_flag_spec \
10020    whole_archive_flag_spec \
10021    enable_shared_with_static_runtimes \
10022    old_archive_cmds \
10023    old_archive_from_new_cmds \
10024    predep_objects \
10025    postdep_objects \
10026    predeps \
10027    postdeps \
10028    compiler_lib_search_path \
10029    archive_cmds \
10030    archive_expsym_cmds \
10031    postinstall_cmds \
10032    postuninstall_cmds \
10033    old_archive_from_expsyms_cmds \
10034    allow_undefined_flag \
10035    no_undefined_flag \
10036    export_symbols_cmds \
10037    hardcode_libdir_flag_spec \
10038    hardcode_libdir_flag_spec_ld \
10039    hardcode_libdir_separator \
10040    hardcode_automatic \
10041    module_cmds \
10042    module_expsym_cmds \
10043    lt_cv_prog_compiler_c_o \
10044    exclude_expsyms \
10045    include_expsyms; do
10046
10047    case $var in
10048    old_archive_cmds | \
10049    old_archive_from_new_cmds | \
10050    archive_cmds | \
10051    archive_expsym_cmds | \
10052    module_cmds | \
10053    module_expsym_cmds | \
10054    old_archive_from_expsyms_cmds | \
10055    export_symbols_cmds | \
10056    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10057    postinstall_cmds | postuninstall_cmds | \
10058    old_postinstall_cmds | old_postuninstall_cmds | \
10059    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10060      # Double-quote double-evaled strings.
10061      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10062      ;;
10063    *)
10064      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10065      ;;
10066    esac
10067  done
10068
10069  case $lt_echo in
10070  *'\$0 --fallback-echo"')
10071    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10072    ;;
10073  esac
10074
10075cfgfile="${ofile}T"
10076  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10077  $rm -f "$cfgfile"
10078  { echo "$as_me:$LINENO: creating $ofile" >&5
10079echo "$as_me: creating $ofile" >&6;}
10080
10081  cat <<__EOF__ >> "$cfgfile"
10082#! $SHELL
10083
10084# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10085# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10086# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10087#
10088# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10089# Free Software Foundation, Inc.
10090#
10091# This file is part of GNU Libtool:
10092# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10093#
10094# This program is free software; you can redistribute it and/or modify
10095# it under the terms of the GNU General Public License as published by
10096# the Free Software Foundation; either version 2 of the License, or
10097# (at your option) any later version.
10098#
10099# This program is distributed in the hope that it will be useful, but
10100# WITHOUT ANY WARRANTY; without even the implied warranty of
10101# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10102# General Public License for more details.
10103#
10104# You should have received a copy of the GNU General Public License
10105# along with this program; if not, write to the Free Software
10106# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10107#
10108# As a special exception to the GNU General Public License, if you
10109# distribute this file as part of a program that contains a
10110# configuration script generated by Autoconf, you may include it under
10111# the same distribution terms that you use for the rest of that program.
10112
10113# A sed program that does not truncate output.
10114SED=$lt_SED
10115
10116# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10117Xsed="$SED -e 1s/^X//"
10118
10119# The HP-UX ksh and POSIX shell print the target directory to stdout
10120# if CDPATH is set.
10121(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10122
10123# The names of the tagged configurations supported by this script.
10124available_tags=
10125
10126# ### BEGIN LIBTOOL CONFIG
10127
10128# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10129
10130# Shell to use when invoking shell scripts.
10131SHELL=$lt_SHELL
10132
10133# Whether or not to build shared libraries.
10134build_libtool_libs=$enable_shared
10135
10136# Whether or not to build static libraries.
10137build_old_libs=$enable_static
10138
10139# Whether or not to add -lc for building shared libraries.
10140build_libtool_need_lc=$archive_cmds_need_lc
10141
10142# Whether or not to disallow shared libs when runtime libs are static
10143allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10144
10145# Whether or not to optimize for fast installation.
10146fast_install=$enable_fast_install
10147
10148# The host system.
10149host_alias=$host_alias
10150host=$host
10151host_os=$host_os
10152
10153# The build system.
10154build_alias=$build_alias
10155build=$build
10156build_os=$build_os
10157
10158# An echo program that does not interpret backslashes.
10159echo=$lt_echo
10160
10161# The archiver.
10162AR=$lt_AR
10163AR_FLAGS=$lt_AR_FLAGS
10164
10165# A C compiler.
10166LTCC=$lt_LTCC
10167
10168# LTCC compiler flags.
10169LTCFLAGS=$lt_LTCFLAGS
10170
10171# A language-specific compiler.
10172CC=$lt_compiler
10173
10174# Is the compiler the GNU C compiler?
10175with_gcc=$GCC
10176
10177# An ERE matcher.
10178EGREP=$lt_EGREP
10179
10180# The linker used to build libraries.
10181LD=$lt_LD
10182
10183# Whether we need hard or soft links.
10184LN_S=$lt_LN_S
10185
10186# A BSD-compatible nm program.
10187NM=$lt_NM
10188
10189# A symbol stripping program
10190STRIP=$lt_STRIP
10191
10192# Used to examine libraries when file_magic_cmd begins "file"
10193MAGIC_CMD=$MAGIC_CMD
10194
10195# Used on cygwin: DLL creation program.
10196DLLTOOL="$DLLTOOL"
10197
10198# Used on cygwin: object dumper.
10199OBJDUMP="$OBJDUMP"
10200
10201# Used on cygwin: assembler.
10202AS="$AS"
10203
10204# The name of the directory that contains temporary libtool files.
10205objdir=$objdir
10206
10207# How to create reloadable object files.
10208reload_flag=$lt_reload_flag
10209reload_cmds=$lt_reload_cmds
10210
10211# How to pass a linker flag through the compiler.
10212wl=$lt_lt_prog_compiler_wl
10213
10214# Object file suffix (normally "o").
10215objext="$ac_objext"
10216
10217# Old archive suffix (normally "a").
10218libext="$libext"
10219
10220# Shared library suffix (normally ".so").
10221shrext_cmds='$shrext_cmds'
10222
10223# Executable file suffix (normally "").
10224exeext="$exeext"
10225
10226# Additional compiler flags for building library objects.
10227pic_flag=$lt_lt_prog_compiler_pic
10228pic_mode=$pic_mode
10229
10230# What is the maximum length of a command?
10231max_cmd_len=$lt_cv_sys_max_cmd_len
10232
10233# Does compiler simultaneously support -c and -o options?
10234compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10235
10236# Must we lock files when doing compilation?
10237need_locks=$lt_need_locks
10238
10239# Do we need the lib prefix for modules?
10240need_lib_prefix=$need_lib_prefix
10241
10242# Do we need a version for libraries?
10243need_version=$need_version
10244
10245# Whether dlopen is supported.
10246dlopen_support=$enable_dlopen
10247
10248# Whether dlopen of programs is supported.
10249dlopen_self=$enable_dlopen_self
10250
10251# Whether dlopen of statically linked programs is supported.
10252dlopen_self_static=$enable_dlopen_self_static
10253
10254# Compiler flag to prevent dynamic linking.
10255link_static_flag=$lt_lt_prog_compiler_static
10256
10257# Compiler flag to turn off builtin functions.
10258no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10259
10260# Compiler flag to allow reflexive dlopens.
10261export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10262
10263# Compiler flag to generate shared objects directly from archives.
10264whole_archive_flag_spec=$lt_whole_archive_flag_spec
10265
10266# Compiler flag to generate thread-safe objects.
10267thread_safe_flag_spec=$lt_thread_safe_flag_spec
10268
10269# Library versioning type.
10270version_type=$version_type
10271
10272# Format of library name prefix.
10273libname_spec=$lt_libname_spec
10274
10275# List of archive names.  First name is the real one, the rest are links.
10276# The last name is the one that the linker finds with -lNAME.
10277library_names_spec=$lt_library_names_spec
10278
10279# The coded name of the library, if different from the real name.
10280soname_spec=$lt_soname_spec
10281
10282# Commands used to build and install an old-style archive.
10283RANLIB=$lt_RANLIB
10284old_archive_cmds=$lt_old_archive_cmds
10285old_postinstall_cmds=$lt_old_postinstall_cmds
10286old_postuninstall_cmds=$lt_old_postuninstall_cmds
10287
10288# Create an old-style archive from a shared archive.
10289old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10290
10291# Create a temporary old-style archive to link instead of a shared archive.
10292old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10293
10294# Commands used to build and install a shared archive.
10295archive_cmds=$lt_archive_cmds
10296archive_expsym_cmds=$lt_archive_expsym_cmds
10297postinstall_cmds=$lt_postinstall_cmds
10298postuninstall_cmds=$lt_postuninstall_cmds
10299
10300# Commands used to build a loadable module (assumed same as above if empty)
10301module_cmds=$lt_module_cmds
10302module_expsym_cmds=$lt_module_expsym_cmds
10303
10304# Commands to strip libraries.
10305old_striplib=$lt_old_striplib
10306striplib=$lt_striplib
10307
10308# Dependencies to place before the objects being linked to create a
10309# shared library.
10310predep_objects=$lt_predep_objects
10311
10312# Dependencies to place after the objects being linked to create a
10313# shared library.
10314postdep_objects=$lt_postdep_objects
10315
10316# Dependencies to place before the objects being linked to create a
10317# shared library.
10318predeps=$lt_predeps
10319
10320# Dependencies to place after the objects being linked to create a
10321# shared library.
10322postdeps=$lt_postdeps
10323
10324# The library search path used internally by the compiler when linking
10325# a shared library.
10326compiler_lib_search_path=$lt_compiler_lib_search_path
10327
10328# Method to check whether dependent libraries are shared objects.
10329deplibs_check_method=$lt_deplibs_check_method
10330
10331# Command to use when deplibs_check_method == file_magic.
10332file_magic_cmd=$lt_file_magic_cmd
10333
10334# Flag that allows shared libraries with undefined symbols to be built.
10335allow_undefined_flag=$lt_allow_undefined_flag
10336
10337# Flag that forces no undefined symbols.
10338no_undefined_flag=$lt_no_undefined_flag
10339
10340# Commands used to finish a libtool library installation in a directory.
10341finish_cmds=$lt_finish_cmds
10342
10343# Same as above, but a single script fragment to be evaled but not shown.
10344finish_eval=$lt_finish_eval
10345
10346# Take the output of nm and produce a listing of raw symbols and C names.
10347global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10348
10349# Transform the output of nm in a proper C declaration
10350global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10351
10352# Transform the output of nm in a C name address pair
10353global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10354
10355# This is the shared library runtime path variable.
10356runpath_var=$runpath_var
10357
10358# This is the shared library path variable.
10359shlibpath_var=$shlibpath_var
10360
10361# Is shlibpath searched before the hard-coded library search path?
10362shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10363
10364# How to hardcode a shared library path into an executable.
10365hardcode_action=$hardcode_action
10366
10367# Whether we should hardcode library paths into libraries.
10368hardcode_into_libs=$hardcode_into_libs
10369
10370# Flag to hardcode \$libdir into a binary during linking.
10371# This must work even if \$libdir does not exist.
10372hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10373
10374# If ld is used when linking, flag to hardcode \$libdir into
10375# a binary during linking. This must work even if \$libdir does
10376# not exist.
10377hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10378
10379# Whether we need a single -rpath flag with a separated argument.
10380hardcode_libdir_separator=$lt_hardcode_libdir_separator
10381
10382# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10383# resulting binary.
10384hardcode_direct=$hardcode_direct
10385
10386# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10387# resulting binary.
10388hardcode_minus_L=$hardcode_minus_L
10389
10390# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10391# the resulting binary.
10392hardcode_shlibpath_var=$hardcode_shlibpath_var
10393
10394# Set to yes if building a shared library automatically hardcodes DIR into the library
10395# and all subsequent libraries and executables linked against it.
10396hardcode_automatic=$hardcode_automatic
10397
10398# Variables whose values should be saved in libtool wrapper scripts and
10399# restored at relink time.
10400variables_saved_for_relink="$variables_saved_for_relink"
10401
10402# Whether libtool must link a program against all its dependency libraries.
10403link_all_deplibs=$link_all_deplibs
10404
10405# Compile-time system search path for libraries
10406sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10407
10408# Run-time system search path for libraries
10409sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10410
10411# Fix the shell variable \$srcfile for the compiler.
10412fix_srcfile_path="$fix_srcfile_path"
10413
10414# Set to yes if exported symbols are required.
10415always_export_symbols=$always_export_symbols
10416
10417# The commands to list exported symbols.
10418export_symbols_cmds=$lt_export_symbols_cmds
10419
10420# The commands to extract the exported symbol list from a shared archive.
10421extract_expsyms_cmds=$lt_extract_expsyms_cmds
10422
10423# Symbols that should not be listed in the preloaded symbols.
10424exclude_expsyms=$lt_exclude_expsyms
10425
10426# Symbols that must always be exported.
10427include_expsyms=$lt_include_expsyms
10428
10429# ### END LIBTOOL CONFIG
10430
10431__EOF__
10432
10433
10434  case $host_os in
10435  aix3*)
10436    cat <<\EOF >> "$cfgfile"
10437
10438# AIX sometimes has problems with the GCC collect2 program.  For some
10439# reason, if we set the COLLECT_NAMES environment variable, the problems
10440# vanish in a puff of smoke.
10441if test "X${COLLECT_NAMES+set}" != Xset; then
10442  COLLECT_NAMES=
10443  export COLLECT_NAMES
10444fi
10445EOF
10446    ;;
10447  esac
10448
10449  # We use sed instead of cat because bash on DJGPP gets confused if
10450  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10451  # text mode, it properly converts lines to CR/LF.  This bash problem
10452  # is reportedly fixed, but why not run on old versions too?
10453  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10454
10455  mv -f "$cfgfile" "$ofile" || \
10456    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10457  chmod +x "$ofile"
10458
10459else
10460  # If there is no Makefile yet, we rely on a make rule to execute
10461  # `config.status --recheck' to rerun these tests and create the
10462  # libtool script then.
10463  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10464  if test -f "$ltmain_in"; then
10465    test -f Makefile && make "$ltmain"
10466  fi
10467fi
10468
10469
10470ac_ext=c
10471ac_cpp='$CPP $CPPFLAGS'
10472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10474ac_compiler_gnu=$ac_cv_c_compiler_gnu
10475
10476CC="$lt_save_CC"
10477
10478
10479# Check whether --with-tags or --without-tags was given.
10480if test "${with_tags+set}" = set; then
10481  withval="$with_tags"
10482  tagnames="$withval"
10483fi;
10484
10485if test -f "$ltmain" && test -n "$tagnames"; then
10486  if test ! -f "${ofile}"; then
10487    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10488echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10489  fi
10490
10491  if test -z "$LTCC"; then
10492    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10493    if test -z "$LTCC"; then
10494      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10495echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10496    else
10497      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10498echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10499    fi
10500  fi
10501  if test -z "$LTCFLAGS"; then
10502    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10503  fi
10504
10505  # Extract list of available tagged configurations in $ofile.
10506  # Note that this assumes the entire list is on one line.
10507  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10508
10509  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10510  for tagname in $tagnames; do
10511    IFS="$lt_save_ifs"
10512    # Check whether tagname contains only valid characters
10513    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10514    "") ;;
10515    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10516echo "$as_me: error: invalid tag name: $tagname" >&2;}
10517   { (exit 1); exit 1; }; }
10518        ;;
10519    esac
10520
10521    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10522    then
10523      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10524echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10525   { (exit 1); exit 1; }; }
10526    fi
10527
10528    # Update the list of available tags.
10529    if test -n "$tagname"; then
10530      echo appending configuration tag \"$tagname\" to $ofile
10531
10532      case $tagname in
10533      CXX)
10534        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10535            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10536            (test "X$CXX" != "Xg++"))) ; then
10537          ac_ext=cc
10538ac_cpp='$CXXCPP $CPPFLAGS'
10539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10542
10543
10544
10545
10546archive_cmds_need_lc_CXX=no
10547allow_undefined_flag_CXX=
10548always_export_symbols_CXX=no
10549archive_expsym_cmds_CXX=
10550export_dynamic_flag_spec_CXX=
10551hardcode_direct_CXX=no
10552hardcode_libdir_flag_spec_CXX=
10553hardcode_libdir_flag_spec_ld_CXX=
10554hardcode_libdir_separator_CXX=
10555hardcode_minus_L_CXX=no
10556hardcode_shlibpath_var_CXX=unsupported
10557hardcode_automatic_CXX=no
10558module_cmds_CXX=
10559module_expsym_cmds_CXX=
10560link_all_deplibs_CXX=unknown
10561old_archive_cmds_CXX=$old_archive_cmds
10562no_undefined_flag_CXX=
10563whole_archive_flag_spec_CXX=
10564enable_shared_with_static_runtimes_CXX=no
10565
10566# Dependencies to place before and after the object being linked:
10567predep_objects_CXX=
10568postdep_objects_CXX=
10569predeps_CXX=
10570postdeps_CXX=
10571compiler_lib_search_path_CXX=
10572
10573# Source file extension for C++ test sources.
10574ac_ext=cpp
10575
10576# Object file extension for compiled C++ test sources.
10577objext=o
10578objext_CXX=$objext
10579
10580# Code to be used in simple compile tests
10581lt_simple_compile_test_code="int some_variable = 0;\n"
10582
10583# Code to be used in simple link tests
10584lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10585
10586# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10587
10588# If no C compiler was specified, use CC.
10589LTCC=${LTCC-"$CC"}
10590
10591# If no C compiler flags were specified, use CFLAGS.
10592LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10593
10594# Allow CC to be a program name with arguments.
10595compiler=$CC
10596
10597
10598# save warnings/boilerplate of simple test code
10599ac_outfile=conftest.$ac_objext
10600printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10601eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10602_lt_compiler_boilerplate=`cat conftest.err`
10603$rm conftest*
10604
10605ac_outfile=conftest.$ac_objext
10606printf "$lt_simple_link_test_code" >conftest.$ac_ext
10607eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10608_lt_linker_boilerplate=`cat conftest.err`
10609$rm conftest*
10610
10611
10612# Allow CC to be a program name with arguments.
10613lt_save_CC=$CC
10614lt_save_LD=$LD
10615lt_save_GCC=$GCC
10616GCC=$GXX
10617lt_save_with_gnu_ld=$with_gnu_ld
10618lt_save_path_LD=$lt_cv_path_LD
10619if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10620  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10621else
10622  $as_unset lt_cv_prog_gnu_ld
10623fi
10624if test -n "${lt_cv_path_LDCXX+set}"; then
10625  lt_cv_path_LD=$lt_cv_path_LDCXX
10626else
10627  $as_unset lt_cv_path_LD
10628fi
10629test -z "${LDCXX+set}" || LD=$LDCXX
10630CC=${CXX-"c++"}
10631compiler=$CC
10632compiler_CXX=$CC
10633for cc_temp in $compiler""; do
10634  case $cc_temp in
10635    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10636    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10637    \-*) ;;
10638    *) break;;
10639  esac
10640done
10641cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10642
10643
10644# We don't want -fno-exception wen compiling C++ code, so set the
10645# no_builtin_flag separately
10646if test "$GXX" = yes; then
10647  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10648else
10649  lt_prog_compiler_no_builtin_flag_CXX=
10650fi
10651
10652if test "$GXX" = yes; then
10653  # Set up default GNU C++ configuration
10654
10655
10656# Check whether --with-gnu-ld or --without-gnu-ld was given.
10657if test "${with_gnu_ld+set}" = set; then
10658  withval="$with_gnu_ld"
10659  test "$withval" = no || with_gnu_ld=yes
10660else
10661  with_gnu_ld=no
10662fi;
10663ac_prog=ld
10664if test "$GCC" = yes; then
10665  # Check if gcc -print-prog-name=ld gives a path.
10666  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10667echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10668  case $host in
10669  *-*-mingw*)
10670    # gcc leaves a trailing carriage return which upsets mingw
10671    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10672  *)
10673    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10674  esac
10675  case $ac_prog in
10676    # Accept absolute paths.
10677    [\\/]* | ?:[\\/]*)
10678      re_direlt='/[^/][^/]*/\.\./'
10679      # Canonicalize the pathname of ld
10680      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10681      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10682        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10683      done
10684      test -z "$LD" && LD="$ac_prog"
10685      ;;
10686  "")
10687    # If it fails, then pretend we aren't using GCC.
10688    ac_prog=ld
10689    ;;
10690  *)
10691    # If it is relative, then search for the first ld in PATH.
10692    with_gnu_ld=unknown
10693    ;;
10694  esac
10695elif test "$with_gnu_ld" = yes; then
10696  echo "$as_me:$LINENO: checking for GNU ld" >&5
10697echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10698else
10699  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10700echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10701fi
10702if test "${lt_cv_path_LD+set}" = set; then
10703  echo $ECHO_N "(cached) $ECHO_C" >&6
10704else
10705  if test -z "$LD"; then
10706  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10707  for ac_dir in $PATH; do
10708    IFS="$lt_save_ifs"
10709    test -z "$ac_dir" && ac_dir=.
10710    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10711      lt_cv_path_LD="$ac_dir/$ac_prog"
10712      # Check to see if the program is GNU ld.  I'd rather use --version,
10713      # but apparently some variants of GNU ld only accept -v.
10714      # Break only if it was the GNU/non-GNU ld that we prefer.
10715      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10716      *GNU* | *'with BFD'*)
10717        test "$with_gnu_ld" != no && break
10718        ;;
10719      *)
10720        test "$with_gnu_ld" != yes && break
10721        ;;
10722      esac
10723    fi
10724  done
10725  IFS="$lt_save_ifs"
10726else
10727  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10728fi
10729fi
10730
10731LD="$lt_cv_path_LD"
10732if test -n "$LD"; then
10733  echo "$as_me:$LINENO: result: $LD" >&5
10734echo "${ECHO_T}$LD" >&6
10735else
10736  echo "$as_me:$LINENO: result: no" >&5
10737echo "${ECHO_T}no" >&6
10738fi
10739test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10740echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10741   { (exit 1); exit 1; }; }
10742echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10743echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10744if test "${lt_cv_prog_gnu_ld+set}" = set; then
10745  echo $ECHO_N "(cached) $ECHO_C" >&6
10746else
10747  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10748case `$LD -v 2>&1 </dev/null` in
10749*GNU* | *'with BFD'*)
10750  lt_cv_prog_gnu_ld=yes
10751  ;;
10752*)
10753  lt_cv_prog_gnu_ld=no
10754  ;;
10755esac
10756fi
10757echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10758echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10759with_gnu_ld=$lt_cv_prog_gnu_ld
10760
10761
10762
10763  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10764  # archiving commands below assume that GNU ld is being used.
10765  if test "$with_gnu_ld" = yes; then
10766    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10767    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'
10768
10769    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10770    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10771
10772    # If archive_cmds runs LD, not CC, wlarc should be empty
10773    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10774    #     investigate it a little bit more. (MM)
10775    wlarc='${wl}'
10776
10777    # ancient GNU ld didn't support --whole-archive et. al.
10778    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10779        grep 'no-whole-archive' > /dev/null; then
10780      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10781    else
10782      whole_archive_flag_spec_CXX=
10783    fi
10784  else
10785    with_gnu_ld=no
10786    wlarc=
10787
10788    # A generic and very simple default shared library creation
10789    # command for GNU C++ for the case where it uses the native
10790    # linker, instead of GNU ld.  If possible, this setting should
10791    # overridden to take advantage of the native linker features on
10792    # the platform it is being used on.
10793    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10794  fi
10795
10796  # Commands to make compiler produce verbose output that lists
10797  # what "hidden" libraries, object files and flags are used when
10798  # linking a shared library.
10799  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10800
10801else
10802  GXX=no
10803  with_gnu_ld=no
10804  wlarc=
10805fi
10806
10807# PORTME: fill in a description of your system's C++ link characteristics
10808echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10809echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10810ld_shlibs_CXX=yes
10811case $host_os in
10812  aix3*)
10813    # FIXME: insert proper C++ library support
10814    ld_shlibs_CXX=no
10815    ;;
10816  aix4* | aix5*)
10817    if test "$host_cpu" = ia64; then
10818      # On IA64, the linker does run time linking by default, so we don't