source: ThirdParty/Mumps/branches/mumps5/configure @ 4007

Last change on this file since 4007 was 4007, checked in by stefan, 2 months ago

add check for dgemmt in blas/lapack and define gemmt_available if possible

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