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

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

rerun autotools

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