source: trunk/Clp/configure @ 815

Last change on this file since 815 was 815, checked in by andreasw, 16 years ago

corrected VPATH links

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