source: ThirdParty/HSL/trunk/configure @ 4046

Last change on this file since 4046 was 4046, checked in by stefan, 6 months ago

check for pkg-config also if no ma57 or higher

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