source: ThirdParty/FilterSQP/trunk/configure @ 998

Last change on this file since 998 was 998, checked in by andreasw, 12 years ago

reran autotools

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