source: ThirdParty/FilterSQP/stable/1.2/configure @ 2309

Last change on this file since 2309 was 2309, checked in by stefan, 8 years ago

sync with trunk rev2307

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