source: trunk/Clp/configure @ 827

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

integrated latest fixed in BuildTools?

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