source: ThirdParty/FilterSQP/stable/1.0/configure @ 1217

Last change on this file since 1217 was 1217, checked in by andreasw, 11 years ago

corrected version number

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