source: ThirdParty/Lapack/trunk/configure @ 163

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

included latest changes from coin.m4

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