source: ThirdParty/FilterSQP/trunk/configure @ 1755

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

temporarily committing stable candidate

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