source: ThirdParty/ASL/trunk/configure @ 1871

Last change on this file since 1871 was 1871, checked in by stefan, 9 years ago

rename ampl solver library to have standard format, and to be the same for MS and other compilers

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