source: trunk/Clp/configure @ 800

Last change on this file since 800 was 797, checked in by andreasw, 13 years ago

updated INSTALL and README file; reran autotools to get latest changes in BuildTools?

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