source: ThirdParty/Blas/releases/1.0.1/configure @ 453

Last change on this file since 453 was 148, checked in by andreasw, 14 years ago

included latest changes from coin.m4

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