source: ThirdParty/Glpk/branches/autotools-update/configure @ 3670

Last change on this file since 3670 was 3670, checked in by stefan, 4 years ago

rerun autotools

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