source: ThirdParty/FilterSQP/trunk/configure @ 3138

Last change on this file since 3138 was 3138, checked in by tkr, 6 years ago

Re-running autotools

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