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

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

rerun autotools

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