source: ThirdParty/ASL/trunk/configure @ 725

Last change on this file since 725 was 725, checked in by lou, 12 years ago

Changes to build ASL on Solaris / x86. Introduce compile_Unix_ASL.in. Tweaks to
eliminate comptry.bat in compile_MS_ASL.in; solves problem with cygwin / cl.

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