source: ThirdParty/Blas/stable/1.0/configure @ 121

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

check for C compiler when we search for Fortran compiler to make sure we have consistent compilers

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