source: branches/autotools-update/Clp/configure @ 2362

Last change on this file since 2362 was 2362, checked in by lou, 6 months ago

Merge trunk 2339 -- 2359. Propagate BuildTools? changes. Detect installed MUMPS
package (works on Fedora, at least).

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