1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for package-unused version-unused.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='package-unused'
589PACKAGE_TARNAME='libphobos'
590PACKAGE_VERSION='version-unused'
591PACKAGE_STRING='package-unused version-unused'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="libdruntime/gcc/attribute.d"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636WARN_DFLAGS
637libtool_VERSION
638SPEC_PHOBOS_DEPS
639CHECKING_DFLAGS
640ENABLE_LIBDRUNTIME_ONLY_FALSE
641ENABLE_LIBDRUNTIME_ONLY_TRUE
642ENABLE_LIBPHOBOS_FALSE
643ENABLE_LIBPHOBOS_TRUE
644gdc_include_dir
645libphobos_toolexeclibdir
646libphobos_toolexecdir
647gcc_version
648LIBZ
649BACKTRACE_SUPPORTS_THREADS
650BACKTRACE_USES_MALLOC
651BACKTRACE_SUPPORTED
652LIBBACKTRACE
653LIBATOMIC
654DCFG_HAVE_LIBATOMIC
655DCFG_HAVE_64BIT_ATOMICS
656DCFG_HAVE_ATOMIC_BUILTINS
657DCFG_HAVE_QSORT_R
658OS_LINK_SPEC
659DCFG_DLPI_TLS_MODID
660DRUNTIME_OS_MINFO_BRACKETING_FALSE
661DRUNTIME_OS_MINFO_BRACKETING_TRUE
662DCFG_MINFO_BRACKETING
663DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665DCFG_ARM_EABI_UNWINDER
666DCFG_THREAD_MODEL
667DRUNTIME_OS_POSIX_FALSE
668DRUNTIME_OS_POSIX_TRUE
669DRUNTIME_OS_SOLARIS_FALSE
670DRUNTIME_OS_SOLARIS_TRUE
671DRUNTIME_OS_MINGW_FALSE
672DRUNTIME_OS_MINGW_TRUE
673DRUNTIME_OS_LINUX_FALSE
674DRUNTIME_OS_LINUX_TRUE
675DRUNTIME_OS_OPENBSD_FALSE
676DRUNTIME_OS_OPENBSD_TRUE
677DRUNTIME_OS_NETBSD_FALSE
678DRUNTIME_OS_NETBSD_TRUE
679DRUNTIME_OS_FREEBSD_FALSE
680DRUNTIME_OS_FREEBSD_TRUE
681DRUNTIME_OS_DRAGONFLYBSD_FALSE
682DRUNTIME_OS_DRAGONFLYBSD_TRUE
683DRUNTIME_OS_DARWIN_FALSE
684DRUNTIME_OS_DARWIN_TRUE
685DRUNTIME_OS_ANDROID_FALSE
686DRUNTIME_OS_ANDROID_TRUE
687DRUNTIME_OS_AIX_FALSE
688DRUNTIME_OS_AIX_TRUE
689DRUNTIME_CPU_S390_FALSE
690DRUNTIME_CPU_S390_TRUE
691DRUNTIME_CPU_SYSTEMZ_FALSE
692DRUNTIME_CPU_SYSTEMZ_TRUE
693DRUNTIME_CPU_X86_FALSE
694DRUNTIME_CPU_X86_TRUE
695DRUNTIME_CPU_POWERPC_FALSE
696DRUNTIME_CPU_POWERPC_TRUE
697DRUNTIME_CPU_MIPS_FALSE
698DRUNTIME_CPU_MIPS_TRUE
699DRUNTIME_CPU_ARM_FALSE
700DRUNTIME_CPU_ARM_TRUE
701DRUNTIME_CPU_AARCH64_FALSE
702DRUNTIME_CPU_AARCH64_TRUE
703SECTION_FLAGS
704libphobos_srcdir
705libphobos_builddir
706get_gcc_base_ver
707phobos_compiler_shared_flag
708phobos_compiler_pic_flag
709phobos_lt_pic_flag
710enable_static
711enable_shared
712OTOOL64
713OTOOL
714LIPO
715NMEDIT
716DSYMUTIL
717OBJDUMP
718LN_S
719NM
720ac_ct_DUMPBIN
721DUMPBIN
722LD
723FGREP
724SED
725LIBTOOL
726CFLAGS_FOR_BUILD
727CC_FOR_BUILD
728AR
729DCFG_ENABLE_CET
730CET_DFLAGS
731CET_FLAGS
732RANLIB
733MAINT
734MAINTAINER_MODE_FALSE
735MAINTAINER_MODE_TRUE
736GDCFLAGS
737GDC
738CCASFLAGS
739CCAS
740AM_BACKSLASH
741AM_DEFAULT_VERBOSITY
742AM_DEFAULT_V
743AM_V
744am__untar
745am__tar
746AMTAR
747am__leading_dot
748SET_MAKE
749AWK
750mkdir_p
751MKDIR_P
752INSTALL_STRIP_PROGRAM
753STRIP
754install_sh
755MAKEINFO
756AUTOHEADER
757AUTOMAKE
758AUTOCONF
759ACLOCAL
760VERSION
761PACKAGE
762CYGPATH_W
763am__isrc
764INSTALL_DATA
765INSTALL_SCRIPT
766INSTALL_PROGRAM
767EGREP
768GREP
769CPP
770OBJEXT
771EXEEXT
772ac_ct_CC
773CPPFLAGS
774LDFLAGS
775CFLAGS
776CC
777target_os
778target_vendor
779target_cpu
780target
781host_os
782host_vendor
783host_cpu
784host
785build_os
786build_vendor
787build_cpu
788build
789multi_basedir
790target_alias
791host_alias
792build_alias
793LIBS
794ECHO_T
795ECHO_N
796ECHO_C
797DEFS
798mandir
799localedir
800libdir
801psdir
802pdfdir
803dvidir
804htmldir
805infodir
806docdir
807oldincludedir
808includedir
809localstatedir
810sharedstatedir
811sysconfdir
812datadir
813datarootdir
814libexecdir
815sbindir
816bindir
817program_transform_name
818prefix
819exec_prefix
820PACKAGE_URL
821PACKAGE_BUGREPORT
822PACKAGE_STRING
823PACKAGE_VERSION
824PACKAGE_TARNAME
825PACKAGE_NAME
826PATH_SEPARATOR
827SHELL'
828ac_subst_files='DRTSTUFF_SPEC'
829ac_user_opts='
830enable_option_checking
831enable_multilib
832enable_silent_rules
833enable_maintainer_mode
834enable_cet
835enable_shared
836enable_static
837with_pic
838enable_fast_install
839with_gnu_ld
840enable_libtool_lock
841with_gcc_major_version_only
842enable_werror
843with_libatomic
844with_libbacktrace
845with_target_system_zlib
846with_cross_host
847enable_version_specific_runtime_libs
848with_toolexeclibdir
849enable_libphobos
850with_libphobos_druntime_only
851enable_libphobos_checking
852'
853      ac_precious_vars='build_alias
854host_alias
855target_alias
856CC
857CFLAGS
858LDFLAGS
859LIBS
860CPPFLAGS
861CPP'
862
863
864# Initialize some variables set by options.
865ac_init_help=
866ac_init_version=false
867ac_unrecognized_opts=
868ac_unrecognized_sep=
869# The variables have the same names as the options, with
870# dashes changed to underlines.
871cache_file=/dev/null
872exec_prefix=NONE
873no_create=
874no_recursion=
875prefix=NONE
876program_prefix=NONE
877program_suffix=NONE
878program_transform_name=s,x,x,
879silent=
880site=
881srcdir=
882verbose=
883x_includes=NONE
884x_libraries=NONE
885
886# Installation directory options.
887# These are left unexpanded so users can "make install exec_prefix=/foo"
888# and all the variables that are supposed to be based on exec_prefix
889# by default will actually change.
890# Use braces instead of parens because sh, perl, etc. also accept them.
891# (The list follows the same order as the GNU Coding Standards.)
892bindir='${exec_prefix}/bin'
893sbindir='${exec_prefix}/sbin'
894libexecdir='${exec_prefix}/libexec'
895datarootdir='${prefix}/share'
896datadir='${datarootdir}'
897sysconfdir='${prefix}/etc'
898sharedstatedir='${prefix}/com'
899localstatedir='${prefix}/var'
900includedir='${prefix}/include'
901oldincludedir='/usr/include'
902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903infodir='${datarootdir}/info'
904htmldir='${docdir}'
905dvidir='${docdir}'
906pdfdir='${docdir}'
907psdir='${docdir}'
908libdir='${exec_prefix}/lib'
909localedir='${datarootdir}/locale'
910mandir='${datarootdir}/man'
911
912ac_prev=
913ac_dashdash=
914for ac_option
915do
916  # If the previous option needs an argument, assign it.
917  if test -n "$ac_prev"; then
918    eval $ac_prev=\$ac_option
919    ac_prev=
920    continue
921  fi
922
923  case $ac_option in
924  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925  *=)   ac_optarg= ;;
926  *)    ac_optarg=yes ;;
927  esac
928
929  # Accept the important Cygnus configure options, so we can diagnose typos.
930
931  case $ac_dashdash$ac_option in
932  --)
933    ac_dashdash=yes ;;
934
935  -bindir | --bindir | --bindi | --bind | --bin | --bi)
936    ac_prev=bindir ;;
937  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938    bindir=$ac_optarg ;;
939
940  -build | --build | --buil | --bui | --bu)
941    ac_prev=build_alias ;;
942  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943    build_alias=$ac_optarg ;;
944
945  -cache-file | --cache-file | --cache-fil | --cache-fi \
946  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947    ac_prev=cache_file ;;
948  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950    cache_file=$ac_optarg ;;
951
952  --config-cache | -C)
953    cache_file=config.cache ;;
954
955  -datadir | --datadir | --datadi | --datad)
956    ac_prev=datadir ;;
957  -datadir=* | --datadir=* | --datadi=* | --datad=*)
958    datadir=$ac_optarg ;;
959
960  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961  | --dataroo | --dataro | --datar)
962    ac_prev=datarootdir ;;
963  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965    datarootdir=$ac_optarg ;;
966
967  -disable-* | --disable-*)
968    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969    # Reject names that are not valid shell variable names.
970    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971      as_fn_error $? "invalid feature name: $ac_useropt"
972    ac_useropt_orig=$ac_useropt
973    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974    case $ac_user_opts in
975      *"
976"enable_$ac_useropt"
977"*) ;;
978      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979	 ac_unrecognized_sep=', ';;
980    esac
981    eval enable_$ac_useropt=no ;;
982
983  -docdir | --docdir | --docdi | --doc | --do)
984    ac_prev=docdir ;;
985  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986    docdir=$ac_optarg ;;
987
988  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989    ac_prev=dvidir ;;
990  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991    dvidir=$ac_optarg ;;
992
993  -enable-* | --enable-*)
994    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995    # Reject names that are not valid shell variable names.
996    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997      as_fn_error $? "invalid feature name: $ac_useropt"
998    ac_useropt_orig=$ac_useropt
999    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000    case $ac_user_opts in
1001      *"
1002"enable_$ac_useropt"
1003"*) ;;
1004      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005	 ac_unrecognized_sep=', ';;
1006    esac
1007    eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011  | --exec | --exe | --ex)
1012    ac_prev=exec_prefix ;;
1013  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015  | --exec=* | --exe=* | --ex=*)
1016    exec_prefix=$ac_optarg ;;
1017
1018  -gas | --gas | --ga | --g)
1019    # Obsolete; use --with-gas.
1020    with_gas=yes ;;
1021
1022  -help | --help | --hel | --he | -h)
1023    ac_init_help=long ;;
1024  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025    ac_init_help=recursive ;;
1026  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027    ac_init_help=short ;;
1028
1029  -host | --host | --hos | --ho)
1030    ac_prev=host_alias ;;
1031  -host=* | --host=* | --hos=* | --ho=*)
1032    host_alias=$ac_optarg ;;
1033
1034  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035    ac_prev=htmldir ;;
1036  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037  | --ht=*)
1038    htmldir=$ac_optarg ;;
1039
1040  -includedir | --includedir | --includedi | --included | --include \
1041  | --includ | --inclu | --incl | --inc)
1042    ac_prev=includedir ;;
1043  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044  | --includ=* | --inclu=* | --incl=* | --inc=*)
1045    includedir=$ac_optarg ;;
1046
1047  -infodir | --infodir | --infodi | --infod | --info | --inf)
1048    ac_prev=infodir ;;
1049  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050    infodir=$ac_optarg ;;
1051
1052  -libdir | --libdir | --libdi | --libd)
1053    ac_prev=libdir ;;
1054  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055    libdir=$ac_optarg ;;
1056
1057  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058  | --libexe | --libex | --libe)
1059    ac_prev=libexecdir ;;
1060  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061  | --libexe=* | --libex=* | --libe=*)
1062    libexecdir=$ac_optarg ;;
1063
1064  -localedir | --localedir | --localedi | --localed | --locale)
1065    ac_prev=localedir ;;
1066  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067    localedir=$ac_optarg ;;
1068
1069  -localstatedir | --localstatedir | --localstatedi | --localstated \
1070  | --localstate | --localstat | --localsta | --localst | --locals)
1071    ac_prev=localstatedir ;;
1072  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074    localstatedir=$ac_optarg ;;
1075
1076  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077    ac_prev=mandir ;;
1078  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079    mandir=$ac_optarg ;;
1080
1081  -nfp | --nfp | --nf)
1082    # Obsolete; use --without-fp.
1083    with_fp=no ;;
1084
1085  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086  | --no-cr | --no-c | -n)
1087    no_create=yes ;;
1088
1089  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091    no_recursion=yes ;;
1092
1093  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095  | --oldin | --oldi | --old | --ol | --o)
1096    ac_prev=oldincludedir ;;
1097  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100    oldincludedir=$ac_optarg ;;
1101
1102  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103    ac_prev=prefix ;;
1104  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105    prefix=$ac_optarg ;;
1106
1107  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108  | --program-pre | --program-pr | --program-p)
1109    ac_prev=program_prefix ;;
1110  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112    program_prefix=$ac_optarg ;;
1113
1114  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115  | --program-suf | --program-su | --program-s)
1116    ac_prev=program_suffix ;;
1117  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119    program_suffix=$ac_optarg ;;
1120
1121  -program-transform-name | --program-transform-name \
1122  | --program-transform-nam | --program-transform-na \
1123  | --program-transform-n | --program-transform- \
1124  | --program-transform | --program-transfor \
1125  | --program-transfo | --program-transf \
1126  | --program-trans | --program-tran \
1127  | --progr-tra | --program-tr | --program-t)
1128    ac_prev=program_transform_name ;;
1129  -program-transform-name=* | --program-transform-name=* \
1130  | --program-transform-nam=* | --program-transform-na=* \
1131  | --program-transform-n=* | --program-transform-=* \
1132  | --program-transform=* | --program-transfor=* \
1133  | --program-transfo=* | --program-transf=* \
1134  | --program-trans=* | --program-tran=* \
1135  | --progr-tra=* | --program-tr=* | --program-t=*)
1136    program_transform_name=$ac_optarg ;;
1137
1138  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139    ac_prev=pdfdir ;;
1140  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141    pdfdir=$ac_optarg ;;
1142
1143  -psdir | --psdir | --psdi | --psd | --ps)
1144    ac_prev=psdir ;;
1145  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146    psdir=$ac_optarg ;;
1147
1148  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149  | -silent | --silent | --silen | --sile | --sil)
1150    silent=yes ;;
1151
1152  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153    ac_prev=sbindir ;;
1154  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155  | --sbi=* | --sb=*)
1156    sbindir=$ac_optarg ;;
1157
1158  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160  | --sharedst | --shareds | --shared | --share | --shar \
1161  | --sha | --sh)
1162    ac_prev=sharedstatedir ;;
1163  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166  | --sha=* | --sh=*)
1167    sharedstatedir=$ac_optarg ;;
1168
1169  -site | --site | --sit)
1170    ac_prev=site ;;
1171  -site=* | --site=* | --sit=*)
1172    site=$ac_optarg ;;
1173
1174  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175    ac_prev=srcdir ;;
1176  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177    srcdir=$ac_optarg ;;
1178
1179  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180  | --syscon | --sysco | --sysc | --sys | --sy)
1181    ac_prev=sysconfdir ;;
1182  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184    sysconfdir=$ac_optarg ;;
1185
1186  -target | --target | --targe | --targ | --tar | --ta | --t)
1187    ac_prev=target_alias ;;
1188  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189    target_alias=$ac_optarg ;;
1190
1191  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192    verbose=yes ;;
1193
1194  -version | --version | --versio | --versi | --vers | -V)
1195    ac_init_version=: ;;
1196
1197  -with-* | --with-*)
1198    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199    # Reject names that are not valid shell variable names.
1200    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201      as_fn_error $? "invalid package name: $ac_useropt"
1202    ac_useropt_orig=$ac_useropt
1203    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204    case $ac_user_opts in
1205      *"
1206"with_$ac_useropt"
1207"*) ;;
1208      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209	 ac_unrecognized_sep=', ';;
1210    esac
1211    eval with_$ac_useropt=\$ac_optarg ;;
1212
1213  -without-* | --without-*)
1214    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215    # Reject names that are not valid shell variable names.
1216    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217      as_fn_error $? "invalid package name: $ac_useropt"
1218    ac_useropt_orig=$ac_useropt
1219    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220    case $ac_user_opts in
1221      *"
1222"with_$ac_useropt"
1223"*) ;;
1224      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225	 ac_unrecognized_sep=', ';;
1226    esac
1227    eval with_$ac_useropt=no ;;
1228
1229  --x)
1230    # Obsolete; use --with-x.
1231    with_x=yes ;;
1232
1233  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234  | --x-incl | --x-inc | --x-in | --x-i)
1235    ac_prev=x_includes ;;
1236  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238    x_includes=$ac_optarg ;;
1239
1240  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242    ac_prev=x_libraries ;;
1243  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245    x_libraries=$ac_optarg ;;
1246
1247  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
1249    ;;
1250
1251  *=*)
1252    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253    # Reject names that are not valid shell variable names.
1254    case $ac_envvar in #(
1255      '' | [0-9]* | *[!_$as_cr_alnum]* )
1256      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257    esac
1258    eval $ac_envvar=\$ac_optarg
1259    export $ac_envvar ;;
1260
1261  *)
1262    # FIXME: should be removed in autoconf 3.0.
1263    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267    ;;
1268
1269  esac
1270done
1271
1272if test -n "$ac_prev"; then
1273  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274  as_fn_error $? "missing argument to $ac_option"
1275fi
1276
1277if test -n "$ac_unrecognized_opts"; then
1278  case $enable_option_checking in
1279    no) ;;
1280    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282  esac
1283fi
1284
1285# Check all directory arguments for consistency.
1286for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287		datadir sysconfdir sharedstatedir localstatedir includedir \
1288		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289		libdir localedir mandir
1290do
1291  eval ac_val=\$$ac_var
1292  # Remove trailing slashes.
1293  case $ac_val in
1294    */ )
1295      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296      eval $ac_var=\$ac_val;;
1297  esac
1298  # Be sure to have absolute directory names.
1299  case $ac_val in
1300    [\\/$]* | ?:[\\/]* )  continue;;
1301    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302  esac
1303  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315  if test "x$build_alias" = x; then
1316    cross_compiling=maybe
1317  elif test "x$build_alias" != "x$host_alias"; then
1318    cross_compiling=yes
1319  fi
1320fi
1321
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
1326
1327
1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331  as_fn_error $? "working directory cannot be determined"
1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333  as_fn_error $? "pwd does not report name of working directory"
1334
1335
1336# Find the source files, if location was not specified.
1337if test -z "$srcdir"; then
1338  ac_srcdir_defaulted=yes
1339  # Try the directory containing this script, then the parent directory.
1340  ac_confdir=`$as_dirname -- "$as_myself" ||
1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342	 X"$as_myself" : 'X\(//\)[^/]' \| \
1343	 X"$as_myself" : 'X\(//\)$' \| \
1344	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345$as_echo X"$as_myself" |
1346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\/\)[^/].*/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\/\)$/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\).*/{
1359	    s//\1/
1360	    q
1361	  }
1362	  s/.*/./; q'`
1363  srcdir=$ac_confdir
1364  if test ! -r "$srcdir/$ac_unique_file"; then
1365    srcdir=..
1366  fi
1367else
1368  ac_srcdir_defaulted=no
1369fi
1370if test ! -r "$srcdir/$ac_unique_file"; then
1371  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373fi
1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375ac_abs_confdir=`(
1376	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377	pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380  srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_env_${ac_var}_value=\$${ac_var}
1391  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399  # Omit some internal or obsolete options to make the list less imposing.
1400  # This message is too long to be a string in the A/UX 3.1 sh.
1401  cat <<_ACEOF
1402\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE.  See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412  -h, --help              display this help and exit
1413      --help=short        display options specific to this package
1414      --help=recursive    display the short help of all the included packages
1415  -V, --version           display version information and exit
1416  -q, --quiet, --silent   do not print \`checking ...' messages
1417      --cache-file=FILE   cache test results in FILE [disabled]
1418  -C, --config-cache      alias for \`--cache-file=config.cache'
1419  -n, --no-create         do not create output files
1420      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1421
1422Installation directories:
1423  --prefix=PREFIX         install architecture-independent files in PREFIX
1424                          [$ac_default_prefix]
1425  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426                          [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436  --bindir=DIR            user executables [EPREFIX/bin]
1437  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1438  --libexecdir=DIR        program executables [EPREFIX/libexec]
1439  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1440  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1441  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1442  --libdir=DIR            object code libraries [EPREFIX/lib]
1443  --includedir=DIR        C header files [PREFIX/include]
1444  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1445  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1446  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1447  --infodir=DIR           info documentation [DATAROOTDIR/info]
1448  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1449  --mandir=DIR            man documentation [DATAROOTDIR/man]
1450  --docdir=DIR            documentation root [DATAROOTDIR/doc/libphobos]
1451  --htmldir=DIR           html documentation [DOCDIR]
1452  --dvidir=DIR            dvi documentation [DOCDIR]
1453  --pdfdir=DIR            pdf documentation [DOCDIR]
1454  --psdir=DIR             ps documentation [DOCDIR]
1455_ACEOF
1456
1457  cat <<\_ACEOF
1458
1459Program names:
1460  --program-prefix=PREFIX            prepend PREFIX to installed program names
1461  --program-suffix=SUFFIX            append SUFFIX to installed program names
1462  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1463
1464System types:
1465  --build=BUILD     configure for building on BUILD [guessed]
1466  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467  --target=TARGET   configure for building compilers for TARGET [HOST]
1468_ACEOF
1469fi
1470
1471if test -n "$ac_init_help"; then
1472  case $ac_init_help in
1473     short | recursive ) echo "Configuration of package-unused version-unused:";;
1474   esac
1475  cat <<\_ACEOF
1476
1477Optional Features:
1478  --disable-option-checking  ignore unrecognized --enable/--with options
1479  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1480  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1481  --enable-multilib       build many library versions (default)
1482  --enable-silent-rules   less verbose build output (undo: "make V=1")
1483  --disable-silent-rules  verbose build output (undo: "make V=0")
1484  --enable-maintainer-mode
1485                          enable make rules and dependencies not useful (and
1486                          sometimes confusing) to the casual installer
1487  --enable-cet            enable Intel CET in target libraries [default=auto]
1488  --enable-shared[=PKGS]  build shared libraries [default=yes]
1489  --enable-static[=PKGS]  build static libraries [default=yes]
1490  --enable-fast-install[=PKGS]
1491                          optimize for fast installation [default=yes]
1492  --disable-libtool-lock  avoid locking (might break parallel builds)
1493  --enable-werror         turns on -Werror [default=no]
1494  --enable-version-specific-runtime-libs
1495                          Specify that runtime libraries should be installed
1496                          in a compiler-specific directory
1497  --enable-libphobos      Enable libphobos
1498  --enable-libphobos-checking[=LIST]
1499                          enable expensive run-time checks. With LIST, enable
1500                          only specific categories of checks. Categories are:
1501                          yes,no,all,none,release. Flags are: assert or other
1502                          strings
1503
1504Optional Packages:
1505  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507  --with-pic              try to use only PIC/non-PIC objects [default=use
1508                          both]
1509  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1510  --with-gcc-major-version-only
1511                          use only GCC major number in filesystem paths
1512  --without-libatomic     Do not use libatomic in core.atomic (default: auto)
1513  --without-libbacktrace  Do not use libbacktrace in core.runtime (default:
1514                          auto)
1515  --with-target-system-zlib={yes,no,auto}
1516                          use installed libz (default: no)
1517  --with-cross-host=HOST  configuring with a cross compiler
1518  --with-toolexeclibdir=DIR
1519                          install libraries built with a cross compiler within
1520                          DIR
1521  --with-libphobos-druntime-only={yes,no,auto}
1522                          build only the druntime library (default: auto)
1523
1524Some influential environment variables:
1525  CC          C compiler command
1526  CFLAGS      C compiler flags
1527  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1528              nonstandard directory <lib dir>
1529  LIBS        libraries to pass to the linker, e.g. -l<library>
1530  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1531              you have headers in a nonstandard directory <include dir>
1532  CPP         C preprocessor
1533  CCAS        assembler compiler command (defaults to CC)
1534  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1535  GDC         D compiler command
1536  GDCFLAGS    D compiler flags
1537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
1541Report bugs to the package provider.
1542_ACEOF
1543ac_status=$?
1544fi
1545
1546if test "$ac_init_help" = "recursive"; then
1547  # If there are subdirs, report their specific --help.
1548  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549    test -d "$ac_dir" ||
1550      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551      continue
1552    ac_builddir=.
1553
1554case "$ac_dir" in
1555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556*)
1557  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558  # A ".." for each directory in $ac_dir_suffix.
1559  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560  case $ac_top_builddir_sub in
1561  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563  esac ;;
1564esac
1565ac_abs_top_builddir=$ac_pwd
1566ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567# for backward compatibility:
1568ac_top_builddir=$ac_top_build_prefix
1569
1570case $srcdir in
1571  .)  # We are building in place.
1572    ac_srcdir=.
1573    ac_top_srcdir=$ac_top_builddir_sub
1574    ac_abs_top_srcdir=$ac_pwd ;;
1575  [\\/]* | ?:[\\/]* )  # Absolute name.
1576    ac_srcdir=$srcdir$ac_dir_suffix;
1577    ac_top_srcdir=$srcdir
1578    ac_abs_top_srcdir=$srcdir ;;
1579  *) # Relative name.
1580    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581    ac_top_srcdir=$ac_top_build_prefix$srcdir
1582    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583esac
1584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586    cd "$ac_dir" || { ac_status=$?; continue; }
1587    # Check for guested configure.
1588    if test -f "$ac_srcdir/configure.gnu"; then
1589      echo &&
1590      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591    elif test -f "$ac_srcdir/configure"; then
1592      echo &&
1593      $SHELL "$ac_srcdir/configure" --help=recursive
1594    else
1595      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596    fi || ac_status=$?
1597    cd "$ac_pwd" || { ac_status=$?; break; }
1598  done
1599fi
1600
1601test -n "$ac_init_help" && exit $ac_status
1602if $ac_init_version; then
1603  cat <<\_ACEOF
1604package-unused configure version-unused
1605generated by GNU Autoconf 2.69
1606
1607Copyright (C) 2012 Free Software Foundation, Inc.
1608This configure script is free software; the Free Software Foundation
1609gives unlimited permission to copy, distribute and modify it.
1610_ACEOF
1611  exit
1612fi
1613
1614## ------------------------ ##
1615## Autoconf initialization. ##
1616## ------------------------ ##
1617
1618# ac_fn_c_try_compile LINENO
1619# --------------------------
1620# Try to compile conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_c_try_compile ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  rm -f conftest.$ac_objext
1625  if { { ac_try="$ac_compile"
1626case "(($ac_try" in
1627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628  *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632  (eval "$ac_compile") 2>conftest.err
1633  ac_status=$?
1634  if test -s conftest.err; then
1635    grep -v '^ *+' conftest.err >conftest.er1
1636    cat conftest.er1 >&5
1637    mv -f conftest.er1 conftest.err
1638  fi
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; } && {
1641	 test -z "$ac_c_werror_flag" ||
1642	 test ! -s conftest.err
1643       } && test -s conftest.$ac_objext; then :
1644  ac_retval=0
1645else
1646  $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649	ac_retval=1
1650fi
1651  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652  as_fn_set_status $ac_retval
1653
1654} # ac_fn_c_try_compile
1655
1656# ac_fn_c_try_cpp LINENO
1657# ----------------------
1658# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_cpp ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  if { { ac_try="$ac_cpp conftest.$ac_ext"
1663case "(($ac_try" in
1664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665  *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670  ac_status=$?
1671  if test -s conftest.err; then
1672    grep -v '^ *+' conftest.err >conftest.er1
1673    cat conftest.er1 >&5
1674    mv -f conftest.er1 conftest.err
1675  fi
1676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677  test $ac_status = 0; } > conftest.i && {
1678	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679	 test ! -s conftest.err
1680       }; then :
1681  ac_retval=0
1682else
1683  $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686    ac_retval=1
1687fi
1688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689  as_fn_set_status $ac_retval
1690
1691} # ac_fn_c_try_cpp
1692
1693# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1694# -------------------------------------------------------
1695# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1696# the include files in INCLUDES and setting the cache variable VAR
1697# accordingly.
1698ac_fn_c_check_header_mongrel ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  if eval \${$3+:} false; then :
1702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703$as_echo_n "checking for $2... " >&6; }
1704if eval \${$3+:} false; then :
1705  $as_echo_n "(cached) " >&6
1706fi
1707eval ac_res=\$$3
1708	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; }
1710else
1711  # Is the header compilable?
1712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1713$as_echo_n "checking $2 usability... " >&6; }
1714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715/* end confdefs.h.  */
1716$4
1717#include <$2>
1718_ACEOF
1719if ac_fn_c_try_compile "$LINENO"; then :
1720  ac_header_compiler=yes
1721else
1722  ac_header_compiler=no
1723fi
1724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1726$as_echo "$ac_header_compiler" >&6; }
1727
1728# Is the header present?
1729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1730$as_echo_n "checking $2 presence... " >&6; }
1731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732/* end confdefs.h.  */
1733#include <$2>
1734_ACEOF
1735if ac_fn_c_try_cpp "$LINENO"; then :
1736  ac_header_preproc=yes
1737else
1738  ac_header_preproc=no
1739fi
1740rm -f conftest.err conftest.i conftest.$ac_ext
1741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1742$as_echo "$ac_header_preproc" >&6; }
1743
1744# So?  What about this header?
1745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1746  yes:no: )
1747    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1748$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1749    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751    ;;
1752  no:yes:* )
1753    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1754$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1755    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1756$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1757    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1758$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1759    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1760$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1761    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1762$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1763    ;;
1764esac
1765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766$as_echo_n "checking for $2... " >&6; }
1767if eval \${$3+:} false; then :
1768  $as_echo_n "(cached) " >&6
1769else
1770  eval "$3=\$ac_header_compiler"
1771fi
1772eval ac_res=\$$3
1773	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774$as_echo "$ac_res" >&6; }
1775fi
1776  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778} # ac_fn_c_check_header_mongrel
1779
1780# ac_fn_c_try_run LINENO
1781# ----------------------
1782# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1783# that executables *can* be run.
1784ac_fn_c_try_run ()
1785{
1786  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787  if { { ac_try="$ac_link"
1788case "(($ac_try" in
1789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790  *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794  (eval "$ac_link") 2>&5
1795  ac_status=$?
1796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1798  { { case "(($ac_try" in
1799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800  *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803$as_echo "$ac_try_echo"; } >&5
1804  (eval "$ac_try") 2>&5
1805  ac_status=$?
1806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807  test $ac_status = 0; }; }; then :
1808  ac_retval=0
1809else
1810  $as_echo "$as_me: program exited with status $ac_status" >&5
1811       $as_echo "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
1814       ac_retval=$ac_status
1815fi
1816  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818  as_fn_set_status $ac_retval
1819
1820} # ac_fn_c_try_run
1821
1822# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1823# -------------------------------------------------------
1824# Tests whether HEADER exists and can be compiled using the include files in
1825# INCLUDES, setting the cache variable VAR accordingly.
1826ac_fn_c_check_header_compile ()
1827{
1828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830$as_echo_n "checking for $2... " >&6; }
1831if eval \${$3+:} false; then :
1832  $as_echo_n "(cached) " >&6
1833else
1834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h.  */
1836$4
1837#include <$2>
1838_ACEOF
1839if ac_fn_c_try_compile "$LINENO"; then :
1840  eval "$3=yes"
1841else
1842  eval "$3=no"
1843fi
1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845fi
1846eval ac_res=\$$3
1847	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851} # ac_fn_c_check_header_compile
1852
1853# ac_fn_d_try_compile LINENO
1854# --------------------------
1855# Try to compile conftest.$ac_ext, and return whether this succeeded.
1856ac_fn_d_try_compile ()
1857{
1858  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859  rm -f conftest.$ac_objext
1860  if { { ac_try="$ac_compile"
1861case "(($ac_try" in
1862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863  *) ac_try_echo=$ac_try;;
1864esac
1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866$as_echo "$ac_try_echo"; } >&5
1867  (eval "$ac_compile") 2>conftest.err
1868  ac_status=$?
1869  if test -s conftest.err; then
1870    grep -v '^ *+' conftest.err >conftest.er1
1871    cat conftest.er1 >&5
1872    mv -f conftest.er1 conftest.err
1873  fi
1874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875  test $ac_status = 0; } && {
1876	 test -z "$ac_d_werror_flag" ||
1877	 test ! -s conftest.err
1878       } && test -s conftest.$ac_objext; then :
1879  ac_retval=0
1880else
1881  $as_echo "$as_me: failed program was:" >&5
1882sed 's/^/| /' conftest.$ac_ext >&5
1883
1884	ac_retval=1
1885fi
1886  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887  as_fn_set_status $ac_retval
1888
1889} # ac_fn_d_try_compile
1890
1891# ac_fn_c_try_link LINENO
1892# -----------------------
1893# Try to link conftest.$ac_ext, and return whether this succeeded.
1894ac_fn_c_try_link ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  rm -f conftest.$ac_objext conftest$ac_exeext
1898  if { { ac_try="$ac_link"
1899case "(($ac_try" in
1900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901  *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905  (eval "$ac_link") 2>conftest.err
1906  ac_status=$?
1907  if test -s conftest.err; then
1908    grep -v '^ *+' conftest.err >conftest.er1
1909    cat conftest.er1 >&5
1910    mv -f conftest.er1 conftest.err
1911  fi
1912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913  test $ac_status = 0; } && {
1914	 test -z "$ac_c_werror_flag" ||
1915	 test ! -s conftest.err
1916       } && test -s conftest$ac_exeext && {
1917	 test "$cross_compiling" = yes ||
1918	 test -x conftest$ac_exeext
1919       }; then :
1920  ac_retval=0
1921else
1922  $as_echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925	ac_retval=1
1926fi
1927  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929  # interfere with the next link command; also delete a directory that is
1930  # left behind by Apple's compiler.  We do this before executing the actions.
1931  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933  as_fn_set_status $ac_retval
1934
1935} # ac_fn_c_try_link
1936
1937# ac_fn_c_check_func LINENO FUNC VAR
1938# ----------------------------------
1939# Tests whether FUNC exists, setting the cache variable VAR accordingly
1940ac_fn_c_check_func ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if eval \${$3+:} false; then :
1946  $as_echo_n "(cached) " >&6
1947else
1948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h.  */
1950/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1952#define $2 innocuous_$2
1953
1954/* System header to define __stub macros and hopefully few prototypes,
1955    which can conflict with char $2 (); below.
1956    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957    <limits.h> exists even on freestanding compilers.  */
1958
1959#ifdef __STDC__
1960# include <limits.h>
1961#else
1962# include <assert.h>
1963#endif
1964
1965#undef $2
1966
1967/* Override any GCC internal prototype to avoid an error.
1968   Use char because int might match the return type of a GCC
1969   builtin and then its argument prototype would still apply.  */
1970#ifdef __cplusplus
1971extern "C"
1972#endif
1973char $2 ();
1974/* The GNU C library defines this for functions which it implements
1975    to always fail with ENOSYS.  Some functions are actually named
1976    something starting with __ and the normal name is an alias.  */
1977#if defined __stub_$2 || defined __stub___$2
1978choke me
1979#endif
1980
1981int
1982main ()
1983{
1984return $2 ();
1985  ;
1986  return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_link "$LINENO"; then :
1990  eval "$3=yes"
1991else
1992  eval "$3=no"
1993fi
1994rm -f core conftest.err conftest.$ac_objext \
1995    conftest$ac_exeext conftest.$ac_ext
1996fi
1997eval ac_res=\$$3
1998	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
2000  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002} # ac_fn_c_check_func
2003
2004# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2005# ----------------------------------------------------
2006# Tries to find if the field MEMBER exists in type AGGR, after including
2007# INCLUDES, setting cache variable VAR accordingly.
2008ac_fn_c_check_member ()
2009{
2010  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2012$as_echo_n "checking for $2.$3... " >&6; }
2013if eval \${$4+:} false; then :
2014  $as_echo_n "(cached) " >&6
2015else
2016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h.  */
2018$5
2019int
2020main ()
2021{
2022static $2 ac_aggr;
2023if (ac_aggr.$3)
2024return 0;
2025  ;
2026  return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030  eval "$4=yes"
2031else
2032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034$5
2035int
2036main ()
2037{
2038static $2 ac_aggr;
2039if (sizeof ac_aggr.$3)
2040return 0;
2041  ;
2042  return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046  eval "$4=yes"
2047else
2048  eval "$4=no"
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053fi
2054eval ac_res=\$$4
2055	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056$as_echo "$ac_res" >&6; }
2057  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059} # ac_fn_c_check_member
2060
2061# ac_fn_d_try_link LINENO
2062# -----------------------
2063# Try to link conftest.$ac_ext, and return whether this succeeded.
2064ac_fn_d_try_link ()
2065{
2066  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067  rm -f conftest.$ac_objext conftest$ac_exeext
2068  if { { ac_try="$ac_link"
2069case "(($ac_try" in
2070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071  *) ac_try_echo=$ac_try;;
2072esac
2073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074$as_echo "$ac_try_echo"; } >&5
2075  (eval "$ac_link") 2>conftest.err
2076  ac_status=$?
2077  if test -s conftest.err; then
2078    grep -v '^ *+' conftest.err >conftest.er1
2079    cat conftest.er1 >&5
2080    mv -f conftest.er1 conftest.err
2081  fi
2082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083  test $ac_status = 0; } && {
2084	 test -z "$ac_d_werror_flag" ||
2085	 test ! -s conftest.err
2086       } && test -s conftest$ac_exeext && {
2087	 test "$cross_compiling" = yes ||
2088	 test -x conftest$ac_exeext
2089       }; then :
2090  ac_retval=0
2091else
2092  $as_echo "$as_me: failed program was:" >&5
2093sed 's/^/| /' conftest.$ac_ext >&5
2094
2095	ac_retval=1
2096fi
2097  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2098  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2099  # interfere with the next link command; also delete a directory that is
2100  # left behind by Apple's compiler.  We do this before executing the actions.
2101  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2102  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103  as_fn_set_status $ac_retval
2104
2105} # ac_fn_d_try_link
2106cat >config.log <<_ACEOF
2107This file contains any messages produced by compilers while
2108running configure, to aid debugging if configure makes a mistake.
2109
2110It was created by package-unused $as_me version-unused, which was
2111generated by GNU Autoconf 2.69.  Invocation command line was
2112
2113  $ $0 $@
2114
2115_ACEOF
2116exec 5>>config.log
2117{
2118cat <<_ASUNAME
2119## --------- ##
2120## Platform. ##
2121## --------- ##
2122
2123hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2124uname -m = `(uname -m) 2>/dev/null || echo unknown`
2125uname -r = `(uname -r) 2>/dev/null || echo unknown`
2126uname -s = `(uname -s) 2>/dev/null || echo unknown`
2127uname -v = `(uname -v) 2>/dev/null || echo unknown`
2128
2129/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2130/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2131
2132/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2133/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2134/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2135/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2136/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2137/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2138/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2139
2140_ASUNAME
2141
2142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH
2144do
2145  IFS=$as_save_IFS
2146  test -z "$as_dir" && as_dir=.
2147    $as_echo "PATH: $as_dir"
2148  done
2149IFS=$as_save_IFS
2150
2151} >&5
2152
2153cat >&5 <<_ACEOF
2154
2155
2156## ----------- ##
2157## Core tests. ##
2158## ----------- ##
2159
2160_ACEOF
2161
2162
2163# Keep a trace of the command line.
2164# Strip out --no-create and --no-recursion so they do not pile up.
2165# Strip out --silent because we don't want to record it for future runs.
2166# Also quote any args containing shell meta-characters.
2167# Make two passes to allow for proper duplicate-argument suppression.
2168ac_configure_args=
2169ac_configure_args0=
2170ac_configure_args1=
2171ac_must_keep_next=false
2172for ac_pass in 1 2
2173do
2174  for ac_arg
2175  do
2176    case $ac_arg in
2177    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2178    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2179    | -silent | --silent | --silen | --sile | --sil)
2180      continue ;;
2181    *\'*)
2182      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2183    esac
2184    case $ac_pass in
2185    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2186    2)
2187      as_fn_append ac_configure_args1 " '$ac_arg'"
2188      if test $ac_must_keep_next = true; then
2189	ac_must_keep_next=false # Got value, back to normal.
2190      else
2191	case $ac_arg in
2192	  *=* | --config-cache | -C | -disable-* | --disable-* \
2193	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2194	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2195	  | -with-* | --with-* | -without-* | --without-* | --x)
2196	    case "$ac_configure_args0 " in
2197	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2198	    esac
2199	    ;;
2200	  -* ) ac_must_keep_next=true ;;
2201	esac
2202      fi
2203      as_fn_append ac_configure_args " '$ac_arg'"
2204      ;;
2205    esac
2206  done
2207done
2208{ ac_configure_args0=; unset ac_configure_args0;}
2209{ ac_configure_args1=; unset ac_configure_args1;}
2210
2211# When interrupted or exit'd, cleanup temporary files, and complete
2212# config.log.  We remove comments because anyway the quotes in there
2213# would cause problems or look ugly.
2214# WARNING: Use '\'' to represent an apostrophe within the trap.
2215# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2216trap 'exit_status=$?
2217  # Save into config.log some information that might help in debugging.
2218  {
2219    echo
2220
2221    $as_echo "## ---------------- ##
2222## Cache variables. ##
2223## ---------------- ##"
2224    echo
2225    # The following way of writing the cache mishandles newlines in values,
2226(
2227  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228    eval ac_val=\$$ac_var
2229    case $ac_val in #(
2230    *${as_nl}*)
2231      case $ac_var in #(
2232      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2233$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2234      esac
2235      case $ac_var in #(
2236      _ | IFS | as_nl) ;; #(
2237      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2238      *) { eval $ac_var=; unset $ac_var;} ;;
2239      esac ;;
2240    esac
2241  done
2242  (set) 2>&1 |
2243    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244    *${as_nl}ac_space=\ *)
2245      sed -n \
2246	"s/'\''/'\''\\\\'\'''\''/g;
2247	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248      ;; #(
2249    *)
2250      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251      ;;
2252    esac |
2253    sort
2254)
2255    echo
2256
2257    $as_echo "## ----------------- ##
2258## Output variables. ##
2259## ----------------- ##"
2260    echo
2261    for ac_var in $ac_subst_vars
2262    do
2263      eval ac_val=\$$ac_var
2264      case $ac_val in
2265      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266      esac
2267      $as_echo "$ac_var='\''$ac_val'\''"
2268    done | sort
2269    echo
2270
2271    if test -n "$ac_subst_files"; then
2272      $as_echo "## ------------------- ##
2273## File substitutions. ##
2274## ------------------- ##"
2275      echo
2276      for ac_var in $ac_subst_files
2277      do
2278	eval ac_val=\$$ac_var
2279	case $ac_val in
2280	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281	esac
2282	$as_echo "$ac_var='\''$ac_val'\''"
2283      done | sort
2284      echo
2285    fi
2286
2287    if test -s confdefs.h; then
2288      $as_echo "## ----------- ##
2289## confdefs.h. ##
2290## ----------- ##"
2291      echo
2292      cat confdefs.h
2293      echo
2294    fi
2295    test "$ac_signal" != 0 &&
2296      $as_echo "$as_me: caught signal $ac_signal"
2297    $as_echo "$as_me: exit $exit_status"
2298  } >&5
2299  rm -f core *.core core.conftest.* &&
2300    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301    exit $exit_status
2302' 0
2303for ac_signal in 1 2 13 15; do
2304  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305done
2306ac_signal=0
2307
2308# confdefs.h avoids OS command line length limits that DEFS can exceed.
2309rm -f -r conftest* confdefs.h
2310
2311$as_echo "/* confdefs.h */" > confdefs.h
2312
2313# Predefined preprocessor variables.
2314
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_NAME "$PACKAGE_NAME"
2317_ACEOF
2318
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321_ACEOF
2322
2323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE_VERSION "$PACKAGE_VERSION"
2325_ACEOF
2326
2327cat >>confdefs.h <<_ACEOF
2328#define PACKAGE_STRING "$PACKAGE_STRING"
2329_ACEOF
2330
2331cat >>confdefs.h <<_ACEOF
2332#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333_ACEOF
2334
2335cat >>confdefs.h <<_ACEOF
2336#define PACKAGE_URL "$PACKAGE_URL"
2337_ACEOF
2338
2339
2340# Let the site file select an alternate cache file if it wants to.
2341# Prefer an explicitly selected file to automatically selected ones.
2342ac_site_file1=NONE
2343ac_site_file2=NONE
2344if test -n "$CONFIG_SITE"; then
2345  # We do not want a PATH search for config.site.
2346  case $CONFIG_SITE in #((
2347    -*)  ac_site_file1=./$CONFIG_SITE;;
2348    */*) ac_site_file1=$CONFIG_SITE;;
2349    *)   ac_site_file1=./$CONFIG_SITE;;
2350  esac
2351elif test "x$prefix" != xNONE; then
2352  ac_site_file1=$prefix/share/config.site
2353  ac_site_file2=$prefix/etc/config.site
2354else
2355  ac_site_file1=$ac_default_prefix/share/config.site
2356  ac_site_file2=$ac_default_prefix/etc/config.site
2357fi
2358for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2359do
2360  test "x$ac_site_file" = xNONE && continue
2361  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2362    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2363$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2364    sed 's/^/| /' "$ac_site_file" >&5
2365    . "$ac_site_file" \
2366      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368as_fn_error $? "failed to load site script $ac_site_file
2369See \`config.log' for more details" "$LINENO" 5; }
2370  fi
2371done
2372
2373if test -r "$cache_file"; then
2374  # Some versions of bash will fail to source /dev/null (special files
2375  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2376  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2377    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2378$as_echo "$as_me: loading cache $cache_file" >&6;}
2379    case $cache_file in
2380      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381      *)                      . "./$cache_file";;
2382    esac
2383  fi
2384else
2385  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386$as_echo "$as_me: creating cache $cache_file" >&6;}
2387  >$cache_file
2388fi
2389
2390# Check that the precious variables saved in the cache have kept the same
2391# value.
2392ac_cache_corrupted=false
2393for ac_var in $ac_precious_vars; do
2394  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2395  eval ac_new_set=\$ac_env_${ac_var}_set
2396  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2397  eval ac_new_val=\$ac_env_${ac_var}_value
2398  case $ac_old_set,$ac_new_set in
2399    set,)
2400      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2401$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2402      ac_cache_corrupted=: ;;
2403    ,set)
2404      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2405$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2406      ac_cache_corrupted=: ;;
2407    ,);;
2408    *)
2409      if test "x$ac_old_val" != "x$ac_new_val"; then
2410	# differences in whitespace do not lead to failure.
2411	ac_old_val_w=`echo x $ac_old_val`
2412	ac_new_val_w=`echo x $ac_new_val`
2413	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2414	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2415$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416	  ac_cache_corrupted=:
2417	else
2418	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2419$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2420	  eval $ac_var=\$ac_old_val
2421	fi
2422	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2423$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2424	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2425$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2426      fi;;
2427  esac
2428  # Pass precious variables to config.status.
2429  if test "$ac_new_set" = set; then
2430    case $ac_new_val in
2431    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2432    *) ac_arg=$ac_var=$ac_new_val ;;
2433    esac
2434    case " $ac_configure_args " in
2435      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2436      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2437    esac
2438  fi
2439done
2440if $ac_cache_corrupted; then
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2444$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2445  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2446fi
2447## -------------------- ##
2448## Main body of script. ##
2449## -------------------- ##
2450
2451ac_ext=c
2452ac_cpp='$CPP $CPPFLAGS'
2453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
2457
2458
2459
2460
2461
2462ac_config_headers="$ac_config_headers config.h"
2463
2464
2465# Default to --enable-multilib
2466# Check whether --enable-multilib was given.
2467if test "${enable_multilib+set}" = set; then :
2468  enableval=$enable_multilib; case "$enableval" in
2469  yes) multilib=yes ;;
2470  no)  multilib=no ;;
2471  *)   as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2472 esac
2473else
2474  multilib=yes
2475fi
2476
2477
2478# We may get other options which we leave undocumented:
2479# --with-target-subdir, --with-multisrctop, --with-multisubdir
2480# See config-ml.in if you want the gory details.
2481
2482if test "$srcdir" = "."; then
2483  if test "$with_target_subdir" != "."; then
2484    multi_basedir="$srcdir/$with_multisrctop../.."
2485  else
2486    multi_basedir="$srcdir/$with_multisrctop.."
2487  fi
2488else
2489  multi_basedir="$srcdir/.."
2490fi
2491
2492
2493# Even if the default multilib is not a cross compilation,
2494# it may be that some of the other multilibs are.
2495if test $cross_compiling = no && test $multilib = yes \
2496   && test "x${with_multisubdir}" != x ; then
2497   cross_compiling=maybe
2498fi
2499
2500ac_config_commands="$ac_config_commands default-1"
2501
2502ac_aux_dir=
2503for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2504  if test -f "$ac_dir/install-sh"; then
2505    ac_aux_dir=$ac_dir
2506    ac_install_sh="$ac_aux_dir/install-sh -c"
2507    break
2508  elif test -f "$ac_dir/install.sh"; then
2509    ac_aux_dir=$ac_dir
2510    ac_install_sh="$ac_aux_dir/install.sh -c"
2511    break
2512  elif test -f "$ac_dir/shtool"; then
2513    ac_aux_dir=$ac_dir
2514    ac_install_sh="$ac_aux_dir/shtool install -c"
2515    break
2516  fi
2517done
2518if test -z "$ac_aux_dir"; then
2519  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2520fi
2521
2522# These three variables are undocumented and unsupported,
2523# and are intended to be withdrawn in a future Autoconf release.
2524# They can cause serious problems if a builder's source tree is in a directory
2525# whose full name contains unusual characters.
2526ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2527ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2528ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2529
2530
2531# Make sure we can run config.sub.
2532$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2533  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2534
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2536$as_echo_n "checking build system type... " >&6; }
2537if ${ac_cv_build+:} false; then :
2538  $as_echo_n "(cached) " >&6
2539else
2540  ac_build_alias=$build_alias
2541test "x$ac_build_alias" = x &&
2542  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2543test "x$ac_build_alias" = x &&
2544  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2545ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2546  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2547
2548fi
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2550$as_echo "$ac_cv_build" >&6; }
2551case $ac_cv_build in
2552*-*-*) ;;
2553*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2554esac
2555build=$ac_cv_build
2556ac_save_IFS=$IFS; IFS='-'
2557set x $ac_cv_build
2558shift
2559build_cpu=$1
2560build_vendor=$2
2561shift; shift
2562# Remember, the first character of IFS is used to create $*,
2563# except with old shells:
2564build_os=$*
2565IFS=$ac_save_IFS
2566case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2567
2568
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2570$as_echo_n "checking host system type... " >&6; }
2571if ${ac_cv_host+:} false; then :
2572  $as_echo_n "(cached) " >&6
2573else
2574  if test "x$host_alias" = x; then
2575  ac_cv_host=$ac_cv_build
2576else
2577  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2578    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2579fi
2580
2581fi
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2583$as_echo "$ac_cv_host" >&6; }
2584case $ac_cv_host in
2585*-*-*) ;;
2586*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2587esac
2588host=$ac_cv_host
2589ac_save_IFS=$IFS; IFS='-'
2590set x $ac_cv_host
2591shift
2592host_cpu=$1
2593host_vendor=$2
2594shift; shift
2595# Remember, the first character of IFS is used to create $*,
2596# except with old shells:
2597host_os=$*
2598IFS=$ac_save_IFS
2599case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2600
2601
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2603$as_echo_n "checking target system type... " >&6; }
2604if ${ac_cv_target+:} false; then :
2605  $as_echo_n "(cached) " >&6
2606else
2607  if test "x$target_alias" = x; then
2608  ac_cv_target=$ac_cv_host
2609else
2610  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2611    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2612fi
2613
2614fi
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2616$as_echo "$ac_cv_target" >&6; }
2617case $ac_cv_target in
2618*-*-*) ;;
2619*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2620esac
2621target=$ac_cv_target
2622ac_save_IFS=$IFS; IFS='-'
2623set x $ac_cv_target
2624shift
2625target_cpu=$1
2626target_vendor=$2
2627shift; shift
2628# Remember, the first character of IFS is used to create $*,
2629# except with old shells:
2630target_os=$*
2631IFS=$ac_save_IFS
2632case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2633
2634
2635# The aliases save the names the user supplied, while $host etc.
2636# will get canonicalized.
2637test -n "$target_alias" &&
2638  test "$program_prefix$program_suffix$program_transform_name" = \
2639    NONENONEs,x,x, &&
2640  program_prefix=${target_alias}-
2641
2642# Expand $ac_aux_dir to an absolute path.
2643am_aux_dir=`cd "$ac_aux_dir" && pwd`
2644
2645ac_ext=c
2646ac_cpp='$CPP $CPPFLAGS'
2647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649ac_compiler_gnu=$ac_cv_c_compiler_gnu
2650if test -n "$ac_tool_prefix"; then
2651  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2652set dummy ${ac_tool_prefix}gcc; ac_word=$2
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
2655if ${ac_cv_prog_CC+:} false; then :
2656  $as_echo_n "(cached) " >&6
2657else
2658  if test -n "$CC"; then
2659  ac_cv_prog_CC="$CC" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664  IFS=$as_save_IFS
2665  test -z "$as_dir" && as_dir=.
2666    for ac_exec_ext in '' $ac_executable_extensions; do
2667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670    break 2
2671  fi
2672done
2673  done
2674IFS=$as_save_IFS
2675
2676fi
2677fi
2678CC=$ac_cv_prog_CC
2679if test -n "$CC"; then
2680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681$as_echo "$CC" >&6; }
2682else
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684$as_echo "no" >&6; }
2685fi
2686
2687
2688fi
2689if test -z "$ac_cv_prog_CC"; then
2690  ac_ct_CC=$CC
2691  # Extract the first word of "gcc", so it can be a program name with args.
2692set dummy gcc; ac_word=$2
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
2695if ${ac_cv_prog_ac_ct_CC+:} false; then :
2696  $as_echo_n "(cached) " >&6
2697else
2698  if test -n "$ac_ct_CC"; then
2699  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2700else
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704  IFS=$as_save_IFS
2705  test -z "$as_dir" && as_dir=.
2706    for ac_exec_ext in '' $ac_executable_extensions; do
2707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708    ac_cv_prog_ac_ct_CC="gcc"
2709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710    break 2
2711  fi
2712done
2713  done
2714IFS=$as_save_IFS
2715
2716fi
2717fi
2718ac_ct_CC=$ac_cv_prog_ac_ct_CC
2719if test -n "$ac_ct_CC"; then
2720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2721$as_echo "$ac_ct_CC" >&6; }
2722else
2723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724$as_echo "no" >&6; }
2725fi
2726
2727  if test "x$ac_ct_CC" = x; then
2728    CC=""
2729  else
2730    case $cross_compiling:$ac_tool_warned in
2731yes:)
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734ac_tool_warned=yes ;;
2735esac
2736    CC=$ac_ct_CC
2737  fi
2738else
2739  CC="$ac_cv_prog_CC"
2740fi
2741
2742if test -z "$CC"; then
2743          if test -n "$ac_tool_prefix"; then
2744    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2745set dummy ${ac_tool_prefix}cc; ac_word=$2
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747$as_echo_n "checking for $ac_word... " >&6; }
2748if ${ac_cv_prog_CC+:} false; then :
2749  $as_echo_n "(cached) " >&6
2750else
2751  if test -n "$CC"; then
2752  ac_cv_prog_CC="$CC" # Let the user override the test.
2753else
2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755for as_dir in $PATH
2756do
2757  IFS=$as_save_IFS
2758  test -z "$as_dir" && as_dir=.
2759    for ac_exec_ext in '' $ac_executable_extensions; do
2760  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761    ac_cv_prog_CC="${ac_tool_prefix}cc"
2762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763    break 2
2764  fi
2765done
2766  done
2767IFS=$as_save_IFS
2768
2769fi
2770fi
2771CC=$ac_cv_prog_CC
2772if test -n "$CC"; then
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774$as_echo "$CC" >&6; }
2775else
2776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777$as_echo "no" >&6; }
2778fi
2779
2780
2781  fi
2782fi
2783if test -z "$CC"; then
2784  # Extract the first word of "cc", so it can be a program name with args.
2785set dummy cc; ac_word=$2
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787$as_echo_n "checking for $ac_word... " >&6; }
2788if ${ac_cv_prog_CC+:} false; then :
2789  $as_echo_n "(cached) " >&6
2790else
2791  if test -n "$CC"; then
2792  ac_cv_prog_CC="$CC" # Let the user override the test.
2793else
2794  ac_prog_rejected=no
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  test -z "$as_dir" && as_dir=.
2800    for ac_exec_ext in '' $ac_executable_extensions; do
2801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2803       ac_prog_rejected=yes
2804       continue
2805     fi
2806    ac_cv_prog_CC="cc"
2807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808    break 2
2809  fi
2810done
2811  done
2812IFS=$as_save_IFS
2813
2814if test $ac_prog_rejected = yes; then
2815  # We found a bogon in the path, so make sure we never use it.
2816  set dummy $ac_cv_prog_CC
2817  shift
2818  if test $# != 0; then
2819    # We chose a different compiler from the bogus one.
2820    # However, it has the same basename, so the bogon will be chosen
2821    # first if we set CC to just the basename; use the full file name.
2822    shift
2823    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2824  fi
2825fi
2826fi
2827fi
2828CC=$ac_cv_prog_CC
2829if test -n "$CC"; then
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831$as_echo "$CC" >&6; }
2832else
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834$as_echo "no" >&6; }
2835fi
2836
2837
2838fi
2839if test -z "$CC"; then
2840  if test -n "$ac_tool_prefix"; then
2841  for ac_prog in cl.exe
2842  do
2843    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846$as_echo_n "checking for $ac_word... " >&6; }
2847if ${ac_cv_prog_CC+:} false; then :
2848  $as_echo_n "(cached) " >&6
2849else
2850  if test -n "$CC"; then
2851  ac_cv_prog_CC="$CC" # Let the user override the test.
2852else
2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH
2855do
2856  IFS=$as_save_IFS
2857  test -z "$as_dir" && as_dir=.
2858    for ac_exec_ext in '' $ac_executable_extensions; do
2859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862    break 2
2863  fi
2864done
2865  done
2866IFS=$as_save_IFS
2867
2868fi
2869fi
2870CC=$ac_cv_prog_CC
2871if test -n "$CC"; then
2872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873$as_echo "$CC" >&6; }
2874else
2875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876$as_echo "no" >&6; }
2877fi
2878
2879
2880    test -n "$CC" && break
2881  done
2882fi
2883if test -z "$CC"; then
2884  ac_ct_CC=$CC
2885  for ac_prog in cl.exe
2886do
2887  # Extract the first word of "$ac_prog", so it can be a program name with args.
2888set dummy $ac_prog; ac_word=$2
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890$as_echo_n "checking for $ac_word... " >&6; }
2891if ${ac_cv_prog_ac_ct_CC+:} false; then :
2892  $as_echo_n "(cached) " >&6
2893else
2894  if test -n "$ac_ct_CC"; then
2895  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896else
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900  IFS=$as_save_IFS
2901  test -z "$as_dir" && as_dir=.
2902    for ac_exec_ext in '' $ac_executable_extensions; do
2903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904    ac_cv_prog_ac_ct_CC="$ac_prog"
2905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906    break 2
2907  fi
2908done
2909  done
2910IFS=$as_save_IFS
2911
2912fi
2913fi
2914ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915if test -n "$ac_ct_CC"; then
2916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2917$as_echo "$ac_ct_CC" >&6; }
2918else
2919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920$as_echo "no" >&6; }
2921fi
2922
2923
2924  test -n "$ac_ct_CC" && break
2925done
2926
2927  if test "x$ac_ct_CC" = x; then
2928    CC=""
2929  else
2930    case $cross_compiling:$ac_tool_warned in
2931yes:)
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934ac_tool_warned=yes ;;
2935esac
2936    CC=$ac_ct_CC
2937  fi
2938fi
2939
2940fi
2941
2942
2943test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945as_fn_error $? "no acceptable C compiler found in \$PATH
2946See \`config.log' for more details" "$LINENO" 5; }
2947
2948# Provide some information about the compiler.
2949$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2950set X $ac_compile
2951ac_compiler=$2
2952for ac_option in --version -v -V -qversion; do
2953  { { ac_try="$ac_compiler $ac_option >&5"
2954case "(($ac_try" in
2955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956  *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959$as_echo "$ac_try_echo"; } >&5
2960  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2961  ac_status=$?
2962  if test -s conftest.err; then
2963    sed '10a\
2964... rest of stderr output deleted ...
2965         10q' conftest.err >conftest.er1
2966    cat conftest.er1 >&5
2967  fi
2968  rm -f conftest.er1 conftest.err
2969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970  test $ac_status = 0; }
2971done
2972
2973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974/* end confdefs.h.  */
2975
2976int
2977main ()
2978{
2979
2980  ;
2981  return 0;
2982}
2983_ACEOF
2984ac_clean_files_save=$ac_clean_files
2985ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2986# Try to create an executable without -o first, disregard a.out.
2987# It will help us diagnose broken compilers, and finding out an intuition
2988# of exeext.
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2990$as_echo_n "checking whether the C compiler works... " >&6; }
2991ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2992
2993# The possible output files:
2994ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2995
2996ac_rmfiles=
2997for ac_file in $ac_files
2998do
2999  case $ac_file in
3000    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3001    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3002  esac
3003done
3004rm -f $ac_rmfiles
3005
3006if { { ac_try="$ac_link_default"
3007case "(($ac_try" in
3008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009  *) ac_try_echo=$ac_try;;
3010esac
3011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012$as_echo "$ac_try_echo"; } >&5
3013  (eval "$ac_link_default") 2>&5
3014  ac_status=$?
3015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016  test $ac_status = 0; }; then :
3017  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3018# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3019# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3020# so that the user can short-circuit this test for compilers unknown to
3021# Autoconf.
3022for ac_file in $ac_files ''
3023do
3024  test -f "$ac_file" || continue
3025  case $ac_file in
3026    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3027	;;
3028    [ab].out )
3029	# We found the default executable, but exeext='' is most
3030	# certainly right.
3031	break;;
3032    *.* )
3033	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3034	then :; else
3035	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3036	fi
3037	# We set ac_cv_exeext here because the later test for it is not
3038	# safe: cross compilers may not add the suffix if given an `-o'
3039	# argument, so we may need to know it at that point already.
3040	# Even if this section looks crufty: it has the advantage of
3041	# actually working.
3042	break;;
3043    * )
3044	break;;
3045  esac
3046done
3047test "$ac_cv_exeext" = no && ac_cv_exeext=
3048
3049else
3050  ac_file=''
3051fi
3052if test -z "$ac_file"; then :
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054$as_echo "no" >&6; }
3055$as_echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060as_fn_error 77 "C compiler cannot create executables
3061See \`config.log' for more details" "$LINENO" 5; }
3062else
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3064$as_echo "yes" >&6; }
3065fi
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3067$as_echo_n "checking for C compiler default output file name... " >&6; }
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3069$as_echo "$ac_file" >&6; }
3070ac_exeext=$ac_cv_exeext
3071
3072rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3073ac_clean_files=$ac_clean_files_save
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3075$as_echo_n "checking for suffix of executables... " >&6; }
3076if { { ac_try="$ac_link"
3077case "(($ac_try" in
3078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079  *) ac_try_echo=$ac_try;;
3080esac
3081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082$as_echo "$ac_try_echo"; } >&5
3083  (eval "$ac_link") 2>&5
3084  ac_status=$?
3085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086  test $ac_status = 0; }; then :
3087  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3088# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3089# work properly (i.e., refer to `conftest.exe'), while it won't with
3090# `rm'.
3091for ac_file in conftest.exe conftest conftest.*; do
3092  test -f "$ac_file" || continue
3093  case $ac_file in
3094    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3095    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096	  break;;
3097    * ) break;;
3098  esac
3099done
3100else
3101  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3104See \`config.log' for more details" "$LINENO" 5; }
3105fi
3106rm -f conftest conftest$ac_cv_exeext
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3108$as_echo "$ac_cv_exeext" >&6; }
3109
3110rm -f conftest.$ac_ext
3111EXEEXT=$ac_cv_exeext
3112ac_exeext=$EXEEXT
3113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114/* end confdefs.h.  */
3115#include <stdio.h>
3116int
3117main ()
3118{
3119FILE *f = fopen ("conftest.out", "w");
3120 return ferror (f) || fclose (f) != 0;
3121
3122  ;
3123  return 0;
3124}
3125_ACEOF
3126ac_clean_files="$ac_clean_files conftest.out"
3127# Check that the compiler produces executables we can run.  If not, either
3128# the compiler is broken, or we cross compile.
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3130$as_echo_n "checking whether we are cross compiling... " >&6; }
3131if test "$cross_compiling" != yes; then
3132  { { ac_try="$ac_link"
3133case "(($ac_try" in
3134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135  *) ac_try_echo=$ac_try;;
3136esac
3137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138$as_echo "$ac_try_echo"; } >&5
3139  (eval "$ac_link") 2>&5
3140  ac_status=$?
3141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142  test $ac_status = 0; }
3143  if { ac_try='./conftest$ac_cv_exeext'
3144  { { case "(($ac_try" in
3145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146  *) ac_try_echo=$ac_try;;
3147esac
3148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149$as_echo "$ac_try_echo"; } >&5
3150  (eval "$ac_try") 2>&5
3151  ac_status=$?
3152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153  test $ac_status = 0; }; }; then
3154    cross_compiling=no
3155  else
3156    if test "$cross_compiling" = maybe; then
3157	cross_compiling=yes
3158    else
3159	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161as_fn_error $? "cannot run C compiled programs.
3162If you meant to cross compile, use \`--host'.
3163See \`config.log' for more details" "$LINENO" 5; }
3164    fi
3165  fi
3166fi
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3168$as_echo "$cross_compiling" >&6; }
3169
3170rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3171ac_clean_files=$ac_clean_files_save
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3173$as_echo_n "checking for suffix of object files... " >&6; }
3174if ${ac_cv_objext+:} false; then :
3175  $as_echo_n "(cached) " >&6
3176else
3177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178/* end confdefs.h.  */
3179
3180int
3181main ()
3182{
3183
3184  ;
3185  return 0;
3186}
3187_ACEOF
3188rm -f conftest.o conftest.obj
3189if { { ac_try="$ac_compile"
3190case "(($ac_try" in
3191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192  *) ac_try_echo=$ac_try;;
3193esac
3194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195$as_echo "$ac_try_echo"; } >&5
3196  (eval "$ac_compile") 2>&5
3197  ac_status=$?
3198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199  test $ac_status = 0; }; then :
3200  for ac_file in conftest.o conftest.obj conftest.*; do
3201  test -f "$ac_file" || continue;
3202  case $ac_file in
3203    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3204    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3205       break;;
3206  esac
3207done
3208else
3209  $as_echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214as_fn_error $? "cannot compute suffix of object files: cannot compile
3215See \`config.log' for more details" "$LINENO" 5; }
3216fi
3217rm -f conftest.$ac_cv_objext conftest.$ac_ext
3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3220$as_echo "$ac_cv_objext" >&6; }
3221OBJEXT=$ac_cv_objext
3222ac_objext=$OBJEXT
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3224$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3225if ${ac_cv_c_compiler_gnu+:} false; then :
3226  $as_echo_n "(cached) " >&6
3227else
3228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229/* end confdefs.h.  */
3230
3231int
3232main ()
3233{
3234#ifndef __GNUC__
3235       choke me
3236#endif
3237
3238  ;
3239  return 0;
3240}
3241_ACEOF
3242if ac_fn_c_try_compile "$LINENO"; then :
3243  ac_compiler_gnu=yes
3244else
3245  ac_compiler_gnu=no
3246fi
3247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248ac_cv_c_compiler_gnu=$ac_compiler_gnu
3249
3250fi
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3252$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3253if test $ac_compiler_gnu = yes; then
3254  GCC=yes
3255else
3256  GCC=
3257fi
3258ac_test_CFLAGS=${CFLAGS+set}
3259ac_save_CFLAGS=$CFLAGS
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3261$as_echo_n "checking whether $CC accepts -g... " >&6; }
3262if ${ac_cv_prog_cc_g+:} false; then :
3263  $as_echo_n "(cached) " >&6
3264else
3265  ac_save_c_werror_flag=$ac_c_werror_flag
3266   ac_c_werror_flag=yes
3267   ac_cv_prog_cc_g=no
3268   CFLAGS="-g"
3269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h.  */
3271
3272int
3273main ()
3274{
3275
3276  ;
3277  return 0;
3278}
3279_ACEOF
3280if ac_fn_c_try_compile "$LINENO"; then :
3281  ac_cv_prog_cc_g=yes
3282else
3283  CFLAGS=""
3284      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285/* end confdefs.h.  */
3286
3287int
3288main ()
3289{
3290
3291  ;
3292  return 0;
3293}
3294_ACEOF
3295if ac_fn_c_try_compile "$LINENO"; then :
3296
3297else
3298  ac_c_werror_flag=$ac_save_c_werror_flag
3299	 CFLAGS="-g"
3300	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301/* end confdefs.h.  */
3302
3303int
3304main ()
3305{
3306
3307  ;
3308  return 0;
3309}
3310_ACEOF
3311if ac_fn_c_try_compile "$LINENO"; then :
3312  ac_cv_prog_cc_g=yes
3313fi
3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315fi
3316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317fi
3318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319   ac_c_werror_flag=$ac_save_c_werror_flag
3320fi
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3322$as_echo "$ac_cv_prog_cc_g" >&6; }
3323if test "$ac_test_CFLAGS" = set; then
3324  CFLAGS=$ac_save_CFLAGS
3325elif test $ac_cv_prog_cc_g = yes; then
3326  if test "$GCC" = yes; then
3327    CFLAGS="-g -O2"
3328  else
3329    CFLAGS="-g"
3330  fi
3331else
3332  if test "$GCC" = yes; then
3333    CFLAGS="-O2"
3334  else
3335    CFLAGS=
3336  fi
3337fi
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3339$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3340if ${ac_cv_prog_cc_c89+:} false; then :
3341  $as_echo_n "(cached) " >&6
3342else
3343  ac_cv_prog_cc_c89=no
3344ac_save_CC=$CC
3345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h.  */
3347#include <stdarg.h>
3348#include <stdio.h>
3349struct stat;
3350/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3351struct buf { int x; };
3352FILE * (*rcsopen) (struct buf *, struct stat *, int);
3353static char *e (p, i)
3354     char **p;
3355     int i;
3356{
3357  return p[i];
3358}
3359static char *f (char * (*g) (char **, int), char **p, ...)
3360{
3361  char *s;
3362  va_list v;
3363  va_start (v,p);
3364  s = g (p, va_arg (v,int));
3365  va_end (v);
3366  return s;
3367}
3368
3369/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3370   function prototypes and stuff, but not '\xHH' hex character constants.
3371   These don't provoke an error unfortunately, instead are silently treated
3372   as 'x'.  The following induces an error, until -std is added to get
3373   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3374   array size at least.  It's necessary to write '\x00'==0 to get something
3375   that's true only with -std.  */
3376int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3377
3378/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3379   inside strings and character constants.  */
3380#define FOO(x) 'x'
3381int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3382
3383int test (int i, double x);
3384struct s1 {int (*f) (int a);};
3385struct s2 {int (*f) (double a);};
3386int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3387int argc;
3388char **argv;
3389int
3390main ()
3391{
3392return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3398	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3399do
3400  CC="$ac_save_CC $ac_arg"
3401  if ac_fn_c_try_compile "$LINENO"; then :
3402  ac_cv_prog_cc_c89=$ac_arg
3403fi
3404rm -f core conftest.err conftest.$ac_objext
3405  test "x$ac_cv_prog_cc_c89" != "xno" && break
3406done
3407rm -f conftest.$ac_ext
3408CC=$ac_save_CC
3409
3410fi
3411# AC_CACHE_VAL
3412case "x$ac_cv_prog_cc_c89" in
3413  x)
3414    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3415$as_echo "none needed" >&6; } ;;
3416  xno)
3417    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3418$as_echo "unsupported" >&6; } ;;
3419  *)
3420    CC="$CC $ac_cv_prog_cc_c89"
3421    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3422$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3423esac
3424if test "x$ac_cv_prog_cc_c89" != xno; then :
3425
3426fi
3427
3428ac_ext=c
3429ac_cpp='$CPP $CPPFLAGS'
3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
3434ac_ext=c
3435ac_cpp='$CPP $CPPFLAGS'
3436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3440$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3441if ${am_cv_prog_cc_c_o+:} false; then :
3442  $as_echo_n "(cached) " >&6
3443else
3444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445/* end confdefs.h.  */
3446
3447int
3448main ()
3449{
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455  # Make sure it works both with $CC and with simple cc.
3456  # Following AC_PROG_CC_C_O, we do the test twice because some
3457  # compilers refuse to overwrite an existing .o file with -o,
3458  # though they will create one.
3459  am_cv_prog_cc_c_o=yes
3460  for am_i in 1 2; do
3461    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3462   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3463   ac_status=$?
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); } \
3466         && test -f conftest2.$ac_objext; then
3467      : OK
3468    else
3469      am_cv_prog_cc_c_o=no
3470      break
3471    fi
3472  done
3473  rm -f core conftest*
3474  unset am_i
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3477$as_echo "$am_cv_prog_cc_c_o" >&6; }
3478if test "$am_cv_prog_cc_c_o" != yes; then
3479   # Losing compiler, so override with the script.
3480   # FIXME: It is wrong to rewrite CC.
3481   # But if we don't then we get into trouble of one sort or another.
3482   # A longer-term fix would be to have automake use am__CC in this case,
3483   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3484   CC="$am_aux_dir/compile $CC"
3485fi
3486ac_ext=c
3487ac_cpp='$CPP $CPPFLAGS'
3488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491
3492
3493
3494ac_ext=c
3495ac_cpp='$CPP $CPPFLAGS'
3496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3500$as_echo_n "checking how to run the C preprocessor... " >&6; }
3501# On Suns, sometimes $CPP names a directory.
3502if test -n "$CPP" && test -d "$CPP"; then
3503  CPP=
3504fi
3505if test -z "$CPP"; then
3506  if ${ac_cv_prog_CPP+:} false; then :
3507  $as_echo_n "(cached) " >&6
3508else
3509      # Double quotes because CPP needs to be expanded
3510    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3511    do
3512      ac_preproc_ok=false
3513for ac_c_preproc_warn_flag in '' yes
3514do
3515  # Use a header file that comes with gcc, so configuring glibc
3516  # with a fresh cross-compiler works.
3517  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518  # <limits.h> exists even on freestanding compilers.
3519  # On the NeXT, cc -E runs the code through the compiler's parser,
3520  # not just through cpp. "Syntax error" is here to catch this case.
3521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h.  */
3523#ifdef __STDC__
3524# include <limits.h>
3525#else
3526# include <assert.h>
3527#endif
3528		     Syntax error
3529_ACEOF
3530if ac_fn_c_try_cpp "$LINENO"; then :
3531
3532else
3533  # Broken: fails on valid input.
3534continue
3535fi
3536rm -f conftest.err conftest.i conftest.$ac_ext
3537
3538  # OK, works on sane cases.  Now check whether nonexistent headers
3539  # can be detected and how.
3540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542#include <ac_nonexistent.h>
3543_ACEOF
3544if ac_fn_c_try_cpp "$LINENO"; then :
3545  # Broken: success on invalid input.
3546continue
3547else
3548  # Passes both tests.
3549ac_preproc_ok=:
3550break
3551fi
3552rm -f conftest.err conftest.i conftest.$ac_ext
3553
3554done
3555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3556rm -f conftest.i conftest.err conftest.$ac_ext
3557if $ac_preproc_ok; then :
3558  break
3559fi
3560
3561    done
3562    ac_cv_prog_CPP=$CPP
3563
3564fi
3565  CPP=$ac_cv_prog_CPP
3566else
3567  ac_cv_prog_CPP=$CPP
3568fi
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3570$as_echo "$CPP" >&6; }
3571ac_preproc_ok=false
3572for ac_c_preproc_warn_flag in '' yes
3573do
3574  # Use a header file that comes with gcc, so configuring glibc
3575  # with a fresh cross-compiler works.
3576  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577  # <limits.h> exists even on freestanding compilers.
3578  # On the NeXT, cc -E runs the code through the compiler's parser,
3579  # not just through cpp. "Syntax error" is here to catch this case.
3580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h.  */
3582#ifdef __STDC__
3583# include <limits.h>
3584#else
3585# include <assert.h>
3586#endif
3587		     Syntax error
3588_ACEOF
3589if ac_fn_c_try_cpp "$LINENO"; then :
3590
3591else
3592  # Broken: fails on valid input.
3593continue
3594fi
3595rm -f conftest.err conftest.i conftest.$ac_ext
3596
3597  # OK, works on sane cases.  Now check whether nonexistent headers
3598  # can be detected and how.
3599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600/* end confdefs.h.  */
3601#include <ac_nonexistent.h>
3602_ACEOF
3603if ac_fn_c_try_cpp "$LINENO"; then :
3604  # Broken: success on invalid input.
3605continue
3606else
3607  # Passes both tests.
3608ac_preproc_ok=:
3609break
3610fi
3611rm -f conftest.err conftest.i conftest.$ac_ext
3612
3613done
3614# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3615rm -f conftest.i conftest.err conftest.$ac_ext
3616if $ac_preproc_ok; then :
3617
3618else
3619  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3622See \`config.log' for more details" "$LINENO" 5; }
3623fi
3624
3625ac_ext=c
3626ac_cpp='$CPP $CPPFLAGS'
3627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3633$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3634if ${ac_cv_path_GREP+:} false; then :
3635  $as_echo_n "(cached) " >&6
3636else
3637  if test -z "$GREP"; then
3638  ac_path_GREP_found=false
3639  # Loop through the user's path and test for each of PROGNAME-LIST
3640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3642do
3643  IFS=$as_save_IFS
3644  test -z "$as_dir" && as_dir=.
3645    for ac_prog in grep ggrep; do
3646    for ac_exec_ext in '' $ac_executable_extensions; do
3647      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3648      as_fn_executable_p "$ac_path_GREP" || continue
3649# Check for GNU ac_path_GREP and select it if it is found.
3650  # Check for GNU $ac_path_GREP
3651case `"$ac_path_GREP" --version 2>&1` in
3652*GNU*)
3653  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3654*)
3655  ac_count=0
3656  $as_echo_n 0123456789 >"conftest.in"
3657  while :
3658  do
3659    cat "conftest.in" "conftest.in" >"conftest.tmp"
3660    mv "conftest.tmp" "conftest.in"
3661    cp "conftest.in" "conftest.nl"
3662    $as_echo 'GREP' >> "conftest.nl"
3663    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3664    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3665    as_fn_arith $ac_count + 1 && ac_count=$as_val
3666    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3667      # Best one so far, save it but keep looking for a better one
3668      ac_cv_path_GREP="$ac_path_GREP"
3669      ac_path_GREP_max=$ac_count
3670    fi
3671    # 10*(2^10) chars as input seems more than enough
3672    test $ac_count -gt 10 && break
3673  done
3674  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3675esac
3676
3677      $ac_path_GREP_found && break 3
3678    done
3679  done
3680  done
3681IFS=$as_save_IFS
3682  if test -z "$ac_cv_path_GREP"; then
3683    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3684  fi
3685else
3686  ac_cv_path_GREP=$GREP
3687fi
3688
3689fi
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3691$as_echo "$ac_cv_path_GREP" >&6; }
3692 GREP="$ac_cv_path_GREP"
3693
3694
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3696$as_echo_n "checking for egrep... " >&6; }
3697if ${ac_cv_path_EGREP+:} false; then :
3698  $as_echo_n "(cached) " >&6
3699else
3700  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3701   then ac_cv_path_EGREP="$GREP -E"
3702   else
3703     if test -z "$EGREP"; then
3704  ac_path_EGREP_found=false
3705  # Loop through the user's path and test for each of PROGNAME-LIST
3706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3708do
3709  IFS=$as_save_IFS
3710  test -z "$as_dir" && as_dir=.
3711    for ac_prog in egrep; do
3712    for ac_exec_ext in '' $ac_executable_extensions; do
3713      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3714      as_fn_executable_p "$ac_path_EGREP" || continue
3715# Check for GNU ac_path_EGREP and select it if it is found.
3716  # Check for GNU $ac_path_EGREP
3717case `"$ac_path_EGREP" --version 2>&1` in
3718*GNU*)
3719  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3720*)
3721  ac_count=0
3722  $as_echo_n 0123456789 >"conftest.in"
3723  while :
3724  do
3725    cat "conftest.in" "conftest.in" >"conftest.tmp"
3726    mv "conftest.tmp" "conftest.in"
3727    cp "conftest.in" "conftest.nl"
3728    $as_echo 'EGREP' >> "conftest.nl"
3729    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3730    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3731    as_fn_arith $ac_count + 1 && ac_count=$as_val
3732    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3733      # Best one so far, save it but keep looking for a better one
3734      ac_cv_path_EGREP="$ac_path_EGREP"
3735      ac_path_EGREP_max=$ac_count
3736    fi
3737    # 10*(2^10) chars as input seems more than enough
3738    test $ac_count -gt 10 && break
3739  done
3740  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3741esac
3742
3743      $ac_path_EGREP_found && break 3
3744    done
3745  done
3746  done
3747IFS=$as_save_IFS
3748  if test -z "$ac_cv_path_EGREP"; then
3749    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3750  fi
3751else
3752  ac_cv_path_EGREP=$EGREP
3753fi
3754
3755   fi
3756fi
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3758$as_echo "$ac_cv_path_EGREP" >&6; }
3759 EGREP="$ac_cv_path_EGREP"
3760
3761
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3763$as_echo_n "checking for ANSI C header files... " >&6; }
3764if ${ac_cv_header_stdc+:} false; then :
3765  $as_echo_n "(cached) " >&6
3766else
3767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768/* end confdefs.h.  */
3769#include <stdlib.h>
3770#include <stdarg.h>
3771#include <string.h>
3772#include <float.h>
3773
3774int
3775main ()
3776{
3777
3778  ;
3779  return 0;
3780}
3781_ACEOF
3782if ac_fn_c_try_compile "$LINENO"; then :
3783  ac_cv_header_stdc=yes
3784else
3785  ac_cv_header_stdc=no
3786fi
3787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788
3789if test $ac_cv_header_stdc = yes; then
3790  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h.  */
3793#include <string.h>
3794
3795_ACEOF
3796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3797  $EGREP "memchr" >/dev/null 2>&1; then :
3798
3799else
3800  ac_cv_header_stdc=no
3801fi
3802rm -f conftest*
3803
3804fi
3805
3806if test $ac_cv_header_stdc = yes; then
3807  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809/* end confdefs.h.  */
3810#include <stdlib.h>
3811
3812_ACEOF
3813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3814  $EGREP "free" >/dev/null 2>&1; then :
3815
3816else
3817  ac_cv_header_stdc=no
3818fi
3819rm -f conftest*
3820
3821fi
3822
3823if test $ac_cv_header_stdc = yes; then
3824  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3825  if test "$cross_compiling" = yes; then :
3826  :
3827else
3828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829/* end confdefs.h.  */
3830#include <ctype.h>
3831#include <stdlib.h>
3832#if ((' ' & 0x0FF) == 0x020)
3833# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3834# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3835#else
3836# define ISLOWER(c) \
3837		   (('a' <= (c) && (c) <= 'i') \
3838		     || ('j' <= (c) && (c) <= 'r') \
3839		     || ('s' <= (c) && (c) <= 'z'))
3840# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3841#endif
3842
3843#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3844int
3845main ()
3846{
3847  int i;
3848  for (i = 0; i < 256; i++)
3849    if (XOR (islower (i), ISLOWER (i))
3850	|| toupper (i) != TOUPPER (i))
3851      return 2;
3852  return 0;
3853}
3854_ACEOF
3855if ac_fn_c_try_run "$LINENO"; then :
3856
3857else
3858  ac_cv_header_stdc=no
3859fi
3860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3861  conftest.$ac_objext conftest.beam conftest.$ac_ext
3862fi
3863
3864fi
3865fi
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3867$as_echo "$ac_cv_header_stdc" >&6; }
3868if test $ac_cv_header_stdc = yes; then
3869
3870$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3871
3872fi
3873
3874# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3875for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3876		  inttypes.h stdint.h unistd.h
3877do :
3878  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3879ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3880"
3881if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3882  cat >>confdefs.h <<_ACEOF
3883#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3884_ACEOF
3885
3886fi
3887
3888done
3889
3890
3891
3892  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3893if test "x$ac_cv_header_minix_config_h" = xyes; then :
3894  MINIX=yes
3895else
3896  MINIX=
3897fi
3898
3899
3900  if test "$MINIX" = yes; then
3901
3902$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3903
3904
3905$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3906
3907
3908$as_echo "#define _MINIX 1" >>confdefs.h
3909
3910  fi
3911
3912
3913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3914$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3915if ${ac_cv_safe_to_define___extensions__+:} false; then :
3916  $as_echo_n "(cached) " >&6
3917else
3918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919/* end confdefs.h.  */
3920
3921#         define __EXTENSIONS__ 1
3922          $ac_includes_default
3923int
3924main ()
3925{
3926
3927  ;
3928  return 0;
3929}
3930_ACEOF
3931if ac_fn_c_try_compile "$LINENO"; then :
3932  ac_cv_safe_to_define___extensions__=yes
3933else
3934  ac_cv_safe_to_define___extensions__=no
3935fi
3936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937fi
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3939$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3940  test $ac_cv_safe_to_define___extensions__ = yes &&
3941    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3942
3943  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3944
3945  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3946
3947  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3948
3949  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3950
3951
3952
3953target_alias=${target_alias-$target}
3954
3955
3956# 1.11.1: Require that version of automake.
3957# foreign: Don't require README, INSTALL, NEWS, etc.
3958# no-define: Don't define PACKAGE and VERSION.
3959# no-dependencies: Don't generate automatic dependencies.
3960#    (because it breaks when using bootstrap-lean, since some of the
3961#    headers are gone at "make install" time).
3962# subdir-objects: Build objects in sub-directories.
3963# -Wall: Issue all automake warnings.
3964# -Wno-portability: Don't warn about constructs supported by GNU make.
3965#    (because GCC requires GNU make anyhow).
3966#  -Wno-override: Overrides used in testsuite.
3967am__api_version='1.15'
3968
3969# Find a good install program.  We prefer a C program (faster),
3970# so one script is as good as another.  But avoid the broken or
3971# incompatible versions:
3972# SysV /etc/install, /usr/sbin/install
3973# SunOS /usr/etc/install
3974# IRIX /sbin/install
3975# AIX /bin/install
3976# AmigaOS /C/install, which installs bootblocks on floppy discs
3977# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3978# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3979# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3980# OS/2's system install, which has a completely different semantic
3981# ./install, which can be erroneously created by make from ./install.sh.
3982# Reject install programs that cannot install multiple files.
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3984$as_echo_n "checking for a BSD-compatible install... " >&6; }
3985if test -z "$INSTALL"; then
3986if ${ac_cv_path_install+:} false; then :
3987  $as_echo_n "(cached) " >&6
3988else
3989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990for as_dir in $PATH
3991do
3992  IFS=$as_save_IFS
3993  test -z "$as_dir" && as_dir=.
3994    # Account for people who put trailing slashes in PATH elements.
3995case $as_dir/ in #((
3996  ./ | .// | /[cC]/* | \
3997  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3998  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3999  /usr/ucb/* ) ;;
4000  *)
4001    # OSF1 and SCO ODT 3.0 have their own names for install.
4002    # Don't use installbsd from OSF since it installs stuff as root
4003    # by default.
4004    for ac_prog in ginstall scoinst install; do
4005      for ac_exec_ext in '' $ac_executable_extensions; do
4006	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4007	  if test $ac_prog = install &&
4008	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4009	    # AIX install.  It has an incompatible calling convention.
4010	    :
4011	  elif test $ac_prog = install &&
4012	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4013	    # program-specific install script used by HP pwplus--don't use.
4014	    :
4015	  else
4016	    rm -rf conftest.one conftest.two conftest.dir
4017	    echo one > conftest.one
4018	    echo two > conftest.two
4019	    mkdir conftest.dir
4020	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4021	      test -s conftest.one && test -s conftest.two &&
4022	      test -s conftest.dir/conftest.one &&
4023	      test -s conftest.dir/conftest.two
4024	    then
4025	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4026	      break 3
4027	    fi
4028	  fi
4029	fi
4030      done
4031    done
4032    ;;
4033esac
4034
4035  done
4036IFS=$as_save_IFS
4037
4038rm -rf conftest.one conftest.two conftest.dir
4039
4040fi
4041  if test "${ac_cv_path_install+set}" = set; then
4042    INSTALL=$ac_cv_path_install
4043  else
4044    # As a last resort, use the slow shell script.  Don't cache a
4045    # value for INSTALL within a source directory, because that will
4046    # break other packages using the cache if that directory is
4047    # removed, or if the value is a relative name.
4048    INSTALL=$ac_install_sh
4049  fi
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4052$as_echo "$INSTALL" >&6; }
4053
4054# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4055# It thinks the first close brace ends the variable substitution.
4056test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4057
4058test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4059
4060test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4061
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4063$as_echo_n "checking whether build environment is sane... " >&6; }
4064# Reject unsafe characters in $srcdir or the absolute working directory
4065# name.  Accept space and tab only in the latter.
4066am_lf='
4067'
4068case `pwd` in
4069  *[\\\"\#\$\&\'\`$am_lf]*)
4070    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4071esac
4072case $srcdir in
4073  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4074    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4075esac
4076
4077# Do 'set' in a subshell so we don't clobber the current shell's
4078# arguments.  Must try -L first in case configure is actually a
4079# symlink; some systems play weird games with the mod time of symlinks
4080# (eg FreeBSD returns the mod time of the symlink's containing
4081# directory).
4082if (
4083   am_has_slept=no
4084   for am_try in 1 2; do
4085     echo "timestamp, slept: $am_has_slept" > conftest.file
4086     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4087     if test "$*" = "X"; then
4088	# -L didn't work.
4089	set X `ls -t "$srcdir/configure" conftest.file`
4090     fi
4091     if test "$*" != "X $srcdir/configure conftest.file" \
4092	&& test "$*" != "X conftest.file $srcdir/configure"; then
4093
4094	# If neither matched, then we have a broken ls.  This can happen
4095	# if, for instance, CONFIG_SHELL is bash and it inherits a
4096	# broken ls alias from the environment.  This has actually
4097	# happened.  Such a system could not be considered "sane".
4098	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4099  alias in your environment" "$LINENO" 5
4100     fi
4101     if test "$2" = conftest.file || test $am_try -eq 2; then
4102       break
4103     fi
4104     # Just in case.
4105     sleep 1
4106     am_has_slept=yes
4107   done
4108   test "$2" = conftest.file
4109   )
4110then
4111   # Ok.
4112   :
4113else
4114   as_fn_error $? "newly created file is older than distributed files!
4115Check your system clock" "$LINENO" 5
4116fi
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4118$as_echo "yes" >&6; }
4119# If we didn't sleep, we still need to ensure time stamps of config.status and
4120# generated files are strictly newer.
4121am_sleep_pid=
4122if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4123  ( sleep 1 ) &
4124  am_sleep_pid=$!
4125fi
4126
4127rm -f conftest.file
4128
4129test "$program_prefix" != NONE &&
4130  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4131# Use a double $ so make ignores it.
4132test "$program_suffix" != NONE &&
4133  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4134# Double any \ or $.
4135# By default was `s,x,x', remove it if useless.
4136ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4137program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4138
4139if test x"${MISSING+set}" != xset; then
4140  case $am_aux_dir in
4141  *\ * | *\	*)
4142    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4143  *)
4144    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4145  esac
4146fi
4147# Use eval to expand $SHELL
4148if eval "$MISSING --is-lightweight"; then
4149  am_missing_run="$MISSING "
4150else
4151  am_missing_run=
4152  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4153$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4154fi
4155
4156if test x"${install_sh+set}" != xset; then
4157  case $am_aux_dir in
4158  *\ * | *\	*)
4159    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4160  *)
4161    install_sh="\${SHELL} $am_aux_dir/install-sh"
4162  esac
4163fi
4164
4165# Installed binaries are usually stripped using 'strip' when the user
4166# run "make install-strip".  However 'strip' might not be the right
4167# tool to use in cross-compilation environments, therefore Automake
4168# will honor the 'STRIP' environment variable to overrule this program.
4169if test "$cross_compiling" != no; then
4170  if test -n "$ac_tool_prefix"; then
4171  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4172set dummy ${ac_tool_prefix}strip; ac_word=$2
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174$as_echo_n "checking for $ac_word... " >&6; }
4175if ${ac_cv_prog_STRIP+:} false; then :
4176  $as_echo_n "(cached) " >&6
4177else
4178  if test -n "$STRIP"; then
4179  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4180else
4181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182for as_dir in $PATH
4183do
4184  IFS=$as_save_IFS
4185  test -z "$as_dir" && as_dir=.
4186    for ac_exec_ext in '' $ac_executable_extensions; do
4187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190    break 2
4191  fi
4192done
4193  done
4194IFS=$as_save_IFS
4195
4196fi
4197fi
4198STRIP=$ac_cv_prog_STRIP
4199if test -n "$STRIP"; then
4200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4201$as_echo "$STRIP" >&6; }
4202else
4203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204$as_echo "no" >&6; }
4205fi
4206
4207
4208fi
4209if test -z "$ac_cv_prog_STRIP"; then
4210  ac_ct_STRIP=$STRIP
4211  # Extract the first word of "strip", so it can be a program name with args.
4212set dummy strip; ac_word=$2
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214$as_echo_n "checking for $ac_word... " >&6; }
4215if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4216  $as_echo_n "(cached) " >&6
4217else
4218  if test -n "$ac_ct_STRIP"; then
4219  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4220else
4221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH
4223do
4224  IFS=$as_save_IFS
4225  test -z "$as_dir" && as_dir=.
4226    for ac_exec_ext in '' $ac_executable_extensions; do
4227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228    ac_cv_prog_ac_ct_STRIP="strip"
4229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230    break 2
4231  fi
4232done
4233  done
4234IFS=$as_save_IFS
4235
4236fi
4237fi
4238ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4239if test -n "$ac_ct_STRIP"; then
4240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4241$as_echo "$ac_ct_STRIP" >&6; }
4242else
4243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244$as_echo "no" >&6; }
4245fi
4246
4247  if test "x$ac_ct_STRIP" = x; then
4248    STRIP=":"
4249  else
4250    case $cross_compiling:$ac_tool_warned in
4251yes:)
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254ac_tool_warned=yes ;;
4255esac
4256    STRIP=$ac_ct_STRIP
4257  fi
4258else
4259  STRIP="$ac_cv_prog_STRIP"
4260fi
4261
4262fi
4263INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4264
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4266$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4267if test -z "$MKDIR_P"; then
4268  if ${ac_cv_path_mkdir+:} false; then :
4269  $as_echo_n "(cached) " >&6
4270else
4271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4273do
4274  IFS=$as_save_IFS
4275  test -z "$as_dir" && as_dir=.
4276    for ac_prog in mkdir gmkdir; do
4277	 for ac_exec_ext in '' $ac_executable_extensions; do
4278	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4279	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4280	     'mkdir (GNU coreutils) '* | \
4281	     'mkdir (coreutils) '* | \
4282	     'mkdir (fileutils) '4.1*)
4283	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4284	       break 3;;
4285	   esac
4286	 done
4287       done
4288  done
4289IFS=$as_save_IFS
4290
4291fi
4292
4293  test -d ./--version && rmdir ./--version
4294  if test "${ac_cv_path_mkdir+set}" = set; then
4295    MKDIR_P="$ac_cv_path_mkdir -p"
4296  else
4297    # As a last resort, use the slow shell script.  Don't cache a
4298    # value for MKDIR_P within a source directory, because that will
4299    # break other packages using the cache if that directory is
4300    # removed, or if the value is a relative name.
4301    MKDIR_P="$ac_install_sh -d"
4302  fi
4303fi
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4305$as_echo "$MKDIR_P" >&6; }
4306
4307for ac_prog in gawk mawk nawk awk
4308do
4309  # Extract the first word of "$ac_prog", so it can be a program name with args.
4310set dummy $ac_prog; ac_word=$2
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312$as_echo_n "checking for $ac_word... " >&6; }
4313if ${ac_cv_prog_AWK+:} false; then :
4314  $as_echo_n "(cached) " >&6
4315else
4316  if test -n "$AWK"; then
4317  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4318else
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322  IFS=$as_save_IFS
4323  test -z "$as_dir" && as_dir=.
4324    for ac_exec_ext in '' $ac_executable_extensions; do
4325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326    ac_cv_prog_AWK="$ac_prog"
4327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328    break 2
4329  fi
4330done
4331  done
4332IFS=$as_save_IFS
4333
4334fi
4335fi
4336AWK=$ac_cv_prog_AWK
4337if test -n "$AWK"; then
4338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4339$as_echo "$AWK" >&6; }
4340else
4341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342$as_echo "no" >&6; }
4343fi
4344
4345
4346  test -n "$AWK" && break
4347done
4348
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4350$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4351set x ${MAKE-make}
4352ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4353if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4354  $as_echo_n "(cached) " >&6
4355else
4356  cat >conftest.make <<\_ACEOF
4357SHELL = /bin/sh
4358all:
4359	@echo '@@@%%%=$(MAKE)=@@@%%%'
4360_ACEOF
4361# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4362case `${MAKE-make} -f conftest.make 2>/dev/null` in
4363  *@@@%%%=?*=@@@%%%*)
4364    eval ac_cv_prog_make_${ac_make}_set=yes;;
4365  *)
4366    eval ac_cv_prog_make_${ac_make}_set=no;;
4367esac
4368rm -f conftest.make
4369fi
4370if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372$as_echo "yes" >&6; }
4373  SET_MAKE=
4374else
4375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376$as_echo "no" >&6; }
4377  SET_MAKE="MAKE=${MAKE-make}"
4378fi
4379
4380rm -rf .tst 2>/dev/null
4381mkdir .tst 2>/dev/null
4382if test -d .tst; then
4383  am__leading_dot=.
4384else
4385  am__leading_dot=_
4386fi
4387rmdir .tst 2>/dev/null
4388
4389# Check whether --enable-silent-rules was given.
4390if test "${enable_silent_rules+set}" = set; then :
4391  enableval=$enable_silent_rules;
4392fi
4393
4394case $enable_silent_rules in # (((
4395  yes) AM_DEFAULT_VERBOSITY=0;;
4396   no) AM_DEFAULT_VERBOSITY=1;;
4397    *) AM_DEFAULT_VERBOSITY=1;;
4398esac
4399am_make=${MAKE-make}
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4401$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4402if ${am_cv_make_support_nested_variables+:} false; then :
4403  $as_echo_n "(cached) " >&6
4404else
4405  if $as_echo 'TRUE=$(BAR$(V))
4406BAR0=false
4407BAR1=true
4408V=1
4409am__doit:
4410	@$(TRUE)
4411.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4412  am_cv_make_support_nested_variables=yes
4413else
4414  am_cv_make_support_nested_variables=no
4415fi
4416fi
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4418$as_echo "$am_cv_make_support_nested_variables" >&6; }
4419if test $am_cv_make_support_nested_variables = yes; then
4420    AM_V='$(V)'
4421  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4422else
4423  AM_V=$AM_DEFAULT_VERBOSITY
4424  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4425fi
4426AM_BACKSLASH='\'
4427
4428if test "`cd $srcdir && pwd`" != "`pwd`"; then
4429  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4430  # is not polluted with repeated "-I."
4431  am__isrc=' -I$(srcdir)'
4432  # test to see if srcdir already configured
4433  if test -f $srcdir/config.status; then
4434    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4435  fi
4436fi
4437
4438# test whether we have cygpath
4439if test -z "$CYGPATH_W"; then
4440  if (cygpath --version) >/dev/null 2>/dev/null; then
4441    CYGPATH_W='cygpath -w'
4442  else
4443    CYGPATH_W=echo
4444  fi
4445fi
4446
4447
4448# Define the identity of the package.
4449 PACKAGE='libphobos'
4450 VERSION='version-unused'
4451
4452
4453# Some tools Automake needs.
4454
4455ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4456
4457
4458AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4459
4460
4461AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4462
4463
4464AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4465
4466
4467MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4468
4469# For better backward compatibility.  To be removed once Automake 1.9.x
4470# dies out for good.  For more background, see:
4471# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4472# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4473mkdir_p='$(MKDIR_P)'
4474
4475# We need awk for the "check" target (and possibly the TAP driver).  The
4476# system "awk" is bad on some platforms.
4477# Always define AMTAR for backward compatibility.  Yes, it's still used
4478# in the wild :-(  We should find a proper way to deprecate it ...
4479AMTAR='$${TAR-tar}'
4480
4481
4482# We'll loop over all known methods to create a tar archive until one works.
4483_am_tools='gnutar  pax cpio none'
4484
4485am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4486
4487
4488
4489
4490
4491
4492# POSIX will say in a future version that running "rm -f" with no argument
4493# is OK; and we want to be able to make that assumption in our Makefile
4494# recipes.  So use an aggressive probe to check that the usage we want is
4495# actually supported "in the wild" to an acceptable degree.
4496# See automake bug#10828.
4497# To make any issue more visible, cause the running configure to be aborted
4498# by default if the 'rm' program in use doesn't match our expectations; the
4499# user can still override this though.
4500if rm -f && rm -fr && rm -rf; then : OK; else
4501  cat >&2 <<'END'
4502Oops!
4503
4504Your 'rm' program seems unable to run without file operands specified
4505on the command line, even when the '-f' option is present.  This is contrary
4506to the behaviour of most rm programs out there, and not conforming with
4507the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4508
4509Please tell bug-automake@gnu.org about your system, including the value
4510of your $PATH and any error possibly output before this message.  This
4511can help us improve future automake versions.
4512
4513END
4514  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4515    echo 'Configuration will proceed anyway, since you have set the' >&2
4516    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4517    echo >&2
4518  else
4519    cat >&2 <<'END'
4520Aborting the configuration process, to ensure you take notice of the issue.
4521
4522You can download and install GNU coreutils to get an 'rm' implementation
4523that behaves properly: <http://www.gnu.org/software/coreutils/>.
4524
4525If you want to complete the configuration process using your problematic
4526'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4527to "yes", and re-run configure.
4528
4529END
4530    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4531  fi
4532fi
4533
4534
4535
4536
4537# By default we simply use the C compiler to build assembly code.
4538
4539test "${CCAS+set}" = set || CCAS=$CC
4540test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4541
4542
4543
4544ac_ext=c
4545ac_cpp='$CPP $CPPFLAGS'
4546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549if test -n "$ac_tool_prefix"; then
4550  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4551set dummy ${ac_tool_prefix}gcc; ac_word=$2
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553$as_echo_n "checking for $ac_word... " >&6; }
4554if ${ac_cv_prog_CC+:} false; then :
4555  $as_echo_n "(cached) " >&6
4556else
4557  if test -n "$CC"; then
4558  ac_cv_prog_CC="$CC" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563  IFS=$as_save_IFS
4564  test -z "$as_dir" && as_dir=.
4565    for ac_exec_ext in '' $ac_executable_extensions; do
4566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569    break 2
4570  fi
4571done
4572  done
4573IFS=$as_save_IFS
4574
4575fi
4576fi
4577CC=$ac_cv_prog_CC
4578if test -n "$CC"; then
4579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4580$as_echo "$CC" >&6; }
4581else
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
4584fi
4585
4586
4587fi
4588if test -z "$ac_cv_prog_CC"; then
4589  ac_ct_CC=$CC
4590  # Extract the first word of "gcc", so it can be a program name with args.
4591set dummy gcc; ac_word=$2
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593$as_echo_n "checking for $ac_word... " >&6; }
4594if ${ac_cv_prog_ac_ct_CC+:} false; then :
4595  $as_echo_n "(cached) " >&6
4596else
4597  if test -n "$ac_ct_CC"; then
4598  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603  IFS=$as_save_IFS
4604  test -z "$as_dir" && as_dir=.
4605    for ac_exec_ext in '' $ac_executable_extensions; do
4606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607    ac_cv_prog_ac_ct_CC="gcc"
4608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609    break 2
4610  fi
4611done
4612  done
4613IFS=$as_save_IFS
4614
4615fi
4616fi
4617ac_ct_CC=$ac_cv_prog_ac_ct_CC
4618if test -n "$ac_ct_CC"; then
4619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4620$as_echo "$ac_ct_CC" >&6; }
4621else
4622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623$as_echo "no" >&6; }
4624fi
4625
4626  if test "x$ac_ct_CC" = x; then
4627    CC=""
4628  else
4629    case $cross_compiling:$ac_tool_warned in
4630yes:)
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4633ac_tool_warned=yes ;;
4634esac
4635    CC=$ac_ct_CC
4636  fi
4637else
4638  CC="$ac_cv_prog_CC"
4639fi
4640
4641if test -z "$CC"; then
4642          if test -n "$ac_tool_prefix"; then
4643    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4644set dummy ${ac_tool_prefix}cc; ac_word=$2
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646$as_echo_n "checking for $ac_word... " >&6; }
4647if ${ac_cv_prog_CC+:} false; then :
4648  $as_echo_n "(cached) " >&6
4649else
4650  if test -n "$CC"; then
4651  ac_cv_prog_CC="$CC" # Let the user override the test.
4652else
4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH
4655do
4656  IFS=$as_save_IFS
4657  test -z "$as_dir" && as_dir=.
4658    for ac_exec_ext in '' $ac_executable_extensions; do
4659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660    ac_cv_prog_CC="${ac_tool_prefix}cc"
4661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662    break 2
4663  fi
4664done
4665  done
4666IFS=$as_save_IFS
4667
4668fi
4669fi
4670CC=$ac_cv_prog_CC
4671if test -n "$CC"; then
4672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4673$as_echo "$CC" >&6; }
4674else
4675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676$as_echo "no" >&6; }
4677fi
4678
4679
4680  fi
4681fi
4682if test -z "$CC"; then
4683  # Extract the first word of "cc", so it can be a program name with args.
4684set dummy cc; ac_word=$2
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686$as_echo_n "checking for $ac_word... " >&6; }
4687if ${ac_cv_prog_CC+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690  if test -n "$CC"; then
4691  ac_cv_prog_CC="$CC" # Let the user override the test.
4692else
4693  ac_prog_rejected=no
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697  IFS=$as_save_IFS
4698  test -z "$as_dir" && as_dir=.
4699    for ac_exec_ext in '' $ac_executable_extensions; do
4700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4702       ac_prog_rejected=yes
4703       continue
4704     fi
4705    ac_cv_prog_CC="cc"
4706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707    break 2
4708  fi
4709done
4710  done
4711IFS=$as_save_IFS
4712
4713if test $ac_prog_rejected = yes; then
4714  # We found a bogon in the path, so make sure we never use it.
4715  set dummy $ac_cv_prog_CC
4716  shift
4717  if test $# != 0; then
4718    # We chose a different compiler from the bogus one.
4719    # However, it has the same basename, so the bogon will be chosen
4720    # first if we set CC to just the basename; use the full file name.
4721    shift
4722    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4723  fi
4724fi
4725fi
4726fi
4727CC=$ac_cv_prog_CC
4728if test -n "$CC"; then
4729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4730$as_echo "$CC" >&6; }
4731else
4732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733$as_echo "no" >&6; }
4734fi
4735
4736
4737fi
4738if test -z "$CC"; then
4739  if test -n "$ac_tool_prefix"; then
4740  for ac_prog in cl.exe
4741  do
4742    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4743set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745$as_echo_n "checking for $ac_word... " >&6; }
4746if ${ac_cv_prog_CC+:} false; then :
4747  $as_echo_n "(cached) " >&6
4748else
4749  if test -n "$CC"; then
4750  ac_cv_prog_CC="$CC" # Let the user override the test.
4751else
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755  IFS=$as_save_IFS
4756  test -z "$as_dir" && as_dir=.
4757    for ac_exec_ext in '' $ac_executable_extensions; do
4758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761    break 2
4762  fi
4763done
4764  done
4765IFS=$as_save_IFS
4766
4767fi
4768fi
4769CC=$ac_cv_prog_CC
4770if test -n "$CC"; then
4771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4772$as_echo "$CC" >&6; }
4773else
4774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775$as_echo "no" >&6; }
4776fi
4777
4778
4779    test -n "$CC" && break
4780  done
4781fi
4782if test -z "$CC"; then
4783  ac_ct_CC=$CC
4784  for ac_prog in cl.exe
4785do
4786  # Extract the first word of "$ac_prog", so it can be a program name with args.
4787set dummy $ac_prog; ac_word=$2
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789$as_echo_n "checking for $ac_word... " >&6; }
4790if ${ac_cv_prog_ac_ct_CC+:} false; then :
4791  $as_echo_n "(cached) " >&6
4792else
4793  if test -n "$ac_ct_CC"; then
4794  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4795else
4796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797for as_dir in $PATH
4798do
4799  IFS=$as_save_IFS
4800  test -z "$as_dir" && as_dir=.
4801    for ac_exec_ext in '' $ac_executable_extensions; do
4802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803    ac_cv_prog_ac_ct_CC="$ac_prog"
4804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805    break 2
4806  fi
4807done
4808  done
4809IFS=$as_save_IFS
4810
4811fi
4812fi
4813ac_ct_CC=$ac_cv_prog_ac_ct_CC
4814if test -n "$ac_ct_CC"; then
4815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4816$as_echo "$ac_ct_CC" >&6; }
4817else
4818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819$as_echo "no" >&6; }
4820fi
4821
4822
4823  test -n "$ac_ct_CC" && break
4824done
4825
4826  if test "x$ac_ct_CC" = x; then
4827    CC=""
4828  else
4829    case $cross_compiling:$ac_tool_warned in
4830yes:)
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4833ac_tool_warned=yes ;;
4834esac
4835    CC=$ac_ct_CC
4836  fi
4837fi
4838
4839fi
4840
4841
4842test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4844as_fn_error $? "no acceptable C compiler found in \$PATH
4845See \`config.log' for more details" "$LINENO" 5; }
4846
4847# Provide some information about the compiler.
4848$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4849set X $ac_compile
4850ac_compiler=$2
4851for ac_option in --version -v -V -qversion; do
4852  { { ac_try="$ac_compiler $ac_option >&5"
4853case "(($ac_try" in
4854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855  *) ac_try_echo=$ac_try;;
4856esac
4857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4858$as_echo "$ac_try_echo"; } >&5
4859  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4860  ac_status=$?
4861  if test -s conftest.err; then
4862    sed '10a\
4863... rest of stderr output deleted ...
4864         10q' conftest.err >conftest.er1
4865    cat conftest.er1 >&5
4866  fi
4867  rm -f conftest.er1 conftest.err
4868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4869  test $ac_status = 0; }
4870done
4871
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4873$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4874if ${ac_cv_c_compiler_gnu+:} false; then :
4875  $as_echo_n "(cached) " >&6
4876else
4877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878/* end confdefs.h.  */
4879
4880int
4881main ()
4882{
4883#ifndef __GNUC__
4884       choke me
4885#endif
4886
4887  ;
4888  return 0;
4889}
4890_ACEOF
4891if ac_fn_c_try_compile "$LINENO"; then :
4892  ac_compiler_gnu=yes
4893else
4894  ac_compiler_gnu=no
4895fi
4896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897ac_cv_c_compiler_gnu=$ac_compiler_gnu
4898
4899fi
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4901$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4902if test $ac_compiler_gnu = yes; then
4903  GCC=yes
4904else
4905  GCC=
4906fi
4907ac_test_CFLAGS=${CFLAGS+set}
4908ac_save_CFLAGS=$CFLAGS
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4910$as_echo_n "checking whether $CC accepts -g... " >&6; }
4911if ${ac_cv_prog_cc_g+:} false; then :
4912  $as_echo_n "(cached) " >&6
4913else
4914  ac_save_c_werror_flag=$ac_c_werror_flag
4915   ac_c_werror_flag=yes
4916   ac_cv_prog_cc_g=no
4917   CFLAGS="-g"
4918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919/* end confdefs.h.  */
4920
4921int
4922main ()
4923{
4924
4925  ;
4926  return 0;
4927}
4928_ACEOF
4929if ac_fn_c_try_compile "$LINENO"; then :
4930  ac_cv_prog_cc_g=yes
4931else
4932  CFLAGS=""
4933      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934/* end confdefs.h.  */
4935
4936int
4937main ()
4938{
4939
4940  ;
4941  return 0;
4942}
4943_ACEOF
4944if ac_fn_c_try_compile "$LINENO"; then :
4945
4946else
4947  ac_c_werror_flag=$ac_save_c_werror_flag
4948	 CFLAGS="-g"
4949	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950/* end confdefs.h.  */
4951
4952int
4953main ()
4954{
4955
4956  ;
4957  return 0;
4958}
4959_ACEOF
4960if ac_fn_c_try_compile "$LINENO"; then :
4961  ac_cv_prog_cc_g=yes
4962fi
4963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964fi
4965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966fi
4967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968   ac_c_werror_flag=$ac_save_c_werror_flag
4969fi
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4971$as_echo "$ac_cv_prog_cc_g" >&6; }
4972if test "$ac_test_CFLAGS" = set; then
4973  CFLAGS=$ac_save_CFLAGS
4974elif test $ac_cv_prog_cc_g = yes; then
4975  if test "$GCC" = yes; then
4976    CFLAGS="-g -O2"
4977  else
4978    CFLAGS="-g"
4979  fi
4980else
4981  if test "$GCC" = yes; then
4982    CFLAGS="-O2"
4983  else
4984    CFLAGS=
4985  fi
4986fi
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4988$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4989if ${ac_cv_prog_cc_c89+:} false; then :
4990  $as_echo_n "(cached) " >&6
4991else
4992  ac_cv_prog_cc_c89=no
4993ac_save_CC=$CC
4994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h.  */
4996#include <stdarg.h>
4997#include <stdio.h>
4998struct stat;
4999/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5000struct buf { int x; };
5001FILE * (*rcsopen) (struct buf *, struct stat *, int);
5002static char *e (p, i)
5003     char **p;
5004     int i;
5005{
5006  return p[i];
5007}
5008static char *f (char * (*g) (char **, int), char **p, ...)
5009{
5010  char *s;
5011  va_list v;
5012  va_start (v,p);
5013  s = g (p, va_arg (v,int));
5014  va_end (v);
5015  return s;
5016}
5017
5018/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5019   function prototypes and stuff, but not '\xHH' hex character constants.
5020   These don't provoke an error unfortunately, instead are silently treated
5021   as 'x'.  The following induces an error, until -std is added to get
5022   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5023   array size at least.  It's necessary to write '\x00'==0 to get something
5024   that's true only with -std.  */
5025int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5026
5027/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5028   inside strings and character constants.  */
5029#define FOO(x) 'x'
5030int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5031
5032int test (int i, double x);
5033struct s1 {int (*f) (int a);};
5034struct s2 {int (*f) (double a);};
5035int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5036int argc;
5037char **argv;
5038int
5039main ()
5040{
5041return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5042  ;
5043  return 0;
5044}
5045_ACEOF
5046for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5047	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5048do
5049  CC="$ac_save_CC $ac_arg"
5050  if ac_fn_c_try_compile "$LINENO"; then :
5051  ac_cv_prog_cc_c89=$ac_arg
5052fi
5053rm -f core conftest.err conftest.$ac_objext
5054  test "x$ac_cv_prog_cc_c89" != "xno" && break
5055done
5056rm -f conftest.$ac_ext
5057CC=$ac_save_CC
5058
5059fi
5060# AC_CACHE_VAL
5061case "x$ac_cv_prog_cc_c89" in
5062  x)
5063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5064$as_echo "none needed" >&6; } ;;
5065  xno)
5066    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5067$as_echo "unsupported" >&6; } ;;
5068  *)
5069    CC="$CC $ac_cv_prog_cc_c89"
5070    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5071$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5072esac
5073if test "x$ac_cv_prog_cc_c89" != xno; then :
5074
5075fi
5076
5077ac_ext=c
5078ac_cpp='$CPP $CPPFLAGS'
5079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082
5083ac_ext=c
5084ac_cpp='$CPP $CPPFLAGS'
5085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5089$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5090if ${am_cv_prog_cc_c_o+:} false; then :
5091  $as_echo_n "(cached) " >&6
5092else
5093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h.  */
5095
5096int
5097main ()
5098{
5099
5100  ;
5101  return 0;
5102}
5103_ACEOF
5104  # Make sure it works both with $CC and with simple cc.
5105  # Following AC_PROG_CC_C_O, we do the test twice because some
5106  # compilers refuse to overwrite an existing .o file with -o,
5107  # though they will create one.
5108  am_cv_prog_cc_c_o=yes
5109  for am_i in 1 2; do
5110    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5111   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); } \
5115         && test -f conftest2.$ac_objext; then
5116      : OK
5117    else
5118      am_cv_prog_cc_c_o=no
5119      break
5120    fi
5121  done
5122  rm -f core conftest*
5123  unset am_i
5124fi
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5126$as_echo "$am_cv_prog_cc_c_o" >&6; }
5127if test "$am_cv_prog_cc_c_o" != yes; then
5128   # Losing compiler, so override with the script.
5129   # FIXME: It is wrong to rewrite CC.
5130   # But if we don't then we get into trouble of one sort or another.
5131   # A longer-term fix would be to have automake use am__CC in this case,
5132   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5133   CC="$am_aux_dir/compile $CC"
5134fi
5135ac_ext=c
5136ac_cpp='$CPP $CPPFLAGS'
5137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139ac_compiler_gnu=$ac_cv_c_compiler_gnu
5140
5141
5142ac_ext=d
5143ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5144ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145ac_compiler_gnu=yes
5146if test -n "$ac_tool_prefix"; then
5147  # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5148set dummy ${ac_tool_prefix}gdc; ac_word=$2
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150$as_echo_n "checking for $ac_word... " >&6; }
5151if ${ac_cv_prog_GDC+:} false; then :
5152  $as_echo_n "(cached) " >&6
5153else
5154  if test -n "$GDC"; then
5155  ac_cv_prog_GDC="$GDC" # Let the user override the test.
5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160  IFS=$as_save_IFS
5161  test -z "$as_dir" && as_dir=.
5162    for ac_exec_ext in '' $ac_executable_extensions; do
5163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164    ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166    break 2
5167  fi
5168done
5169  done
5170IFS=$as_save_IFS
5171
5172fi
5173fi
5174GDC=$ac_cv_prog_GDC
5175if test -n "$GDC"; then
5176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5177$as_echo "$GDC" >&6; }
5178else
5179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180$as_echo "no" >&6; }
5181fi
5182
5183
5184fi
5185if test -z "$ac_cv_prog_GDC"; then
5186  ac_ct_GDC=$GDC
5187  # Extract the first word of "gdc", so it can be a program name with args.
5188set dummy gdc; ac_word=$2
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190$as_echo_n "checking for $ac_word... " >&6; }
5191if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  if test -n "$ac_ct_GDC"; then
5195  ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5196else
5197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200  IFS=$as_save_IFS
5201  test -z "$as_dir" && as_dir=.
5202    for ac_exec_ext in '' $ac_executable_extensions; do
5203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204    ac_cv_prog_ac_ct_GDC="gdc"
5205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206    break 2
5207  fi
5208done
5209  done
5210IFS=$as_save_IFS
5211
5212fi
5213fi
5214ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5215if test -n "$ac_ct_GDC"; then
5216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5217$as_echo "$ac_ct_GDC" >&6; }
5218else
5219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220$as_echo "no" >&6; }
5221fi
5222
5223  if test "x$ac_ct_GDC" = x; then
5224    GDC=""
5225  else
5226    case $cross_compiling:$ac_tool_warned in
5227yes:)
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230ac_tool_warned=yes ;;
5231esac
5232    GDC=$ac_ct_GDC
5233  fi
5234else
5235  GDC="$ac_cv_prog_GDC"
5236fi
5237
5238if test -z "$GDC"; then
5239  if test -n "$ac_tool_prefix"; then
5240    # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5241set dummy ${ac_tool_prefix}gdc; ac_word=$2
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243$as_echo_n "checking for $ac_word... " >&6; }
5244if ${ac_cv_prog_GDC+:} false; then :
5245  $as_echo_n "(cached) " >&6
5246else
5247  if test -n "$GDC"; then
5248  ac_cv_prog_GDC="$GDC" # Let the user override the test.
5249else
5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253  IFS=$as_save_IFS
5254  test -z "$as_dir" && as_dir=.
5255    for ac_exec_ext in '' $ac_executable_extensions; do
5256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257    ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259    break 2
5260  fi
5261done
5262  done
5263IFS=$as_save_IFS
5264
5265fi
5266fi
5267GDC=$ac_cv_prog_GDC
5268if test -n "$GDC"; then
5269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5270$as_echo "$GDC" >&6; }
5271else
5272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273$as_echo "no" >&6; }
5274fi
5275
5276
5277  fi
5278fi
5279if test -z "$GDC"; then
5280  # Extract the first word of "gdc", so it can be a program name with args.
5281set dummy gdc; ac_word=$2
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283$as_echo_n "checking for $ac_word... " >&6; }
5284if ${ac_cv_prog_GDC+:} false; then :
5285  $as_echo_n "(cached) " >&6
5286else
5287  if test -n "$GDC"; then
5288  ac_cv_prog_GDC="$GDC" # Let the user override the test.
5289else
5290  ac_prog_rejected=no
5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH
5293do
5294  IFS=$as_save_IFS
5295  test -z "$as_dir" && as_dir=.
5296    for ac_exec_ext in '' $ac_executable_extensions; do
5297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298    if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5299       ac_prog_rejected=yes
5300       continue
5301     fi
5302    ac_cv_prog_GDC="gdc"
5303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304    break 2
5305  fi
5306done
5307  done
5308IFS=$as_save_IFS
5309
5310if test $ac_prog_rejected = yes; then
5311  # We found a bogon in the path, so make sure we never use it.
5312  set dummy $ac_cv_prog_GDC
5313  shift
5314  if test $# != 0; then
5315    # We chose a different compiler from the bogus one.
5316    # However, it has the same basename, so the bogon will be chosen
5317    # first if we set GDC to just the basename; use the full file name.
5318    shift
5319    ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5320  fi
5321fi
5322fi
5323fi
5324GDC=$ac_cv_prog_GDC
5325if test -n "$GDC"; then
5326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5327$as_echo "$GDC" >&6; }
5328else
5329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330$as_echo "no" >&6; }
5331fi
5332
5333
5334fi
5335
5336
5337# Provide some information about the compiler.
5338$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5339set X $ac_compile
5340ac_compiler=$2
5341{ { ac_try="$ac_compiler --version >&5"
5342case "(($ac_try" in
5343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344  *) ac_try_echo=$ac_try;;
5345esac
5346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5347$as_echo "$ac_try_echo"; } >&5
5348  (eval "$ac_compiler --version >&5") 2>conftest.err
5349  ac_status=$?
5350  if test -s conftest.err; then
5351    sed '10a\
5352... rest of stderr output deleted ...
5353         10q' conftest.err >conftest.er1
5354    cat conftest.er1 >&5
5355  fi
5356  rm -f conftest.er1 conftest.err
5357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5358  test $ac_status = 0; }
5359ac_ext=c
5360ac_cpp='$CPP $CPPFLAGS'
5361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363ac_compiler_gnu=$ac_cv_c_compiler_gnu
5364
5365
5366      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5367$as_echo_n "checking for absolute libphobos source path... " >&6; }
5368if ${phobos_cv_abs_srcdir+:} false; then :
5369  $as_echo_n "(cached) " >&6
5370else
5371  phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5372fi
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5374$as_echo "$phobos_cv_abs_srcdir" >&6; }
5375    if test -d "$phobos_cv_abs_srcdir"; then :
5376
5377else
5378  as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5379fi
5380
5381
5382
5383
5384  gdc_save_DFLAGS=$GDCFLAGS
5385  GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
5386
5387  ac_ext=d
5388ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5389ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390ac_compiler_gnu=yes
5391
5392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5393$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5394    cat > conftest.$ac_ext <<_ACEOF
5395module mod;
5396
5397
5398extern(C) int main() {
5399  return 0;
5400}
5401_ACEOF
5402if ac_fn_d_try_compile "$LINENO"; then :
5403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5404$as_echo "yes" >&6; }
5405else
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407$as_echo "no" >&6; }
5408       as_fn_error $? "can't compile D sources!" "$LINENO" 5
5409fi
5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411  ac_ext=c
5412ac_cpp='$CPP $CPPFLAGS'
5413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415ac_compiler_gnu=$ac_cv_c_compiler_gnu
5416
5417
5418  GDCFLAGS=$gdc_save_DFLAGS
5419
5420
5421
5422
5423
5424
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5426$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5427    # Check whether --enable-maintainer-mode was given.
5428if test "${enable_maintainer_mode+set}" = set; then :
5429  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5430else
5431  USE_MAINTAINER_MODE=no
5432fi
5433
5434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5435$as_echo "$USE_MAINTAINER_MODE" >&6; }
5436   if test $USE_MAINTAINER_MODE = yes; then
5437  MAINTAINER_MODE_TRUE=
5438  MAINTAINER_MODE_FALSE='#'
5439else
5440  MAINTAINER_MODE_TRUE='#'
5441  MAINTAINER_MODE_FALSE=
5442fi
5443
5444  MAINT=$MAINTAINER_MODE_TRUE
5445
5446
5447if test -n "$ac_tool_prefix"; then
5448  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5449set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451$as_echo_n "checking for $ac_word... " >&6; }
5452if ${ac_cv_prog_RANLIB+:} false; then :
5453  $as_echo_n "(cached) " >&6
5454else
5455  if test -n "$RANLIB"; then
5456  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461  IFS=$as_save_IFS
5462  test -z "$as_dir" && as_dir=.
5463    for ac_exec_ext in '' $ac_executable_extensions; do
5464  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467    break 2
5468  fi
5469done
5470  done
5471IFS=$as_save_IFS
5472
5473fi
5474fi
5475RANLIB=$ac_cv_prog_RANLIB
5476if test -n "$RANLIB"; then
5477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5478$as_echo "$RANLIB" >&6; }
5479else
5480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481$as_echo "no" >&6; }
5482fi
5483
5484
5485fi
5486if test -z "$ac_cv_prog_RANLIB"; then
5487  ac_ct_RANLIB=$RANLIB
5488  # Extract the first word of "ranlib", so it can be a program name with args.
5489set dummy ranlib; ac_word=$2
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491$as_echo_n "checking for $ac_word... " >&6; }
5492if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5493  $as_echo_n "(cached) " >&6
5494else
5495  if test -n "$ac_ct_RANLIB"; then
5496  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501  IFS=$as_save_IFS
5502  test -z "$as_dir" && as_dir=.
5503    for ac_exec_ext in '' $ac_executable_extensions; do
5504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505    ac_cv_prog_ac_ct_RANLIB="ranlib"
5506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507    break 2
5508  fi
5509done
5510  done
5511IFS=$as_save_IFS
5512
5513fi
5514fi
5515ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5516if test -n "$ac_ct_RANLIB"; then
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5518$as_echo "$ac_ct_RANLIB" >&6; }
5519else
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521$as_echo "no" >&6; }
5522fi
5523
5524  if test "x$ac_ct_RANLIB" = x; then
5525    RANLIB=":"
5526  else
5527    case $cross_compiling:$ac_tool_warned in
5528yes:)
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5531ac_tool_warned=yes ;;
5532esac
5533    RANLIB=$ac_ct_RANLIB
5534  fi
5535else
5536  RANLIB="$ac_cv_prog_RANLIB"
5537fi
5538
5539
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5541$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5542set x ${MAKE-make}
5543ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5544if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5545  $as_echo_n "(cached) " >&6
5546else
5547  cat >conftest.make <<\_ACEOF
5548SHELL = /bin/sh
5549all:
5550	@echo '@@@%%%=$(MAKE)=@@@%%%'
5551_ACEOF
5552# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5553case `${MAKE-make} -f conftest.make 2>/dev/null` in
5554  *@@@%%%=?*=@@@%%%*)
5555    eval ac_cv_prog_make_${ac_make}_set=yes;;
5556  *)
5557    eval ac_cv_prog_make_${ac_make}_set=no;;
5558esac
5559rm -f conftest.make
5560fi
5561if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5563$as_echo "yes" >&6; }
5564  SET_MAKE=
5565else
5566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567$as_echo "no" >&6; }
5568  SET_MAKE="MAKE=${MAKE-make}"
5569fi
5570
5571
5572# Add CET specific flags if CET is enabled
5573 # Check whether --enable-cet was given.
5574if test "${enable_cet+set}" = set; then :
5575  enableval=$enable_cet;
5576      case "$enableval" in
5577       yes|no|auto) ;;
5578       *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5579                          esac
5580
5581else
5582  enable_cet=auto
5583fi
5584
5585
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5587$as_echo_n "checking for CET support... " >&6; }
5588
5589# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
5590case "$host" in
5591  i[34567]86-*-linux* | x86_64-*-linux*)
5592    case "$enable_cet" in
5593      auto)
5594	# Check if target supports multi-byte NOPs
5595	# and if compiler and assembler support CET insn.
5596	cet_save_CFLAGS="$CFLAGS"
5597	CFLAGS="$CFLAGS -fcf-protection"
5598	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599/* end confdefs.h.  */
5600
5601int
5602main ()
5603{
5604
5605#if !defined(__SSE2__)
5606#error target does not support multi-byte NOPs
5607#else
5608asm ("setssbsy");
5609#endif
5610
5611  ;
5612  return 0;
5613}
5614_ACEOF
5615if ac_fn_c_try_compile "$LINENO"; then :
5616  enable_cet=yes
5617else
5618  enable_cet=no
5619fi
5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621	CFLAGS="$cet_save_CFLAGS"
5622	;;
5623      yes)
5624	# Check if assembler supports CET.
5625	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h.  */
5627
5628int
5629main ()
5630{
5631asm ("setssbsy");
5632  ;
5633  return 0;
5634}
5635_ACEOF
5636if ac_fn_c_try_compile "$LINENO"; then :
5637
5638else
5639  as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
5640fi
5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642	;;
5643    esac
5644    ;;
5645  *)
5646    enable_cet=no
5647    ;;
5648esac
5649if test x$enable_cet = xyes; then
5650  CET_FLAGS="-fcf-protection -mshstk"
5651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652$as_echo "yes" >&6; }
5653else
5654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655$as_echo "no" >&6; }
5656fi
5657
5658
5659# To ensure that runtime code for CET is compiled in, add in D version flags.
5660if test x$enable_cet = xyes; then :
5661
5662  CET_DFLAGS="$CET_FLAGS -fversion=CET"
5663  DCFG_ENABLE_CET=true
5664
5665else
5666
5667  CET_DFLAGS=
5668  DCFG_ENABLE_CET=false
5669
5670fi
5671
5672
5673
5674# This should be inherited in the recursive make, but ensure it is defined.
5675test "$AR" || AR=ar
5676
5677
5678CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5679
5680
5681
5682# Enable libtool
5683case `pwd` in
5684  *\ * | *\	*)
5685    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5686$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5687esac
5688
5689
5690
5691macro_version='2.2.7a'
5692macro_revision='1.3134'
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706ltmain="$ac_aux_dir/ltmain.sh"
5707
5708# Backslashify metacharacters that are still active within
5709# double-quoted strings.
5710sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5711
5712# Same as above, but do not quote variable references.
5713double_quote_subst='s/\(["`\\]\)/\\\1/g'
5714
5715# Sed substitution to delay expansion of an escaped shell variable in a
5716# double_quote_subst'ed string.
5717delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5718
5719# Sed substitution to delay expansion of an escaped single quote.
5720delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5721
5722# Sed substitution to avoid accidental globbing in evaled expressions
5723no_glob_subst='s/\*/\\\*/g'
5724
5725ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5726ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5727ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5728
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5730$as_echo_n "checking how to print strings... " >&6; }
5731# Test print first, because it will be a builtin if present.
5732if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5733   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5734  ECHO='print -r --'
5735elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5736  ECHO='printf %s\n'
5737else
5738  # Use this function as a fallback that always works.
5739  func_fallback_echo ()
5740  {
5741    eval 'cat <<_LTECHO_EOF
5742$1
5743_LTECHO_EOF'
5744  }
5745  ECHO='func_fallback_echo'
5746fi
5747
5748# func_echo_all arg...
5749# Invoke $ECHO with all args, space-separated.
5750func_echo_all ()
5751{
5752    $ECHO ""
5753}
5754
5755case "$ECHO" in
5756  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5757$as_echo "printf" >&6; } ;;
5758  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5759$as_echo "print -r" >&6; } ;;
5760  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5761$as_echo "cat" >&6; } ;;
5762esac
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5778$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5779if ${ac_cv_path_SED+:} false; then :
5780  $as_echo_n "(cached) " >&6
5781else
5782            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5783     for ac_i in 1 2 3 4 5 6 7; do
5784       ac_script="$ac_script$as_nl$ac_script"
5785     done
5786     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5787     { ac_script=; unset ac_script;}
5788     if test -z "$SED"; then
5789  ac_path_SED_found=false
5790  # Loop through the user's path and test for each of PROGNAME-LIST
5791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794  IFS=$as_save_IFS
5795  test -z "$as_dir" && as_dir=.
5796    for ac_prog in sed gsed; do
5797    for ac_exec_ext in '' $ac_executable_extensions; do
5798      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5799      as_fn_executable_p "$ac_path_SED" || continue
5800# Check for GNU ac_path_SED and select it if it is found.
5801  # Check for GNU $ac_path_SED
5802case `"$ac_path_SED" --version 2>&1` in
5803*GNU*)
5804  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5805*)
5806  ac_count=0
5807  $as_echo_n 0123456789 >"conftest.in"
5808  while :
5809  do
5810    cat "conftest.in" "conftest.in" >"conftest.tmp"
5811    mv "conftest.tmp" "conftest.in"
5812    cp "conftest.in" "conftest.nl"
5813    $as_echo '' >> "conftest.nl"
5814    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5815    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5816    as_fn_arith $ac_count + 1 && ac_count=$as_val
5817    if test $ac_count -gt ${ac_path_SED_max-0}; then
5818      # Best one so far, save it but keep looking for a better one
5819      ac_cv_path_SED="$ac_path_SED"
5820      ac_path_SED_max=$ac_count
5821    fi
5822    # 10*(2^10) chars as input seems more than enough
5823    test $ac_count -gt 10 && break
5824  done
5825  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5826esac
5827
5828      $ac_path_SED_found && break 3
5829    done
5830  done
5831  done
5832IFS=$as_save_IFS
5833  if test -z "$ac_cv_path_SED"; then
5834    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5835  fi
5836else
5837  ac_cv_path_SED=$SED
5838fi
5839
5840fi
5841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5842$as_echo "$ac_cv_path_SED" >&6; }
5843 SED="$ac_cv_path_SED"
5844  rm -f conftest.sed
5845
5846test -z "$SED" && SED=sed
5847Xsed="$SED -e 1s/^X//"
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5860$as_echo_n "checking for fgrep... " >&6; }
5861if ${ac_cv_path_FGREP+:} false; then :
5862  $as_echo_n "(cached) " >&6
5863else
5864  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5865   then ac_cv_path_FGREP="$GREP -F"
5866   else
5867     if test -z "$FGREP"; then
5868  ac_path_FGREP_found=false
5869  # Loop through the user's path and test for each of PROGNAME-LIST
5870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5872do
5873  IFS=$as_save_IFS
5874  test -z "$as_dir" && as_dir=.
5875    for ac_prog in fgrep; do
5876    for ac_exec_ext in '' $ac_executable_extensions; do
5877      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5878      as_fn_executable_p "$ac_path_FGREP" || continue
5879# Check for GNU ac_path_FGREP and select it if it is found.
5880  # Check for GNU $ac_path_FGREP
5881case `"$ac_path_FGREP" --version 2>&1` in
5882*GNU*)
5883  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5884*)
5885  ac_count=0
5886  $as_echo_n 0123456789 >"conftest.in"
5887  while :
5888  do
5889    cat "conftest.in" "conftest.in" >"conftest.tmp"
5890    mv "conftest.tmp" "conftest.in"
5891    cp "conftest.in" "conftest.nl"
5892    $as_echo 'FGREP' >> "conftest.nl"
5893    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5894    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5895    as_fn_arith $ac_count + 1 && ac_count=$as_val
5896    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5897      # Best one so far, save it but keep looking for a better one
5898      ac_cv_path_FGREP="$ac_path_FGREP"
5899      ac_path_FGREP_max=$ac_count
5900    fi
5901    # 10*(2^10) chars as input seems more than enough
5902    test $ac_count -gt 10 && break
5903  done
5904  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5905esac
5906
5907      $ac_path_FGREP_found && break 3
5908    done
5909  done
5910  done
5911IFS=$as_save_IFS
5912  if test -z "$ac_cv_path_FGREP"; then
5913    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5914  fi
5915else
5916  ac_cv_path_FGREP=$FGREP
5917fi
5918
5919   fi
5920fi
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5922$as_echo "$ac_cv_path_FGREP" >&6; }
5923 FGREP="$ac_cv_path_FGREP"
5924
5925
5926test -z "$GREP" && GREP=grep
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946# Check whether --with-gnu-ld was given.
5947if test "${with_gnu_ld+set}" = set; then :
5948  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5949else
5950  with_gnu_ld=no
5951fi
5952
5953ac_prog=ld
5954if test "$GCC" = yes; then
5955  # Check if gcc -print-prog-name=ld gives a path.
5956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5957$as_echo_n "checking for ld used by $CC... " >&6; }
5958  case $host in
5959  *-*-mingw*)
5960    # gcc leaves a trailing carriage return which upsets mingw
5961    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5962  *)
5963    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5964  esac
5965  case $ac_prog in
5966    # Accept absolute paths.
5967    [\\/]* | ?:[\\/]*)
5968      re_direlt='/[^/][^/]*/\.\./'
5969      # Canonicalize the pathname of ld
5970      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5971      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5972	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5973      done
5974      test -z "$LD" && LD="$ac_prog"
5975      ;;
5976  "")
5977    # If it fails, then pretend we aren't using GCC.
5978    ac_prog=ld
5979    ;;
5980  *)
5981    # If it is relative, then search for the first ld in PATH.
5982    with_gnu_ld=unknown
5983    ;;
5984  esac
5985elif test "$with_gnu_ld" = yes; then
5986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5987$as_echo_n "checking for GNU ld... " >&6; }
5988else
5989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5990$as_echo_n "checking for non-GNU ld... " >&6; }
5991fi
5992if ${lt_cv_path_LD+:} false; then :
5993  $as_echo_n "(cached) " >&6
5994else
5995  if test -z "$LD"; then
5996  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5997  for ac_dir in $PATH; do
5998    IFS="$lt_save_ifs"
5999    test -z "$ac_dir" && ac_dir=.
6000    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6001      lt_cv_path_LD="$ac_dir/$ac_prog"
6002      # Check to see if the program is GNU ld.  I'd rather use --version,
6003      # but apparently some variants of GNU ld only accept -v.
6004      # Break only if it was the GNU/non-GNU ld that we prefer.
6005      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6006      *GNU* | *'with BFD'*)
6007	test "$with_gnu_ld" != no && break
6008	;;
6009      *)
6010	test "$with_gnu_ld" != yes && break
6011	;;
6012      esac
6013    fi
6014  done
6015  IFS="$lt_save_ifs"
6016else
6017  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6018fi
6019fi
6020
6021LD="$lt_cv_path_LD"
6022if test -n "$LD"; then
6023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6024$as_echo "$LD" >&6; }
6025else
6026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027$as_echo "no" >&6; }
6028fi
6029test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6031$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6032if ${lt_cv_prog_gnu_ld+:} false; then :
6033  $as_echo_n "(cached) " >&6
6034else
6035  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6036case `$LD -v 2>&1 </dev/null` in
6037*GNU* | *'with BFD'*)
6038  lt_cv_prog_gnu_ld=yes
6039  ;;
6040*)
6041  lt_cv_prog_gnu_ld=no
6042  ;;
6043esac
6044fi
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6046$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6047with_gnu_ld=$lt_cv_prog_gnu_ld
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6058$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6059if ${lt_cv_path_NM+:} false; then :
6060  $as_echo_n "(cached) " >&6
6061else
6062  if test -n "$NM"; then
6063  # Let the user override the test.
6064  lt_cv_path_NM="$NM"
6065else
6066  lt_nm_to_check="${ac_tool_prefix}nm"
6067  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6068    lt_nm_to_check="$lt_nm_to_check nm"
6069  fi
6070  for lt_tmp_nm in $lt_nm_to_check; do
6071    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6072    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6073      IFS="$lt_save_ifs"
6074      test -z "$ac_dir" && ac_dir=.
6075      tmp_nm="$ac_dir/$lt_tmp_nm"
6076      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6077	# Check to see if the nm accepts a BSD-compat flag.
6078	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6079	#   nm: unknown option "B" ignored
6080	# Tru64's nm complains that /dev/null is an invalid object file
6081	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6082	*/dev/null* | *'Invalid file or object type'*)
6083	  lt_cv_path_NM="$tmp_nm -B"
6084	  break
6085	  ;;
6086	*)
6087	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6088	  */dev/null*)
6089	    lt_cv_path_NM="$tmp_nm -p"
6090	    break
6091	    ;;
6092	  *)
6093	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6094	    continue # so that we can try to find one that supports BSD flags
6095	    ;;
6096	  esac
6097	  ;;
6098	esac
6099      fi
6100    done
6101    IFS="$lt_save_ifs"
6102  done
6103  : ${lt_cv_path_NM=no}
6104fi
6105fi
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6107$as_echo "$lt_cv_path_NM" >&6; }
6108if test "$lt_cv_path_NM" != "no"; then
6109  NM="$lt_cv_path_NM"
6110else
6111  # Didn't find any BSD compatible name lister, look for dumpbin.
6112  if test -n "$DUMPBIN"; then :
6113    # Let the user override the test.
6114  else
6115    if test -n "$ac_tool_prefix"; then
6116  for ac_prog in dumpbin "link -dump"
6117  do
6118    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6119set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121$as_echo_n "checking for $ac_word... " >&6; }
6122if ${ac_cv_prog_DUMPBIN+:} false; then :
6123  $as_echo_n "(cached) " >&6
6124else
6125  if test -n "$DUMPBIN"; then
6126  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6127else
6128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129for as_dir in $PATH
6130do
6131  IFS=$as_save_IFS
6132  test -z "$as_dir" && as_dir=.
6133    for ac_exec_ext in '' $ac_executable_extensions; do
6134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137    break 2
6138  fi
6139done
6140  done
6141IFS=$as_save_IFS
6142
6143fi
6144fi
6145DUMPBIN=$ac_cv_prog_DUMPBIN
6146if test -n "$DUMPBIN"; then
6147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6148$as_echo "$DUMPBIN" >&6; }
6149else
6150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151$as_echo "no" >&6; }
6152fi
6153
6154
6155    test -n "$DUMPBIN" && break
6156  done
6157fi
6158if test -z "$DUMPBIN"; then
6159  ac_ct_DUMPBIN=$DUMPBIN
6160  for ac_prog in dumpbin "link -dump"
6161do
6162  # Extract the first word of "$ac_prog", so it can be a program name with args.
6163set dummy $ac_prog; ac_word=$2
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165$as_echo_n "checking for $ac_word... " >&6; }
6166if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6167  $as_echo_n "(cached) " >&6
6168else
6169  if test -n "$ac_ct_DUMPBIN"; then
6170  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6171else
6172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173for as_dir in $PATH
6174do
6175  IFS=$as_save_IFS
6176  test -z "$as_dir" && as_dir=.
6177    for ac_exec_ext in '' $ac_executable_extensions; do
6178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181    break 2
6182  fi
6183done
6184  done
6185IFS=$as_save_IFS
6186
6187fi
6188fi
6189ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6190if test -n "$ac_ct_DUMPBIN"; then
6191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6192$as_echo "$ac_ct_DUMPBIN" >&6; }
6193else
6194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195$as_echo "no" >&6; }
6196fi
6197
6198
6199  test -n "$ac_ct_DUMPBIN" && break
6200done
6201
6202  if test "x$ac_ct_DUMPBIN" = x; then
6203    DUMPBIN=":"
6204  else
6205    case $cross_compiling:$ac_tool_warned in
6206yes:)
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6209ac_tool_warned=yes ;;
6210esac
6211    DUMPBIN=$ac_ct_DUMPBIN
6212  fi
6213fi
6214
6215    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6216    *COFF*)
6217      DUMPBIN="$DUMPBIN -symbols"
6218      ;;
6219    *)
6220      DUMPBIN=:
6221      ;;
6222    esac
6223  fi
6224
6225  if test "$DUMPBIN" != ":"; then
6226    NM="$DUMPBIN"
6227  fi
6228fi
6229test -z "$NM" && NM=nm
6230
6231
6232
6233
6234
6235
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6237$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6238if ${lt_cv_nm_interface+:} false; then :
6239  $as_echo_n "(cached) " >&6
6240else
6241  lt_cv_nm_interface="BSD nm"
6242  echo "int some_variable = 0;" > conftest.$ac_ext
6243  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6244  (eval "$ac_compile" 2>conftest.err)
6245  cat conftest.err >&5
6246  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6247  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6248  cat conftest.err >&5
6249  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6250  cat conftest.out >&5
6251  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6252    lt_cv_nm_interface="MS dumpbin"
6253  fi
6254  rm -f conftest*
6255fi
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6257$as_echo "$lt_cv_nm_interface" >&6; }
6258
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6260$as_echo_n "checking whether ln -s works... " >&6; }
6261LN_S=$as_ln_s
6262if test "$LN_S" = "ln -s"; then
6263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6264$as_echo "yes" >&6; }
6265else
6266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6267$as_echo "no, using $LN_S" >&6; }
6268fi
6269
6270# find the maximum length of command line arguments
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6272$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6273if ${lt_cv_sys_max_cmd_len+:} false; then :
6274  $as_echo_n "(cached) " >&6
6275else
6276    i=0
6277  teststring="ABCD"
6278
6279  case $build_os in
6280  msdosdjgpp*)
6281    # On DJGPP, this test can blow up pretty badly due to problems in libc
6282    # (any single argument exceeding 2000 bytes causes a buffer overrun
6283    # during glob expansion).  Even if it were fixed, the result of this
6284    # check would be larger than it should be.
6285    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6286    ;;
6287
6288  gnu*)
6289    # Under GNU Hurd, this test is not required because there is
6290    # no limit to the length of command line arguments.
6291    # Libtool will interpret -1 as no limit whatsoever
6292    lt_cv_sys_max_cmd_len=-1;
6293    ;;
6294
6295  cygwin* | mingw* | cegcc*)
6296    # On Win9x/ME, this test blows up -- it succeeds, but takes
6297    # about 5 minutes as the teststring grows exponentially.
6298    # Worse, since 9x/ME are not pre-emptively multitasking,
6299    # you end up with a "frozen" computer, even though with patience
6300    # the test eventually succeeds (with a max line length of 256k).
6301    # Instead, let's just punt: use the minimum linelength reported by
6302    # all of the supported platforms: 8192 (on NT/2K/XP).
6303    lt_cv_sys_max_cmd_len=8192;
6304    ;;
6305
6306  mint*)
6307    # On MiNT this can take a long time and run out of memory.
6308    lt_cv_sys_max_cmd_len=8192;
6309    ;;
6310
6311  amigaos*)
6312    # On AmigaOS with pdksh, this test takes hours, literally.
6313    # So we just punt and use a minimum line length of 8192.
6314    lt_cv_sys_max_cmd_len=8192;
6315    ;;
6316
6317  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6318    # This has been around since 386BSD, at least.  Likely further.
6319    if test -x /sbin/sysctl; then
6320      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6321    elif test -x /usr/sbin/sysctl; then
6322      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6323    else
6324      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6325    fi
6326    # And add a safety zone
6327    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6328    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6329    ;;
6330
6331  interix*)
6332    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6333    lt_cv_sys_max_cmd_len=196608
6334    ;;
6335
6336  osf*)
6337    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6338    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6339    # nice to cause kernel panics so lets avoid the loop below.
6340    # First set a reasonable default.
6341    lt_cv_sys_max_cmd_len=16384
6342    #
6343    if test -x /sbin/sysconfig; then
6344      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6345        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6346      esac
6347    fi
6348    ;;
6349  sco3.2v5*)
6350    lt_cv_sys_max_cmd_len=102400
6351    ;;
6352  sysv5* | sco5v6* | sysv4.2uw2*)
6353    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6354    if test -n "$kargmax"; then
6355      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6356    else
6357      lt_cv_sys_max_cmd_len=32768
6358    fi
6359    ;;
6360  *)
6361    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6362    if test -n "$lt_cv_sys_max_cmd_len"; then
6363      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6364      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6365    else
6366      # Make teststring a little bigger before we do anything with it.
6367      # a 1K string should be a reasonable start.
6368      for i in 1 2 3 4 5 6 7 8 ; do
6369        teststring=$teststring$teststring
6370      done
6371      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6372      # If test is not a shell built-in, we'll probably end up computing a
6373      # maximum length that is only half of the actual maximum length, but
6374      # we can't tell.
6375      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6376	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6377	      test $i != 17 # 1/2 MB should be enough
6378      do
6379        i=`expr $i + 1`
6380        teststring=$teststring$teststring
6381      done
6382      # Only check the string length outside the loop.
6383      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6384      teststring=
6385      # Add a significant safety factor because C++ compilers can tack on
6386      # massive amounts of additional arguments before passing them to the
6387      # linker.  It appears as though 1/2 is a usable value.
6388      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6389    fi
6390    ;;
6391  esac
6392
6393fi
6394
6395if test -n $lt_cv_sys_max_cmd_len ; then
6396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6397$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6398else
6399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6400$as_echo "none" >&6; }
6401fi
6402max_cmd_len=$lt_cv_sys_max_cmd_len
6403
6404
6405
6406
6407
6408
6409: ${CP="cp -f"}
6410: ${MV="mv -f"}
6411: ${RM="rm -f"}
6412
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6414$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6415# Try some XSI features
6416xsi_shell=no
6417( _lt_dummy="a/b/c"
6418  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6419      = c,a/b,, \
6420    && eval 'test $(( 1 + 1 )) -eq 2 \
6421    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6422  && xsi_shell=yes
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6424$as_echo "$xsi_shell" >&6; }
6425
6426
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6428$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6429lt_shell_append=no
6430( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6431    >/dev/null 2>&1 \
6432  && lt_shell_append=yes
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6434$as_echo "$lt_shell_append" >&6; }
6435
6436
6437if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6438  lt_unset=unset
6439else
6440  lt_unset=false
6441fi
6442
6443
6444
6445
6446
6447# test EBCDIC or ASCII
6448case `echo X|tr X '\101'` in
6449 A) # ASCII based system
6450    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6451  lt_SP2NL='tr \040 \012'
6452  lt_NL2SP='tr \015\012 \040\040'
6453  ;;
6454 *) # EBCDIC based system
6455  lt_SP2NL='tr \100 \n'
6456  lt_NL2SP='tr \r\n \100\100'
6457  ;;
6458esac
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6469$as_echo_n "checking for $LD option to reload object files... " >&6; }
6470if ${lt_cv_ld_reload_flag+:} false; then :
6471  $as_echo_n "(cached) " >&6
6472else
6473  lt_cv_ld_reload_flag='-r'
6474fi
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6476$as_echo "$lt_cv_ld_reload_flag" >&6; }
6477reload_flag=$lt_cv_ld_reload_flag
6478case $reload_flag in
6479"" | " "*) ;;
6480*) reload_flag=" $reload_flag" ;;
6481esac
6482reload_cmds='$LD$reload_flag -o $output$reload_objs'
6483case $host_os in
6484  darwin*)
6485    if test "$GCC" = yes; then
6486      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6487    else
6488      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6489    fi
6490    ;;
6491esac
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501if test -n "$ac_tool_prefix"; then
6502  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6503set dummy ${ac_tool_prefix}objdump; ac_word=$2
6504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505$as_echo_n "checking for $ac_word... " >&6; }
6506if ${ac_cv_prog_OBJDUMP+:} false; then :
6507  $as_echo_n "(cached) " >&6
6508else
6509  if test -n "$OBJDUMP"; then
6510  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6511else
6512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513for as_dir in $PATH
6514do
6515  IFS=$as_save_IFS
6516  test -z "$as_dir" && as_dir=.
6517    for ac_exec_ext in '' $ac_executable_extensions; do
6518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521    break 2
6522  fi
6523done
6524  done
6525IFS=$as_save_IFS
6526
6527fi
6528fi
6529OBJDUMP=$ac_cv_prog_OBJDUMP
6530if test -n "$OBJDUMP"; then
6531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6532$as_echo "$OBJDUMP" >&6; }
6533else
6534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535$as_echo "no" >&6; }
6536fi
6537
6538
6539fi
6540if test -z "$ac_cv_prog_OBJDUMP"; then
6541  ac_ct_OBJDUMP=$OBJDUMP
6542  # Extract the first word of "objdump", so it can be a program name with args.
6543set dummy objdump; ac_word=$2
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545$as_echo_n "checking for $ac_word... " >&6; }
6546if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6547  $as_echo_n "(cached) " >&6
6548else
6549  if test -n "$ac_ct_OBJDUMP"; then
6550  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6551else
6552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555  IFS=$as_save_IFS
6556  test -z "$as_dir" && as_dir=.
6557    for ac_exec_ext in '' $ac_executable_extensions; do
6558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561    break 2
6562  fi
6563done
6564  done
6565IFS=$as_save_IFS
6566
6567fi
6568fi
6569ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6570if test -n "$ac_ct_OBJDUMP"; then
6571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6572$as_echo "$ac_ct_OBJDUMP" >&6; }
6573else
6574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575$as_echo "no" >&6; }
6576fi
6577
6578  if test "x$ac_ct_OBJDUMP" = x; then
6579    OBJDUMP="false"
6580  else
6581    case $cross_compiling:$ac_tool_warned in
6582yes:)
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585ac_tool_warned=yes ;;
6586esac
6587    OBJDUMP=$ac_ct_OBJDUMP
6588  fi
6589else
6590  OBJDUMP="$ac_cv_prog_OBJDUMP"
6591fi
6592
6593test -z "$OBJDUMP" && OBJDUMP=objdump
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6604$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6605if ${lt_cv_deplibs_check_method+:} false; then :
6606  $as_echo_n "(cached) " >&6
6607else
6608  lt_cv_file_magic_cmd='$MAGIC_CMD'
6609lt_cv_file_magic_test_file=
6610lt_cv_deplibs_check_method='unknown'
6611# Need to set the preceding variable on all platforms that support
6612# interlibrary dependencies.
6613# 'none' -- dependencies not supported.
6614# `unknown' -- same as none, but documents that we really don't know.
6615# 'pass_all' -- all dependencies passed with no checks.
6616# 'test_compile' -- check by making test program.
6617# 'file_magic [[regex]]' -- check by looking for files in library path
6618# which responds to the $file_magic_cmd with a given extended regex.
6619# If you have `file' or equivalent on your system and you're not sure
6620# whether `pass_all' will *always* work, you probably want this one.
6621
6622case $host_os in
6623aix[4-9]*)
6624  lt_cv_deplibs_check_method=pass_all
6625  ;;
6626
6627beos*)
6628  lt_cv_deplibs_check_method=pass_all
6629  ;;
6630
6631bsdi[45]*)
6632  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6633  lt_cv_file_magic_cmd='/usr/bin/file -L'
6634  lt_cv_file_magic_test_file=/shlib/libc.so
6635  ;;
6636
6637cygwin*)
6638  # func_win32_libid is a shell function defined in ltmain.sh
6639  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6640  lt_cv_file_magic_cmd='func_win32_libid'
6641  ;;
6642
6643mingw* | pw32*)
6644  # Base MSYS/MinGW do not provide the 'file' command needed by
6645  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6646  # unless we find 'file', for example because we are cross-compiling.
6647  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6648  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6649    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6650    lt_cv_file_magic_cmd='func_win32_libid'
6651  else
6652    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6653    lt_cv_file_magic_cmd='$OBJDUMP -f'
6654  fi
6655  ;;
6656
6657cegcc*)
6658  # use the weaker test based on 'objdump'. See mingw*.
6659  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6660  lt_cv_file_magic_cmd='$OBJDUMP -f'
6661  ;;
6662
6663darwin* | rhapsody*)
6664  lt_cv_deplibs_check_method=pass_all
6665  ;;
6666
6667freebsd* | dragonfly*)
6668  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6669    case $host_cpu in
6670    i*86 )
6671      # Not sure whether the presence of OpenBSD here was a mistake.
6672      # Let's accept both of them until this is cleared up.
6673      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6674      lt_cv_file_magic_cmd=/usr/bin/file
6675      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6676      ;;
6677    esac
6678  else
6679    lt_cv_deplibs_check_method=pass_all
6680  fi
6681  ;;
6682
6683gnu*)
6684  lt_cv_deplibs_check_method=pass_all
6685  ;;
6686
6687haiku*)
6688  lt_cv_deplibs_check_method=pass_all
6689  ;;
6690
6691hpux10.20* | hpux11*)
6692  lt_cv_file_magic_cmd=/usr/bin/file
6693  case $host_cpu in
6694  ia64*)
6695    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6696    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6697    ;;
6698  hppa*64*)
6699    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]'
6700    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6701    ;;
6702  *)
6703    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6704    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6705    ;;
6706  esac
6707  ;;
6708
6709interix[3-9]*)
6710  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6711  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6712  ;;
6713
6714irix5* | irix6* | nonstopux*)
6715  case $LD in
6716  *-32|*"-32 ") libmagic=32-bit;;
6717  *-n32|*"-n32 ") libmagic=N32;;
6718  *-64|*"-64 ") libmagic=64-bit;;
6719  *) libmagic=never-match;;
6720  esac
6721  lt_cv_deplibs_check_method=pass_all
6722  ;;
6723
6724# This must be Linux ELF.
6725linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6726  lt_cv_deplibs_check_method=pass_all
6727  ;;
6728
6729netbsd*)
6730  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6731    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6732  else
6733    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6734  fi
6735  ;;
6736
6737newos6*)
6738  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6739  lt_cv_file_magic_cmd=/usr/bin/file
6740  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6741  ;;
6742
6743*nto* | *qnx*)
6744  lt_cv_deplibs_check_method=pass_all
6745  ;;
6746
6747openbsd*)
6748  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6749    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6750  else
6751    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6752  fi
6753  ;;
6754
6755osf3* | osf4* | osf5*)
6756  lt_cv_deplibs_check_method=pass_all
6757  ;;
6758
6759rdos*)
6760  lt_cv_deplibs_check_method=pass_all
6761  ;;
6762
6763solaris*)
6764  lt_cv_deplibs_check_method=pass_all
6765  ;;
6766
6767sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6768  lt_cv_deplibs_check_method=pass_all
6769  ;;
6770
6771sysv4 | sysv4.3*)
6772  case $host_vendor in
6773  motorola)
6774    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]'
6775    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6776    ;;
6777  ncr)
6778    lt_cv_deplibs_check_method=pass_all
6779    ;;
6780  sequent)
6781    lt_cv_file_magic_cmd='/bin/file'
6782    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6783    ;;
6784  sni)
6785    lt_cv_file_magic_cmd='/bin/file'
6786    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6787    lt_cv_file_magic_test_file=/lib/libc.so
6788    ;;
6789  siemens)
6790    lt_cv_deplibs_check_method=pass_all
6791    ;;
6792  pc)
6793    lt_cv_deplibs_check_method=pass_all
6794    ;;
6795  esac
6796  ;;
6797
6798tpf*)
6799  lt_cv_deplibs_check_method=pass_all
6800  ;;
6801esac
6802
6803fi
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6805$as_echo "$lt_cv_deplibs_check_method" >&6; }
6806file_magic_cmd=$lt_cv_file_magic_cmd
6807deplibs_check_method=$lt_cv_deplibs_check_method
6808test -z "$deplibs_check_method" && deplibs_check_method=unknown
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821if test -n "$ac_tool_prefix"; then
6822  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6823set dummy ${ac_tool_prefix}ar; ac_word=$2
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825$as_echo_n "checking for $ac_word... " >&6; }
6826if ${ac_cv_prog_AR+:} false; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829  if test -n "$AR"; then
6830  ac_cv_prog_AR="$AR" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835  IFS=$as_save_IFS
6836  test -z "$as_dir" && as_dir=.
6837    for ac_exec_ext in '' $ac_executable_extensions; do
6838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839    ac_cv_prog_AR="${ac_tool_prefix}ar"
6840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841    break 2
6842  fi
6843done
6844  done
6845IFS=$as_save_IFS
6846
6847fi
6848fi
6849AR=$ac_cv_prog_AR
6850if test -n "$AR"; then
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6852$as_echo "$AR" >&6; }
6853else
6854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856fi
6857
6858
6859fi
6860if test -z "$ac_cv_prog_AR"; then
6861  ac_ct_AR=$AR
6862  # Extract the first word of "ar", so it can be a program name with args.
6863set dummy ar; ac_word=$2
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865$as_echo_n "checking for $ac_word... " >&6; }
6866if ${ac_cv_prog_ac_ct_AR+:} false; then :
6867  $as_echo_n "(cached) " >&6
6868else
6869  if test -n "$ac_ct_AR"; then
6870  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6871else
6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875  IFS=$as_save_IFS
6876  test -z "$as_dir" && as_dir=.
6877    for ac_exec_ext in '' $ac_executable_extensions; do
6878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879    ac_cv_prog_ac_ct_AR="ar"
6880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881    break 2
6882  fi
6883done
6884  done
6885IFS=$as_save_IFS
6886
6887fi
6888fi
6889ac_ct_AR=$ac_cv_prog_ac_ct_AR
6890if test -n "$ac_ct_AR"; then
6891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6892$as_echo "$ac_ct_AR" >&6; }
6893else
6894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895$as_echo "no" >&6; }
6896fi
6897
6898  if test "x$ac_ct_AR" = x; then
6899    AR="false"
6900  else
6901    case $cross_compiling:$ac_tool_warned in
6902yes:)
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905ac_tool_warned=yes ;;
6906esac
6907    AR=$ac_ct_AR
6908  fi
6909else
6910  AR="$ac_cv_prog_AR"
6911fi
6912
6913test -z "$AR" && AR=ar
6914test -z "$AR_FLAGS" && AR_FLAGS=cru
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926if test -n "$ac_tool_prefix"; then
6927  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6928set dummy ${ac_tool_prefix}strip; ac_word=$2
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930$as_echo_n "checking for $ac_word... " >&6; }
6931if ${ac_cv_prog_STRIP+:} false; then :
6932  $as_echo_n "(cached) " >&6
6933else
6934  if test -n "$STRIP"; then
6935  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6936else
6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940  IFS=$as_save_IFS
6941  test -z "$as_dir" && as_dir=.
6942    for ac_exec_ext in '' $ac_executable_extensions; do
6943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946    break 2
6947  fi
6948done
6949  done
6950IFS=$as_save_IFS
6951
6952fi
6953fi
6954STRIP=$ac_cv_prog_STRIP
6955if test -n "$STRIP"; then
6956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6957$as_echo "$STRIP" >&6; }
6958else
6959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960$as_echo "no" >&6; }
6961fi
6962
6963
6964fi
6965if test -z "$ac_cv_prog_STRIP"; then
6966  ac_ct_STRIP=$STRIP
6967  # Extract the first word of "strip", so it can be a program name with args.
6968set dummy strip; ac_word=$2
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970$as_echo_n "checking for $ac_word... " >&6; }
6971if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6972  $as_echo_n "(cached) " >&6
6973else
6974  if test -n "$ac_ct_STRIP"; then
6975  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6976else
6977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978for as_dir in $PATH
6979do
6980  IFS=$as_save_IFS
6981  test -z "$as_dir" && as_dir=.
6982    for ac_exec_ext in '' $ac_executable_extensions; do
6983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984    ac_cv_prog_ac_ct_STRIP="strip"
6985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986    break 2
6987  fi
6988done
6989  done
6990IFS=$as_save_IFS
6991
6992fi
6993fi
6994ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6995if test -n "$ac_ct_STRIP"; then
6996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6997$as_echo "$ac_ct_STRIP" >&6; }
6998else
6999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000$as_echo "no" >&6; }
7001fi
7002
7003  if test "x$ac_ct_STRIP" = x; then
7004    STRIP=":"
7005  else
7006    case $cross_compiling:$ac_tool_warned in
7007yes:)
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7010ac_tool_warned=yes ;;
7011esac
7012    STRIP=$ac_ct_STRIP
7013  fi
7014else
7015  STRIP="$ac_cv_prog_STRIP"
7016fi
7017
7018test -z "$STRIP" && STRIP=:
7019
7020
7021
7022
7023
7024
7025if test -n "$ac_tool_prefix"; then
7026  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7027set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
7030if ${ac_cv_prog_RANLIB+:} false; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033  if test -n "$RANLIB"; then
7034  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039  IFS=$as_save_IFS
7040  test -z "$as_dir" && as_dir=.
7041    for ac_exec_ext in '' $ac_executable_extensions; do
7042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045    break 2
7046  fi
7047done
7048  done
7049IFS=$as_save_IFS
7050
7051fi
7052fi
7053RANLIB=$ac_cv_prog_RANLIB
7054if test -n "$RANLIB"; then
7055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7056$as_echo "$RANLIB" >&6; }
7057else
7058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
7060fi
7061
7062
7063fi
7064if test -z "$ac_cv_prog_RANLIB"; then
7065  ac_ct_RANLIB=$RANLIB
7066  # Extract the first word of "ranlib", so it can be a program name with args.
7067set dummy ranlib; ac_word=$2
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069$as_echo_n "checking for $ac_word... " >&6; }
7070if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7071  $as_echo_n "(cached) " >&6
7072else
7073  if test -n "$ac_ct_RANLIB"; then
7074  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7075else
7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079  IFS=$as_save_IFS
7080  test -z "$as_dir" && as_dir=.
7081    for ac_exec_ext in '' $ac_executable_extensions; do
7082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083    ac_cv_prog_ac_ct_RANLIB="ranlib"
7084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085    break 2
7086  fi
7087done
7088  done
7089IFS=$as_save_IFS
7090
7091fi
7092fi
7093ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7094if test -n "$ac_ct_RANLIB"; then
7095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7096$as_echo "$ac_ct_RANLIB" >&6; }
7097else
7098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099$as_echo "no" >&6; }
7100fi
7101
7102  if test "x$ac_ct_RANLIB" = x; then
7103    RANLIB=":"
7104  else
7105    case $cross_compiling:$ac_tool_warned in
7106yes:)
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109ac_tool_warned=yes ;;
7110esac
7111    RANLIB=$ac_ct_RANLIB
7112  fi
7113else
7114  RANLIB="$ac_cv_prog_RANLIB"
7115fi
7116
7117test -z "$RANLIB" && RANLIB=:
7118
7119
7120
7121
7122
7123
7124# Determine commands to create old-style static archives.
7125old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7126old_postinstall_cmds='chmod 644 $oldlib'
7127old_postuninstall_cmds=
7128
7129if test -n "$RANLIB"; then
7130  case $host_os in
7131  openbsd*)
7132    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7133    ;;
7134  *)
7135    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7136    ;;
7137  esac
7138  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7139fi
7140
7141case $host_os in
7142  darwin*)
7143    lock_old_archive_extraction=yes ;;
7144  *)
7145    lock_old_archive_extraction=no ;;
7146esac
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186# If no C compiler was specified, use CC.
7187LTCC=${LTCC-"$CC"}
7188
7189# If no C compiler flags were specified, use CFLAGS.
7190LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7191
7192# Allow CC to be a program name with arguments.
7193compiler=$CC
7194
7195
7196# Check for command to grab the raw symbol name followed by C symbol from nm.
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7198$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7199if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7200  $as_echo_n "(cached) " >&6
7201else
7202
7203# These are sane defaults that work on at least a few old systems.
7204# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7205
7206# Character class describing NM global symbol codes.
7207symcode='[BCDEGRST]'
7208
7209# Regexp to match symbols that can be accessed directly from C.
7210sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7211
7212# Define system-specific variables.
7213case $host_os in
7214aix*)
7215  symcode='[BCDT]'
7216  ;;
7217cygwin* | mingw* | pw32* | cegcc*)
7218  symcode='[ABCDGISTW]'
7219  ;;
7220hpux*)
7221  if test "$host_cpu" = ia64; then
7222    symcode='[ABCDEGRST]'
7223  fi
7224  ;;
7225irix* | nonstopux*)
7226  symcode='[BCDEGRST]'
7227  ;;
7228osf*)
7229  symcode='[BCDEGQRST]'
7230  ;;
7231solaris*)
7232  symcode='[BDRT]'
7233  ;;
7234sco3.2v5*)
7235  symcode='[DT]'
7236  ;;
7237sysv4.2uw2*)
7238  symcode='[DT]'
7239  ;;
7240sysv5* | sco5v6* | unixware* | OpenUNIX*)
7241  symcode='[ABDT]'
7242  ;;
7243sysv4)
7244  symcode='[DFNSTU]'
7245  ;;
7246esac
7247
7248# If we're using GNU nm, then use its standard symbol codes.
7249case `$NM -V 2>&1` in
7250*GNU* | *'with BFD'*)
7251  symcode='[ABCDGIRSTW]' ;;
7252esac
7253
7254# Transform an extracted symbol line into a proper C declaration.
7255# Some systems (esp. on ia64) link data and code symbols differently,
7256# so use this general approach.
7257lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7258
7259# Transform an extracted symbol line into symbol name and symbol address
7260lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7261lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7262
7263# Handle CRLF in mingw tool chain
7264opt_cr=
7265case $build_os in
7266mingw*)
7267  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7268  ;;
7269esac
7270
7271# Try without a prefix underscore, then with it.
7272for ac_symprfx in "" "_"; do
7273
7274  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7275  symxfrm="\\1 $ac_symprfx\\2 \\2"
7276
7277  # Write the raw and C identifiers.
7278  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7279    # Fake it for dumpbin and say T for any non-static function
7280    # and D for any global variable.
7281    # Also find C++ and __fastcall symbols from MSVC++,
7282    # which start with @ or ?.
7283    lt_cv_sys_global_symbol_pipe="$AWK '"\
7284"     {last_section=section; section=\$ 3};"\
7285"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7286"     \$ 0!~/External *\|/{next};"\
7287"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7288"     {if(hide[section]) next};"\
7289"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7290"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7291"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7292"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7293"     ' prfx=^$ac_symprfx"
7294  else
7295    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7296  fi
7297
7298  # Check to see that the pipe works correctly.
7299  pipe_works=no
7300
7301  rm -f conftest*
7302  cat > conftest.$ac_ext <<_LT_EOF
7303#ifdef __cplusplus
7304extern "C" {
7305#endif
7306char nm_test_var;
7307void nm_test_func(void);
7308void nm_test_func(void){}
7309#ifdef __cplusplus
7310}
7311#endif
7312int main(){nm_test_var='a';nm_test_func();return(0);}
7313_LT_EOF
7314
7315  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7316  (eval $ac_compile) 2>&5
7317  ac_status=$?
7318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7319  test $ac_status = 0; }; then
7320    # Now try to grab the symbols.
7321    nlist=conftest.nm
7322    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7323  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7324  ac_status=$?
7325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326  test $ac_status = 0; } && test -s "$nlist"; then
7327      # Try sorting and uniquifying the output.
7328      if sort "$nlist" | uniq > "$nlist"T; then
7329	mv -f "$nlist"T "$nlist"
7330      else
7331	rm -f "$nlist"T
7332      fi
7333
7334      # Make sure that we snagged all the symbols we need.
7335      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7336	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7337	  cat <<_LT_EOF > conftest.$ac_ext
7338#ifdef __cplusplus
7339extern "C" {
7340#endif
7341
7342_LT_EOF
7343	  # Now generate the symbol file.
7344	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7345
7346	  cat <<_LT_EOF >> conftest.$ac_ext
7347
7348/* The mapping between symbol names and symbols.  */
7349const struct {
7350  const char *name;
7351  void       *address;
7352}
7353lt__PROGRAM__LTX_preloaded_symbols[] =
7354{
7355  { "@PROGRAM@", (void *) 0 },
7356_LT_EOF
7357	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7358	  cat <<\_LT_EOF >> conftest.$ac_ext
7359  {0, (void *) 0}
7360};
7361
7362/* This works around a problem in FreeBSD linker */
7363#ifdef FREEBSD_WORKAROUND
7364static const void *lt_preloaded_setup() {
7365  return lt__PROGRAM__LTX_preloaded_symbols;
7366}
7367#endif
7368
7369#ifdef __cplusplus
7370}
7371#endif
7372_LT_EOF
7373	  # Now try linking the two files.
7374	  mv conftest.$ac_objext conftstm.$ac_objext
7375	  lt_save_LIBS="$LIBS"
7376	  lt_save_CFLAGS="$CFLAGS"
7377	  LIBS="conftstm.$ac_objext"
7378	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7379	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7380  (eval $ac_link) 2>&5
7381  ac_status=$?
7382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7383  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7384	    pipe_works=yes
7385	  fi
7386	  LIBS="$lt_save_LIBS"
7387	  CFLAGS="$lt_save_CFLAGS"
7388	else
7389	  echo "cannot find nm_test_func in $nlist" >&5
7390	fi
7391      else
7392	echo "cannot find nm_test_var in $nlist" >&5
7393      fi
7394    else
7395      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7396    fi
7397  else
7398    echo "$progname: failed program was:" >&5
7399    cat conftest.$ac_ext >&5
7400  fi
7401  rm -rf conftest* conftst*
7402
7403  # Do not use the global_symbol_pipe unless it works.
7404  if test "$pipe_works" = yes; then
7405    break
7406  else
7407    lt_cv_sys_global_symbol_pipe=
7408  fi
7409done
7410
7411fi
7412
7413if test -z "$lt_cv_sys_global_symbol_pipe"; then
7414  lt_cv_sys_global_symbol_to_cdecl=
7415fi
7416if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7418$as_echo "failed" >&6; }
7419else
7420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7421$as_echo "ok" >&6; }
7422fi
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445# Check whether --enable-libtool-lock was given.
7446if test "${enable_libtool_lock+set}" = set; then :
7447  enableval=$enable_libtool_lock;
7448fi
7449
7450test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7451
7452# Some flags need to be propagated to the compiler or linker for good
7453# libtool support.
7454case $host in
7455ia64-*-hpux*)
7456  # Find out which ABI we are using.
7457  echo 'int i;' > conftest.$ac_ext
7458  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7459  (eval $ac_compile) 2>&5
7460  ac_status=$?
7461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7462  test $ac_status = 0; }; then
7463    case `/usr/bin/file conftest.$ac_objext` in
7464      *ELF-32*)
7465	HPUX_IA64_MODE="32"
7466	;;
7467      *ELF-64*)
7468	HPUX_IA64_MODE="64"
7469	;;
7470    esac
7471  fi
7472  rm -rf conftest*
7473  ;;
7474*-*-irix6*)
7475  # Find out which ABI we are using.
7476  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7477  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7478  (eval $ac_compile) 2>&5
7479  ac_status=$?
7480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7481  test $ac_status = 0; }; then
7482    if test "$lt_cv_prog_gnu_ld" = yes; then
7483      case `/usr/bin/file conftest.$ac_objext` in
7484	*32-bit*)
7485	  LD="${LD-ld} -melf32bsmip"
7486	  ;;
7487	*N32*)
7488	  LD="${LD-ld} -melf32bmipn32"
7489	  ;;
7490	*64-bit*)
7491	  LD="${LD-ld} -melf64bmip"
7492	;;
7493      esac
7494    else
7495      case `/usr/bin/file conftest.$ac_objext` in
7496	*32-bit*)
7497	  LD="${LD-ld} -32"
7498	  ;;
7499	*N32*)
7500	  LD="${LD-ld} -n32"
7501	  ;;
7502	*64-bit*)
7503	  LD="${LD-ld} -64"
7504	  ;;
7505      esac
7506    fi
7507  fi
7508  rm -rf conftest*
7509  ;;
7510
7511x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7512s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7513  # Find out which ABI we are using.
7514  echo 'int i;' > conftest.$ac_ext
7515  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7516  (eval $ac_compile) 2>&5
7517  ac_status=$?
7518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7519  test $ac_status = 0; }; then
7520    case `/usr/bin/file conftest.o` in
7521      *32-bit*)
7522	case $host in
7523	  x86_64-*kfreebsd*-gnu)
7524	    LD="${LD-ld} -m elf_i386_fbsd"
7525	    ;;
7526	  x86_64-*linux*)
7527	    case `/usr/bin/file conftest.o` in
7528	      *x86-64*)
7529		LD="${LD-ld} -m elf32_x86_64"
7530		;;
7531	      *)
7532		LD="${LD-ld} -m elf_i386"
7533		;;
7534	    esac
7535	    ;;
7536	  powerpc64le-*linux*)
7537	    LD="${LD-ld} -m elf32lppclinux"
7538	    ;;
7539	  powerpc64-*linux*)
7540	    LD="${LD-ld} -m elf32ppclinux"
7541	    ;;
7542	  s390x-*linux*)
7543	    LD="${LD-ld} -m elf_s390"
7544	    ;;
7545	  sparc64-*linux*)
7546	    LD="${LD-ld} -m elf32_sparc"
7547	    ;;
7548	esac
7549	;;
7550      *64-bit*)
7551	case $host in
7552	  x86_64-*kfreebsd*-gnu)
7553	    LD="${LD-ld} -m elf_x86_64_fbsd"
7554	    ;;
7555	  x86_64-*linux*)
7556	    LD="${LD-ld} -m elf_x86_64"
7557	    ;;
7558	  powerpcle-*linux*)
7559	    LD="${LD-ld} -m elf64lppc"
7560	    ;;
7561	  powerpc-*linux*)
7562	    LD="${LD-ld} -m elf64ppc"
7563	    ;;
7564	  s390*-*linux*|s390*-*tpf*)
7565	    LD="${LD-ld} -m elf64_s390"
7566	    ;;
7567	  sparc*-*linux*)
7568	    LD="${LD-ld} -m elf64_sparc"
7569	    ;;
7570	esac
7571	;;
7572    esac
7573  fi
7574  rm -rf conftest*
7575  ;;
7576
7577*-*-sco3.2v5*)
7578  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7579  SAVE_CFLAGS="$CFLAGS"
7580  CFLAGS="$CFLAGS -belf"
7581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7582$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7583if ${lt_cv_cc_needs_belf+:} false; then :
7584  $as_echo_n "(cached) " >&6
7585else
7586  ac_ext=c
7587ac_cpp='$CPP $CPPFLAGS'
7588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7590ac_compiler_gnu=$ac_cv_c_compiler_gnu
7591
7592     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594
7595int
7596main ()
7597{
7598
7599  ;
7600  return 0;
7601}
7602_ACEOF
7603if ac_fn_c_try_link "$LINENO"; then :
7604  lt_cv_cc_needs_belf=yes
7605else
7606  lt_cv_cc_needs_belf=no
7607fi
7608rm -f core conftest.err conftest.$ac_objext \
7609    conftest$ac_exeext conftest.$ac_ext
7610     ac_ext=c
7611ac_cpp='$CPP $CPPFLAGS'
7612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7614ac_compiler_gnu=$ac_cv_c_compiler_gnu
7615
7616fi
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7618$as_echo "$lt_cv_cc_needs_belf" >&6; }
7619  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7620    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7621    CFLAGS="$SAVE_CFLAGS"
7622  fi
7623  ;;
7624sparc*-*solaris*)
7625  # Find out which ABI we are using.
7626  echo 'int i;' > conftest.$ac_ext
7627  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7628  (eval $ac_compile) 2>&5
7629  ac_status=$?
7630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7631  test $ac_status = 0; }; then
7632    case `/usr/bin/file conftest.o` in
7633    *64-bit*)
7634      case $lt_cv_prog_gnu_ld in
7635      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7636      *)
7637	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7638	  LD="${LD-ld} -64"
7639	fi
7640	;;
7641      esac
7642      ;;
7643    esac
7644  fi
7645  rm -rf conftest*
7646  ;;
7647esac
7648
7649need_locks="$enable_libtool_lock"
7650
7651
7652  case $host_os in
7653    rhapsody* | darwin*)
7654    if test -n "$ac_tool_prefix"; then
7655  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7656set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658$as_echo_n "checking for $ac_word... " >&6; }
7659if ${ac_cv_prog_DSYMUTIL+:} false; then :
7660  $as_echo_n "(cached) " >&6
7661else
7662  if test -n "$DSYMUTIL"; then
7663  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7664else
7665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666for as_dir in $PATH
7667do
7668  IFS=$as_save_IFS
7669  test -z "$as_dir" && as_dir=.
7670    for ac_exec_ext in '' $ac_executable_extensions; do
7671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674    break 2
7675  fi
7676done
7677  done
7678IFS=$as_save_IFS
7679
7680fi
7681fi
7682DSYMUTIL=$ac_cv_prog_DSYMUTIL
7683if test -n "$DSYMUTIL"; then
7684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7685$as_echo "$DSYMUTIL" >&6; }
7686else
7687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688$as_echo "no" >&6; }
7689fi
7690
7691
7692fi
7693if test -z "$ac_cv_prog_DSYMUTIL"; then
7694  ac_ct_DSYMUTIL=$DSYMUTIL
7695  # Extract the first word of "dsymutil", so it can be a program name with args.
7696set dummy dsymutil; ac_word=$2
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698$as_echo_n "checking for $ac_word... " >&6; }
7699if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7700  $as_echo_n "(cached) " >&6
7701else
7702  if test -n "$ac_ct_DSYMUTIL"; then
7703  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7704else
7705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706for as_dir in $PATH
7707do
7708  IFS=$as_save_IFS
7709  test -z "$as_dir" && as_dir=.
7710    for ac_exec_ext in '' $ac_executable_extensions; do
7711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714    break 2
7715  fi
7716done
7717  done
7718IFS=$as_save_IFS
7719
7720fi
7721fi
7722ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7723if test -n "$ac_ct_DSYMUTIL"; then
7724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7725$as_echo "$ac_ct_DSYMUTIL" >&6; }
7726else
7727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728$as_echo "no" >&6; }
7729fi
7730
7731  if test "x$ac_ct_DSYMUTIL" = x; then
7732    DSYMUTIL=":"
7733  else
7734    case $cross_compiling:$ac_tool_warned in
7735yes:)
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7738ac_tool_warned=yes ;;
7739esac
7740    DSYMUTIL=$ac_ct_DSYMUTIL
7741  fi
7742else
7743  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7744fi
7745
7746    if test -n "$ac_tool_prefix"; then
7747  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7748set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750$as_echo_n "checking for $ac_word... " >&6; }
7751if ${ac_cv_prog_NMEDIT+:} false; then :
7752  $as_echo_n "(cached) " >&6
7753else
7754  if test -n "$NMEDIT"; then
7755  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7756else
7757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758for as_dir in $PATH
7759do
7760  IFS=$as_save_IFS
7761  test -z "$as_dir" && as_dir=.
7762    for ac_exec_ext in '' $ac_executable_extensions; do
7763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7764    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766    break 2
7767  fi
7768done
7769  done
7770IFS=$as_save_IFS
7771
7772fi
7773fi
7774NMEDIT=$ac_cv_prog_NMEDIT
7775if test -n "$NMEDIT"; then
7776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7777$as_echo "$NMEDIT" >&6; }
7778else
7779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780$as_echo "no" >&6; }
7781fi
7782
7783
7784fi
7785if test -z "$ac_cv_prog_NMEDIT"; then
7786  ac_ct_NMEDIT=$NMEDIT
7787  # Extract the first word of "nmedit", so it can be a program name with args.
7788set dummy nmedit; ac_word=$2
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790$as_echo_n "checking for $ac_word... " >&6; }
7791if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7792  $as_echo_n "(cached) " >&6
7793else
7794  if test -n "$ac_ct_NMEDIT"; then
7795  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7796else
7797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798for as_dir in $PATH
7799do
7800  IFS=$as_save_IFS
7801  test -z "$as_dir" && as_dir=.
7802    for ac_exec_ext in '' $ac_executable_extensions; do
7803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806    break 2
7807  fi
7808done
7809  done
7810IFS=$as_save_IFS
7811
7812fi
7813fi
7814ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7815if test -n "$ac_ct_NMEDIT"; then
7816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7817$as_echo "$ac_ct_NMEDIT" >&6; }
7818else
7819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820$as_echo "no" >&6; }
7821fi
7822
7823  if test "x$ac_ct_NMEDIT" = x; then
7824    NMEDIT=":"
7825  else
7826    case $cross_compiling:$ac_tool_warned in
7827yes:)
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7830ac_tool_warned=yes ;;
7831esac
7832    NMEDIT=$ac_ct_NMEDIT
7833  fi
7834else
7835  NMEDIT="$ac_cv_prog_NMEDIT"
7836fi
7837
7838    if test -n "$ac_tool_prefix"; then
7839  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7840set dummy ${ac_tool_prefix}lipo; ac_word=$2
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842$as_echo_n "checking for $ac_word... " >&6; }
7843if ${ac_cv_prog_LIPO+:} false; then :
7844  $as_echo_n "(cached) " >&6
7845else
7846  if test -n "$LIPO"; then
7847  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7848else
7849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852  IFS=$as_save_IFS
7853  test -z "$as_dir" && as_dir=.
7854    for ac_exec_ext in '' $ac_executable_extensions; do
7855  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858    break 2
7859  fi
7860done
7861  done
7862IFS=$as_save_IFS
7863
7864fi
7865fi
7866LIPO=$ac_cv_prog_LIPO
7867if test -n "$LIPO"; then
7868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7869$as_echo "$LIPO" >&6; }
7870else
7871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872$as_echo "no" >&6; }
7873fi
7874
7875
7876fi
7877if test -z "$ac_cv_prog_LIPO"; then
7878  ac_ct_LIPO=$LIPO
7879  # Extract the first word of "lipo", so it can be a program name with args.
7880set dummy lipo; ac_word=$2
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882$as_echo_n "checking for $ac_word... " >&6; }
7883if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7884  $as_echo_n "(cached) " >&6
7885else
7886  if test -n "$ac_ct_LIPO"; then
7887  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7888else
7889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890for as_dir in $PATH
7891do
7892  IFS=$as_save_IFS
7893  test -z "$as_dir" && as_dir=.
7894    for ac_exec_ext in '' $ac_executable_extensions; do
7895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7896    ac_cv_prog_ac_ct_LIPO="lipo"
7897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898    break 2
7899  fi
7900done
7901  done
7902IFS=$as_save_IFS
7903
7904fi
7905fi
7906ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7907if test -n "$ac_ct_LIPO"; then
7908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7909$as_echo "$ac_ct_LIPO" >&6; }
7910else
7911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912$as_echo "no" >&6; }
7913fi
7914
7915  if test "x$ac_ct_LIPO" = x; then
7916    LIPO=":"
7917  else
7918    case $cross_compiling:$ac_tool_warned in
7919yes:)
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7922ac_tool_warned=yes ;;
7923esac
7924    LIPO=$ac_ct_LIPO
7925  fi
7926else
7927  LIPO="$ac_cv_prog_LIPO"
7928fi
7929
7930    if test -n "$ac_tool_prefix"; then
7931  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7932set dummy ${ac_tool_prefix}otool; ac_word=$2
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934$as_echo_n "checking for $ac_word... " >&6; }
7935if ${ac_cv_prog_OTOOL+:} false; then :
7936  $as_echo_n "(cached) " >&6
7937else
7938  if test -n "$OTOOL"; then
7939  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7940else
7941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942for as_dir in $PATH
7943do
7944  IFS=$as_save_IFS
7945  test -z "$as_dir" && as_dir=.
7946    for ac_exec_ext in '' $ac_executable_extensions; do
7947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950    break 2
7951  fi
7952done
7953  done
7954IFS=$as_save_IFS
7955
7956fi
7957fi
7958OTOOL=$ac_cv_prog_OTOOL
7959if test -n "$OTOOL"; then
7960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7961$as_echo "$OTOOL" >&6; }
7962else
7963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964$as_echo "no" >&6; }
7965fi
7966
7967
7968fi
7969if test -z "$ac_cv_prog_OTOOL"; then
7970  ac_ct_OTOOL=$OTOOL
7971  # Extract the first word of "otool", so it can be a program name with args.
7972set dummy otool; ac_word=$2
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974$as_echo_n "checking for $ac_word... " >&6; }
7975if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7976  $as_echo_n "(cached) " >&6
7977else
7978  if test -n "$ac_ct_OTOOL"; then
7979  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7980else
7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984  IFS=$as_save_IFS
7985  test -z "$as_dir" && as_dir=.
7986    for ac_exec_ext in '' $ac_executable_extensions; do
7987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988    ac_cv_prog_ac_ct_OTOOL="otool"
7989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990    break 2
7991  fi
7992done
7993  done
7994IFS=$as_save_IFS
7995
7996fi
7997fi
7998ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7999if test -n "$ac_ct_OTOOL"; then
8000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8001$as_echo "$ac_ct_OTOOL" >&6; }
8002else
8003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004$as_echo "no" >&6; }
8005fi
8006
8007  if test "x$ac_ct_OTOOL" = x; then
8008    OTOOL=":"
8009  else
8010    case $cross_compiling:$ac_tool_warned in
8011yes:)
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8014ac_tool_warned=yes ;;
8015esac
8016    OTOOL=$ac_ct_OTOOL
8017  fi
8018else
8019  OTOOL="$ac_cv_prog_OTOOL"
8020fi
8021
8022    if test -n "$ac_tool_prefix"; then
8023  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8024set dummy ${ac_tool_prefix}otool64; ac_word=$2
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026$as_echo_n "checking for $ac_word... " >&6; }
8027if ${ac_cv_prog_OTOOL64+:} false; then :
8028  $as_echo_n "(cached) " >&6
8029else
8030  if test -n "$OTOOL64"; then
8031  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8032else
8033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034for as_dir in $PATH
8035do
8036  IFS=$as_save_IFS
8037  test -z "$as_dir" && as_dir=.
8038    for ac_exec_ext in '' $ac_executable_extensions; do
8039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8040    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042    break 2
8043  fi
8044done
8045  done
8046IFS=$as_save_IFS
8047
8048fi
8049fi
8050OTOOL64=$ac_cv_prog_OTOOL64
8051if test -n "$OTOOL64"; then
8052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8053$as_echo "$OTOOL64" >&6; }
8054else
8055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056$as_echo "no" >&6; }
8057fi
8058
8059
8060fi
8061if test -z "$ac_cv_prog_OTOOL64"; then
8062  ac_ct_OTOOL64=$OTOOL64
8063  # Extract the first word of "otool64", so it can be a program name with args.
8064set dummy otool64; ac_word=$2
8065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066$as_echo_n "checking for $ac_word... " >&6; }
8067if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8068  $as_echo_n "(cached) " >&6
8069else
8070  if test -n "$ac_ct_OTOOL64"; then
8071  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8072else
8073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074for as_dir in $PATH
8075do
8076  IFS=$as_save_IFS
8077  test -z "$as_dir" && as_dir=.
8078    for ac_exec_ext in '' $ac_executable_extensions; do
8079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080    ac_cv_prog_ac_ct_OTOOL64="otool64"
8081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082    break 2
8083  fi
8084done
8085  done
8086IFS=$as_save_IFS
8087
8088fi
8089fi
8090ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8091if test -n "$ac_ct_OTOOL64"; then
8092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8093$as_echo "$ac_ct_OTOOL64" >&6; }
8094else
8095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096$as_echo "no" >&6; }
8097fi
8098
8099  if test "x$ac_ct_OTOOL64" = x; then
8100    OTOOL64=":"
8101  else
8102    case $cross_compiling:$ac_tool_warned in
8103yes:)
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8106ac_tool_warned=yes ;;
8107esac
8108    OTOOL64=$ac_ct_OTOOL64
8109  fi
8110else
8111  OTOOL64="$ac_cv_prog_OTOOL64"
8112fi
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8141$as_echo_n "checking for -single_module linker flag... " >&6; }
8142if ${lt_cv_apple_cc_single_mod+:} false; then :
8143  $as_echo_n "(cached) " >&6
8144else
8145  lt_cv_apple_cc_single_mod=no
8146      if test -z "${LT_MULTI_MODULE}"; then
8147	# By default we will add the -single_module flag. You can override
8148	# by either setting the environment variable LT_MULTI_MODULE
8149	# non-empty at configure time, or by adding -multi_module to the
8150	# link flags.
8151	rm -rf libconftest.dylib*
8152	echo "int foo(void){return 1;}" > conftest.c
8153	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8154-dynamiclib -Wl,-single_module conftest.c" >&5
8155	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8156	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8157        _lt_result=$?
8158	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8159	  lt_cv_apple_cc_single_mod=yes
8160	else
8161	  cat conftest.err >&5
8162	fi
8163	rm -rf libconftest.dylib*
8164	rm -f conftest.*
8165      fi
8166fi
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8168$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8169    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8170$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8171if ${lt_cv_ld_exported_symbols_list+:} false; then :
8172  $as_echo_n "(cached) " >&6
8173else
8174  lt_cv_ld_exported_symbols_list=no
8175      save_LDFLAGS=$LDFLAGS
8176      echo "_main" > conftest.sym
8177      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8178      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179/* end confdefs.h.  */
8180
8181int
8182main ()
8183{
8184
8185  ;
8186  return 0;
8187}
8188_ACEOF
8189if ac_fn_c_try_link "$LINENO"; then :
8190  lt_cv_ld_exported_symbols_list=yes
8191else
8192  lt_cv_ld_exported_symbols_list=no
8193fi
8194rm -f core conftest.err conftest.$ac_objext \
8195    conftest$ac_exeext conftest.$ac_ext
8196	LDFLAGS="$save_LDFLAGS"
8197
8198fi
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8200$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8202$as_echo_n "checking for -force_load linker flag... " >&6; }
8203if ${lt_cv_ld_force_load+:} false; then :
8204  $as_echo_n "(cached) " >&6
8205else
8206  lt_cv_ld_force_load=no
8207      cat > conftest.c << _LT_EOF
8208int forced_loaded() { return 2;}
8209_LT_EOF
8210      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8211      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8212      echo "$AR cru libconftest.a conftest.o" >&5
8213      $AR cru libconftest.a conftest.o 2>&5
8214      cat > conftest.c << _LT_EOF
8215int main() { return 0;}
8216_LT_EOF
8217      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8218      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8219      _lt_result=$?
8220      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8221	lt_cv_ld_force_load=yes
8222      else
8223	cat conftest.err >&5
8224      fi
8225        rm -f conftest.err libconftest.a conftest conftest.c
8226        rm -rf conftest.dSYM
8227
8228fi
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8230$as_echo "$lt_cv_ld_force_load" >&6; }
8231    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8232    # build without first building modern cctools / linker.
8233    case $host_cpu-$host_os in
8234    *-rhapsody* | *-darwin1.[012])
8235      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8236    *-darwin1.*)
8237      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8238    *-darwin*)
8239      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8240      # deployment target is forced to an earlier version.
8241      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8242	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8243	  ;;
8244	10.[012][,.]*)
8245	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8246	  ;;
8247	*)
8248	  ;;
8249     esac
8250    ;;
8251  esac
8252    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8253      _lt_dar_single_mod='$single_module'
8254    fi
8255    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8256      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8257    else
8258      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8259    fi
8260    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8261      _lt_dsymutil='~$DSYMUTIL $lib || :'
8262    else
8263      _lt_dsymutil=
8264    fi
8265    ;;
8266  esac
8267
8268for ac_header in dlfcn.h
8269do :
8270  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8271"
8272if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8273  cat >>confdefs.h <<_ACEOF
8274#define HAVE_DLFCN_H 1
8275_ACEOF
8276
8277fi
8278
8279done
8280
8281
8282
8283
8284
8285# Set options
8286enable_dlopen=yes
8287
8288
8289
8290
8291  enable_win32_dll=no
8292
8293
8294            # Check whether --enable-shared was given.
8295if test "${enable_shared+set}" = set; then :
8296  enableval=$enable_shared; p=${PACKAGE-default}
8297    case $enableval in
8298    yes) enable_shared=yes ;;
8299    no) enable_shared=no ;;
8300    *)
8301      enable_shared=no
8302      # Look at the argument we got.  We use all the common list separators.
8303      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8304      for pkg in $enableval; do
8305	IFS="$lt_save_ifs"
8306	if test "X$pkg" = "X$p"; then
8307	  enable_shared=yes
8308	fi
8309      done
8310      IFS="$lt_save_ifs"
8311      ;;
8312    esac
8313else
8314  enable_shared=yes
8315fi
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325  # Check whether --enable-static was given.
8326if test "${enable_static+set}" = set; then :
8327  enableval=$enable_static; p=${PACKAGE-default}
8328    case $enableval in
8329    yes) enable_static=yes ;;
8330    no) enable_static=no ;;
8331    *)
8332     enable_static=no
8333      # Look at the argument we got.  We use all the common list separators.
8334      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8335      for pkg in $enableval; do
8336	IFS="$lt_save_ifs"
8337	if test "X$pkg" = "X$p"; then
8338	  enable_static=yes
8339	fi
8340      done
8341      IFS="$lt_save_ifs"
8342      ;;
8343    esac
8344else
8345  enable_static=yes
8346fi
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357# Check whether --with-pic was given.
8358if test "${with_pic+set}" = set; then :
8359  withval=$with_pic; pic_mode="$withval"
8360else
8361  pic_mode=default
8362fi
8363
8364
8365test -z "$pic_mode" && pic_mode=default
8366
8367
8368
8369
8370
8371
8372
8373  # Check whether --enable-fast-install was given.
8374if test "${enable_fast_install+set}" = set; then :
8375  enableval=$enable_fast_install; p=${PACKAGE-default}
8376    case $enableval in
8377    yes) enable_fast_install=yes ;;
8378    no) enable_fast_install=no ;;
8379    *)
8380      enable_fast_install=no
8381      # Look at the argument we got.  We use all the common list separators.
8382      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8383      for pkg in $enableval; do
8384	IFS="$lt_save_ifs"
8385	if test "X$pkg" = "X$p"; then
8386	  enable_fast_install=yes
8387	fi
8388      done
8389      IFS="$lt_save_ifs"
8390      ;;
8391    esac
8392else
8393  enable_fast_install=yes
8394fi
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406# This can be used to rebuild libtool when needed
8407LIBTOOL_DEPS="$ltmain"
8408
8409# Always use our own libtool.
8410LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437test -z "$LN_S" && LN_S="ln -s"
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452if test -n "${ZSH_VERSION+set}" ; then
8453   setopt NO_GLOB_SUBST
8454fi
8455
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8457$as_echo_n "checking for objdir... " >&6; }
8458if ${lt_cv_objdir+:} false; then :
8459  $as_echo_n "(cached) " >&6
8460else
8461  rm -f .libs 2>/dev/null
8462mkdir .libs 2>/dev/null
8463if test -d .libs; then
8464  lt_cv_objdir=.libs
8465else
8466  # MS-DOS does not allow filenames that begin with a dot.
8467  lt_cv_objdir=_libs
8468fi
8469rmdir .libs 2>/dev/null
8470fi
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8472$as_echo "$lt_cv_objdir" >&6; }
8473objdir=$lt_cv_objdir
8474
8475
8476
8477
8478
8479cat >>confdefs.h <<_ACEOF
8480#define LT_OBJDIR "$lt_cv_objdir/"
8481_ACEOF
8482
8483
8484
8485
8486case $host_os in
8487aix3*)
8488  # AIX sometimes has problems with the GCC collect2 program.  For some
8489  # reason, if we set the COLLECT_NAMES environment variable, the problems
8490  # vanish in a puff of smoke.
8491  if test "X${COLLECT_NAMES+set}" != Xset; then
8492    COLLECT_NAMES=
8493    export COLLECT_NAMES
8494  fi
8495  ;;
8496esac
8497
8498# Global variables:
8499ofile=libtool
8500can_build_shared=yes
8501
8502# All known linkers require a `.a' archive for static linking (except MSVC,
8503# which needs '.lib').
8504libext=a
8505
8506with_gnu_ld="$lt_cv_prog_gnu_ld"
8507
8508old_CC="$CC"
8509old_CFLAGS="$CFLAGS"
8510
8511# Set sane defaults for various variables
8512test -z "$CC" && CC=cc
8513test -z "$LTCC" && LTCC=$CC
8514test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8515test -z "$LD" && LD=ld
8516test -z "$ac_objext" && ac_objext=o
8517
8518for cc_temp in $compiler""; do
8519  case $cc_temp in
8520    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8521    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8522    \-*) ;;
8523    *) break;;
8524  esac
8525done
8526cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8527
8528
8529# Only perform the check for file, if the check method requires it
8530test -z "$MAGIC_CMD" && MAGIC_CMD=file
8531case $deplibs_check_method in
8532file_magic*)
8533  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8535$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8536if ${lt_cv_path_MAGIC_CMD+:} false; then :
8537  $as_echo_n "(cached) " >&6
8538else
8539  case $MAGIC_CMD in
8540[\\/*] |  ?:[\\/]*)
8541  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8542  ;;
8543*)
8544  lt_save_MAGIC_CMD="$MAGIC_CMD"
8545  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8546  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8547  for ac_dir in $ac_dummy; do
8548    IFS="$lt_save_ifs"
8549    test -z "$ac_dir" && ac_dir=.
8550    if test -f $ac_dir/${ac_tool_prefix}file; then
8551      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8552      if test -n "$file_magic_test_file"; then
8553	case $deplibs_check_method in
8554	"file_magic "*)
8555	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8556	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8557	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8558	    $EGREP "$file_magic_regex" > /dev/null; then
8559	    :
8560	  else
8561	    cat <<_LT_EOF 1>&2
8562
8563*** Warning: the command libtool uses to detect shared libraries,
8564*** $file_magic_cmd, produces output that libtool cannot recognize.
8565*** The result is that libtool may fail to recognize shared libraries
8566*** as such.  This will affect the creation of libtool libraries that
8567*** depend on shared libraries, but programs linked with such libtool
8568*** libraries will work regardless of this problem.  Nevertheless, you
8569*** may want to report the problem to your system manager and/or to
8570*** bug-libtool@gnu.org
8571
8572_LT_EOF
8573	  fi ;;
8574	esac
8575      fi
8576      break
8577    fi
8578  done
8579  IFS="$lt_save_ifs"
8580  MAGIC_CMD="$lt_save_MAGIC_CMD"
8581  ;;
8582esac
8583fi
8584
8585MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8586if test -n "$MAGIC_CMD"; then
8587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8588$as_echo "$MAGIC_CMD" >&6; }
8589else
8590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591$as_echo "no" >&6; }
8592fi
8593
8594
8595
8596
8597
8598if test -z "$lt_cv_path_MAGIC_CMD"; then
8599  if test -n "$ac_tool_prefix"; then
8600    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8601$as_echo_n "checking for file... " >&6; }
8602if ${lt_cv_path_MAGIC_CMD+:} false; then :
8603  $as_echo_n "(cached) " >&6
8604else
8605  case $MAGIC_CMD in
8606[\\/*] |  ?:[\\/]*)
8607  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8608  ;;
8609*)
8610  lt_save_MAGIC_CMD="$MAGIC_CMD"
8611  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8612  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8613  for ac_dir in $ac_dummy; do
8614    IFS="$lt_save_ifs"
8615    test -z "$ac_dir" && ac_dir=.
8616    if test -f $ac_dir/file; then
8617      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8618      if test -n "$file_magic_test_file"; then
8619	case $deplibs_check_method in
8620	"file_magic "*)
8621	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8622	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8623	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8624	    $EGREP "$file_magic_regex" > /dev/null; then
8625	    :
8626	  else
8627	    cat <<_LT_EOF 1>&2
8628
8629*** Warning: the command libtool uses to detect shared libraries,
8630*** $file_magic_cmd, produces output that libtool cannot recognize.
8631*** The result is that libtool may fail to recognize shared libraries
8632*** as such.  This will affect the creation of libtool libraries that
8633*** depend on shared libraries, but programs linked with such libtool
8634*** libraries will work regardless of this problem.  Nevertheless, you
8635*** may want to report the problem to your system manager and/or to
8636*** bug-libtool@gnu.org
8637
8638_LT_EOF
8639	  fi ;;
8640	esac
8641      fi
8642      break
8643    fi
8644  done
8645  IFS="$lt_save_ifs"
8646  MAGIC_CMD="$lt_save_MAGIC_CMD"
8647  ;;
8648esac
8649fi
8650
8651MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8652if test -n "$MAGIC_CMD"; then
8653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8654$as_echo "$MAGIC_CMD" >&6; }
8655else
8656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657$as_echo "no" >&6; }
8658fi
8659
8660
8661  else
8662    MAGIC_CMD=:
8663  fi
8664fi
8665
8666  fi
8667  ;;
8668esac
8669
8670# Use C for the default configuration in the libtool script
8671
8672lt_save_CC="$CC"
8673ac_ext=c
8674ac_cpp='$CPP $CPPFLAGS'
8675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8677ac_compiler_gnu=$ac_cv_c_compiler_gnu
8678
8679
8680# Source file extension for C test sources.
8681ac_ext=c
8682
8683# Object file extension for compiled C test sources.
8684objext=o
8685objext=$objext
8686
8687# Code to be used in simple compile tests
8688lt_simple_compile_test_code="int some_variable = 0;"
8689
8690# Code to be used in simple link tests
8691lt_simple_link_test_code='int main(){return(0);}'
8692
8693
8694
8695
8696
8697
8698
8699# If no C compiler was specified, use CC.
8700LTCC=${LTCC-"$CC"}
8701
8702# If no C compiler flags were specified, use CFLAGS.
8703LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8704
8705# Allow CC to be a program name with arguments.
8706compiler=$CC
8707
8708# Save the default compiler, since it gets overwritten when the other
8709# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8710compiler_DEFAULT=$CC
8711
8712# save warnings/boilerplate of simple test code
8713ac_outfile=conftest.$ac_objext
8714echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8715eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8716_lt_compiler_boilerplate=`cat conftest.err`
8717$RM conftest*
8718
8719ac_outfile=conftest.$ac_objext
8720echo "$lt_simple_link_test_code" >conftest.$ac_ext
8721eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8722_lt_linker_boilerplate=`cat conftest.err`
8723$RM -r conftest*
8724
8725
8726## CAVEAT EMPTOR:
8727## There is no encapsulation within the following macros, do not change
8728## the running order or otherwise move them around unless you know exactly
8729## what you are doing...
8730if test -n "$compiler"; then
8731
8732lt_prog_compiler_no_builtin_flag=
8733
8734if test "$GCC" = yes; then
8735  case $cc_basename in
8736  nvcc*)
8737    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8738  *)
8739    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8740  esac
8741
8742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8743$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8744if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8745  $as_echo_n "(cached) " >&6
8746else
8747  lt_cv_prog_compiler_rtti_exceptions=no
8748   ac_outfile=conftest.$ac_objext
8749   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8750   lt_compiler_flag="-fno-rtti -fno-exceptions"
8751   # Insert the option either (1) after the last *FLAGS variable, or
8752   # (2) before a word containing "conftest.", or (3) at the end.
8753   # Note that $ac_compile itself does not contain backslashes and begins
8754   # with a dollar sign (not a hyphen), so the echo should work correctly.
8755   # The option is referenced via a variable to avoid confusing sed.
8756   lt_compile=`echo "$ac_compile" | $SED \
8757   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8758   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8759   -e 's:$: $lt_compiler_flag:'`
8760   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8761   (eval "$lt_compile" 2>conftest.err)
8762   ac_status=$?
8763   cat conftest.err >&5
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   if (exit $ac_status) && test -s "$ac_outfile"; then
8766     # The compiler can only warn and ignore the option if not recognized
8767     # So say no if there are warnings other than the usual output.
8768     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8769     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8770     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8771       lt_cv_prog_compiler_rtti_exceptions=yes
8772     fi
8773   fi
8774   $RM conftest*
8775
8776fi
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8778$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8779
8780if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8781    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8782else
8783    :
8784fi
8785
8786fi
8787
8788
8789
8790
8791
8792
8793  lt_prog_compiler_wl=
8794lt_prog_compiler_pic=
8795lt_prog_compiler_static=
8796
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8798$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8799
8800  if test "$GCC" = yes; then
8801    lt_prog_compiler_wl='-Wl,'
8802    lt_prog_compiler_static='-static'
8803
8804    case $host_os in
8805      aix*)
8806      # All AIX code is PIC.
8807      if test "$host_cpu" = ia64; then
8808	# AIX 5 now supports IA64 processor
8809	lt_prog_compiler_static='-Bstatic'
8810      fi
8811      lt_prog_compiler_pic='-fPIC'
8812      ;;
8813
8814    amigaos*)
8815      case $host_cpu in
8816      powerpc)
8817            # see comment about AmigaOS4 .so support
8818            lt_prog_compiler_pic='-fPIC'
8819        ;;
8820      m68k)
8821            # FIXME: we need at least 68020 code to build shared libraries, but
8822            # adding the `-m68020' flag to GCC prevents building anything better,
8823            # like `-m68040'.
8824            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8825        ;;
8826      esac
8827      ;;
8828
8829    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8830      # PIC is the default for these OSes.
8831      ;;
8832
8833    mingw* | cygwin* | pw32* | os2* | cegcc*)
8834      # This hack is so that the source file can tell whether it is being
8835      # built for inclusion in a dll (and should export symbols for example).
8836      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8837      # (--disable-auto-import) libraries
8838      lt_prog_compiler_pic='-DDLL_EXPORT'
8839      ;;
8840
8841    darwin* | rhapsody*)
8842      # PIC is the default on this platform
8843      # Common symbols not allowed in MH_DYLIB files
8844      lt_prog_compiler_pic='-fno-common'
8845      ;;
8846
8847    haiku*)
8848      # PIC is the default for Haiku.
8849      # The "-static" flag exists, but is broken.
8850      lt_prog_compiler_static=
8851      ;;
8852
8853    hpux*)
8854      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8855      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8856      # sets the default TLS model and affects inlining.
8857      case $host_cpu in
8858      hppa*64*)
8859	# +Z the default
8860	;;
8861      *)
8862	lt_prog_compiler_pic='-fPIC'
8863	;;
8864      esac
8865      ;;
8866
8867    interix[3-9]*)
8868      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8869      # Instead, we relocate shared libraries at runtime.
8870      ;;
8871
8872    msdosdjgpp*)
8873      # Just because we use GCC doesn't mean we suddenly get shared libraries
8874      # on systems that don't support them.
8875      lt_prog_compiler_can_build_shared=no
8876      enable_shared=no
8877      ;;
8878
8879    *nto* | *qnx*)
8880      # QNX uses GNU C++, but need to define -shared option too, otherwise
8881      # it will coredump.
8882      lt_prog_compiler_pic='-fPIC -shared'
8883      ;;
8884
8885    sysv4*MP*)
8886      if test -d /usr/nec; then
8887	lt_prog_compiler_pic=-Kconform_pic
8888      fi
8889      ;;
8890
8891    *)
8892      lt_prog_compiler_pic='-fPIC'
8893      ;;
8894    esac
8895
8896    case $cc_basename in
8897    nvcc*) # Cuda Compiler Driver 2.2
8898      lt_prog_compiler_wl='-Xlinker '
8899      lt_prog_compiler_pic='-Xcompiler -fPIC'
8900      ;;
8901    esac
8902  else
8903    # PORTME Check for flag to pass linker flags through the system compiler.
8904    case $host_os in
8905    aix*)
8906      lt_prog_compiler_wl='-Wl,'
8907      if test "$host_cpu" = ia64; then
8908	# AIX 5 now supports IA64 processor
8909	lt_prog_compiler_static='-Bstatic'
8910      else
8911	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8912      fi
8913      ;;
8914
8915    mingw* | cygwin* | pw32* | os2* | cegcc*)
8916      # This hack is so that the source file can tell whether it is being
8917      # built for inclusion in a dll (and should export symbols for example).
8918      lt_prog_compiler_pic='-DDLL_EXPORT'
8919      ;;
8920
8921    hpux9* | hpux10* | hpux11*)
8922      lt_prog_compiler_wl='-Wl,'
8923      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8924      # not for PA HP-UX.
8925      case $host_cpu in
8926      hppa*64*|ia64*)
8927	# +Z the default
8928	;;
8929      *)
8930	lt_prog_compiler_pic='+Z'
8931	;;
8932      esac
8933      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8934      lt_prog_compiler_static='${wl}-a ${wl}archive'
8935      ;;
8936
8937    irix5* | irix6* | nonstopux*)
8938      lt_prog_compiler_wl='-Wl,'
8939      # PIC (with -KPIC) is the default.
8940      lt_prog_compiler_static='-non_shared'
8941      ;;
8942
8943    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8944      case $cc_basename in
8945      # old Intel for x86_64 which still supported -KPIC.
8946      ecc*)
8947	lt_prog_compiler_wl='-Wl,'
8948	lt_prog_compiler_pic='-KPIC'
8949	lt_prog_compiler_static='-static'
8950        ;;
8951      # icc used to be incompatible with GCC.
8952      # ICC 10 doesn't accept -KPIC any more.
8953      icc* | ifort*)
8954	lt_prog_compiler_wl='-Wl,'
8955	lt_prog_compiler_pic='-fPIC'
8956	lt_prog_compiler_static='-static'
8957        ;;
8958      # Lahey Fortran 8.1.
8959      lf95*)
8960	lt_prog_compiler_wl='-Wl,'
8961	lt_prog_compiler_pic='--shared'
8962	lt_prog_compiler_static='--static'
8963	;;
8964      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8965        # Portland Group compilers (*not* the Pentium gcc compiler,
8966	# which looks to be a dead project)
8967	lt_prog_compiler_wl='-Wl,'
8968	lt_prog_compiler_pic='-fpic'
8969	lt_prog_compiler_static='-Bstatic'
8970        ;;
8971      ccc*)
8972        lt_prog_compiler_wl='-Wl,'
8973        # All Alpha code is PIC.
8974        lt_prog_compiler_static='-non_shared'
8975        ;;
8976      xl* | bgxl* | bgf* | mpixl*)
8977	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8978	lt_prog_compiler_wl='-Wl,'
8979	lt_prog_compiler_pic='-qpic'
8980	lt_prog_compiler_static='-qstaticlink'
8981	;;
8982      *)
8983	case `$CC -V 2>&1 | sed 5q` in
8984	*Sun\ F* | *Sun*Fortran*)
8985	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8986	  lt_prog_compiler_pic='-KPIC'
8987	  lt_prog_compiler_static='-Bstatic'
8988	  lt_prog_compiler_wl=''
8989	  ;;
8990	*Sun\ C*)
8991	  # Sun C 5.9
8992	  lt_prog_compiler_pic='-KPIC'
8993	  lt_prog_compiler_static='-Bstatic'
8994	  lt_prog_compiler_wl='-Wl,'
8995	  ;;
8996	esac
8997	;;
8998      esac
8999      ;;
9000
9001    newsos6)
9002      lt_prog_compiler_pic='-KPIC'
9003      lt_prog_compiler_static='-Bstatic'
9004      ;;
9005
9006    *nto* | *qnx*)
9007      # QNX uses GNU C++, but need to define -shared option too, otherwise
9008      # it will coredump.
9009      lt_prog_compiler_pic='-fPIC -shared'
9010      ;;
9011
9012    osf3* | osf4* | osf5*)
9013      lt_prog_compiler_wl='-Wl,'
9014      # All OSF/1 code is PIC.
9015      lt_prog_compiler_static='-non_shared'
9016      ;;
9017
9018    rdos*)
9019      lt_prog_compiler_static='-non_shared'
9020      ;;
9021
9022    solaris*)
9023      lt_prog_compiler_pic='-KPIC'
9024      lt_prog_compiler_static='-Bstatic'
9025      case $cc_basename in
9026      f77* | f90* | f95*)
9027	lt_prog_compiler_wl='-Qoption ld ';;
9028      *)
9029	lt_prog_compiler_wl='-Wl,';;
9030      esac
9031      ;;
9032
9033    sunos4*)
9034      lt_prog_compiler_wl='-Qoption ld '
9035      lt_prog_compiler_pic='-PIC'
9036      lt_prog_compiler_static='-Bstatic'
9037      ;;
9038
9039    sysv4 | sysv4.2uw2* | sysv4.3*)
9040      lt_prog_compiler_wl='-Wl,'
9041      lt_prog_compiler_pic='-KPIC'
9042      lt_prog_compiler_static='-Bstatic'
9043      ;;
9044
9045    sysv4*MP*)
9046      if test -d /usr/nec ;then
9047	lt_prog_compiler_pic='-Kconform_pic'
9048	lt_prog_compiler_static='-Bstatic'
9049      fi
9050      ;;
9051
9052    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9053      lt_prog_compiler_wl='-Wl,'
9054      lt_prog_compiler_pic='-KPIC'
9055      lt_prog_compiler_static='-Bstatic'
9056      ;;
9057
9058    unicos*)
9059      lt_prog_compiler_wl='-Wl,'
9060      lt_prog_compiler_can_build_shared=no
9061      ;;
9062
9063    uts4*)
9064      lt_prog_compiler_pic='-pic'
9065      lt_prog_compiler_static='-Bstatic'
9066      ;;
9067
9068    *)
9069      lt_prog_compiler_can_build_shared=no
9070      ;;
9071    esac
9072  fi
9073
9074case $host_os in
9075  # For platforms which do not support PIC, -DPIC is meaningless:
9076  *djgpp*)
9077    lt_prog_compiler_pic=
9078    ;;
9079  *)
9080    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9081    ;;
9082esac
9083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9084$as_echo "$lt_prog_compiler_pic" >&6; }
9085
9086
9087
9088
9089
9090
9091#
9092# Check to make sure the PIC flag actually works.
9093#
9094if test -n "$lt_prog_compiler_pic"; then
9095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9096$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9097if ${lt_cv_prog_compiler_pic_works+:} false; then :
9098  $as_echo_n "(cached) " >&6
9099else
9100  lt_cv_prog_compiler_pic_works=no
9101   ac_outfile=conftest.$ac_objext
9102   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9103   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9104   # Insert the option either (1) after the last *FLAGS variable, or
9105   # (2) before a word containing "conftest.", or (3) at the end.
9106   # Note that $ac_compile itself does not contain backslashes and begins
9107   # with a dollar sign (not a hyphen), so the echo should work correctly.
9108   # The option is referenced via a variable to avoid confusing sed.
9109   lt_compile=`echo "$ac_compile" | $SED \
9110   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9111   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9112   -e 's:$: $lt_compiler_flag:'`
9113   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9114   (eval "$lt_compile" 2>conftest.err)
9115   ac_status=$?
9116   cat conftest.err >&5
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   if (exit $ac_status) && test -s "$ac_outfile"; then
9119     # The compiler can only warn and ignore the option if not recognized
9120     # So say no if there are warnings other than the usual output.
9121     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9122     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9123     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9124       lt_cv_prog_compiler_pic_works=yes
9125     fi
9126   fi
9127   $RM conftest*
9128
9129fi
9130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9131$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9132
9133if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9134    case $lt_prog_compiler_pic in
9135     "" | " "*) ;;
9136     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9137     esac
9138else
9139    lt_prog_compiler_pic=
9140     lt_prog_compiler_can_build_shared=no
9141fi
9142
9143fi
9144
9145
9146
9147
9148
9149
9150#
9151# Check to make sure the static flag actually works.
9152#
9153wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9155$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9156if ${lt_cv_prog_compiler_static_works+:} false; then :
9157  $as_echo_n "(cached) " >&6
9158else
9159  lt_cv_prog_compiler_static_works=no
9160   save_LDFLAGS="$LDFLAGS"
9161   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9162   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9163   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9164     # The linker can only warn and ignore the option if not recognized
9165     # So say no if there are warnings
9166     if test -s conftest.err; then
9167       # Append any errors to the config.log.
9168       cat conftest.err 1>&5
9169       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9170       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9171       if diff conftest.exp conftest.er2 >/dev/null; then
9172         lt_cv_prog_compiler_static_works=yes
9173       fi
9174     else
9175       lt_cv_prog_compiler_static_works=yes
9176     fi
9177   fi
9178   $RM -r conftest*
9179   LDFLAGS="$save_LDFLAGS"
9180
9181fi
9182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9183$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9184
9185if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9186    :
9187else
9188    lt_prog_compiler_static=
9189fi
9190
9191
9192
9193
9194
9195
9196
9197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9198$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9199if ${lt_cv_prog_compiler_c_o+:} false; then :
9200  $as_echo_n "(cached) " >&6
9201else
9202  lt_cv_prog_compiler_c_o=no
9203   $RM -r conftest 2>/dev/null
9204   mkdir conftest
9205   cd conftest
9206   mkdir out
9207   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9208
9209   lt_compiler_flag="-o out/conftest2.$ac_objext"
9210   # Insert the option either (1) after the last *FLAGS variable, or
9211   # (2) before a word containing "conftest.", or (3) at the end.
9212   # Note that $ac_compile itself does not contain backslashes and begins
9213   # with a dollar sign (not a hyphen), so the echo should work correctly.
9214   lt_compile=`echo "$ac_compile" | $SED \
9215   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9216   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9217   -e 's:$: $lt_compiler_flag:'`
9218   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9219   (eval "$lt_compile" 2>out/conftest.err)
9220   ac_status=$?
9221   cat out/conftest.err >&5
9222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9224   then
9225     # The compiler can only warn and ignore the option if not recognized
9226     # So say no if there are warnings
9227     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9228     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9229     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9230       lt_cv_prog_compiler_c_o=yes
9231     fi
9232   fi
9233   chmod u+w . 2>&5
9234   $RM conftest*
9235   # SGI C++ compiler will create directory out/ii_files/ for
9236   # template instantiation
9237   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9238   $RM out/* && rmdir out
9239   cd ..
9240   $RM -r conftest
9241   $RM conftest*
9242
9243fi
9244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9245$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9246
9247
9248
9249
9250
9251
9252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9253$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9254if ${lt_cv_prog_compiler_c_o+:} false; then :
9255  $as_echo_n "(cached) " >&6
9256else
9257  lt_cv_prog_compiler_c_o=no
9258   $RM -r conftest 2>/dev/null
9259   mkdir conftest
9260   cd conftest
9261   mkdir out
9262   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9263
9264   lt_compiler_flag="-o out/conftest2.$ac_objext"
9265   # Insert the option either (1) after the last *FLAGS variable, or
9266   # (2) before a word containing "conftest.", or (3) at the end.
9267   # Note that $ac_compile itself does not contain backslashes and begins
9268   # with a dollar sign (not a hyphen), so the echo should work correctly.
9269   lt_compile=`echo "$ac_compile" | $SED \
9270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9272   -e 's:$: $lt_compiler_flag:'`
9273   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9274   (eval "$lt_compile" 2>out/conftest.err)
9275   ac_status=$?
9276   cat out/conftest.err >&5
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9279   then
9280     # The compiler can only warn and ignore the option if not recognized
9281     # So say no if there are warnings
9282     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9283     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9284     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9285       lt_cv_prog_compiler_c_o=yes
9286     fi
9287   fi
9288   chmod u+w . 2>&5
9289   $RM conftest*
9290   # SGI C++ compiler will create directory out/ii_files/ for
9291   # template instantiation
9292   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9293   $RM out/* && rmdir out
9294   cd ..
9295   $RM -r conftest
9296   $RM conftest*
9297
9298fi
9299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9300$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9301
9302
9303
9304
9305hard_links="nottested"
9306if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9307  # do not overwrite the value of need_locks provided by the user
9308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9309$as_echo_n "checking if we can lock with hard links... " >&6; }
9310  hard_links=yes
9311  $RM conftest*
9312  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9313  touch conftest.a
9314  ln conftest.a conftest.b 2>&5 || hard_links=no
9315  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9317$as_echo "$hard_links" >&6; }
9318  if test "$hard_links" = no; then
9319    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9320$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9321    need_locks=warn
9322  fi
9323else
9324  need_locks=no
9325fi
9326
9327
9328
9329
9330
9331
9332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9333$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9334
9335  runpath_var=
9336  allow_undefined_flag=
9337  always_export_symbols=no
9338  archive_cmds=
9339  archive_expsym_cmds=
9340  compiler_needs_object=no
9341  enable_shared_with_static_runtimes=no
9342  export_dynamic_flag_spec=
9343  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9344  hardcode_automatic=no
9345  hardcode_direct=no
9346  hardcode_direct_absolute=no
9347  hardcode_libdir_flag_spec=
9348  hardcode_libdir_flag_spec_ld=
9349  hardcode_libdir_separator=
9350  hardcode_minus_L=no
9351  hardcode_shlibpath_var=unsupported
9352  inherit_rpath=no
9353  link_all_deplibs=unknown
9354  module_cmds=
9355  module_expsym_cmds=
9356  old_archive_from_new_cmds=
9357  old_archive_from_expsyms_cmds=
9358  thread_safe_flag_spec=
9359  whole_archive_flag_spec=
9360  # include_expsyms should be a list of space-separated symbols to be *always*
9361  # included in the symbol list
9362  include_expsyms=
9363  # exclude_expsyms can be an extended regexp of symbols to exclude
9364  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9365  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9366  # as well as any symbol that contains `d'.
9367  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9368  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9369  # platforms (ab)use it in PIC code, but their linkers get confused if
9370  # the symbol is explicitly referenced.  Since portable code cannot
9371  # rely on this symbol name, it's probably fine to never include it in
9372  # preloaded symbol tables.
9373  # Exclude shared library initialization/finalization symbols.
9374  extract_expsyms_cmds=
9375
9376  case $host_os in
9377  cygwin* | mingw* | pw32* | cegcc*)
9378    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9379    # When not using gcc, we currently assume that we are using
9380    # Microsoft Visual C++.
9381    if test "$GCC" != yes; then
9382      with_gnu_ld=no
9383    fi
9384    ;;
9385  interix*)
9386    # we just hope/assume this is gcc and not c89 (= MSVC++)
9387    with_gnu_ld=yes
9388    ;;
9389  openbsd*)
9390    with_gnu_ld=no
9391    ;;
9392  esac
9393
9394  ld_shlibs=yes
9395
9396  # On some targets, GNU ld is compatible enough with the native linker
9397  # that we're better off using the native interface for both.
9398  lt_use_gnu_ld_interface=no
9399  if test "$with_gnu_ld" = yes; then
9400    case $host_os in
9401      aix*)
9402	# The AIX port of GNU ld has always aspired to compatibility
9403	# with the native linker.  However, as the warning in the GNU ld
9404	# block says, versions before 2.19.5* couldn't really create working
9405	# shared libraries, regardless of the interface used.
9406	case `$LD -v 2>&1` in
9407	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9408	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9409	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9410	  *)
9411	    lt_use_gnu_ld_interface=yes
9412	    ;;
9413	esac
9414	;;
9415      *)
9416	lt_use_gnu_ld_interface=yes
9417	;;
9418    esac
9419  fi
9420
9421  if test "$lt_use_gnu_ld_interface" = yes; then
9422    # If archive_cmds runs LD, not CC, wlarc should be empty
9423    wlarc='${wl}'
9424
9425    # Set some defaults for GNU ld with shared library support. These
9426    # are reset later if shared libraries are not supported. Putting them
9427    # here allows them to be overridden if necessary.
9428    runpath_var=LD_RUN_PATH
9429    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9430    export_dynamic_flag_spec='${wl}--export-dynamic'
9431    # ancient GNU ld didn't support --whole-archive et. al.
9432    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9433      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9434    else
9435      whole_archive_flag_spec=
9436    fi
9437    supports_anon_versioning=no
9438    case `$LD -v 2>&1` in
9439      *GNU\ gold*) supports_anon_versioning=yes ;;
9440      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9441      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9442      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9443      *\ 2.11.*) ;; # other 2.11 versions
9444      *) supports_anon_versioning=yes ;;
9445    esac
9446
9447    # See if GNU ld supports shared libraries.
9448    case $host_os in
9449    aix[3-9]*)
9450      # On AIX/PPC, the GNU linker is very broken
9451      if test "$host_cpu" != ia64; then
9452	ld_shlibs=no
9453	cat <<_LT_EOF 1>&2
9454
9455*** Warning: the GNU linker, at least up to release 2.19, is reported
9456*** to be unable to reliably create shared libraries on AIX.
9457*** Therefore, libtool is disabling shared libraries support.  If you
9458*** really care for shared libraries, you may want to install binutils
9459*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9460*** You will then need to restart the configuration process.
9461
9462_LT_EOF
9463      fi
9464      ;;
9465
9466    amigaos*)
9467      case $host_cpu in
9468      powerpc)
9469            # see comment about AmigaOS4 .so support
9470            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471            archive_expsym_cmds=''
9472        ;;
9473      m68k)
9474            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)'
9475            hardcode_libdir_flag_spec='-L$libdir'
9476            hardcode_minus_L=yes
9477        ;;
9478      esac
9479      ;;
9480
9481    beos*)
9482      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9483	allow_undefined_flag=unsupported
9484	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9485	# support --undefined.  This deserves some investigation.  FIXME
9486	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9487      else
9488	ld_shlibs=no
9489      fi
9490      ;;
9491
9492    cygwin* | mingw* | pw32* | cegcc*)
9493      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9494      # as there is no search path for DLLs.
9495      hardcode_libdir_flag_spec='-L$libdir'
9496      export_dynamic_flag_spec='${wl}--export-all-symbols'
9497      allow_undefined_flag=unsupported
9498      always_export_symbols=no
9499      enable_shared_with_static_runtimes=yes
9500      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9501
9502      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9503        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9504	# If the export-symbols file already is a .def file (1st line
9505	# is EXPORTS), use it as is; otherwise, prepend...
9506	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9507	  cp $export_symbols $output_objdir/$soname.def;
9508	else
9509	  echo EXPORTS > $output_objdir/$soname.def;
9510	  cat $export_symbols >> $output_objdir/$soname.def;
9511	fi~
9512	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9513      else
9514	ld_shlibs=no
9515      fi
9516      ;;
9517
9518    haiku*)
9519      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9520      link_all_deplibs=yes
9521      ;;
9522
9523    interix[3-9]*)
9524      hardcode_direct=no
9525      hardcode_shlibpath_var=no
9526      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9527      export_dynamic_flag_spec='${wl}-E'
9528      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9529      # Instead, shared libraries are loaded at an image base (0x10000000 by
9530      # default) and relocated if they conflict, which is a slow very memory
9531      # consuming and fragmenting process.  To avoid this, we pick a random,
9532      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9533      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9534      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9535      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'
9536      ;;
9537
9538    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9539      tmp_diet=no
9540      if test "$host_os" = linux-dietlibc; then
9541	case $cc_basename in
9542	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9543	esac
9544      fi
9545      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9546	 && test "$tmp_diet" = no
9547      then
9548	tmp_addflag=' $pic_flag'
9549	tmp_sharedflag='-shared'
9550	case $cc_basename,$host_cpu in
9551        pgcc*)				# Portland Group C compiler
9552	  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'
9553	  tmp_addflag=' $pic_flag'
9554	  ;;
9555	pgf77* | pgf90* | pgf95* | pgfortran*)
9556					# Portland Group f77 and f90 compilers
9557	  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'
9558	  tmp_addflag=' $pic_flag -Mnomain' ;;
9559	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9560	  tmp_addflag=' -i_dynamic' ;;
9561	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9562	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9563	ifc* | ifort*)			# Intel Fortran compiler
9564	  tmp_addflag=' -nofor_main' ;;
9565	lf95*)				# Lahey Fortran 8.1
9566	  whole_archive_flag_spec=
9567	  tmp_sharedflag='--shared' ;;
9568	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9569	  tmp_sharedflag='-qmkshrobj'
9570	  tmp_addflag= ;;
9571	nvcc*)	# Cuda Compiler Driver 2.2
9572	  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'
9573	  compiler_needs_object=yes
9574	  ;;
9575	esac
9576	case `$CC -V 2>&1 | sed 5q` in
9577	*Sun\ C*)			# Sun C 5.9
9578	  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'
9579	  compiler_needs_object=yes
9580	  tmp_sharedflag='-G' ;;
9581	*Sun\ F*)			# Sun Fortran 8.3
9582	  tmp_sharedflag='-G' ;;
9583	esac
9584	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9585
9586        if test "x$supports_anon_versioning" = xyes; then
9587          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9588	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9589	    echo "local: *; };" >> $output_objdir/$libname.ver~
9590	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9591        fi
9592
9593	case $cc_basename in
9594	xlf* | bgf* | bgxlf* | mpixlf*)
9595	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9596	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9597	  hardcode_libdir_flag_spec=
9598	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9599	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9600	  if test "x$supports_anon_versioning" = xyes; then
9601	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9602	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9603	      echo "local: *; };" >> $output_objdir/$libname.ver~
9604	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9605	  fi
9606	  ;;
9607	esac
9608      else
9609        ld_shlibs=no
9610      fi
9611      ;;
9612
9613    netbsd*)
9614      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9615	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9616	wlarc=
9617      else
9618	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9619	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9620      fi
9621      ;;
9622
9623    solaris*)
9624      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9625	ld_shlibs=no
9626	cat <<_LT_EOF 1>&2
9627
9628*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9629*** create shared libraries on Solaris systems.  Therefore, libtool
9630*** is disabling shared libraries support.  We urge you to upgrade GNU
9631*** binutils to release 2.9.1 or newer.  Another option is to modify
9632*** your PATH or compiler configuration so that the native linker is
9633*** used, and then restart.
9634
9635_LT_EOF
9636      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9637	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9638	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9639      else
9640	ld_shlibs=no
9641      fi
9642      ;;
9643
9644    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9645      case `$LD -v 2>&1` in
9646        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9647	ld_shlibs=no
9648	cat <<_LT_EOF 1>&2
9649
9650*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9651*** reliably create shared libraries on SCO systems.  Therefore, libtool
9652*** is disabling shared libraries support.  We urge you to upgrade GNU
9653*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9654*** your PATH or compiler configuration so that the native linker is
9655*** used, and then restart.
9656
9657_LT_EOF
9658	;;
9659	*)
9660	  # For security reasons, it is highly recommended that you always
9661	  # use absolute paths for naming shared libraries, and exclude the
9662	  # DT_RUNPATH tag from executables and libraries.  But doing so
9663	  # requires that you compile everything twice, which is a pain.
9664	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9665	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9666	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9667	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9668	  else
9669	    ld_shlibs=no
9670	  fi
9671	;;
9672      esac
9673      ;;
9674
9675    sunos4*)
9676      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9677      wlarc=
9678      hardcode_direct=yes
9679      hardcode_shlibpath_var=no
9680      ;;
9681
9682    *)
9683      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9684	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9685	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9686      else
9687	ld_shlibs=no
9688      fi
9689      ;;
9690    esac
9691
9692    if test "$ld_shlibs" = no; then
9693      runpath_var=
9694      hardcode_libdir_flag_spec=
9695      export_dynamic_flag_spec=
9696      whole_archive_flag_spec=
9697    fi
9698  else
9699    # PORTME fill in a description of your system's linker (not GNU ld)
9700    case $host_os in
9701    aix3*)
9702      allow_undefined_flag=unsupported
9703      always_export_symbols=yes
9704      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'
9705      # Note: this linker hardcodes the directories in LIBPATH if there
9706      # are no directories specified by -L.
9707      hardcode_minus_L=yes
9708      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9709	# Neither direct hardcoding nor static linking is supported with a
9710	# broken collect2.
9711	hardcode_direct=unsupported
9712      fi
9713      ;;
9714
9715    aix[4-9]*)
9716      if test "$host_cpu" = ia64; then
9717	# On IA64, the linker does run time linking by default, so we don't
9718	# have to do anything special.
9719	aix_use_runtimelinking=no
9720	exp_sym_flag='-Bexport'
9721	no_entry_flag=""
9722      else
9723	# If we're using GNU nm, then we don't want the "-C" option.
9724	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9725	# Also, AIX nm treats weak defined symbols like other global
9726	# defined symbols, whereas GNU nm marks them as "W".
9727	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9728	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9729	else
9730	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9731	fi
9732	aix_use_runtimelinking=no
9733
9734	# Test if we are trying to use run time linking or normal
9735	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9736	# need to do runtime linking.
9737	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9738	  for ld_flag in $LDFLAGS; do
9739	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9740	    aix_use_runtimelinking=yes
9741	    break
9742	  fi
9743	  done
9744	  ;;
9745	esac
9746
9747	exp_sym_flag='-bexport'
9748	no_entry_flag='-bnoentry'
9749      fi
9750
9751      # When large executables or shared objects are built, AIX ld can
9752      # have problems creating the table of contents.  If linking a library
9753      # or program results in "error TOC overflow" add -mminimal-toc to
9754      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9755      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9756
9757      archive_cmds=''
9758      hardcode_direct=yes
9759      hardcode_direct_absolute=yes
9760      hardcode_libdir_separator=':'
9761      link_all_deplibs=yes
9762      file_list_spec='${wl}-f,'
9763
9764      if test "$GCC" = yes; then
9765	case $host_os in aix4.[012]|aix4.[012].*)
9766	# We only want to do this on AIX 4.2 and lower, the check
9767	# below for broken collect2 doesn't work under 4.3+
9768	  collect2name=`${CC} -print-prog-name=collect2`
9769	  if test -f "$collect2name" &&
9770	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9771	  then
9772	  # We have reworked collect2
9773	  :
9774	  else
9775	  # We have old collect2
9776	  hardcode_direct=unsupported
9777	  # It fails to find uninstalled libraries when the uninstalled
9778	  # path is not listed in the libpath.  Setting hardcode_minus_L
9779	  # to unsupported forces relinking
9780	  hardcode_minus_L=yes
9781	  hardcode_libdir_flag_spec='-L$libdir'
9782	  hardcode_libdir_separator=
9783	  fi
9784	  ;;
9785	esac
9786	shared_flag='-shared'
9787	if test "$aix_use_runtimelinking" = yes; then
9788	  shared_flag="$shared_flag "'${wl}-G'
9789	fi
9790      else
9791	# not using gcc
9792	if test "$host_cpu" = ia64; then
9793	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9794	# chokes on -Wl,-G. The following line is correct:
9795	  shared_flag='-G'
9796	else
9797	  if test "$aix_use_runtimelinking" = yes; then
9798	    shared_flag='${wl}-G'
9799	  else
9800	    shared_flag='${wl}-bM:SRE'
9801	  fi
9802	fi
9803      fi
9804
9805      export_dynamic_flag_spec='${wl}-bexpall'
9806      # It seems that -bexpall does not export symbols beginning with
9807      # underscore (_), so it is better to generate a list of symbols to export.
9808      always_export_symbols=yes
9809      if test "$aix_use_runtimelinking" = yes; then
9810	# Warning - without using the other runtime loading flags (-brtl),
9811	# -berok will link without error, but may produce a broken library.
9812	allow_undefined_flag='-berok'
9813        # Determine the default libpath from the value encoded in an
9814        # empty executable.
9815        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816/* end confdefs.h.  */
9817
9818int
9819main ()
9820{
9821
9822  ;
9823  return 0;
9824}
9825_ACEOF
9826if ac_fn_c_try_link "$LINENO"; then :
9827
9828lt_aix_libpath_sed='
9829    /Import File Strings/,/^$/ {
9830	/^0/ {
9831	    s/^0  *\(.*\)$/\1/
9832	    p
9833	}
9834    }'
9835aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9836# Check for a 64-bit object if we didn't find anything.
9837if test -z "$aix_libpath"; then
9838  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9839fi
9840fi
9841rm -f core conftest.err conftest.$ac_objext \
9842    conftest$ac_exeext conftest.$ac_ext
9843if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9844
9845        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9846        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9847      else
9848	if test "$host_cpu" = ia64; then
9849	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9850	  allow_undefined_flag="-z nodefs"
9851	  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"
9852	else
9853	 # Determine the default libpath from the value encoded in an
9854	 # empty executable.
9855	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856/* end confdefs.h.  */
9857
9858int
9859main ()
9860{
9861
9862  ;
9863  return 0;
9864}
9865_ACEOF
9866if ac_fn_c_try_link "$LINENO"; then :
9867
9868lt_aix_libpath_sed='
9869    /Import File Strings/,/^$/ {
9870	/^0/ {
9871	    s/^0  *\(.*\)$/\1/
9872	    p
9873	}
9874    }'
9875aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9876# Check for a 64-bit object if we didn't find anything.
9877if test -z "$aix_libpath"; then
9878  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9879fi
9880fi
9881rm -f core conftest.err conftest.$ac_objext \
9882    conftest$ac_exeext conftest.$ac_ext
9883if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9884
9885	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9886	  # Warning - without using the other run time loading flags,
9887	  # -berok will link without error, but may produce a broken library.
9888	  no_undefined_flag=' ${wl}-bernotok'
9889	  allow_undefined_flag=' ${wl}-berok'
9890	  if test "$with_gnu_ld" = yes; then
9891	    # We only use this code for GNU lds that support --whole-archive.
9892	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9893	  else
9894	    # Exported symbols can be pulled into shared objects from archives
9895	    whole_archive_flag_spec='$convenience'
9896	  fi
9897	  archive_cmds_need_lc=yes
9898	  # This is similar to how AIX traditionally builds its shared libraries.
9899	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9900	fi
9901      fi
9902      ;;
9903
9904    amigaos*)
9905      case $host_cpu in
9906      powerpc)
9907            # see comment about AmigaOS4 .so support
9908            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9909            archive_expsym_cmds=''
9910        ;;
9911      m68k)
9912            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)'
9913            hardcode_libdir_flag_spec='-L$libdir'
9914            hardcode_minus_L=yes
9915        ;;
9916      esac
9917      ;;
9918
9919    bsdi[45]*)
9920      export_dynamic_flag_spec=-rdynamic
9921      ;;
9922
9923    cygwin* | mingw* | pw32* | cegcc*)
9924      # When not using gcc, we currently assume that we are using
9925      # Microsoft Visual C++.
9926      # hardcode_libdir_flag_spec is actually meaningless, as there is
9927      # no search path for DLLs.
9928      hardcode_libdir_flag_spec=' '
9929      allow_undefined_flag=unsupported
9930      # Tell ltmain to make .lib files, not .a files.
9931      libext=lib
9932      # Tell ltmain to make .dll files, not .so files.
9933      shrext_cmds=".dll"
9934      # FIXME: Setting linknames here is a bad hack.
9935      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9936      # The linker will automatically build a .lib file if we build a DLL.
9937      old_archive_from_new_cmds='true'
9938      # FIXME: Should let the user specify the lib program.
9939      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9940      fix_srcfile_path='`cygpath -w "$srcfile"`'
9941      enable_shared_with_static_runtimes=yes
9942      ;;
9943
9944    darwin* | rhapsody*)
9945
9946
9947  archive_cmds_need_lc=no
9948  hardcode_direct=no
9949  hardcode_automatic=yes
9950  hardcode_shlibpath_var=unsupported
9951  if test "$lt_cv_ld_force_load" = "yes"; then
9952    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\"`'
9953  else
9954    whole_archive_flag_spec=''
9955  fi
9956  link_all_deplibs=yes
9957  allow_undefined_flag="$_lt_dar_allow_undefined"
9958  case $cc_basename in
9959     ifort*) _lt_dar_can_shared=yes ;;
9960     *) _lt_dar_can_shared=$GCC ;;
9961  esac
9962  if test "$_lt_dar_can_shared" = "yes"; then
9963    output_verbose_link_cmd=func_echo_all
9964    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9965    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9966    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}"
9967    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}"
9968
9969  else
9970  ld_shlibs=no
9971  fi
9972
9973      ;;
9974
9975    dgux*)
9976      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9977      hardcode_libdir_flag_spec='-L$libdir'
9978      hardcode_shlibpath_var=no
9979      ;;
9980
9981    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9982    # support.  Future versions do this automatically, but an explicit c++rt0.o
9983    # does not break anything, and helps significantly (at the cost of a little
9984    # extra space).
9985    freebsd2.2*)
9986      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9987      hardcode_libdir_flag_spec='-R$libdir'
9988      hardcode_direct=yes
9989      hardcode_shlibpath_var=no
9990      ;;
9991
9992    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9993    freebsd2.*)
9994      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9995      hardcode_direct=yes
9996      hardcode_minus_L=yes
9997      hardcode_shlibpath_var=no
9998      ;;
9999
10000    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10001    freebsd* | dragonfly*)
10002      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10003      hardcode_libdir_flag_spec='-R$libdir'
10004      hardcode_direct=yes
10005      hardcode_shlibpath_var=no
10006      ;;
10007
10008    hpux9*)
10009      if test "$GCC" = yes; then
10010	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10011      else
10012	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10013      fi
10014      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10015      hardcode_libdir_separator=:
10016      hardcode_direct=yes
10017
10018      # hardcode_minus_L: Not really in the search PATH,
10019      # but as the default location of the library.
10020      hardcode_minus_L=yes
10021      export_dynamic_flag_spec='${wl}-E'
10022      ;;
10023
10024    hpux10*)
10025      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10026	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10027      else
10028	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10029      fi
10030      if test "$with_gnu_ld" = no; then
10031	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10032	hardcode_libdir_flag_spec_ld='+b $libdir'
10033	hardcode_libdir_separator=:
10034	hardcode_direct=yes
10035	hardcode_direct_absolute=yes
10036	export_dynamic_flag_spec='${wl}-E'
10037	# hardcode_minus_L: Not really in the search PATH,
10038	# but as the default location of the library.
10039	hardcode_minus_L=yes
10040      fi
10041      ;;
10042
10043    hpux11*)
10044      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10045	case $host_cpu in
10046	hppa*64*)
10047	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10048	  ;;
10049	ia64*)
10050	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10051	  ;;
10052	*)
10053	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10054	  ;;
10055	esac
10056      else
10057	case $host_cpu in
10058	hppa*64*)
10059	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10060	  ;;
10061	ia64*)
10062	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10063	  ;;
10064	*)
10065
10066	  # Older versions of the 11.00 compiler do not understand -b yet
10067	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10068	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10069$as_echo_n "checking if $CC understands -b... " >&6; }
10070if ${lt_cv_prog_compiler__b+:} false; then :
10071  $as_echo_n "(cached) " >&6
10072else
10073  lt_cv_prog_compiler__b=no
10074   save_LDFLAGS="$LDFLAGS"
10075   LDFLAGS="$LDFLAGS -b"
10076   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10077   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10078     # The linker can only warn and ignore the option if not recognized
10079     # So say no if there are warnings
10080     if test -s conftest.err; then
10081       # Append any errors to the config.log.
10082       cat conftest.err 1>&5
10083       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10084       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10085       if diff conftest.exp conftest.er2 >/dev/null; then
10086         lt_cv_prog_compiler__b=yes
10087       fi
10088     else
10089       lt_cv_prog_compiler__b=yes
10090     fi
10091   fi
10092   $RM -r conftest*
10093   LDFLAGS="$save_LDFLAGS"
10094
10095fi
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10097$as_echo "$lt_cv_prog_compiler__b" >&6; }
10098
10099if test x"$lt_cv_prog_compiler__b" = xyes; then
10100    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10101else
10102    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10103fi
10104
10105	  ;;
10106	esac
10107      fi
10108      if test "$with_gnu_ld" = no; then
10109	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10110	hardcode_libdir_separator=:
10111
10112	case $host_cpu in
10113	hppa*64*|ia64*)
10114	  hardcode_direct=no
10115	  hardcode_shlibpath_var=no
10116	  ;;
10117	*)
10118	  hardcode_direct=yes
10119	  hardcode_direct_absolute=yes
10120	  export_dynamic_flag_spec='${wl}-E'
10121
10122	  # hardcode_minus_L: Not really in the search PATH,
10123	  # but as the default location of the library.
10124	  hardcode_minus_L=yes
10125	  ;;
10126	esac
10127      fi
10128      ;;
10129
10130    irix5* | irix6* | nonstopux*)
10131      if test "$GCC" = yes; then
10132	archive_cmds='$CC -shared $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'
10133	# Try to use the -exported_symbol ld option, if it does not
10134	# work, assume that -exports_file does not work either and
10135	# implicitly export all symbols.
10136        save_LDFLAGS="$LDFLAGS"
10137        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10138        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139/* end confdefs.h.  */
10140int foo(void) {}
10141_ACEOF
10142if ac_fn_c_try_link "$LINENO"; then :
10143  archive_expsym_cmds='$CC -shared $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'
10144
10145fi
10146rm -f core conftest.err conftest.$ac_objext \
10147    conftest$ac_exeext conftest.$ac_ext
10148        LDFLAGS="$save_LDFLAGS"
10149      else
10150	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'
10151	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'
10152      fi
10153      archive_cmds_need_lc='no'
10154      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10155      hardcode_libdir_separator=:
10156      inherit_rpath=yes
10157      link_all_deplibs=yes
10158      ;;
10159
10160    netbsd*)
10161      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10162	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10163      else
10164	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10165      fi
10166      hardcode_libdir_flag_spec='-R$libdir'
10167      hardcode_direct=yes
10168      hardcode_shlibpath_var=no
10169      ;;
10170
10171    newsos6)
10172      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173      hardcode_direct=yes
10174      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10175      hardcode_libdir_separator=:
10176      hardcode_shlibpath_var=no
10177      ;;
10178
10179    *nto* | *qnx*)
10180      ;;
10181
10182    openbsd*)
10183      if test -f /usr/libexec/ld.so; then
10184	hardcode_direct=yes
10185	hardcode_shlibpath_var=no
10186	hardcode_direct_absolute=yes
10187	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10188	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10189	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10190	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10191	  export_dynamic_flag_spec='${wl}-E'
10192	else
10193	  case $host_os in
10194	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10195	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10196	     hardcode_libdir_flag_spec='-R$libdir'
10197	     ;;
10198	   *)
10199	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10200	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10201	     ;;
10202	  esac
10203	fi
10204      else
10205	ld_shlibs=no
10206      fi
10207      ;;
10208
10209    os2*)
10210      hardcode_libdir_flag_spec='-L$libdir'
10211      hardcode_minus_L=yes
10212      allow_undefined_flag=unsupported
10213      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10214      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10215      ;;
10216
10217    osf3*)
10218      if test "$GCC" = yes; then
10219	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10220	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'
10221      else
10222	allow_undefined_flag=' -expect_unresolved \*'
10223	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'
10224      fi
10225      archive_cmds_need_lc='no'
10226      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10227      hardcode_libdir_separator=:
10228      ;;
10229
10230    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10231      if test "$GCC" = yes; then
10232	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10233	archive_cmds='$CC -shared${allow_undefined_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'
10234	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10235      else
10236	allow_undefined_flag=' -expect_unresolved \*'
10237	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'
10238	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~
10239	$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'
10240
10241	# Both c and cxx compiler support -rpath directly
10242	hardcode_libdir_flag_spec='-rpath $libdir'
10243      fi
10244      archive_cmds_need_lc='no'
10245      hardcode_libdir_separator=:
10246      ;;
10247
10248    solaris*)
10249      no_undefined_flag=' -z defs'
10250      if test "$GCC" = yes; then
10251	wlarc='${wl}'
10252	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10253	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10254	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10255      else
10256	case `$CC -V 2>&1` in
10257	*"Compilers 5.0"*)
10258	  wlarc=''
10259	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10260	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10261	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10262	  ;;
10263	*)
10264	  wlarc='${wl}'
10265	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10266	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10267	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10268	  ;;
10269	esac
10270      fi
10271      hardcode_libdir_flag_spec='-R$libdir'
10272      hardcode_shlibpath_var=no
10273      case $host_os in
10274      solaris2.[0-5] | solaris2.[0-5].*) ;;
10275      *)
10276	# The compiler driver will combine and reorder linker options,
10277	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10278	# but is careful enough not to reorder.
10279	# Supported since Solaris 2.6 (maybe 2.5.1?)
10280	if test "$GCC" = yes; then
10281	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10282	else
10283	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10284	fi
10285	;;
10286      esac
10287      link_all_deplibs=yes
10288      ;;
10289
10290    sunos4*)
10291      if test "x$host_vendor" = xsequent; then
10292	# Use $CC to link under sequent, because it throws in some extra .o
10293	# files that make .init and .fini sections work.
10294	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10295      else
10296	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10297      fi
10298      hardcode_libdir_flag_spec='-L$libdir'
10299      hardcode_direct=yes
10300      hardcode_minus_L=yes
10301      hardcode_shlibpath_var=no
10302      ;;
10303
10304    sysv4)
10305      case $host_vendor in
10306	sni)
10307	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10308	  hardcode_direct=yes # is this really true???
10309	;;
10310	siemens)
10311	  ## LD is ld it makes a PLAMLIB
10312	  ## CC just makes a GrossModule.
10313	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10314	  reload_cmds='$CC -r -o $output$reload_objs'
10315	  hardcode_direct=no
10316        ;;
10317	motorola)
10318	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10319	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10320	;;
10321      esac
10322      runpath_var='LD_RUN_PATH'
10323      hardcode_shlibpath_var=no
10324      ;;
10325
10326    sysv4.3*)
10327      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10328      hardcode_shlibpath_var=no
10329      export_dynamic_flag_spec='-Bexport'
10330      ;;
10331
10332    sysv4*MP*)
10333      if test -d /usr/nec; then
10334	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10335	hardcode_shlibpath_var=no
10336	runpath_var=LD_RUN_PATH
10337	hardcode_runpath_var=yes
10338	ld_shlibs=yes
10339      fi
10340      ;;
10341
10342    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10343      no_undefined_flag='${wl}-z,text'
10344      archive_cmds_need_lc=no
10345      hardcode_shlibpath_var=no
10346      runpath_var='LD_RUN_PATH'
10347
10348      if test "$GCC" = yes; then
10349	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10351      else
10352	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10353	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10354      fi
10355      ;;
10356
10357    sysv5* | sco3.2v5* | sco5v6*)
10358      # Note: We can NOT use -z defs as we might desire, because we do not
10359      # link with -lc, and that would cause any symbols used from libc to
10360      # always be unresolved, which means just about no library would
10361      # ever link correctly.  If we're not using GNU ld we use -z text
10362      # though, which does catch some bad symbols but isn't as heavy-handed
10363      # as -z defs.
10364      no_undefined_flag='${wl}-z,text'
10365      allow_undefined_flag='${wl}-z,nodefs'
10366      archive_cmds_need_lc=no
10367      hardcode_shlibpath_var=no
10368      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10369      hardcode_libdir_separator=':'
10370      link_all_deplibs=yes
10371      export_dynamic_flag_spec='${wl}-Bexport'
10372      runpath_var='LD_RUN_PATH'
10373
10374      if test "$GCC" = yes; then
10375	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10376	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10377      else
10378	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10379	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10380      fi
10381      ;;
10382
10383    uts4*)
10384      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10385      hardcode_libdir_flag_spec='-L$libdir'
10386      hardcode_shlibpath_var=no
10387      ;;
10388
10389    *)
10390      ld_shlibs=no
10391      ;;
10392    esac
10393
10394    if test x$host_vendor = xsni; then
10395      case $host in
10396      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10397	export_dynamic_flag_spec='${wl}-Blargedynsym'
10398	;;
10399      esac
10400    fi
10401  fi
10402
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10404$as_echo "$ld_shlibs" >&6; }
10405test "$ld_shlibs" = no && can_build_shared=no
10406
10407with_gnu_ld=$with_gnu_ld
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423#
10424# Do we need to explicitly link libc?
10425#
10426case "x$archive_cmds_need_lc" in
10427x|xyes)
10428  # Assume -lc should be added
10429  archive_cmds_need_lc=yes
10430
10431  if test "$enable_shared" = yes && test "$GCC" = yes; then
10432    case $archive_cmds in
10433    *'~'*)
10434      # FIXME: we may have to deal with multi-command sequences.
10435      ;;
10436    '$CC '*)
10437      # Test whether the compiler implicitly links with -lc since on some
10438      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10439      # to ld, don't add -lc before -lgcc.
10440      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10441$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10442if ${lt_cv_archive_cmds_need_lc+:} false; then :
10443  $as_echo_n "(cached) " >&6
10444else
10445  $RM conftest*
10446	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10447
10448	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10449  (eval $ac_compile) 2>&5
10450  ac_status=$?
10451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10452  test $ac_status = 0; } 2>conftest.err; then
10453	  soname=conftest
10454	  lib=conftest
10455	  libobjs=conftest.$ac_objext
10456	  deplibs=
10457	  wl=$lt_prog_compiler_wl
10458	  pic_flag=$lt_prog_compiler_pic
10459	  compiler_flags=-v
10460	  linker_flags=-v
10461	  verstring=
10462	  output_objdir=.
10463	  libname=conftest
10464	  lt_save_allow_undefined_flag=$allow_undefined_flag
10465	  allow_undefined_flag=
10466	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10467  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10468  ac_status=$?
10469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10470  test $ac_status = 0; }
10471	  then
10472	    lt_cv_archive_cmds_need_lc=no
10473	  else
10474	    lt_cv_archive_cmds_need_lc=yes
10475	  fi
10476	  allow_undefined_flag=$lt_save_allow_undefined_flag
10477	else
10478	  cat conftest.err 1>&5
10479	fi
10480	$RM conftest*
10481
10482fi
10483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10484$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10485      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10486      ;;
10487    esac
10488  fi
10489  ;;
10490esac
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10649$as_echo_n "checking dynamic linker characteristics... " >&6; }
10650
10651if test "$GCC" = yes; then
10652  case $host_os in
10653    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10654    *) lt_awk_arg="/^libraries:/" ;;
10655  esac
10656  case $host_os in
10657    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10658    *) lt_sed_strip_eq="s,=/,/,g" ;;
10659  esac
10660  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10661  case $lt_search_path_spec in
10662  *\;*)
10663    # if the path contains ";" then we assume it to be the separator
10664    # otherwise default to the standard path separator (i.e. ":") - it is
10665    # assumed that no part of a normal pathname contains ";" but that should
10666    # okay in the real world where ";" in dirpaths is itself problematic.
10667    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10668    ;;
10669  *)
10670    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10671    ;;
10672  esac
10673  # Ok, now we have the path, separated by spaces, we can step through it
10674  # and add multilib dir if necessary.
10675  lt_tmp_lt_search_path_spec=
10676  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10677  for lt_sys_path in $lt_search_path_spec; do
10678    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10679      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10680    else
10681      test -d "$lt_sys_path" && \
10682	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10683    fi
10684  done
10685  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10686BEGIN {RS=" "; FS="/|\n";} {
10687  lt_foo="";
10688  lt_count=0;
10689  for (lt_i = NF; lt_i > 0; lt_i--) {
10690    if ($lt_i != "" && $lt_i != ".") {
10691      if ($lt_i == "..") {
10692        lt_count++;
10693      } else {
10694        if (lt_count == 0) {
10695          lt_foo="/" $lt_i lt_foo;
10696        } else {
10697          lt_count--;
10698        }
10699      }
10700    }
10701  }
10702  if (lt_foo != "") { lt_freq[lt_foo]++; }
10703  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10704}'`
10705  # AWK program above erroneously prepends '/' to C:/dos/paths
10706  # for these hosts.
10707  case $host_os in
10708    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10709      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10710  esac
10711  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10712else
10713  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10714fi
10715library_names_spec=
10716libname_spec='lib$name'
10717soname_spec=
10718shrext_cmds=".so"
10719postinstall_cmds=
10720postuninstall_cmds=
10721finish_cmds=
10722finish_eval=
10723shlibpath_var=
10724shlibpath_overrides_runpath=unknown
10725version_type=none
10726dynamic_linker="$host_os ld.so"
10727sys_lib_dlsearch_path_spec="/lib /usr/lib"
10728need_lib_prefix=unknown
10729hardcode_into_libs=no
10730
10731# when you set need_version to no, make sure it does not cause -set_version
10732# flags to be left without arguments
10733need_version=unknown
10734
10735case $host_os in
10736aix3*)
10737  version_type=linux
10738  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10739  shlibpath_var=LIBPATH
10740
10741  # AIX 3 has no versioning support, so we append a major version to the name.
10742  soname_spec='${libname}${release}${shared_ext}$major'
10743  ;;
10744
10745aix[4-9]*)
10746  version_type=linux
10747  need_lib_prefix=no
10748  need_version=no
10749  hardcode_into_libs=yes
10750  if test "$host_cpu" = ia64; then
10751    # AIX 5 supports IA64
10752    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10753    shlibpath_var=LD_LIBRARY_PATH
10754  else
10755    # With GCC up to 2.95.x, collect2 would create an import file
10756    # for dependence libraries.  The import file would start with
10757    # the line `#! .'.  This would cause the generated library to
10758    # depend on `.', always an invalid library.  This was fixed in
10759    # development snapshots of GCC prior to 3.0.
10760    case $host_os in
10761      aix4 | aix4.[01] | aix4.[01].*)
10762      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10763	   echo ' yes '
10764	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10765	:
10766      else
10767	can_build_shared=no
10768      fi
10769      ;;
10770    esac
10771    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10772    # soname into executable. Probably we can add versioning support to
10773    # collect2, so additional links can be useful in future.
10774    if test "$aix_use_runtimelinking" = yes; then
10775      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10776      # instead of lib<name>.a to let people know that these are not
10777      # typical AIX shared libraries.
10778      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779    else
10780      # We preserve .a as extension for shared libraries through AIX4.2
10781      # and later when we are not doing run time linking.
10782      library_names_spec='${libname}${release}.a $libname.a'
10783      soname_spec='${libname}${release}${shared_ext}$major'
10784    fi
10785    shlibpath_var=LIBPATH
10786  fi
10787  ;;
10788
10789amigaos*)
10790  case $host_cpu in
10791  powerpc)
10792    # Since July 2007 AmigaOS4 officially supports .so libraries.
10793    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10794    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795    ;;
10796  m68k)
10797    library_names_spec='$libname.ixlibrary $libname.a'
10798    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10799    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10800    ;;
10801  esac
10802  ;;
10803
10804beos*)
10805  library_names_spec='${libname}${shared_ext}'
10806  dynamic_linker="$host_os ld.so"
10807  shlibpath_var=LIBRARY_PATH
10808  ;;
10809
10810bsdi[45]*)
10811  version_type=linux
10812  need_version=no
10813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814  soname_spec='${libname}${release}${shared_ext}$major'
10815  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10816  shlibpath_var=LD_LIBRARY_PATH
10817  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10818  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10819  # the default ld.so.conf also contains /usr/contrib/lib and
10820  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10821  # libtool to hard-code these into programs
10822  ;;
10823
10824cygwin* | mingw* | pw32* | cegcc*)
10825  version_type=windows
10826  shrext_cmds=".dll"
10827  need_version=no
10828  need_lib_prefix=no
10829
10830  case $GCC,$host_os in
10831  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10832    library_names_spec='$libname.dll.a'
10833    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10834    postinstall_cmds='base_file=`basename \${file}`~
10835      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10836      dldir=$destdir/`dirname \$dlpath`~
10837      test -d \$dldir || mkdir -p \$dldir~
10838      $install_prog $dir/$dlname \$dldir/$dlname~
10839      chmod a+x \$dldir/$dlname~
10840      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10841        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10842      fi'
10843    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10844      dlpath=$dir/\$dldll~
10845       $RM \$dlpath'
10846    shlibpath_overrides_runpath=yes
10847
10848    case $host_os in
10849    cygwin*)
10850      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10851      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10852
10853      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10854      ;;
10855    mingw* | cegcc*)
10856      # MinGW DLLs use traditional 'lib' prefix
10857      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10858      ;;
10859    pw32*)
10860      # pw32 DLLs use 'pw' prefix rather than 'lib'
10861      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10862      ;;
10863    esac
10864    ;;
10865
10866  *)
10867    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10868    ;;
10869  esac
10870  dynamic_linker='Win32 ld.exe'
10871  # FIXME: first we should search . and the directory the executable is in
10872  shlibpath_var=PATH
10873  ;;
10874
10875darwin* | rhapsody*)
10876  dynamic_linker="$host_os dyld"
10877  version_type=darwin
10878  need_lib_prefix=no
10879  need_version=no
10880  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10881  soname_spec='${libname}${release}${major}$shared_ext'
10882  shlibpath_overrides_runpath=yes
10883  shlibpath_var=DYLD_LIBRARY_PATH
10884  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10885
10886  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10887  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10888  ;;
10889
10890dgux*)
10891  version_type=linux
10892  need_lib_prefix=no
10893  need_version=no
10894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10895  soname_spec='${libname}${release}${shared_ext}$major'
10896  shlibpath_var=LD_LIBRARY_PATH
10897  ;;
10898
10899freebsd* | dragonfly*)
10900  # DragonFly does not have aout.  When/if they implement a new
10901  # versioning mechanism, adjust this.
10902  if test -x /usr/bin/objformat; then
10903    objformat=`/usr/bin/objformat`
10904  else
10905    case $host_os in
10906    freebsd[23].*) objformat=aout ;;
10907    *) objformat=elf ;;
10908    esac
10909  fi
10910  version_type=freebsd-$objformat
10911  case $version_type in
10912    freebsd-elf*)
10913      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10914      need_version=no
10915      need_lib_prefix=no
10916      ;;
10917    freebsd-*)
10918      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10919      need_version=yes
10920      ;;
10921  esac
10922  shlibpath_var=LD_LIBRARY_PATH
10923  case $host_os in
10924  freebsd2.*)
10925    shlibpath_overrides_runpath=yes
10926    ;;
10927  freebsd3.[01]* | freebsdelf3.[01]*)
10928    shlibpath_overrides_runpath=yes
10929    hardcode_into_libs=yes
10930    ;;
10931  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10932  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10933    shlibpath_overrides_runpath=no
10934    hardcode_into_libs=yes
10935    ;;
10936  *) # from 4.6 on, and DragonFly
10937    shlibpath_overrides_runpath=yes
10938    hardcode_into_libs=yes
10939    ;;
10940  esac
10941  ;;
10942
10943haiku*)
10944  version_type=linux
10945  need_lib_prefix=no
10946  need_version=no
10947  dynamic_linker="$host_os runtime_loader"
10948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10949  soname_spec='${libname}${release}${shared_ext}$major'
10950  shlibpath_var=LIBRARY_PATH
10951  shlibpath_overrides_runpath=yes
10952  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10953  hardcode_into_libs=yes
10954  ;;
10955
10956hpux9* | hpux10* | hpux11*)
10957  # Give a soname corresponding to the major version so that dld.sl refuses to
10958  # link against other versions.
10959  version_type=sunos
10960  need_lib_prefix=no
10961  need_version=no
10962  case $host_cpu in
10963  ia64*)
10964    shrext_cmds='.so'
10965    hardcode_into_libs=yes
10966    dynamic_linker="$host_os dld.so"
10967    shlibpath_var=LD_LIBRARY_PATH
10968    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10969    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970    soname_spec='${libname}${release}${shared_ext}$major'
10971    if test "X$HPUX_IA64_MODE" = X32; then
10972      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10973    else
10974      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10975    fi
10976    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10977    ;;
10978  hppa*64*)
10979    shrext_cmds='.sl'
10980    hardcode_into_libs=yes
10981    dynamic_linker="$host_os dld.sl"
10982    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10983    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10984    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985    soname_spec='${libname}${release}${shared_ext}$major'
10986    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10987    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10988    ;;
10989  *)
10990    shrext_cmds='.sl'
10991    dynamic_linker="$host_os dld.sl"
10992    shlibpath_var=SHLIB_PATH
10993    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10994    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995    soname_spec='${libname}${release}${shared_ext}$major'
10996    ;;
10997  esac
10998  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10999  postinstall_cmds='chmod 555 $lib'
11000  # or fails outright, so override atomically:
11001  install_override_mode=555
11002  ;;
11003
11004interix[3-9]*)
11005  version_type=linux
11006  need_lib_prefix=no
11007  need_version=no
11008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11009  soname_spec='${libname}${release}${shared_ext}$major'
11010  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11011  shlibpath_var=LD_LIBRARY_PATH
11012  shlibpath_overrides_runpath=no
11013  hardcode_into_libs=yes
11014  ;;
11015
11016irix5* | irix6* | nonstopux*)
11017  case $host_os in
11018    nonstopux*) version_type=nonstopux ;;
11019    *)
11020	if test "$lt_cv_prog_gnu_ld" = yes; then
11021		version_type=linux
11022	else
11023		version_type=irix
11024	fi ;;
11025  esac
11026  need_lib_prefix=no
11027  need_version=no
11028  soname_spec='${libname}${release}${shared_ext}$major'
11029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11030  case $host_os in
11031  irix5* | nonstopux*)
11032    libsuff= shlibsuff=
11033    ;;
11034  *)
11035    case $LD in # libtool.m4 will add one of these switches to LD
11036    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11037      libsuff= shlibsuff= libmagic=32-bit;;
11038    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11039      libsuff=32 shlibsuff=N32 libmagic=N32;;
11040    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11041      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11042    *) libsuff= shlibsuff= libmagic=never-match;;
11043    esac
11044    ;;
11045  esac
11046  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11047  shlibpath_overrides_runpath=no
11048  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11049  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11050  hardcode_into_libs=yes
11051  ;;
11052
11053# No shared lib support for Linux oldld, aout, or coff.
11054linux*oldld* | linux*aout* | linux*coff*)
11055  dynamic_linker=no
11056  ;;
11057
11058# This must be Linux ELF.
11059
11060# uclinux* changes (here and below) have been submitted to the libtool
11061# project, but have not yet been accepted: they are GCC-local changes
11062# for the time being.  (See
11063# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11064linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11065  version_type=linux
11066  need_lib_prefix=no
11067  need_version=no
11068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069  soname_spec='${libname}${release}${shared_ext}$major'
11070  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11071  shlibpath_var=LD_LIBRARY_PATH
11072  shlibpath_overrides_runpath=no
11073
11074  # Some binutils ld are patched to set DT_RUNPATH
11075  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11076  $as_echo_n "(cached) " >&6
11077else
11078  lt_cv_shlibpath_overrides_runpath=no
11079    save_LDFLAGS=$LDFLAGS
11080    save_libdir=$libdir
11081    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11082	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11083    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084/* end confdefs.h.  */
11085
11086int
11087main ()
11088{
11089
11090  ;
11091  return 0;
11092}
11093_ACEOF
11094if ac_fn_c_try_link "$LINENO"; then :
11095  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11096  lt_cv_shlibpath_overrides_runpath=yes
11097fi
11098fi
11099rm -f core conftest.err conftest.$ac_objext \
11100    conftest$ac_exeext conftest.$ac_ext
11101    LDFLAGS=$save_LDFLAGS
11102    libdir=$save_libdir
11103
11104fi
11105
11106  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11107
11108  # This implies no fast_install, which is unacceptable.
11109  # Some rework will be needed to allow for fast_install
11110  # before this can be enabled.
11111  hardcode_into_libs=yes
11112
11113  # Append ld.so.conf contents to the search path
11114  if test -f /etc/ld.so.conf; then
11115    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11116    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11117  fi
11118
11119  # We used to test for /lib/ld.so.1 and disable shared libraries on
11120  # powerpc, because MkLinux only supported shared libraries with the
11121  # GNU dynamic linker.  Since this was broken with cross compilers,
11122  # most powerpc-linux boxes support dynamic linking these days and
11123  # people can always --disable-shared, the test was removed, and we
11124  # assume the GNU/Linux dynamic linker is in use.
11125  dynamic_linker='GNU/Linux ld.so'
11126  ;;
11127
11128netbsd*)
11129  version_type=sunos
11130  need_lib_prefix=no
11131  need_version=no
11132  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11133    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11134    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11135    dynamic_linker='NetBSD (a.out) ld.so'
11136  else
11137    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11138    soname_spec='${libname}${release}${shared_ext}$major'
11139    dynamic_linker='NetBSD ld.elf_so'
11140  fi
11141  shlibpath_var=LD_LIBRARY_PATH
11142  shlibpath_overrides_runpath=yes
11143  hardcode_into_libs=yes
11144  ;;
11145
11146newsos6)
11147  version_type=linux
11148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149  shlibpath_var=LD_LIBRARY_PATH
11150  shlibpath_overrides_runpath=yes
11151  ;;
11152
11153*nto* | *qnx*)
11154  version_type=qnx
11155  need_lib_prefix=no
11156  need_version=no
11157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11158  soname_spec='${libname}${release}${shared_ext}$major'
11159  shlibpath_var=LD_LIBRARY_PATH
11160  shlibpath_overrides_runpath=no
11161  hardcode_into_libs=yes
11162  dynamic_linker='ldqnx.so'
11163  ;;
11164
11165openbsd*)
11166  version_type=sunos
11167  sys_lib_dlsearch_path_spec="/usr/lib"
11168  need_lib_prefix=no
11169  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11170  case $host_os in
11171    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11172    *)				need_version=no  ;;
11173  esac
11174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11175  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11176  shlibpath_var=LD_LIBRARY_PATH
11177  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11178    case $host_os in
11179      openbsd2.[89] | openbsd2.[89].*)
11180	shlibpath_overrides_runpath=no
11181	;;
11182      *)
11183	shlibpath_overrides_runpath=yes
11184	;;
11185      esac
11186  else
11187    shlibpath_overrides_runpath=yes
11188  fi
11189  ;;
11190
11191os2*)
11192  libname_spec='$name'
11193  shrext_cmds=".dll"
11194  need_lib_prefix=no
11195  library_names_spec='$libname${shared_ext} $libname.a'
11196  dynamic_linker='OS/2 ld.exe'
11197  shlibpath_var=LIBPATH
11198  ;;
11199
11200osf3* | osf4* | osf5*)
11201  version_type=osf
11202  need_lib_prefix=no
11203  need_version=no
11204  soname_spec='${libname}${release}${shared_ext}$major'
11205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206  shlibpath_var=LD_LIBRARY_PATH
11207  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11208  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11209  ;;
11210
11211rdos*)
11212  dynamic_linker=no
11213  ;;
11214
11215solaris*)
11216  version_type=linux
11217  need_lib_prefix=no
11218  need_version=no
11219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220  soname_spec='${libname}${release}${shared_ext}$major'
11221  shlibpath_var=LD_LIBRARY_PATH
11222  shlibpath_overrides_runpath=yes
11223  hardcode_into_libs=yes
11224  # ldd complains unless libraries are executable
11225  postinstall_cmds='chmod +x $lib'
11226  ;;
11227
11228sunos4*)
11229  version_type=sunos
11230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11231  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11232  shlibpath_var=LD_LIBRARY_PATH
11233  shlibpath_overrides_runpath=yes
11234  if test "$with_gnu_ld" = yes; then
11235    need_lib_prefix=no
11236  fi
11237  need_version=yes
11238  ;;
11239
11240sysv4 | sysv4.3*)
11241  version_type=linux
11242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11243  soname_spec='${libname}${release}${shared_ext}$major'
11244  shlibpath_var=LD_LIBRARY_PATH
11245  case $host_vendor in
11246    sni)
11247      shlibpath_overrides_runpath=no
11248      need_lib_prefix=no
11249      runpath_var=LD_RUN_PATH
11250      ;;
11251    siemens)
11252      need_lib_prefix=no
11253      ;;
11254    motorola)
11255      need_lib_prefix=no
11256      need_version=no
11257      shlibpath_overrides_runpath=no
11258      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11259      ;;
11260  esac
11261  ;;
11262
11263sysv4*MP*)
11264  if test -d /usr/nec ;then
11265    version_type=linux
11266    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11267    soname_spec='$libname${shared_ext}.$major'
11268    shlibpath_var=LD_LIBRARY_PATH
11269  fi
11270  ;;
11271
11272sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11273  version_type=freebsd-elf
11274  need_lib_prefix=no
11275  need_version=no
11276  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11277  soname_spec='${libname}${release}${shared_ext}$major'
11278  shlibpath_var=LD_LIBRARY_PATH
11279  shlibpath_overrides_runpath=yes
11280  hardcode_into_libs=yes
11281  if test "$with_gnu_ld" = yes; then
11282    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11283  else
11284    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11285    case $host_os in
11286      sco3.2v5*)
11287        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11288	;;
11289    esac
11290  fi
11291  sys_lib_dlsearch_path_spec='/usr/lib'
11292  ;;
11293
11294tpf*)
11295  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11296  version_type=linux
11297  need_lib_prefix=no
11298  need_version=no
11299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11300  shlibpath_var=LD_LIBRARY_PATH
11301  shlibpath_overrides_runpath=no
11302  hardcode_into_libs=yes
11303  ;;
11304
11305uts4*)
11306  version_type=linux
11307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308  soname_spec='${libname}${release}${shared_ext}$major'
11309  shlibpath_var=LD_LIBRARY_PATH
11310  ;;
11311
11312*)
11313  dynamic_linker=no
11314  ;;
11315esac
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11317$as_echo "$dynamic_linker" >&6; }
11318test "$dynamic_linker" = no && can_build_shared=no
11319
11320variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11321if test "$GCC" = yes; then
11322  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11323fi
11324
11325if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11326  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11327fi
11328if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11329  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11330fi
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11424$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11425hardcode_action=
11426if test -n "$hardcode_libdir_flag_spec" ||
11427   test -n "$runpath_var" ||
11428   test "X$hardcode_automatic" = "Xyes" ; then
11429
11430  # We can hardcode non-existent directories.
11431  if test "$hardcode_direct" != no &&
11432     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11433     # have to relink, otherwise we might link with an installed library
11434     # when we should be linking with a yet-to-be-installed one
11435     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11436     test "$hardcode_minus_L" != no; then
11437    # Linking always hardcodes the temporary library directory.
11438    hardcode_action=relink
11439  else
11440    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11441    hardcode_action=immediate
11442  fi
11443else
11444  # We cannot hardcode anything, or else we can only hardcode existing
11445  # directories.
11446  hardcode_action=unsupported
11447fi
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11449$as_echo "$hardcode_action" >&6; }
11450
11451if test "$hardcode_action" = relink ||
11452   test "$inherit_rpath" = yes; then
11453  # Fast installation is not supported
11454  enable_fast_install=no
11455elif test "$shlibpath_overrides_runpath" = yes ||
11456     test "$enable_shared" = no; then
11457  # Fast installation is not necessary
11458  enable_fast_install=needless
11459fi
11460
11461
11462
11463
11464
11465
11466  if test "x$enable_dlopen" != xyes; then
11467  enable_dlopen=unknown
11468  enable_dlopen_self=unknown
11469  enable_dlopen_self_static=unknown
11470else
11471  lt_cv_dlopen=no
11472  lt_cv_dlopen_libs=
11473
11474  case $host_os in
11475  beos*)
11476    lt_cv_dlopen="load_add_on"
11477    lt_cv_dlopen_libs=
11478    lt_cv_dlopen_self=yes
11479    ;;
11480
11481  mingw* | pw32* | cegcc*)
11482    lt_cv_dlopen="LoadLibrary"
11483    lt_cv_dlopen_libs=
11484    ;;
11485
11486  cygwin*)
11487    lt_cv_dlopen="dlopen"
11488    lt_cv_dlopen_libs=
11489    ;;
11490
11491  darwin*)
11492  # if libdl is installed we need to link against it
11493    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11494$as_echo_n "checking for dlopen in -ldl... " >&6; }
11495if ${ac_cv_lib_dl_dlopen+:} false; then :
11496  $as_echo_n "(cached) " >&6
11497else
11498  ac_check_lib_save_LIBS=$LIBS
11499LIBS="-ldl  $LIBS"
11500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501/* end confdefs.h.  */
11502
11503/* Override any GCC internal prototype to avoid an error.
11504   Use char because int might match the return type of a GCC
11505   builtin and then its argument prototype would still apply.  */
11506#ifdef __cplusplus
11507extern "C"
11508#endif
11509char dlopen ();
11510int
11511main ()
11512{
11513return dlopen ();
11514  ;
11515  return 0;
11516}
11517_ACEOF
11518if ac_fn_c_try_link "$LINENO"; then :
11519  ac_cv_lib_dl_dlopen=yes
11520else
11521  ac_cv_lib_dl_dlopen=no
11522fi
11523rm -f core conftest.err conftest.$ac_objext \
11524    conftest$ac_exeext conftest.$ac_ext
11525LIBS=$ac_check_lib_save_LIBS
11526fi
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11528$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11529if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11530  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11531else
11532
11533    lt_cv_dlopen="dyld"
11534    lt_cv_dlopen_libs=
11535    lt_cv_dlopen_self=yes
11536
11537fi
11538
11539    ;;
11540
11541  *)
11542    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11543if test "x$ac_cv_func_shl_load" = xyes; then :
11544  lt_cv_dlopen="shl_load"
11545else
11546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11547$as_echo_n "checking for shl_load in -ldld... " >&6; }
11548if ${ac_cv_lib_dld_shl_load+:} false; then :
11549  $as_echo_n "(cached) " >&6
11550else
11551  ac_check_lib_save_LIBS=$LIBS
11552LIBS="-ldld  $LIBS"
11553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11554/* end confdefs.h.  */
11555
11556/* Override any GCC internal prototype to avoid an error.
11557   Use char because int might match the return type of a GCC
11558   builtin and then its argument prototype would still apply.  */
11559#ifdef __cplusplus
11560extern "C"
11561#endif
11562char shl_load ();
11563int
11564main ()
11565{
11566return shl_load ();
11567  ;
11568  return 0;
11569}
11570_ACEOF
11571if ac_fn_c_try_link "$LINENO"; then :
11572  ac_cv_lib_dld_shl_load=yes
11573else
11574  ac_cv_lib_dld_shl_load=no
11575fi
11576rm -f core conftest.err conftest.$ac_objext \
11577    conftest$ac_exeext conftest.$ac_ext
11578LIBS=$ac_check_lib_save_LIBS
11579fi
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11581$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11582if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11583  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11584else
11585  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11586if test "x$ac_cv_func_dlopen" = xyes; then :
11587  lt_cv_dlopen="dlopen"
11588else
11589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11590$as_echo_n "checking for dlopen in -ldl... " >&6; }
11591if ${ac_cv_lib_dl_dlopen+:} false; then :
11592  $as_echo_n "(cached) " >&6
11593else
11594  ac_check_lib_save_LIBS=$LIBS
11595LIBS="-ldl  $LIBS"
11596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597/* end confdefs.h.  */
11598
11599/* Override any GCC internal prototype to avoid an error.
11600   Use char because int might match the return type of a GCC
11601   builtin and then its argument prototype would still apply.  */
11602#ifdef __cplusplus
11603extern "C"
11604#endif
11605char dlopen ();
11606int
11607main ()
11608{
11609return dlopen ();
11610  ;
11611  return 0;
11612}
11613_ACEOF
11614if ac_fn_c_try_link "$LINENO"; then :
11615  ac_cv_lib_dl_dlopen=yes
11616else
11617  ac_cv_lib_dl_dlopen=no
11618fi
11619rm -f core conftest.err conftest.$ac_objext \
11620    conftest$ac_exeext conftest.$ac_ext
11621LIBS=$ac_check_lib_save_LIBS
11622fi
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11624$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11625if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11626  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11627else
11628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11629$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11630if ${ac_cv_lib_svld_dlopen+:} false; then :
11631  $as_echo_n "(cached) " >&6
11632else
11633  ac_check_lib_save_LIBS=$LIBS
11634LIBS="-lsvld  $LIBS"
11635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11636/* end confdefs.h.  */
11637
11638/* Override any GCC internal prototype to avoid an error.
11639   Use char because int might match the return type of a GCC
11640   builtin and then its argument prototype would still apply.  */
11641#ifdef __cplusplus
11642extern "C"
11643#endif
11644char dlopen ();
11645int
11646main ()
11647{
11648return dlopen ();
11649  ;
11650  return 0;
11651}
11652_ACEOF
11653if ac_fn_c_try_link "$LINENO"; then :
11654  ac_cv_lib_svld_dlopen=yes
11655else
11656  ac_cv_lib_svld_dlopen=no
11657fi
11658rm -f core conftest.err conftest.$ac_objext \
11659    conftest$ac_exeext conftest.$ac_ext
11660LIBS=$ac_check_lib_save_LIBS
11661fi
11662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11663$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11664if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11665  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11666else
11667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11668$as_echo_n "checking for dld_link in -ldld... " >&6; }
11669if ${ac_cv_lib_dld_dld_link+:} false; then :
11670  $as_echo_n "(cached) " >&6
11671else
11672  ac_check_lib_save_LIBS=$LIBS
11673LIBS="-ldld  $LIBS"
11674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675/* end confdefs.h.  */
11676
11677/* Override any GCC internal prototype to avoid an error.
11678   Use char because int might match the return type of a GCC
11679   builtin and then its argument prototype would still apply.  */
11680#ifdef __cplusplus
11681extern "C"
11682#endif
11683char dld_link ();
11684int
11685main ()
11686{
11687return dld_link ();
11688  ;
11689  return 0;
11690}
11691_ACEOF
11692if ac_fn_c_try_link "$LINENO"; then :
11693  ac_cv_lib_dld_dld_link=yes
11694else
11695  ac_cv_lib_dld_dld_link=no
11696fi
11697rm -f core conftest.err conftest.$ac_objext \
11698    conftest$ac_exeext conftest.$ac_ext
11699LIBS=$ac_check_lib_save_LIBS
11700fi
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11702$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11703if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11704  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11705fi
11706
11707
11708fi
11709
11710
11711fi
11712
11713
11714fi
11715
11716
11717fi
11718
11719
11720fi
11721
11722    ;;
11723  esac
11724
11725  if test "x$lt_cv_dlopen" != xno; then
11726    enable_dlopen=yes
11727  else
11728    enable_dlopen=no
11729  fi
11730
11731  case $lt_cv_dlopen in
11732  dlopen)
11733    save_CPPFLAGS="$CPPFLAGS"
11734    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11735
11736    save_LDFLAGS="$LDFLAGS"
11737    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11738
11739    save_LIBS="$LIBS"
11740    LIBS="$lt_cv_dlopen_libs $LIBS"
11741
11742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11743$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11744if ${lt_cv_dlopen_self+:} false; then :
11745  $as_echo_n "(cached) " >&6
11746else
11747  	  if test "$cross_compiling" = yes; then :
11748  lt_cv_dlopen_self=cross
11749else
11750  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11751  lt_status=$lt_dlunknown
11752  cat > conftest.$ac_ext <<_LT_EOF
11753#line 11753 "configure"
11754#include "confdefs.h"
11755
11756#if HAVE_DLFCN_H
11757#include <dlfcn.h>
11758#endif
11759
11760#include <stdio.h>
11761
11762#ifdef RTLD_GLOBAL
11763#  define LT_DLGLOBAL		RTLD_GLOBAL
11764#else
11765#  ifdef DL_GLOBAL
11766#    define LT_DLGLOBAL		DL_GLOBAL
11767#  else
11768#    define LT_DLGLOBAL		0
11769#  endif
11770#endif
11771
11772/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11773   find out it does not work in some platform. */
11774#ifndef LT_DLLAZY_OR_NOW
11775#  ifdef RTLD_LAZY
11776#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11777#  else
11778#    ifdef DL_LAZY
11779#      define LT_DLLAZY_OR_NOW		DL_LAZY
11780#    else
11781#      ifdef RTLD_NOW
11782#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11783#      else
11784#        ifdef DL_NOW
11785#          define LT_DLLAZY_OR_NOW	DL_NOW
11786#        else
11787#          define LT_DLLAZY_OR_NOW	0
11788#        endif
11789#      endif
11790#    endif
11791#  endif
11792#endif
11793
11794/* When -fvisbility=hidden is used, assume the code has been annotated
11795   correspondingly for the symbols needed.  */
11796#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11797void fnord () __attribute__((visibility("default")));
11798#endif
11799
11800void fnord () { int i=42; }
11801int main ()
11802{
11803  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11804  int status = $lt_dlunknown;
11805
11806  if (self)
11807    {
11808      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11809      else
11810        {
11811	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11812          else puts (dlerror ());
11813	}
11814      /* dlclose (self); */
11815    }
11816  else
11817    puts (dlerror ());
11818
11819  return status;
11820}
11821_LT_EOF
11822  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11823  (eval $ac_link) 2>&5
11824  ac_status=$?
11825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11826  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11827    (./conftest; exit; ) >&5 2>/dev/null
11828    lt_status=$?
11829    case x$lt_status in
11830      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11831      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11832      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11833    esac
11834  else :
11835    # compilation failed
11836    lt_cv_dlopen_self=no
11837  fi
11838fi
11839rm -fr conftest*
11840
11841
11842fi
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11844$as_echo "$lt_cv_dlopen_self" >&6; }
11845
11846    if test "x$lt_cv_dlopen_self" = xyes; then
11847      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11848      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11849$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11850if ${lt_cv_dlopen_self_static+:} false; then :
11851  $as_echo_n "(cached) " >&6
11852else
11853  	  if test "$cross_compiling" = yes; then :
11854  lt_cv_dlopen_self_static=cross
11855else
11856  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11857  lt_status=$lt_dlunknown
11858  cat > conftest.$ac_ext <<_LT_EOF
11859#line 11859 "configure"
11860#include "confdefs.h"
11861
11862#if HAVE_DLFCN_H
11863#include <dlfcn.h>
11864#endif
11865
11866#include <stdio.h>
11867
11868#ifdef RTLD_GLOBAL
11869#  define LT_DLGLOBAL		RTLD_GLOBAL
11870#else
11871#  ifdef DL_GLOBAL
11872#    define LT_DLGLOBAL		DL_GLOBAL
11873#  else
11874#    define LT_DLGLOBAL		0
11875#  endif
11876#endif
11877
11878/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11879   find out it does not work in some platform. */
11880#ifndef LT_DLLAZY_OR_NOW
11881#  ifdef RTLD_LAZY
11882#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11883#  else
11884#    ifdef DL_LAZY
11885#      define LT_DLLAZY_OR_NOW		DL_LAZY
11886#    else
11887#      ifdef RTLD_NOW
11888#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11889#      else
11890#        ifdef DL_NOW
11891#          define LT_DLLAZY_OR_NOW	DL_NOW
11892#        else
11893#          define LT_DLLAZY_OR_NOW	0
11894#        endif
11895#      endif
11896#    endif
11897#  endif
11898#endif
11899
11900/* When -fvisbility=hidden is used, assume the code has been annotated
11901   correspondingly for the symbols needed.  */
11902#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11903void fnord () __attribute__((visibility("default")));
11904#endif
11905
11906void fnord () { int i=42; }
11907int main ()
11908{
11909  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11910  int status = $lt_dlunknown;
11911
11912  if (self)
11913    {
11914      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11915      else
11916        {
11917	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11918          else puts (dlerror ());
11919	}
11920      /* dlclose (self); */
11921    }
11922  else
11923    puts (dlerror ());
11924
11925  return status;
11926}
11927_LT_EOF
11928  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11929  (eval $ac_link) 2>&5
11930  ac_status=$?
11931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11932  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11933    (./conftest; exit; ) >&5 2>/dev/null
11934    lt_status=$?
11935    case x$lt_status in
11936      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11937      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11938      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11939    esac
11940  else :
11941    # compilation failed
11942    lt_cv_dlopen_self_static=no
11943  fi
11944fi
11945rm -fr conftest*
11946
11947
11948fi
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11950$as_echo "$lt_cv_dlopen_self_static" >&6; }
11951    fi
11952
11953    CPPFLAGS="$save_CPPFLAGS"
11954    LDFLAGS="$save_LDFLAGS"
11955    LIBS="$save_LIBS"
11956    ;;
11957  esac
11958
11959  case $lt_cv_dlopen_self in
11960  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11961  *) enable_dlopen_self=unknown ;;
11962  esac
11963
11964  case $lt_cv_dlopen_self_static in
11965  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11966  *) enable_dlopen_self_static=unknown ;;
11967  esac
11968fi
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986striplib=
11987old_striplib=
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11989$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11990if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11991  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11992  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11994$as_echo "yes" >&6; }
11995else
11996# FIXME - insert some real tests, host_os isn't really good enough
11997  case $host_os in
11998  darwin*)
11999    if test -n "$STRIP" ; then
12000      striplib="$STRIP -x"
12001      old_striplib="$STRIP -S"
12002      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12003$as_echo "yes" >&6; }
12004    else
12005      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006$as_echo "no" >&6; }
12007    fi
12008    ;;
12009  *)
12010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011$as_echo "no" >&6; }
12012    ;;
12013  esac
12014fi
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027  # Report which library types will actually be built
12028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12029$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12031$as_echo "$can_build_shared" >&6; }
12032
12033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12034$as_echo_n "checking whether to build shared libraries... " >&6; }
12035  test "$can_build_shared" = "no" && enable_shared=no
12036
12037  # On AIX, shared libraries and static libraries use the same namespace, and
12038  # are all built from PIC.
12039  case $host_os in
12040  aix3*)
12041    test "$enable_shared" = yes && enable_static=no
12042    if test -n "$RANLIB"; then
12043      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12044      postinstall_cmds='$RANLIB $lib'
12045    fi
12046    ;;
12047
12048  aix[4-9]*)
12049    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12050      test "$enable_shared" = yes && enable_static=no
12051    fi
12052    ;;
12053  esac
12054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12055$as_echo "$enable_shared" >&6; }
12056
12057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12058$as_echo_n "checking whether to build static libraries... " >&6; }
12059  # Make sure either enable_shared or enable_static is yes.
12060  test "$enable_shared" = yes || enable_static=yes
12061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12062$as_echo "$enable_static" >&6; }
12063
12064
12065
12066
12067fi
12068ac_ext=c
12069ac_cpp='$CPP $CPPFLAGS'
12070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12072ac_compiler_gnu=$ac_cv_c_compiler_gnu
12073
12074CC="$lt_save_CC"
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088        ac_config_commands="$ac_config_commands libtool"
12089
12090
12091
12092
12093# Only expand once:
12094
12095
12096
12097
12098
12099  gdc_save_DFLAGS=$GDCFLAGS
12100  GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
12101
12102
12103# Source file extension for D test sources.
12104ac_ext=d
12105
12106# Object file extension for compiled D test sources.
12107objext=o
12108objext_D=$objext
12109
12110# Code to be used in simple compile tests
12111lt_simple_compile_test_code="\
12112  module object;
12113  shared int some_variable = 0;
12114"
12115
12116# Code to be used in simple link tests
12117lt_simple_link_test_code="\
12118  module object;
12119  extern(C) int main() { return 0; }
12120"
12121
12122# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12123
12124
12125
12126
12127
12128
12129# If no C compiler was specified, use CC.
12130LTCC=${LTCC-"$CC"}
12131
12132# If no C compiler flags were specified, use CFLAGS.
12133LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12134
12135# Allow CC to be a program name with arguments.
12136compiler=$CC
12137
12138
12139# save warnings/boilerplate of simple test code
12140ac_outfile=conftest.$ac_objext
12141echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12142eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12143_lt_compiler_boilerplate=`cat conftest.err`
12144$RM conftest*
12145
12146ac_outfile=conftest.$ac_objext
12147echo "$lt_simple_link_test_code" >conftest.$ac_ext
12148eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12149_lt_linker_boilerplate=`cat conftest.err`
12150$RM -r conftest*
12151
12152
12153# Allow CC to be a program name with arguments.
12154lt_save_CC=$CC
12155lt_save_CFLAGS=$CFLAGS
12156lt_save_GCC=$GCC
12157GCC=yes
12158CC=${GDC-"gdc"}
12159CFLAGS=$GDCFLAGS
12160compiler=$CC
12161compiler_D=$CC
12162LD_D=$CC
12163for cc_temp in $compiler""; do
12164  case $cc_temp in
12165    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12166    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12167    \-*) ;;
12168    *) break;;
12169  esac
12170done
12171cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12172
12173
12174# GDC did not exist at the time GCC didn't implicitly link libc in.
12175archive_cmds_need_lc_D=no
12176
12177old_archive_cmds_D=$old_archive_cmds
12178reload_flag_D=$reload_flag
12179reload_cmds_D=$reload_cmds
12180
12181## CAVEAT EMPTOR:
12182## There is no encapsulation within the following macros, do not change
12183## the running order or otherwise move them around unless you know exactly
12184## what you are doing...
12185if test -n "$compiler"; then
12186
12187lt_prog_compiler_no_builtin_flag_D=
12188
12189if test "$GCC" = yes; then
12190  case $cc_basename in
12191  nvcc*)
12192    lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12193  *)
12194    lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12195  esac
12196
12197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12198$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12199if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12200  $as_echo_n "(cached) " >&6
12201else
12202  lt_cv_prog_compiler_rtti_exceptions=no
12203   ac_outfile=conftest.$ac_objext
12204   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12205   lt_compiler_flag="-fno-rtti -fno-exceptions"
12206   # Insert the option either (1) after the last *FLAGS variable, or
12207   # (2) before a word containing "conftest.", or (3) at the end.
12208   # Note that $ac_compile itself does not contain backslashes and begins
12209   # with a dollar sign (not a hyphen), so the echo should work correctly.
12210   # The option is referenced via a variable to avoid confusing sed.
12211   lt_compile=`echo "$ac_compile" | $SED \
12212   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12213   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12214   -e 's:$: $lt_compiler_flag:'`
12215   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12216   (eval "$lt_compile" 2>conftest.err)
12217   ac_status=$?
12218   cat conftest.err >&5
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   if (exit $ac_status) && test -s "$ac_outfile"; then
12221     # The compiler can only warn and ignore the option if not recognized
12222     # So say no if there are warnings other than the usual output.
12223     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12224     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12225     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12226       lt_cv_prog_compiler_rtti_exceptions=yes
12227     fi
12228   fi
12229   $RM conftest*
12230
12231fi
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12233$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12234
12235if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12236    lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12237else
12238    :
12239fi
12240
12241fi
12242
12243
12244
12245  lt_prog_compiler_wl_D=
12246lt_prog_compiler_pic_D=
12247lt_prog_compiler_static_D=
12248
12249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12250$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12251
12252  if test "$GCC" = yes; then
12253    lt_prog_compiler_wl_D='-Wl,'
12254    lt_prog_compiler_static_D='-static'
12255
12256    case $host_os in
12257      aix*)
12258      # All AIX code is PIC.
12259      if test "$host_cpu" = ia64; then
12260	# AIX 5 now supports IA64 processor
12261	lt_prog_compiler_static_D='-Bstatic'
12262      fi
12263      lt_prog_compiler_pic_D='-fPIC'
12264      ;;
12265
12266    amigaos*)
12267      case $host_cpu in
12268      powerpc)
12269            # see comment about AmigaOS4 .so support
12270            lt_prog_compiler_pic_D='-fPIC'
12271        ;;
12272      m68k)
12273            # FIXME: we need at least 68020 code to build shared libraries, but
12274            # adding the `-m68020' flag to GCC prevents building anything better,
12275            # like `-m68040'.
12276            lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12277        ;;
12278      esac
12279      ;;
12280
12281    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12282      # PIC is the default for these OSes.
12283      ;;
12284
12285    mingw* | cygwin* | pw32* | os2* | cegcc*)
12286      # This hack is so that the source file can tell whether it is being
12287      # built for inclusion in a dll (and should export symbols for example).
12288      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12289      # (--disable-auto-import) libraries
12290      lt_prog_compiler_pic_D='-DDLL_EXPORT'
12291      ;;
12292
12293    darwin* | rhapsody*)
12294      # PIC is the default on this platform
12295      # Common symbols not allowed in MH_DYLIB files
12296      lt_prog_compiler_pic_D='-fno-common'
12297      ;;
12298
12299    haiku*)
12300      # PIC is the default for Haiku.
12301      # The "-static" flag exists, but is broken.
12302      lt_prog_compiler_static_D=
12303      ;;
12304
12305    hpux*)
12306      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12307      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12308      # sets the default TLS model and affects inlining.
12309      case $host_cpu in
12310      hppa*64*)
12311	# +Z the default
12312	;;
12313      *)
12314	lt_prog_compiler_pic_D='-fPIC'
12315	;;
12316      esac
12317      ;;
12318
12319    interix[3-9]*)
12320      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12321      # Instead, we relocate shared libraries at runtime.
12322      ;;
12323
12324    msdosdjgpp*)
12325      # Just because we use GCC doesn't mean we suddenly get shared libraries
12326      # on systems that don't support them.
12327      lt_prog_compiler_can_build_shared_D=no
12328      enable_shared=no
12329      ;;
12330
12331    *nto* | *qnx*)
12332      # QNX uses GNU C++, but need to define -shared option too, otherwise
12333      # it will coredump.
12334      lt_prog_compiler_pic_D='-fPIC -shared'
12335      ;;
12336
12337    sysv4*MP*)
12338      if test -d /usr/nec; then
12339	lt_prog_compiler_pic_D=-Kconform_pic
12340      fi
12341      ;;
12342
12343    *)
12344      lt_prog_compiler_pic_D='-fPIC'
12345      ;;
12346    esac
12347
12348    case $cc_basename in
12349    nvcc*) # Cuda Compiler Driver 2.2
12350      lt_prog_compiler_wl_D='-Xlinker '
12351      lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12352      ;;
12353    esac
12354  else
12355    # PORTME Check for flag to pass linker flags through the system compiler.
12356    case $host_os in
12357    aix*)
12358      lt_prog_compiler_wl_D='-Wl,'
12359      if test "$host_cpu" = ia64; then
12360	# AIX 5 now supports IA64 processor
12361	lt_prog_compiler_static_D='-Bstatic'
12362      else
12363	lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12364      fi
12365      ;;
12366
12367    mingw* | cygwin* | pw32* | os2* | cegcc*)
12368      # This hack is so that the source file can tell whether it is being
12369      # built for inclusion in a dll (and should export symbols for example).
12370      lt_prog_compiler_pic_D='-DDLL_EXPORT'
12371      ;;
12372
12373    hpux9* | hpux10* | hpux11*)
12374      lt_prog_compiler_wl_D='-Wl,'
12375      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12376      # not for PA HP-UX.
12377      case $host_cpu in
12378      hppa*64*|ia64*)
12379	# +Z the default
12380	;;
12381      *)
12382	lt_prog_compiler_pic_D='+Z'
12383	;;
12384      esac
12385      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12386      lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12387      ;;
12388
12389    irix5* | irix6* | nonstopux*)
12390      lt_prog_compiler_wl_D='-Wl,'
12391      # PIC (with -KPIC) is the default.
12392      lt_prog_compiler_static_D='-non_shared'
12393      ;;
12394
12395    linux* | k*bsd*-gnu | kopensolaris*-gnu)
12396      case $cc_basename in
12397      # old Intel for x86_64 which still supported -KPIC.
12398      ecc*)
12399	lt_prog_compiler_wl_D='-Wl,'
12400	lt_prog_compiler_pic_D='-KPIC'
12401	lt_prog_compiler_static_D='-static'
12402        ;;
12403      # icc used to be incompatible with GCC.
12404      # ICC 10 doesn't accept -KPIC any more.
12405      icc* | ifort*)
12406	lt_prog_compiler_wl_D='-Wl,'
12407	lt_prog_compiler_pic_D='-fPIC'
12408	lt_prog_compiler_static_D='-static'
12409        ;;
12410      # Lahey Fortran 8.1.
12411      lf95*)
12412	lt_prog_compiler_wl_D='-Wl,'
12413	lt_prog_compiler_pic_D='--shared'
12414	lt_prog_compiler_static_D='--static'
12415	;;
12416      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12417        # Portland Group compilers (*not* the Pentium gcc compiler,
12418	# which looks to be a dead project)
12419	lt_prog_compiler_wl_D='-Wl,'
12420	lt_prog_compiler_pic_D='-fpic'
12421	lt_prog_compiler_static_D='-Bstatic'
12422        ;;
12423      ccc*)
12424        lt_prog_compiler_wl_D='-Wl,'
12425        # All Alpha code is PIC.
12426        lt_prog_compiler_static_D='-non_shared'
12427        ;;
12428      xl* | bgxl* | bgf* | mpixl*)
12429	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12430	lt_prog_compiler_wl_D='-Wl,'
12431	lt_prog_compiler_pic_D='-qpic'
12432	lt_prog_compiler_static_D='-qstaticlink'
12433	;;
12434      *)
12435	case `$CC -V 2>&1 | sed 5q` in
12436	*Sun\ F* | *Sun*Fortran*)
12437	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12438	  lt_prog_compiler_pic_D='-KPIC'
12439	  lt_prog_compiler_static_D='-Bstatic'
12440	  lt_prog_compiler_wl_D=''
12441	  ;;
12442	*Sun\ C*)
12443	  # Sun C 5.9
12444	  lt_prog_compiler_pic_D='-KPIC'
12445	  lt_prog_compiler_static_D='-Bstatic'
12446	  lt_prog_compiler_wl_D='-Wl,'
12447	  ;;
12448	esac
12449	;;
12450      esac
12451      ;;
12452
12453    newsos6)
12454      lt_prog_compiler_pic_D='-KPIC'
12455      lt_prog_compiler_static_D='-Bstatic'
12456      ;;
12457
12458    *nto* | *qnx*)
12459      # QNX uses GNU C++, but need to define -shared option too, otherwise
12460      # it will coredump.
12461      lt_prog_compiler_pic_D='-fPIC -shared'
12462      ;;
12463
12464    osf3* | osf4* | osf5*)
12465      lt_prog_compiler_wl_D='-Wl,'
12466      # All OSF/1 code is PIC.
12467      lt_prog_compiler_static_D='-non_shared'
12468      ;;
12469
12470    rdos*)
12471      lt_prog_compiler_static_D='-non_shared'
12472      ;;
12473
12474    solaris*)
12475      lt_prog_compiler_pic_D='-KPIC'
12476      lt_prog_compiler_static_D='-Bstatic'
12477      case $cc_basename in
12478      f77* | f90* | f95*)
12479	lt_prog_compiler_wl_D='-Qoption ld ';;
12480      *)
12481	lt_prog_compiler_wl_D='-Wl,';;
12482      esac
12483      ;;
12484
12485    sunos4*)
12486      lt_prog_compiler_wl_D='-Qoption ld '
12487      lt_prog_compiler_pic_D='-PIC'
12488      lt_prog_compiler_static_D='-Bstatic'
12489      ;;
12490
12491    sysv4 | sysv4.2uw2* | sysv4.3*)
12492      lt_prog_compiler_wl_D='-Wl,'
12493      lt_prog_compiler_pic_D='-KPIC'
12494      lt_prog_compiler_static_D='-Bstatic'
12495      ;;
12496
12497    sysv4*MP*)
12498      if test -d /usr/nec ;then
12499	lt_prog_compiler_pic_D='-Kconform_pic'
12500	lt_prog_compiler_static_D='-Bstatic'
12501      fi
12502      ;;
12503
12504    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12505      lt_prog_compiler_wl_D='-Wl,'
12506      lt_prog_compiler_pic_D='-KPIC'
12507      lt_prog_compiler_static_D='-Bstatic'
12508      ;;
12509
12510    unicos*)
12511      lt_prog_compiler_wl_D='-Wl,'
12512      lt_prog_compiler_can_build_shared_D=no
12513      ;;
12514
12515    uts4*)
12516      lt_prog_compiler_pic_D='-pic'
12517      lt_prog_compiler_static_D='-Bstatic'
12518      ;;
12519
12520    *)
12521      lt_prog_compiler_can_build_shared_D=no
12522      ;;
12523    esac
12524  fi
12525
12526case $host_os in
12527  # For platforms which do not support PIC, -DPIC is meaningless:
12528  *djgpp*)
12529    lt_prog_compiler_pic_D=
12530    ;;
12531  *)
12532    lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12533    ;;
12534esac
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12536$as_echo "$lt_prog_compiler_pic_D" >&6; }
12537
12538
12539
12540#
12541# Check to make sure the PIC flag actually works.
12542#
12543if test -n "$lt_prog_compiler_pic_D"; then
12544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12545$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12546if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12547  $as_echo_n "(cached) " >&6
12548else
12549  lt_cv_prog_compiler_pic_works_D=no
12550   ac_outfile=conftest.$ac_objext
12551   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12552   lt_compiler_flag="$lt_prog_compiler_pic_D"
12553   # Insert the option either (1) after the last *FLAGS variable, or
12554   # (2) before a word containing "conftest.", or (3) at the end.
12555   # Note that $ac_compile itself does not contain backslashes and begins
12556   # with a dollar sign (not a hyphen), so the echo should work correctly.
12557   # The option is referenced via a variable to avoid confusing sed.
12558   lt_compile=`echo "$ac_compile" | $SED \
12559   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12560   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12561   -e 's:$: $lt_compiler_flag:'`
12562   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12563   (eval "$lt_compile" 2>conftest.err)
12564   ac_status=$?
12565   cat conftest.err >&5
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   if (exit $ac_status) && test -s "$ac_outfile"; then
12568     # The compiler can only warn and ignore the option if not recognized
12569     # So say no if there are warnings other than the usual output.
12570     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12571     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12572     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12573       lt_cv_prog_compiler_pic_works_D=yes
12574     fi
12575   fi
12576   $RM conftest*
12577
12578fi
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12580$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12581
12582if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12583    case $lt_prog_compiler_pic_D in
12584     "" | " "*) ;;
12585     *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12586     esac
12587else
12588    lt_prog_compiler_pic_D=
12589     lt_prog_compiler_can_build_shared_D=no
12590fi
12591
12592fi
12593
12594
12595
12596#
12597# Check to make sure the static flag actually works.
12598#
12599wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12601$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12602if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12603  $as_echo_n "(cached) " >&6
12604else
12605  lt_cv_prog_compiler_static_works_D=no
12606   save_LDFLAGS="$LDFLAGS"
12607   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12608   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12609   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12610     # The linker can only warn and ignore the option if not recognized
12611     # So say no if there are warnings
12612     if test -s conftest.err; then
12613       # Append any errors to the config.log.
12614       cat conftest.err 1>&5
12615       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12616       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12617       if diff conftest.exp conftest.er2 >/dev/null; then
12618         lt_cv_prog_compiler_static_works_D=yes
12619       fi
12620     else
12621       lt_cv_prog_compiler_static_works_D=yes
12622     fi
12623   fi
12624   $RM -r conftest*
12625   LDFLAGS="$save_LDFLAGS"
12626
12627fi
12628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12629$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12630
12631if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12632    :
12633else
12634    lt_prog_compiler_static_D=
12635fi
12636
12637
12638
12639
12640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12641$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12642if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12643  $as_echo_n "(cached) " >&6
12644else
12645  lt_cv_prog_compiler_c_o_D=no
12646   $RM -r conftest 2>/dev/null
12647   mkdir conftest
12648   cd conftest
12649   mkdir out
12650   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12651
12652   lt_compiler_flag="-o out/conftest2.$ac_objext"
12653   # Insert the option either (1) after the last *FLAGS variable, or
12654   # (2) before a word containing "conftest.", or (3) at the end.
12655   # Note that $ac_compile itself does not contain backslashes and begins
12656   # with a dollar sign (not a hyphen), so the echo should work correctly.
12657   lt_compile=`echo "$ac_compile" | $SED \
12658   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12659   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12660   -e 's:$: $lt_compiler_flag:'`
12661   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12662   (eval "$lt_compile" 2>out/conftest.err)
12663   ac_status=$?
12664   cat out/conftest.err >&5
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12667   then
12668     # The compiler can only warn and ignore the option if not recognized
12669     # So say no if there are warnings
12670     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12671     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12672     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12673       lt_cv_prog_compiler_c_o_D=yes
12674     fi
12675   fi
12676   chmod u+w . 2>&5
12677   $RM conftest*
12678   # SGI C++ compiler will create directory out/ii_files/ for
12679   # template instantiation
12680   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12681   $RM out/* && rmdir out
12682   cd ..
12683   $RM -r conftest
12684   $RM conftest*
12685
12686fi
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12688$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12689
12690
12691
12692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12693$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12694if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12695  $as_echo_n "(cached) " >&6
12696else
12697  lt_cv_prog_compiler_c_o_D=no
12698   $RM -r conftest 2>/dev/null
12699   mkdir conftest
12700   cd conftest
12701   mkdir out
12702   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12703
12704   lt_compiler_flag="-o out/conftest2.$ac_objext"
12705   # Insert the option either (1) after the last *FLAGS variable, or
12706   # (2) before a word containing "conftest.", or (3) at the end.
12707   # Note that $ac_compile itself does not contain backslashes and begins
12708   # with a dollar sign (not a hyphen), so the echo should work correctly.
12709   lt_compile=`echo "$ac_compile" | $SED \
12710   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12711   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12712   -e 's:$: $lt_compiler_flag:'`
12713   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12714   (eval "$lt_compile" 2>out/conftest.err)
12715   ac_status=$?
12716   cat out/conftest.err >&5
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12719   then
12720     # The compiler can only warn and ignore the option if not recognized
12721     # So say no if there are warnings
12722     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12723     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12724     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12725       lt_cv_prog_compiler_c_o_D=yes
12726     fi
12727   fi
12728   chmod u+w . 2>&5
12729   $RM conftest*
12730   # SGI C++ compiler will create directory out/ii_files/ for
12731   # template instantiation
12732   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12733   $RM out/* && rmdir out
12734   cd ..
12735   $RM -r conftest
12736   $RM conftest*
12737
12738fi
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12740$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12741
12742
12743
12744
12745hard_links="nottested"
12746if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12747  # do not overwrite the value of need_locks provided by the user
12748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12749$as_echo_n "checking if we can lock with hard links... " >&6; }
12750  hard_links=yes
12751  $RM conftest*
12752  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12753  touch conftest.a
12754  ln conftest.a conftest.b 2>&5 || hard_links=no
12755  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12757$as_echo "$hard_links" >&6; }
12758  if test "$hard_links" = no; then
12759    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12760$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12761    need_locks=warn
12762  fi
12763else
12764  need_locks=no
12765fi
12766
12767
12768
12769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12770$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12771
12772  runpath_var=
12773  allow_undefined_flag_D=
12774  always_export_symbols_D=no
12775  archive_cmds_D=
12776  archive_expsym_cmds_D=
12777  compiler_needs_object_D=no
12778  enable_shared_with_static_runtimes_D=no
12779  export_dynamic_flag_spec_D=
12780  export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12781  hardcode_automatic_D=no
12782  hardcode_direct_D=no
12783  hardcode_direct_absolute_D=no
12784  hardcode_libdir_flag_spec_D=
12785  hardcode_libdir_flag_spec_ld_D=
12786  hardcode_libdir_separator_D=
12787  hardcode_minus_L_D=no
12788  hardcode_shlibpath_var_D=unsupported
12789  inherit_rpath_D=no
12790  link_all_deplibs_D=unknown
12791  module_cmds_D=
12792  module_expsym_cmds_D=
12793  old_archive_from_new_cmds_D=
12794  old_archive_from_expsyms_cmds_D=
12795  thread_safe_flag_spec_D=
12796  whole_archive_flag_spec_D=
12797  # include_expsyms should be a list of space-separated symbols to be *always*
12798  # included in the symbol list
12799  include_expsyms_D=
12800  # exclude_expsyms can be an extended regexp of symbols to exclude
12801  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12802  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12803  # as well as any symbol that contains `d'.
12804  exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12805  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12806  # platforms (ab)use it in PIC code, but their linkers get confused if
12807  # the symbol is explicitly referenced.  Since portable code cannot
12808  # rely on this symbol name, it's probably fine to never include it in
12809  # preloaded symbol tables.
12810  # Exclude shared library initialization/finalization symbols.
12811  extract_expsyms_cmds=
12812
12813  case $host_os in
12814  cygwin* | mingw* | pw32* | cegcc*)
12815    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12816    # When not using gcc, we currently assume that we are using
12817    # Microsoft Visual C++.
12818    if test "$GCC" != yes; then
12819      with_gnu_ld=no
12820    fi
12821    ;;
12822  interix*)
12823    # we just hope/assume this is gcc and not c89 (= MSVC++)
12824    with_gnu_ld=yes
12825    ;;
12826  openbsd*)
12827    with_gnu_ld=no
12828    ;;
12829  esac
12830
12831  ld_shlibs_D=yes
12832
12833  # On some targets, GNU ld is compatible enough with the native linker
12834  # that we're better off using the native interface for both.
12835  lt_use_gnu_ld_interface=no
12836  if test "$with_gnu_ld" = yes; then
12837    case $host_os in
12838      aix*)
12839	# The AIX port of GNU ld has always aspired to compatibility
12840	# with the native linker.  However, as the warning in the GNU ld
12841	# block says, versions before 2.19.5* couldn't really create working
12842	# shared libraries, regardless of the interface used.
12843	case `$LD -v 2>&1` in
12844	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12845	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12846	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12847	  *)
12848	    lt_use_gnu_ld_interface=yes
12849	    ;;
12850	esac
12851	;;
12852      *)
12853	lt_use_gnu_ld_interface=yes
12854	;;
12855    esac
12856  fi
12857
12858  if test "$lt_use_gnu_ld_interface" = yes; then
12859    # If archive_cmds runs LD, not CC, wlarc should be empty
12860    wlarc='${wl}'
12861
12862    # Set some defaults for GNU ld with shared library support. These
12863    # are reset later if shared libraries are not supported. Putting them
12864    # here allows them to be overridden if necessary.
12865    runpath_var=LD_RUN_PATH
12866    hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12867    export_dynamic_flag_spec_D='${wl}--export-dynamic'
12868    # ancient GNU ld didn't support --whole-archive et. al.
12869    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12870      whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12871    else
12872      whole_archive_flag_spec_D=
12873    fi
12874    supports_anon_versioning=no
12875    case `$LD -v 2>&1` in
12876      *GNU\ gold*) supports_anon_versioning=yes ;;
12877      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12878      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12879      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12880      *\ 2.11.*) ;; # other 2.11 versions
12881      *) supports_anon_versioning=yes ;;
12882    esac
12883
12884    # See if GNU ld supports shared libraries.
12885    case $host_os in
12886    aix[3-9]*)
12887      # On AIX/PPC, the GNU linker is very broken
12888      if test "$host_cpu" != ia64; then
12889	ld_shlibs_D=no
12890	cat <<_LT_EOF 1>&2
12891
12892*** Warning: the GNU linker, at least up to release 2.19, is reported
12893*** to be unable to reliably create shared libraries on AIX.
12894*** Therefore, libtool is disabling shared libraries support.  If you
12895*** really care for shared libraries, you may want to install binutils
12896*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12897*** You will then need to restart the configuration process.
12898
12899_LT_EOF
12900      fi
12901      ;;
12902
12903    amigaos*)
12904      case $host_cpu in
12905      powerpc)
12906            # see comment about AmigaOS4 .so support
12907            archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12908            archive_expsym_cmds_D=''
12909        ;;
12910      m68k)
12911            archive_cmds_D='$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)'
12912            hardcode_libdir_flag_spec_D='-L$libdir'
12913            hardcode_minus_L_D=yes
12914        ;;
12915      esac
12916      ;;
12917
12918    beos*)
12919      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12920	allow_undefined_flag_D=unsupported
12921	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12922	# support --undefined.  This deserves some investigation.  FIXME
12923	archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12924      else
12925	ld_shlibs_D=no
12926      fi
12927      ;;
12928
12929    cygwin* | mingw* | pw32* | cegcc*)
12930      # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12931      # as there is no search path for DLLs.
12932      hardcode_libdir_flag_spec_D='-L$libdir'
12933      export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12934      allow_undefined_flag_D=unsupported
12935      always_export_symbols_D=no
12936      enable_shared_with_static_runtimes_D=yes
12937      export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12938
12939      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12940        archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12941	# If the export-symbols file already is a .def file (1st line
12942	# is EXPORTS), use it as is; otherwise, prepend...
12943	archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12944	  cp $export_symbols $output_objdir/$soname.def;
12945	else
12946	  echo EXPORTS > $output_objdir/$soname.def;
12947	  cat $export_symbols >> $output_objdir/$soname.def;
12948	fi~
12949	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12950      else
12951	ld_shlibs_D=no
12952      fi
12953      ;;
12954
12955    haiku*)
12956      archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12957      link_all_deplibs_D=yes
12958      ;;
12959
12960    interix[3-9]*)
12961      hardcode_direct_D=no
12962      hardcode_shlibpath_var_D=no
12963      hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12964      export_dynamic_flag_spec_D='${wl}-E'
12965      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12966      # Instead, shared libraries are loaded at an image base (0x10000000 by
12967      # default) and relocated if they conflict, which is a slow very memory
12968      # consuming and fragmenting process.  To avoid this, we pick a random,
12969      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12970      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12971      archive_cmds_D='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12972      archive_expsym_cmds_D='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'
12973      ;;
12974
12975    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12976      tmp_diet=no
12977      if test "$host_os" = linux-dietlibc; then
12978	case $cc_basename in
12979	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12980	esac
12981      fi
12982      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12983	 && test "$tmp_diet" = no
12984      then
12985	tmp_addflag=' $pic_flag'
12986	tmp_sharedflag='-shared'
12987	case $cc_basename,$host_cpu in
12988        pgcc*)				# Portland Group C compiler
12989	  whole_archive_flag_spec_D='${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'
12990	  tmp_addflag=' $pic_flag'
12991	  ;;
12992	pgf77* | pgf90* | pgf95* | pgfortran*)
12993					# Portland Group f77 and f90 compilers
12994	  whole_archive_flag_spec_D='${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'
12995	  tmp_addflag=' $pic_flag -Mnomain' ;;
12996	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12997	  tmp_addflag=' -i_dynamic' ;;
12998	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12999	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13000	ifc* | ifort*)			# Intel Fortran compiler
13001	  tmp_addflag=' -nofor_main' ;;
13002	lf95*)				# Lahey Fortran 8.1
13003	  whole_archive_flag_spec_D=
13004	  tmp_sharedflag='--shared' ;;
13005	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13006	  tmp_sharedflag='-qmkshrobj'
13007	  tmp_addflag= ;;
13008	nvcc*)	# Cuda Compiler Driver 2.2
13009	  whole_archive_flag_spec_D='${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'
13010	  compiler_needs_object_D=yes
13011	  ;;
13012	esac
13013	case `$CC -V 2>&1 | sed 5q` in
13014	*Sun\ C*)			# Sun C 5.9
13015	  whole_archive_flag_spec_D='${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'
13016	  compiler_needs_object_D=yes
13017	  tmp_sharedflag='-G' ;;
13018	*Sun\ F*)			# Sun Fortran 8.3
13019	  tmp_sharedflag='-G' ;;
13020	esac
13021	archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022
13023        if test "x$supports_anon_versioning" = xyes; then
13024          archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13025	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13026	    echo "local: *; };" >> $output_objdir/$libname.ver~
13027	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13028        fi
13029
13030	case $cc_basename in
13031	xlf* | bgf* | bgxlf* | mpixlf*)
13032	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13033	  whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
13034	  hardcode_libdir_flag_spec_D=
13035	  hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
13036	  archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13037	  if test "x$supports_anon_versioning" = xyes; then
13038	    archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13039	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13040	      echo "local: *; };" >> $output_objdir/$libname.ver~
13041	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13042	  fi
13043	  ;;
13044	esac
13045      else
13046        ld_shlibs_D=no
13047      fi
13048      ;;
13049
13050    netbsd*)
13051      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13052	archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13053	wlarc=
13054      else
13055	archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13056	archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13057      fi
13058      ;;
13059
13060    solaris*)
13061      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13062	ld_shlibs_D=no
13063	cat <<_LT_EOF 1>&2
13064
13065*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13066*** create shared libraries on Solaris systems.  Therefore, libtool
13067*** is disabling shared libraries support.  We urge you to upgrade GNU
13068*** binutils to release 2.9.1 or newer.  Another option is to modify
13069*** your PATH or compiler configuration so that the native linker is
13070*** used, and then restart.
13071
13072_LT_EOF
13073      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13074	archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13075	archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13076      else
13077	ld_shlibs_D=no
13078      fi
13079      ;;
13080
13081    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13082      case `$LD -v 2>&1` in
13083        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13084	ld_shlibs_D=no
13085	cat <<_LT_EOF 1>&2
13086
13087*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13088*** reliably create shared libraries on SCO systems.  Therefore, libtool
13089*** is disabling shared libraries support.  We urge you to upgrade GNU
13090*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13091*** your PATH or compiler configuration so that the native linker is
13092*** used, and then restart.
13093
13094_LT_EOF
13095	;;
13096	*)
13097	  # For security reasons, it is highly recommended that you always
13098	  # use absolute paths for naming shared libraries, and exclude the
13099	  # DT_RUNPATH tag from executables and libraries.  But doing so
13100	  # requires that you compile everything twice, which is a pain.
13101	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13102	    hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13103	    archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13104	    archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13105	  else
13106	    ld_shlibs_D=no
13107	  fi
13108	;;
13109      esac
13110      ;;
13111
13112    sunos4*)
13113      archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13114      wlarc=
13115      hardcode_direct_D=yes
13116      hardcode_shlibpath_var_D=no
13117      ;;
13118
13119    *)
13120      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13121	archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13122	archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13123      else
13124	ld_shlibs_D=no
13125      fi
13126      ;;
13127    esac
13128
13129    if test "$ld_shlibs_D" = no; then
13130      runpath_var=
13131      hardcode_libdir_flag_spec_D=
13132      export_dynamic_flag_spec_D=
13133      whole_archive_flag_spec_D=
13134    fi
13135  else
13136    # PORTME fill in a description of your system's linker (not GNU ld)
13137    case $host_os in
13138    aix3*)
13139      allow_undefined_flag_D=unsupported
13140      always_export_symbols_D=yes
13141      archive_expsym_cmds_D='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13142      # Note: this linker hardcodes the directories in LIBPATH if there
13143      # are no directories specified by -L.
13144      hardcode_minus_L_D=yes
13145      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13146	# Neither direct hardcoding nor static linking is supported with a
13147	# broken collect2.
13148	hardcode_direct_D=unsupported
13149      fi
13150      ;;
13151
13152    aix[4-9]*)
13153      if test "$host_cpu" = ia64; then
13154	# On IA64, the linker does run time linking by default, so we don't
13155	# have to do anything special.
13156	aix_use_runtimelinking=no
13157	exp_sym_flag='-Bexport'
13158	no_entry_flag=""
13159      else
13160	# If we're using GNU nm, then we don't want the "-C" option.
13161	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13162	# Also, AIX nm treats weak defined symbols like other global
13163	# defined symbols, whereas GNU nm marks them as "W".
13164	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13165	  export_symbols_cmds_D='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13166	else
13167	  export_symbols_cmds_D='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13168	fi
13169	aix_use_runtimelinking=no
13170
13171	# Test if we are trying to use run time linking or normal
13172	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13173	# need to do runtime linking.
13174	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13175	  for ld_flag in $LDFLAGS; do
13176	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13177	    aix_use_runtimelinking=yes
13178	    break
13179	  fi
13180	  done
13181	  ;;
13182	esac
13183
13184	exp_sym_flag='-bexport'
13185	no_entry_flag='-bnoentry'
13186      fi
13187
13188      # When large executables or shared objects are built, AIX ld can
13189      # have problems creating the table of contents.  If linking a library
13190      # or program results in "error TOC overflow" add -mminimal-toc to
13191      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13192      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13193
13194      archive_cmds_D=''
13195      hardcode_direct_D=yes
13196      hardcode_direct_absolute_D=yes
13197      hardcode_libdir_separator_D=':'
13198      link_all_deplibs_D=yes
13199      file_list_spec_D='${wl}-f,'
13200
13201      if test "$GCC" = yes; then
13202	case $host_os in aix4.[012]|aix4.[012].*)
13203	# We only want to do this on AIX 4.2 and lower, the check
13204	# below for broken collect2 doesn't work under 4.3+
13205	  collect2name=`${CC} -print-prog-name=collect2`
13206	  if test -f "$collect2name" &&
13207	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13208	  then
13209	  # We have reworked collect2
13210	  :
13211	  else
13212	  # We have old collect2
13213	  hardcode_direct_D=unsupported
13214	  # It fails to find uninstalled libraries when the uninstalled
13215	  # path is not listed in the libpath.  Setting hardcode_minus_L
13216	  # to unsupported forces relinking
13217	  hardcode_minus_L_D=yes
13218	  hardcode_libdir_flag_spec_D='-L$libdir'
13219	  hardcode_libdir_separator_D=
13220	  fi
13221	  ;;
13222	esac
13223	shared_flag='-shared'
13224	if test "$aix_use_runtimelinking" = yes; then
13225	  shared_flag="$shared_flag "'${wl}-G'
13226	fi
13227      else
13228	# not using gcc
13229	if test "$host_cpu" = ia64; then
13230	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13231	# chokes on -Wl,-G. The following line is correct:
13232	  shared_flag='-G'
13233	else
13234	  if test "$aix_use_runtimelinking" = yes; then
13235	    shared_flag='${wl}-G'
13236	  else
13237	    shared_flag='${wl}-bM:SRE'
13238	  fi
13239	fi
13240      fi
13241
13242      export_dynamic_flag_spec_D='${wl}-bexpall'
13243      # It seems that -bexpall does not export symbols beginning with
13244      # underscore (_), so it is better to generate a list of symbols to export.
13245      always_export_symbols_D=yes
13246      if test "$aix_use_runtimelinking" = yes; then
13247	# Warning - without using the other runtime loading flags (-brtl),
13248	# -berok will link without error, but may produce a broken library.
13249	allow_undefined_flag_D='-berok'
13250        # Determine the default libpath from the value encoded in an
13251        # empty executable.
13252        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253/* end confdefs.h.  */
13254
13255int
13256main ()
13257{
13258
13259  ;
13260  return 0;
13261}
13262_ACEOF
13263if ac_fn_c_try_link "$LINENO"; then :
13264
13265lt_aix_libpath_sed='
13266    /Import File Strings/,/^$/ {
13267	/^0/ {
13268	    s/^0  *\(.*\)$/\1/
13269	    p
13270	}
13271    }'
13272aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13273# Check for a 64-bit object if we didn't find anything.
13274if test -z "$aix_libpath"; then
13275  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13276fi
13277fi
13278rm -f core conftest.err conftest.$ac_objext \
13279    conftest$ac_exeext conftest.$ac_ext
13280if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13281
13282        hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13283        archive_expsym_cmds_D='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13284      else
13285	if test "$host_cpu" = ia64; then
13286	  hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13287	  allow_undefined_flag_D="-z nodefs"
13288	  archive_expsym_cmds_D="\$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"
13289	else
13290	 # Determine the default libpath from the value encoded in an
13291	 # empty executable.
13292	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293/* end confdefs.h.  */
13294
13295int
13296main ()
13297{
13298
13299  ;
13300  return 0;
13301}
13302_ACEOF
13303if ac_fn_c_try_link "$LINENO"; then :
13304
13305lt_aix_libpath_sed='
13306    /Import File Strings/,/^$/ {
13307	/^0/ {
13308	    s/^0  *\(.*\)$/\1/
13309	    p
13310	}
13311    }'
13312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13313# Check for a 64-bit object if we didn't find anything.
13314if test -z "$aix_libpath"; then
13315  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13316fi
13317fi
13318rm -f core conftest.err conftest.$ac_objext \
13319    conftest$ac_exeext conftest.$ac_ext
13320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13321
13322	 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13323	  # Warning - without using the other run time loading flags,
13324	  # -berok will link without error, but may produce a broken library.
13325	  no_undefined_flag_D=' ${wl}-bernotok'
13326	  allow_undefined_flag_D=' ${wl}-berok'
13327	  if test "$with_gnu_ld" = yes; then
13328	    # We only use this code for GNU lds that support --whole-archive.
13329	    whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13330	  else
13331	    # Exported symbols can be pulled into shared objects from archives
13332	    whole_archive_flag_spec_D='$convenience'
13333	  fi
13334	  archive_cmds_need_lc_D=yes
13335	  # This is similar to how AIX traditionally builds its shared libraries.
13336	  archive_expsym_cmds_D="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13337	fi
13338      fi
13339      ;;
13340
13341    amigaos*)
13342      case $host_cpu in
13343      powerpc)
13344            # see comment about AmigaOS4 .so support
13345            archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13346            archive_expsym_cmds_D=''
13347        ;;
13348      m68k)
13349            archive_cmds_D='$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)'
13350            hardcode_libdir_flag_spec_D='-L$libdir'
13351            hardcode_minus_L_D=yes
13352        ;;
13353      esac
13354      ;;
13355
13356    bsdi[45]*)
13357      export_dynamic_flag_spec_D=-rdynamic
13358      ;;
13359
13360    cygwin* | mingw* | pw32* | cegcc*)
13361      # When not using gcc, we currently assume that we are using
13362      # Microsoft Visual C++.
13363      # hardcode_libdir_flag_spec is actually meaningless, as there is
13364      # no search path for DLLs.
13365      hardcode_libdir_flag_spec_D=' '
13366      allow_undefined_flag_D=unsupported
13367      # Tell ltmain to make .lib files, not .a files.
13368      libext=lib
13369      # Tell ltmain to make .dll files, not .so files.
13370      shrext_cmds=".dll"
13371      # FIXME: Setting linknames here is a bad hack.
13372      archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13373      # The linker will automatically build a .lib file if we build a DLL.
13374      old_archive_from_new_cmds_D='true'
13375      # FIXME: Should let the user specify the lib program.
13376      old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13377      fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13378      enable_shared_with_static_runtimes_D=yes
13379      ;;
13380
13381    darwin* | rhapsody*)
13382
13383
13384  archive_cmds_need_lc_D=no
13385  hardcode_direct_D=no
13386  hardcode_automatic_D=yes
13387  hardcode_shlibpath_var_D=unsupported
13388  if test "$lt_cv_ld_force_load" = "yes"; then
13389    whole_archive_flag_spec_D='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13390  else
13391    whole_archive_flag_spec_D=''
13392  fi
13393  link_all_deplibs_D=yes
13394  allow_undefined_flag_D="$_lt_dar_allow_undefined"
13395  case $cc_basename in
13396     ifort*) _lt_dar_can_shared=yes ;;
13397     *) _lt_dar_can_shared=$GCC ;;
13398  esac
13399  if test "$_lt_dar_can_shared" = "yes"; then
13400    output_verbose_link_cmd=func_echo_all
13401    archive_cmds_D="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13402    module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13403    archive_expsym_cmds_D="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}"
13404    module_expsym_cmds_D="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}"
13405
13406  else
13407  ld_shlibs_D=no
13408  fi
13409
13410      ;;
13411
13412    dgux*)
13413      archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13414      hardcode_libdir_flag_spec_D='-L$libdir'
13415      hardcode_shlibpath_var_D=no
13416      ;;
13417
13418    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13419    # support.  Future versions do this automatically, but an explicit c++rt0.o
13420    # does not break anything, and helps significantly (at the cost of a little
13421    # extra space).
13422    freebsd2.2*)
13423      archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13424      hardcode_libdir_flag_spec_D='-R$libdir'
13425      hardcode_direct_D=yes
13426      hardcode_shlibpath_var_D=no
13427      ;;
13428
13429    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13430    freebsd2.*)
13431      archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13432      hardcode_direct_D=yes
13433      hardcode_minus_L_D=yes
13434      hardcode_shlibpath_var_D=no
13435      ;;
13436
13437    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13438    freebsd* | dragonfly*)
13439      archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13440      hardcode_libdir_flag_spec_D='-R$libdir'
13441      hardcode_direct_D=yes
13442      hardcode_shlibpath_var_D=no
13443      ;;
13444
13445    hpux9*)
13446      if test "$GCC" = yes; then
13447	archive_cmds_D='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13448      else
13449	archive_cmds_D='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13450      fi
13451      hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13452      hardcode_libdir_separator_D=:
13453      hardcode_direct_D=yes
13454
13455      # hardcode_minus_L: Not really in the search PATH,
13456      # but as the default location of the library.
13457      hardcode_minus_L_D=yes
13458      export_dynamic_flag_spec_D='${wl}-E'
13459      ;;
13460
13461    hpux10*)
13462      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13463	archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13464      else
13465	archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13466      fi
13467      if test "$with_gnu_ld" = no; then
13468	hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13469	hardcode_libdir_flag_spec_ld_D='+b $libdir'
13470	hardcode_libdir_separator_D=:
13471	hardcode_direct_D=yes
13472	hardcode_direct_absolute_D=yes
13473	export_dynamic_flag_spec_D='${wl}-E'
13474	# hardcode_minus_L: Not really in the search PATH,
13475	# but as the default location of the library.
13476	hardcode_minus_L_D=yes
13477      fi
13478      ;;
13479
13480    hpux11*)
13481      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13482	case $host_cpu in
13483	hppa*64*)
13484	  archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13485	  ;;
13486	ia64*)
13487	  archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13488	  ;;
13489	*)
13490	  archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13491	  ;;
13492	esac
13493      else
13494	case $host_cpu in
13495	hppa*64*)
13496	  archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13497	  ;;
13498	ia64*)
13499	  archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13500	  ;;
13501	*)
13502	archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13503	  ;;
13504	esac
13505      fi
13506      if test "$with_gnu_ld" = no; then
13507	hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13508	hardcode_libdir_separator_D=:
13509
13510	case $host_cpu in
13511	hppa*64*|ia64*)
13512	  hardcode_direct_D=no
13513	  hardcode_shlibpath_var_D=no
13514	  ;;
13515	*)
13516	  hardcode_direct_D=yes
13517	  hardcode_direct_absolute_D=yes
13518	  export_dynamic_flag_spec_D='${wl}-E'
13519
13520	  # hardcode_minus_L: Not really in the search PATH,
13521	  # but as the default location of the library.
13522	  hardcode_minus_L_D=yes
13523	  ;;
13524	esac
13525      fi
13526      ;;
13527
13528    irix5* | irix6* | nonstopux*)
13529      if test "$GCC" = yes; then
13530	archive_cmds_D='$CC -shared $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'
13531	# Try to use the -exported_symbol ld option, if it does not
13532	# work, assume that -exports_file does not work either and
13533	# implicitly export all symbols.
13534        save_LDFLAGS="$LDFLAGS"
13535        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13536        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537/* end confdefs.h.  */
13538int foo(void) {}
13539_ACEOF
13540if ac_fn_c_try_link "$LINENO"; then :
13541  archive_expsym_cmds_D='$CC -shared $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'
13542
13543fi
13544rm -f core conftest.err conftest.$ac_objext \
13545    conftest$ac_exeext conftest.$ac_ext
13546        LDFLAGS="$save_LDFLAGS"
13547      else
13548	archive_cmds_D='$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'
13549	archive_expsym_cmds_D='$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'
13550      fi
13551      archive_cmds_need_lc_D='no'
13552      hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13553      hardcode_libdir_separator_D=:
13554      inherit_rpath_D=yes
13555      link_all_deplibs_D=yes
13556      ;;
13557
13558    netbsd*)
13559      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13560	archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13561      else
13562	archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13563      fi
13564      hardcode_libdir_flag_spec_D='-R$libdir'
13565      hardcode_direct_D=yes
13566      hardcode_shlibpath_var_D=no
13567      ;;
13568
13569    newsos6)
13570      archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13571      hardcode_direct_D=yes
13572      hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13573      hardcode_libdir_separator_D=:
13574      hardcode_shlibpath_var_D=no
13575      ;;
13576
13577    *nto* | *qnx*)
13578      ;;
13579
13580    openbsd*)
13581      if test -f /usr/libexec/ld.so; then
13582	hardcode_direct_D=yes
13583	hardcode_shlibpath_var_D=no
13584	hardcode_direct_absolute_D=yes
13585	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13586	  archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13587	  archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13588	  hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13589	  export_dynamic_flag_spec_D='${wl}-E'
13590	else
13591	  case $host_os in
13592	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13593	     archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13594	     hardcode_libdir_flag_spec_D='-R$libdir'
13595	     ;;
13596	   *)
13597	     archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13598	     hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13599	     ;;
13600	  esac
13601	fi
13602      else
13603	ld_shlibs_D=no
13604      fi
13605      ;;
13606
13607    os2*)
13608      hardcode_libdir_flag_spec_D='-L$libdir'
13609      hardcode_minus_L_D=yes
13610      allow_undefined_flag_D=unsupported
13611      archive_cmds_D='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13612      old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13613      ;;
13614
13615    osf3*)
13616      if test "$GCC" = yes; then
13617	allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13618	archive_cmds_D='$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'
13619      else
13620	allow_undefined_flag_D=' -expect_unresolved \*'
13621	archive_cmds_D='$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'
13622      fi
13623      archive_cmds_need_lc_D='no'
13624      hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13625      hardcode_libdir_separator_D=:
13626      ;;
13627
13628    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13629      if test "$GCC" = yes; then
13630	allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13631	archive_cmds_D='$CC -shared${allow_undefined_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'
13632	hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13633      else
13634	allow_undefined_flag_D=' -expect_unresolved \*'
13635	archive_cmds_D='$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'
13636	archive_expsym_cmds_D='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13637	$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'
13638
13639	# Both c and cxx compiler support -rpath directly
13640	hardcode_libdir_flag_spec_D='-rpath $libdir'
13641      fi
13642      archive_cmds_need_lc_D='no'
13643      hardcode_libdir_separator_D=:
13644      ;;
13645
13646    solaris*)
13647      no_undefined_flag_D=' -z defs'
13648      if test "$GCC" = yes; then
13649	wlarc='${wl}'
13650	archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13651	archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13652	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13653      else
13654	case `$CC -V 2>&1` in
13655	*"Compilers 5.0"*)
13656	  wlarc=''
13657	  archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13658	  archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13659	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13660	  ;;
13661	*)
13662	  wlarc='${wl}'
13663	  archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13664	  archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13665	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13666	  ;;
13667	esac
13668      fi
13669      hardcode_libdir_flag_spec_D='-R$libdir'
13670      hardcode_shlibpath_var_D=no
13671      case $host_os in
13672      solaris2.[0-5] | solaris2.[0-5].*) ;;
13673      *)
13674	# The compiler driver will combine and reorder linker options,
13675	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13676	# but is careful enough not to reorder.
13677	# Supported since Solaris 2.6 (maybe 2.5.1?)
13678	if test "$GCC" = yes; then
13679	  whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13680	else
13681	  whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13682	fi
13683	;;
13684      esac
13685      link_all_deplibs_D=yes
13686      ;;
13687
13688    sunos4*)
13689      if test "x$host_vendor" = xsequent; then
13690	# Use $CC to link under sequent, because it throws in some extra .o
13691	# files that make .init and .fini sections work.
13692	archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13693      else
13694	archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13695      fi
13696      hardcode_libdir_flag_spec_D='-L$libdir'
13697      hardcode_direct_D=yes
13698      hardcode_minus_L_D=yes
13699      hardcode_shlibpath_var_D=no
13700      ;;
13701
13702    sysv4)
13703      case $host_vendor in
13704	sni)
13705	  archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13706	  hardcode_direct_D=yes # is this really true???
13707	;;
13708	siemens)
13709	  ## LD is ld it makes a PLAMLIB
13710	  ## CC just makes a GrossModule.
13711	  archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13712	  reload_cmds_D='$CC -r -o $output$reload_objs'
13713	  hardcode_direct_D=no
13714        ;;
13715	motorola)
13716	  archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13717	  hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13718	;;
13719      esac
13720      runpath_var='LD_RUN_PATH'
13721      hardcode_shlibpath_var_D=no
13722      ;;
13723
13724    sysv4.3*)
13725      archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13726      hardcode_shlibpath_var_D=no
13727      export_dynamic_flag_spec_D='-Bexport'
13728      ;;
13729
13730    sysv4*MP*)
13731      if test -d /usr/nec; then
13732	archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13733	hardcode_shlibpath_var_D=no
13734	runpath_var=LD_RUN_PATH
13735	hardcode_runpath_var=yes
13736	ld_shlibs_D=yes
13737      fi
13738      ;;
13739
13740    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13741      no_undefined_flag_D='${wl}-z,text'
13742      archive_cmds_need_lc_D=no
13743      hardcode_shlibpath_var_D=no
13744      runpath_var='LD_RUN_PATH'
13745
13746      if test "$GCC" = yes; then
13747	archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13748	archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13749      else
13750	archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13751	archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13752      fi
13753      ;;
13754
13755    sysv5* | sco3.2v5* | sco5v6*)
13756      # Note: We can NOT use -z defs as we might desire, because we do not
13757      # link with -lc, and that would cause any symbols used from libc to
13758      # always be unresolved, which means just about no library would
13759      # ever link correctly.  If we're not using GNU ld we use -z text
13760      # though, which does catch some bad symbols but isn't as heavy-handed
13761      # as -z defs.
13762      no_undefined_flag_D='${wl}-z,text'
13763      allow_undefined_flag_D='${wl}-z,nodefs'
13764      archive_cmds_need_lc_D=no
13765      hardcode_shlibpath_var_D=no
13766      hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13767      hardcode_libdir_separator_D=':'
13768      link_all_deplibs_D=yes
13769      export_dynamic_flag_spec_D='${wl}-Bexport'
13770      runpath_var='LD_RUN_PATH'
13771
13772      if test "$GCC" = yes; then
13773	archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13774	archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13775      else
13776	archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13777	archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13778      fi
13779      ;;
13780
13781    uts4*)
13782      archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13783      hardcode_libdir_flag_spec_D='-L$libdir'
13784      hardcode_shlibpath_var_D=no
13785      ;;
13786
13787    *)
13788      ld_shlibs_D=no
13789      ;;
13790    esac
13791
13792    if test x$host_vendor = xsni; then
13793      case $host in
13794      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13795	export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13796	;;
13797      esac
13798    fi
13799  fi
13800
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13802$as_echo "$ld_shlibs_D" >&6; }
13803test "$ld_shlibs_D" = no && can_build_shared=no
13804
13805with_gnu_ld_D=$with_gnu_ld
13806
13807
13808
13809
13810
13811
13812#
13813# Do we need to explicitly link libc?
13814#
13815case "x$archive_cmds_need_lc_D" in
13816x|xyes)
13817  # Assume -lc should be added
13818  archive_cmds_need_lc_D=yes
13819
13820  if test "$enable_shared" = yes && test "$GCC" = yes; then
13821    case $archive_cmds_D in
13822    *'~'*)
13823      # FIXME: we may have to deal with multi-command sequences.
13824      ;;
13825    '$CC '*)
13826      # Test whether the compiler implicitly links with -lc since on some
13827      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13828      # to ld, don't add -lc before -lgcc.
13829      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13830$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13831if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13832  $as_echo_n "(cached) " >&6
13833else
13834  $RM conftest*
13835	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13836
13837	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13838  (eval $ac_compile) 2>&5
13839  ac_status=$?
13840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13841  test $ac_status = 0; } 2>conftest.err; then
13842	  soname=conftest
13843	  lib=conftest
13844	  libobjs=conftest.$ac_objext
13845	  deplibs=
13846	  wl=$lt_prog_compiler_wl_D
13847	  pic_flag=$lt_prog_compiler_pic_D
13848	  compiler_flags=-v
13849	  linker_flags=-v
13850	  verstring=
13851	  output_objdir=.
13852	  libname=conftest
13853	  lt_save_allow_undefined_flag=$allow_undefined_flag_D
13854	  allow_undefined_flag_D=
13855	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13856  (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13857  ac_status=$?
13858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13859  test $ac_status = 0; }
13860	  then
13861	    lt_cv_archive_cmds_need_lc_D=no
13862	  else
13863	    lt_cv_archive_cmds_need_lc_D=yes
13864	  fi
13865	  allow_undefined_flag_D=$lt_save_allow_undefined_flag
13866	else
13867	  cat conftest.err 1>&5
13868	fi
13869	$RM conftest*
13870
13871fi
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13873$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13874      archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13875      ;;
13876    esac
13877  fi
13878  ;;
13879esac
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13945$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13946hardcode_action_D=
13947if test -n "$hardcode_libdir_flag_spec_D" ||
13948   test -n "$runpath_var_D" ||
13949   test "X$hardcode_automatic_D" = "Xyes" ; then
13950
13951  # We can hardcode non-existent directories.
13952  if test "$hardcode_direct_D" != no &&
13953     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13954     # have to relink, otherwise we might link with an installed library
13955     # when we should be linking with a yet-to-be-installed one
13956     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13957     test "$hardcode_minus_L_D" != no; then
13958    # Linking always hardcodes the temporary library directory.
13959    hardcode_action_D=relink
13960  else
13961    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13962    hardcode_action_D=immediate
13963  fi
13964else
13965  # We cannot hardcode anything, or else we can only hardcode existing
13966  # directories.
13967  hardcode_action_D=unsupported
13968fi
13969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13970$as_echo "$hardcode_action_D" >&6; }
13971
13972if test "$hardcode_action_D" = relink ||
13973   test "$inherit_rpath_D" = yes; then
13974  # Fast installation is not supported
13975  enable_fast_install=no
13976elif test "$shlibpath_overrides_runpath" = yes ||
13977     test "$enable_shared" = no; then
13978  # Fast installation is not necessary
13979  enable_fast_install=needless
13980fi
13981
13982
13983
13984
13985
13986
13987
13988fi
13989
13990ac_ext=c
13991ac_cpp='$CPP $CPPFLAGS'
13992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13994ac_compiler_gnu=$ac_cv_c_compiler_gnu
13995
13996
13997GCC=$lt_save_GCC
13998CC=$lt_save_CC
13999CFLAGS=$lt_save_CFLAGS
14000
14001  GDCFLAGS=$gdc_save_DFLAGS
14002
14003
14004
14005
14006# libtool variables for Phobos shared and position-independent compiles.
14007#
14008# Use phobos_lt_pic_flag to designate the automake variable
14009# used to encapsulate the default libtool approach to creating objects
14010# with position-independent code. Default: -prefer-pic.
14011#
14012# Use phobos_compiler_shared_flag to designate the compile-time flags for
14013# creating shared objects. Default: -fversion=Shared.
14014#
14015# Use phobos_compiler_pic_flag to designate the compile-time flags for
14016# creating position-independent objects. This varies with the target
14017# hardware and operating system, but is often: -fPIC.
14018#
14019# The distinction between pic and shared compilation flags is not present in
14020# libtool, and so we make it here.  How it is handled is that in shared
14021# compilations the `lt_prog_compiler_pic_D' variable is used to instead
14022# ensure that conditional compilation of shared runtime code is compiled in.
14023if test "$enable_shared" = yes; then
14024  phobos_lt_pic_flag="-prefer-pic"
14025  phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
14026  phobos_compiler_shared_flag="-fversion=Shared"
14027else
14028  phobos_lt_pic_flag=
14029  phobos_compiler_pic_flag=
14030  phobos_compiler_shared_flag=
14031fi
14032
14033
14034
14035
14036# Override the libtool's pic_flag and pic_mode.
14037# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14038# NB: this impacts --with-pic and --without-pic.
14039lt_prog_compiler_pic_D="$phobos_compiler_pic_flag $phobos_compiler_shared_flag"
14040pic_mode='default'
14041
14042# Determine what GCC version number to use in filesystem paths.
14043
14044  get_gcc_base_ver="cat"
14045
14046# Check whether --with-gcc-major-version-only was given.
14047if test "${with_gcc_major_version_only+set}" = set; then :
14048  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14049        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14050      fi
14051
14052fi
14053
14054
14055
14056
14057# libphobos/libdruntime specific options and feature detection
14058
14059  # These need to be absolute paths, yet at the same time need to
14060  # canonicalize only relative paths, because then amd will not unmount
14061  # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14062  libphobos_builddir=`${PWDCMD-pwd}`
14063  case $srcdir in
14064    \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
14065    *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14066  esac
14067
14068
14069
14070
14071  if test ${multilib} = yes; then
14072    multilib_arg="--enable-multilib"
14073  else
14074    multilib_arg=
14075  fi
14076
14077
14078  # Check whether --enable-werror was given.
14079if test "${enable_werror+set}" = set; then :
14080  enableval=$enable_werror;
14081fi
14082
14083  WERROR_FLAG=""
14084  if test "x$enable_werror" = "xyes"; then
14085      WERROR_FLAG="-Werror"
14086  fi
14087
14088
14089
14090
14091  gdc_save_DFLAGS=$GDCFLAGS
14092  GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14093
14094    ac_ext=d
14095ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14096ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14097ac_compiler_gnu=yes
14098
14099    GDCFLAGS="$GDCFLAGS -g -Werror -ffunction-sections -fdata-sections"
14100    cat > conftest.$ac_ext <<_ACEOF
14101module mod;
14102int foo; void bar() { }
14103
14104extern(C) int main() {
14105  return 0;
14106}
14107_ACEOF
14108if ac_fn_d_try_compile "$LINENO"; then :
14109  ac_fdsections=yes
14110else
14111  ac_fdsections=no
14112fi
14113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114    if test "x$ac_fdsections" = "xyes"; then
14115      SECTION_FLAGS='-ffunction-sections -fdata-sections'
14116    fi
14117    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
14118$as_echo "$ac_fdsections" >&6; }
14119    ac_ext=c
14120ac_cpp='$CPP $CPPFLAGS'
14121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14123ac_compiler_gnu=$ac_cv_c_compiler_gnu
14124
14125
14126  GDCFLAGS=$gdc_save_DFLAGS
14127
14128
14129
14130
14131  druntime_target_cpu_parsed=""
14132  case "$target_cpu" in
14133      aarch64*)
14134               druntime_target_cpu_parsed="aarch64"
14135               ;;
14136      arm*)    druntime_target_cpu_parsed="arm"
14137               ;;
14138      mips*)   druntime_target_cpu_parsed="mips"
14139               ;;
14140      powerpc*)
14141               druntime_target_cpu_parsed="powerpc"
14142               ;;
14143      i[34567]86|x86_64)
14144               druntime_target_cpu_parsed="x86"
14145               ;;
14146      s390x)
14147               druntime_target_cpu_parsed="s390x"
14148               ;;
14149      s390)
14150               druntime_target_cpu_parsed="s390"
14151               ;;
14152  esac
14153   if test "$druntime_target_cpu_parsed" = "aarch64"; then
14154  DRUNTIME_CPU_AARCH64_TRUE=
14155  DRUNTIME_CPU_AARCH64_FALSE='#'
14156else
14157  DRUNTIME_CPU_AARCH64_TRUE='#'
14158  DRUNTIME_CPU_AARCH64_FALSE=
14159fi
14160
14161   if test "$druntime_target_cpu_parsed" = "arm"; then
14162  DRUNTIME_CPU_ARM_TRUE=
14163  DRUNTIME_CPU_ARM_FALSE='#'
14164else
14165  DRUNTIME_CPU_ARM_TRUE='#'
14166  DRUNTIME_CPU_ARM_FALSE=
14167fi
14168
14169   if test "$druntime_target_cpu_parsed" = "mips"; then
14170  DRUNTIME_CPU_MIPS_TRUE=
14171  DRUNTIME_CPU_MIPS_FALSE='#'
14172else
14173  DRUNTIME_CPU_MIPS_TRUE='#'
14174  DRUNTIME_CPU_MIPS_FALSE=
14175fi
14176
14177   if test "$druntime_target_cpu_parsed" = "powerpc"; then
14178  DRUNTIME_CPU_POWERPC_TRUE=
14179  DRUNTIME_CPU_POWERPC_FALSE='#'
14180else
14181  DRUNTIME_CPU_POWERPC_TRUE='#'
14182  DRUNTIME_CPU_POWERPC_FALSE=
14183fi
14184
14185   if test "$druntime_target_cpu_parsed" = "x86"; then
14186  DRUNTIME_CPU_X86_TRUE=
14187  DRUNTIME_CPU_X86_FALSE='#'
14188else
14189  DRUNTIME_CPU_X86_TRUE='#'
14190  DRUNTIME_CPU_X86_FALSE=
14191fi
14192
14193   if test "$druntime_target_cpu_parsed" = "s390x"; then
14194  DRUNTIME_CPU_SYSTEMZ_TRUE=
14195  DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14196else
14197  DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14198  DRUNTIME_CPU_SYSTEMZ_FALSE=
14199fi
14200
14201   if test "$druntime_target_cpu_parsed" = "s390"; then
14202  DRUNTIME_CPU_S390_TRUE=
14203  DRUNTIME_CPU_S390_FALSE='#'
14204else
14205  DRUNTIME_CPU_S390_TRUE='#'
14206  DRUNTIME_CPU_S390_FALSE=
14207fi
14208
14209
14210
14211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14212$as_echo_n "checking for target OS... " >&6; }
14213if ${druntime_cv_target_os+:} false; then :
14214  $as_echo_n "(cached) " >&6
14215else
14216  druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14217fi
14218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14219$as_echo "$druntime_cv_target_os" >&6; }
14220    if test -z "$druntime_cv_target_os"; then :
14221  as_fn_error $? "can't detect target OS" "$LINENO" 5
14222fi
14223
14224
14225
14226
14227  druntime_target_os_parsed=""
14228  case "$druntime_cv_target_os" in
14229      aix*)    druntime_target_os_parsed="aix"
14230               ;;
14231      *android*)
14232               druntime_target_os_parsed="android"
14233               ;;
14234      darwin*) druntime_target_os_parsed="darwin"
14235               ;;
14236      dragonfly*)
14237               druntime_target_os_parsed="dragonflybsd"
14238               ;;
14239      freebsd*|k*bsd*-gnu)
14240               druntime_target_os_parsed="freebsd"
14241               ;;
14242      openbsd*)
14243               druntime_target_os_parsed="openbsd"
14244               ;;
14245      netbsd*)
14246               druntime_target_os_parsed="netbsd"
14247               ;;
14248      linux*)  druntime_target_os_parsed="linux"
14249               ;;
14250      mingw*)  druntime_target_os_parsed="mingw"
14251             ;;
14252      *solaris*) druntime_target_os_parsed="solaris"
14253  esac
14254   if test "$druntime_target_os_parsed" = "aix"; then
14255  DRUNTIME_OS_AIX_TRUE=
14256  DRUNTIME_OS_AIX_FALSE='#'
14257else
14258  DRUNTIME_OS_AIX_TRUE='#'
14259  DRUNTIME_OS_AIX_FALSE=
14260fi
14261
14262   if test "$druntime_target_os_parsed" = "android"; then
14263  DRUNTIME_OS_ANDROID_TRUE=
14264  DRUNTIME_OS_ANDROID_FALSE='#'
14265else
14266  DRUNTIME_OS_ANDROID_TRUE='#'
14267  DRUNTIME_OS_ANDROID_FALSE=
14268fi
14269
14270   if test "$druntime_target_os_parsed" = "darwin"; then
14271  DRUNTIME_OS_DARWIN_TRUE=
14272  DRUNTIME_OS_DARWIN_FALSE='#'
14273else
14274  DRUNTIME_OS_DARWIN_TRUE='#'
14275  DRUNTIME_OS_DARWIN_FALSE=
14276fi
14277
14278   if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14279  DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14280  DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14281else
14282  DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14283  DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14284fi
14285
14286   if test "$druntime_target_os_parsed" = "freebsd"; then
14287  DRUNTIME_OS_FREEBSD_TRUE=
14288  DRUNTIME_OS_FREEBSD_FALSE='#'
14289else
14290  DRUNTIME_OS_FREEBSD_TRUE='#'
14291  DRUNTIME_OS_FREEBSD_FALSE=
14292fi
14293
14294   if test "$druntime_target_os_parsed" = "netbsd"; then
14295  DRUNTIME_OS_NETBSD_TRUE=
14296  DRUNTIME_OS_NETBSD_FALSE='#'
14297else
14298  DRUNTIME_OS_NETBSD_TRUE='#'
14299  DRUNTIME_OS_NETBSD_FALSE=
14300fi
14301
14302   if test "$druntime_target_os_parsed" = "openbsd"; then
14303  DRUNTIME_OS_OPENBSD_TRUE=
14304  DRUNTIME_OS_OPENBSD_FALSE='#'
14305else
14306  DRUNTIME_OS_OPENBSD_TRUE='#'
14307  DRUNTIME_OS_OPENBSD_FALSE=
14308fi
14309
14310   if test "$druntime_target_os_parsed" = "linux"; then
14311  DRUNTIME_OS_LINUX_TRUE=
14312  DRUNTIME_OS_LINUX_FALSE='#'
14313else
14314  DRUNTIME_OS_LINUX_TRUE='#'
14315  DRUNTIME_OS_LINUX_FALSE=
14316fi
14317
14318   if test "$druntime_target_os_parsed" = "mingw"; then
14319  DRUNTIME_OS_MINGW_TRUE=
14320  DRUNTIME_OS_MINGW_FALSE='#'
14321else
14322  DRUNTIME_OS_MINGW_TRUE='#'
14323  DRUNTIME_OS_MINGW_FALSE=
14324fi
14325
14326   if test "$druntime_target_os_parsed" = "solaris"; then
14327  DRUNTIME_OS_SOLARIS_TRUE=
14328  DRUNTIME_OS_SOLARIS_FALSE='#'
14329else
14330  DRUNTIME_OS_SOLARIS_TRUE='#'
14331  DRUNTIME_OS_SOLARIS_FALSE=
14332fi
14333
14334
14335  druntime_target_posix="no"
14336  case "$druntime_cv_target_os" in
14337    aix*|*bsd*|cygwin*|darwin*|dragonfly*|gnu*|linux*|skyos*|*solaris*|sysv*)
14338      druntime_target_posix="yes"
14339      ;;
14340  esac
14341   if test "$druntime_target_posix" = "yes"; then
14342  DRUNTIME_OS_POSIX_TRUE=
14343  DRUNTIME_OS_POSIX_FALSE='#'
14344else
14345  DRUNTIME_OS_POSIX_TRUE='#'
14346  DRUNTIME_OS_POSIX_FALSE=
14347fi
14348
14349
14350
14351
14352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14353$as_echo_n "checking for thread model used by GDC... " >&6; }
14354  d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14356$as_echo "$d_thread_model" >&6; }
14357
14358  # Map from thread model to thread interface.
14359
14360case $d_thread_model in
14361    aix)    DCFG_THREAD_MODEL="Posix" ;;
14362    lynx)   DCFG_THREAD_MODEL="Posix" ;;
14363    posix)  DCFG_THREAD_MODEL="Posix" ;;
14364    single) DCFG_THREAD_MODEL="Single" ;;
14365    win32)  DCFG_THREAD_MODEL="Win32" ;;
14366    # TODO: These targets need porting.
14367    dce|mipssde|rtems|tpf|vxworks)
14368	    DCFG_THREAD_MODEL="Single" ;;
14369    *)	    as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14370esac
14371
14372
14373
14374
14375  ac_ext=c
14376ac_cpp='$CPP $CPPFLAGS'
14377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14379ac_compiler_gnu=$ac_cv_c_compiler_gnu
14380
14381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14382$as_echo_n "checking for ARM unwinder... " >&6; }
14383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384/* end confdefs.h.  */
14385#include <unwind.h>
14386int
14387main ()
14388{
14389
14390  #if __ARM_EABI_UNWINDER__
14391  #error Yes, it is.
14392  #endif
14393
14394  ;
14395  return 0;
14396}
14397_ACEOF
14398if ac_fn_c_try_compile "$LINENO"; then :
14399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14400$as_echo "no" >&6; }
14401     DCFG_ARM_EABI_UNWINDER=false
14402else
14403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14404$as_echo "yes" >&6; }
14405     DCFG_ARM_EABI_UNWINDER=true
14406fi
14407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408
14409   if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14410  DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14411  DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14412else
14413  DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14414  DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14415fi
14416
14417  ac_ext=c
14418ac_cpp='$CPP $CPPFLAGS'
14419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14421ac_compiler_gnu=$ac_cv_c_compiler_gnu
14422
14423
14424
14425
14426
14427  ac_ext=c
14428ac_cpp='$CPP $CPPFLAGS'
14429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14431ac_compiler_gnu=$ac_cv_c_compiler_gnu
14432
14433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14434$as_echo_n "checking for minfo section bracketing... " >&6; }
14435  case "$druntime_cv_target_os" in
14436      darwin*)
14437	section="__DATA,__minfodata"
14438	start="section\$start\$__DATA\$__minfodata"
14439	stop="section\$end\$__DATA\$__minfodata"
14440	;;
14441      *)
14442	section="minfo"
14443	start="__start_minfo"
14444	stop="__stop_minfo"
14445	;;
14446  esac
14447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448/* end confdefs.h.  */
14449
14450    void* module_info_ptr __attribute__((section ("$section")));
14451    extern void* start_minfo __asm__("$start") __attribute__((visibility ("hidden")));
14452    extern void* stop_minfo __asm__("$stop") __attribute__((visibility ("hidden")));
14453
14454    int main()
14455    {
14456        // Never run, just to prevent compiler from optimizing access
14457        return (int)(&stop_minfo - &start_minfo);
14458    }
14459
14460_ACEOF
14461if ac_fn_c_try_link "$LINENO"; then :
14462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14463$as_echo "yes" >&6; }
14464     DCFG_MINFO_BRACKETING=true
14465else
14466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14467$as_echo "no" >&6; }
14468     DCFG_MINFO_BRACKETING=false
14469fi
14470rm -f core conftest.err conftest.$ac_objext \
14471    conftest$ac_exeext conftest.$ac_ext
14472
14473   if test "$DCFG_MINFO_BRACKETING" = "true"; then
14474  DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14475  DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14476else
14477  DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14478  DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14479fi
14480
14481  ac_ext=c
14482ac_cpp='$CPP $CPPFLAGS'
14483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14485ac_compiler_gnu=$ac_cv_c_compiler_gnu
14486
14487
14488
14489  ac_ext=c
14490ac_cpp='$CPP $CPPFLAGS'
14491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14493ac_compiler_gnu=$ac_cv_c_compiler_gnu
14494
14495  ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14496"
14497if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14498  DCFG_DLPI_TLS_MODID=true
14499else
14500  DCFG_DLPI_TLS_MODID=false
14501fi
14502
14503
14504  ac_ext=c
14505ac_cpp='$CPP $CPPFLAGS'
14506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14508ac_compiler_gnu=$ac_cv_c_compiler_gnu
14509
14510
14511
14512  case $target in
14513    i?86-*-solaris2.* | x86_64-*-solaris2.*)
14514      # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14515      # relocs.  Work around by disabling TLS transitions.  Not necessary
14516      # on 32-bit x86, but cannot be distinguished reliably in specs.
14517      druntime_ld_prog=`$CC -print-prog-name=ld`
14518      druntime_ld_gld=no
14519      druntime_ld_relax_transtls=no
14520      if test -n "$druntime_ld_prog" \
14521         && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14522        druntime_ld_gld=yes
14523      else
14524        echo 'int main (void) { return 0; }' > conftest.c
14525        save_LDFLAGS="$LDFLAGS"
14526        LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14527        if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14528          druntime_ld_relax_transtls=yes
14529        fi
14530        LDFLAGS="$save_LDFLAGS"
14531        rm -f conftest.c conftest
14532      fi
14533      if test "$druntime_ld_relax_transtls" = "yes"; then
14534        OS_LINK_SPEC='-z relax=transtls'
14535      fi
14536      ;;
14537  esac
14538
14539
14540
14541  ac_ext=c
14542ac_cpp='$CPP $CPPFLAGS'
14543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14545ac_compiler_gnu=$ac_cv_c_compiler_gnu
14546
14547  DCFG_HAVE_QSORT_R=false
14548  ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14549if test "x$ac_cv_func_qsort_r" = xyes; then :
14550  DCFG_HAVE_QSORT_R=true
14551fi
14552
14553
14554  ac_ext=c
14555ac_cpp='$CPP $CPPFLAGS'
14556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14558ac_compiler_gnu=$ac_cv_c_compiler_gnu
14559
14560
14561
14562
14563
14564  gdc_save_DFLAGS=$GDCFLAGS
14565  GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14566
14567  ac_ext=d
14568ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14569ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14570ac_compiler_gnu=yes
14571
14572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14573$as_echo_n "checking for library containing malloc... " >&6; }
14574if ${ac_cv_search_malloc+:} false; then :
14575  $as_echo_n "(cached) " >&6
14576else
14577  ac_func_search_save_LIBS=$LIBS
14578cat > conftest.$ac_ext <<_ACEOF
14579module mod;
14580 extern(C) int malloc();
14581
14582extern(C) int main() {
14583  malloc(); return 0;
14584}
14585_ACEOF
14586for ac_lib in '' c; do
14587  if test -z "$ac_lib"; then
14588    ac_res="none required"
14589  else
14590    ac_res=-l$ac_lib
14591    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14592  fi
14593  if ac_fn_d_try_link "$LINENO"; then :
14594  ac_cv_search_malloc=$ac_res
14595fi
14596rm -f core conftest.err conftest.$ac_objext \
14597    conftest$ac_exeext
14598  if ${ac_cv_search_malloc+:} false; then :
14599  break
14600fi
14601done
14602if ${ac_cv_search_malloc+:} false; then :
14603
14604else
14605  ac_cv_search_malloc=no
14606fi
14607rm conftest.$ac_ext
14608LIBS=$ac_func_search_save_LIBS
14609fi
14610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14611$as_echo "$ac_cv_search_malloc" >&6; }
14612ac_res=$ac_cv_search_malloc
14613if test "$ac_res" != no; then :
14614  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14615
14616fi
14617
14618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14619$as_echo_n "checking for library containing pthread_create... " >&6; }
14620if ${ac_cv_search_pthread_create+:} false; then :
14621  $as_echo_n "(cached) " >&6
14622else
14623  ac_func_search_save_LIBS=$LIBS
14624cat > conftest.$ac_ext <<_ACEOF
14625module mod;
14626 extern(C) int pthread_create();
14627
14628extern(C) int main() {
14629  pthread_create(); return 0;
14630}
14631_ACEOF
14632for ac_lib in '' pthread; do
14633  if test -z "$ac_lib"; then
14634    ac_res="none required"
14635  else
14636    ac_res=-l$ac_lib
14637    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14638  fi
14639  if ac_fn_d_try_link "$LINENO"; then :
14640  ac_cv_search_pthread_create=$ac_res
14641fi
14642rm -f core conftest.err conftest.$ac_objext \
14643    conftest$ac_exeext
14644  if ${ac_cv_search_pthread_create+:} false; then :
14645  break
14646fi
14647done
14648if ${ac_cv_search_pthread_create+:} false; then :
14649
14650else
14651  ac_cv_search_pthread_create=no
14652fi
14653rm conftest.$ac_ext
14654LIBS=$ac_func_search_save_LIBS
14655fi
14656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14657$as_echo "$ac_cv_search_pthread_create" >&6; }
14658ac_res=$ac_cv_search_pthread_create
14659if test "$ac_res" != no; then :
14660  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14661
14662fi
14663
14664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14665$as_echo_n "checking for library containing cosf... " >&6; }
14666if ${ac_cv_search_cosf+:} false; then :
14667  $as_echo_n "(cached) " >&6
14668else
14669  ac_func_search_save_LIBS=$LIBS
14670cat > conftest.$ac_ext <<_ACEOF
14671module mod;
14672 extern(C) int cosf();
14673
14674extern(C) int main() {
14675  cosf(); return 0;
14676}
14677_ACEOF
14678for ac_lib in '' m; do
14679  if test -z "$ac_lib"; then
14680    ac_res="none required"
14681  else
14682    ac_res=-l$ac_lib
14683    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14684  fi
14685  if ac_fn_d_try_link "$LINENO"; then :
14686  ac_cv_search_cosf=$ac_res
14687fi
14688rm -f core conftest.err conftest.$ac_objext \
14689    conftest$ac_exeext
14690  if ${ac_cv_search_cosf+:} false; then :
14691  break
14692fi
14693done
14694if ${ac_cv_search_cosf+:} false; then :
14695
14696else
14697  ac_cv_search_cosf=no
14698fi
14699rm conftest.$ac_ext
14700LIBS=$ac_func_search_save_LIBS
14701fi
14702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14703$as_echo "$ac_cv_search_cosf" >&6; }
14704ac_res=$ac_cv_search_cosf
14705if test "$ac_res" != no; then :
14706  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14707
14708fi
14709
14710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14711$as_echo_n "checking for library containing clock_gettime... " >&6; }
14712if ${ac_cv_search_clock_gettime+:} false; then :
14713  $as_echo_n "(cached) " >&6
14714else
14715  ac_func_search_save_LIBS=$LIBS
14716cat > conftest.$ac_ext <<_ACEOF
14717module mod;
14718 extern(C) int clock_gettime();
14719
14720extern(C) int main() {
14721  clock_gettime(); return 0;
14722}
14723_ACEOF
14724for ac_lib in '' rt; do
14725  if test -z "$ac_lib"; then
14726    ac_res="none required"
14727  else
14728    ac_res=-l$ac_lib
14729    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14730  fi
14731  if ac_fn_d_try_link "$LINENO"; then :
14732  ac_cv_search_clock_gettime=$ac_res
14733fi
14734rm -f core conftest.err conftest.$ac_objext \
14735    conftest$ac_exeext
14736  if ${ac_cv_search_clock_gettime+:} false; then :
14737  break
14738fi
14739done
14740if ${ac_cv_search_clock_gettime+:} false; then :
14741
14742else
14743  ac_cv_search_clock_gettime=no
14744fi
14745rm conftest.$ac_ext
14746LIBS=$ac_func_search_save_LIBS
14747fi
14748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14749$as_echo "$ac_cv_search_clock_gettime" >&6; }
14750ac_res=$ac_cv_search_clock_gettime
14751if test "$ac_res" != no; then :
14752  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14753
14754fi
14755
14756
14757  # This checks to see if the host supports the compiler-generated builtins
14758  # for atomic operations for various integral sizes. Note, this is intended
14759  # to be an all-or-nothing switch, so all the atomic operations that are
14760  # used should be checked.
14761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14762$as_echo_n "checking for atomic builtins for byte... " >&6; }
14763  if ${druntime_cv_atomic_byte+:} false; then :
14764  $as_echo_n "(cached) " >&6
14765else
14766
14767    cat > conftest.$ac_ext <<_ACEOF
14768module mod;
14769import gcc.builtins;
14770
14771extern(C) int main() {
14772
14773      shared(byte) c1;
14774       byte c2, c3;
14775       __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14776       __atomic_load_1(&c1, 5);
14777       __atomic_store_1(&c1, c2, 5);
14778       return 0;
14779
14780}
14781_ACEOF
14782if ac_fn_d_try_link "$LINENO"; then :
14783  druntime_cv_atomic_byte=yes
14784else
14785  druntime_cv_atomic_byte=no
14786fi
14787rm -f core conftest.err conftest.$ac_objext \
14788    conftest$ac_exeext conftest.$ac_ext
14789
14790fi
14791
14792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14793$as_echo "$druntime_cv_atomic_byte" >&6; }
14794
14795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14796$as_echo_n "checking for atomic builtins for short... " >&6; }
14797  if ${druntime_cv_atomic_short+:} false; then :
14798  $as_echo_n "(cached) " >&6
14799else
14800
14801    cat > conftest.$ac_ext <<_ACEOF
14802module mod;
14803import gcc.builtins;
14804
14805extern(C) int main() {
14806
14807      shared(short) c1;
14808       short c2, c3;
14809       __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14810       __atomic_load_2(&c1, 5);
14811       __atomic_store_2(&c1, c2, 5);
14812       return 0;
14813
14814}
14815_ACEOF
14816if ac_fn_d_try_link "$LINENO"; then :
14817  druntime_cv_atomic_short=yes
14818else
14819  druntime_cv_atomic_short=no
14820fi
14821rm -f core conftest.err conftest.$ac_objext \
14822    conftest$ac_exeext conftest.$ac_ext
14823
14824fi
14825
14826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14827$as_echo "$druntime_cv_atomic_short" >&6; }
14828
14829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14830$as_echo_n "checking for atomic builtins for int... " >&6; }
14831  if ${druntime_cv_atomic_int+:} false; then :
14832  $as_echo_n "(cached) " >&6
14833else
14834
14835    cat > conftest.$ac_ext <<_ACEOF
14836module mod;
14837import gcc.builtins;
14838
14839extern(C) int main() {
14840
14841      shared(int) c1;
14842       int c2, c3;
14843       __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14844       __atomic_load_4(&c1, 5);
14845       __atomic_store_4(&c1, c2, 5);
14846       return 0;
14847
14848}
14849_ACEOF
14850if ac_fn_d_try_link "$LINENO"; then :
14851  druntime_cv_atomic_int=yes
14852else
14853  druntime_cv_atomic_int=no
14854fi
14855rm -f core conftest.err conftest.$ac_objext \
14856    conftest$ac_exeext conftest.$ac_ext
14857
14858fi
14859
14860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14861$as_echo "$druntime_cv_atomic_int" >&6; }
14862
14863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14864$as_echo_n "checking for atomic builtins for long... " >&6; }
14865  if ${druntime_cv_atomic_long+:} false; then :
14866  $as_echo_n "(cached) " >&6
14867else
14868
14869    cat > conftest.$ac_ext <<_ACEOF
14870module mod;
14871import gcc.builtins;
14872
14873extern(C) int main() {
14874
14875       shared(long) c1;
14876       long c2, c3;
14877       __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14878       __atomic_load_8(&c1, 5);
14879       __atomic_store_8(&c1, c2, 5);
14880       return 0;
14881
14882}
14883_ACEOF
14884if ac_fn_d_try_link "$LINENO"; then :
14885  druntime_cv_atomic_long=yes
14886else
14887  druntime_cv_atomic_long=no
14888fi
14889rm -f core conftest.err conftest.$ac_objext \
14890    conftest$ac_exeext conftest.$ac_ext
14891
14892fi
14893
14894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14895$as_echo "$druntime_cv_atomic_long" >&6; }
14896
14897  # Have atomic builtin support if all but the long test above passes.
14898  DCFG_HAVE_ATOMIC_BUILTINS=false
14899  if test "$druntime_cv_atomic_byte" = yes \
14900     && test "$druntime_cv_atomic_short" = yes \
14901     && test "$druntime_cv_atomic_int" = yes; then \
14902    DCFG_HAVE_ATOMIC_BUILTINS=true
14903  fi
14904
14905  # Have 64-bit atomic support if the long test above passes.
14906  DCFG_HAVE_64BIT_ATOMICS=false
14907  if test "$druntime_cv_atomic_long" = yes; then
14908    DCFG_HAVE_64BIT_ATOMICS=true
14909  fi
14910
14911
14912
14913
14914  ac_ext=c
14915ac_cpp='$CPP $CPPFLAGS'
14916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14918ac_compiler_gnu=$ac_cv_c_compiler_gnu
14919
14920
14921  GDCFLAGS=$gdc_save_DFLAGS
14922
14923
14924
14925
14926# Check whether --with-libatomic was given.
14927if test "${with_libatomic+set}" = set; then :
14928  withval=$with_libatomic;
14929fi
14930
14931
14932  DCFG_HAVE_LIBATOMIC=false
14933  LIBATOMIC=
14934  if test "x$enable_libatomic" != "xno" && test "x$with_libatomic" != "xno"; then :
14935
14936    DCFG_HAVE_LIBATOMIC=true
14937    LIBATOMIC=../../libatomic/libatomic_convenience.la
14938
14939else
14940
14941    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14942$as_echo_n "checking for libatomic... " >&6; }
14943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14944$as_echo "disabled" >&6; }
14945
14946fi
14947
14948
14949
14950
14951
14952  ac_ext=c
14953ac_cpp='$CPP $CPPFLAGS'
14954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14956ac_compiler_gnu=$ac_cv_c_compiler_gnu
14957
14958  BACKTRACE_SUPPORTED=false
14959  BACKTRACE_USES_MALLOC=false
14960  BACKTRACE_SUPPORTS_THREADS=false
14961  LIBBACKTRACE=""
14962
14963
14964# Check whether --with-libbacktrace was given.
14965if test "${with_libbacktrace+set}" = set; then :
14966  withval=$with_libbacktrace;
14967fi
14968
14969
14970  if test "x$enable_libbacktrace" != "xno" && test "x$with_libbacktrace" != "xno"; then :
14971
14972    LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14973
14974    gdc_save_CPPFLAGS=$CPPFLAGS
14975    CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14976
14977    ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14978if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14979  have_libbacktrace_h=true
14980else
14981  have_libbacktrace_h=false
14982fi
14983
14984
14985
14986    if $have_libbacktrace_h; then
14987      { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14988$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14989      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990/* end confdefs.h.  */
14991
14992      #include <backtrace-supported.h>
14993      #if BACKTRACE_SUPPORTED
14994        FOUND_LIBBACKTRACE_RESULT_GDC
14995      #endif
14996
14997_ACEOF
14998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14999  $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
15000  BACKTRACE_SUPPORTED=true
15001else
15002  BACKTRACE_SUPPORTED=false
15003fi
15004rm -f conftest*
15005
15006      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
15007$as_echo "$BACKTRACE_SUPPORTED" >&6; }
15008
15009      { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
15010$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
15011      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012/* end confdefs.h.  */
15013
15014      #include <backtrace-supported.h>
15015      #if BACKTRACE_USES_MALLOC
15016        FOUND_LIBBACKTRACE_RESULT_GDC
15017      #endif
15018
15019_ACEOF
15020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15021  $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
15022  BACKTRACE_USES_MALLOC=true
15023else
15024  BACKTRACE_USES_MALLOC=false
15025fi
15026rm -f conftest*
15027
15028      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
15029$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
15030
15031      { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
15032$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
15033      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034/* end confdefs.h.  */
15035
15036      #include <backtrace-supported.h>
15037      #if BACKTRACE_SUPPORTS_THREADS
15038        FOUND_LIBBACKTRACE_RESULT_GDC
15039      #endif
15040
15041_ACEOF
15042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15043  $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
15044  BACKTRACE_SUPPORTS_THREADS=true
15045else
15046  BACKTRACE_SUPPORTS_THREADS=false
15047fi
15048rm -f conftest*
15049
15050      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
15051$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
15052    fi
15053    CPPFLAGS=$gdc_save_CPPFLAGS
15054
15055else
15056
15057    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
15058$as_echo_n "checking for libbacktrace... " >&6; }
15059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15060$as_echo "disabled" >&6; }
15061
15062fi
15063
15064
15065
15066
15067
15068  ac_ext=c
15069ac_cpp='$CPP $CPPFLAGS'
15070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15072ac_compiler_gnu=$ac_cv_c_compiler_gnu
15073
15074
15075
15076  # Libtool has already checked this, so re-use the inferred dlopen lib.
15077  if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15078
15079    LIBS="$LIBS $lt_cv_dlopen_libs"
15080
15081fi
15082
15083
15084                            druntime_check_both=no
15085  ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15086if test "x$ac_cv_func_connect" = xyes; then :
15087
15088else
15089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15090$as_echo_n "checking for connect in -lsocket... " >&6; }
15091if ${ac_cv_lib_socket_connect+:} false; then :
15092  $as_echo_n "(cached) " >&6
15093else
15094  ac_check_lib_save_LIBS=$LIBS
15095LIBS="-lsocket  $LIBS"
15096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097/* end confdefs.h.  */
15098
15099/* Override any GCC internal prototype to avoid an error.
15100   Use char because int might match the return type of a GCC
15101   builtin and then its argument prototype would still apply.  */
15102#ifdef __cplusplus
15103extern "C"
15104#endif
15105char connect ();
15106int
15107main ()
15108{
15109return connect ();
15110  ;
15111  return 0;
15112}
15113_ACEOF
15114if ac_fn_c_try_link "$LINENO"; then :
15115  ac_cv_lib_socket_connect=yes
15116else
15117  ac_cv_lib_socket_connect=no
15118fi
15119rm -f core conftest.err conftest.$ac_objext \
15120    conftest$ac_exeext conftest.$ac_ext
15121LIBS=$ac_check_lib_save_LIBS
15122fi
15123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15124$as_echo "$ac_cv_lib_socket_connect" >&6; }
15125if test "x$ac_cv_lib_socket_connect" = xyes; then :
15126  LIBS="$LIBS -lsocket"
15127else
15128  druntime_check_both=yes
15129fi
15130
15131fi
15132
15133  if test "$druntime_check_both" = "yes"; then
15134    druntime_old_libs=$LIBS
15135    LIBS="$LIBS -lsocket -lnsl"
15136    ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15137if test "x$ac_cv_func_accept" = xyes; then :
15138
15139else
15140  LIBS=$druntime_old_libs
15141fi
15142
15143  fi
15144  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15145if test "x$ac_cv_func_gethostbyname" = xyes; then :
15146
15147else
15148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15149$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15150if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15151  $as_echo_n "(cached) " >&6
15152else
15153  ac_check_lib_save_LIBS=$LIBS
15154LIBS="-lnsl  $LIBS"
15155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156/* end confdefs.h.  */
15157
15158/* Override any GCC internal prototype to avoid an error.
15159   Use char because int might match the return type of a GCC
15160   builtin and then its argument prototype would still apply.  */
15161#ifdef __cplusplus
15162extern "C"
15163#endif
15164char gethostbyname ();
15165int
15166main ()
15167{
15168return gethostbyname ();
15169  ;
15170  return 0;
15171}
15172_ACEOF
15173if ac_fn_c_try_link "$LINENO"; then :
15174  ac_cv_lib_nsl_gethostbyname=yes
15175else
15176  ac_cv_lib_nsl_gethostbyname=no
15177fi
15178rm -f core conftest.err conftest.$ac_objext \
15179    conftest$ac_exeext conftest.$ac_ext
15180LIBS=$ac_check_lib_save_LIBS
15181fi
15182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15183$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15184if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15185  LIBS="$LIBS -lnsl"
15186fi
15187
15188fi
15189
15190
15191
15192  # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15193  # "yes" for targets that have 'version = AsmExternal'.
15194  druntime_fiber_asm_external=no
15195  case "$target_cpu" in
15196    aarch64* | \
15197    arm* | \
15198    i[34567]86|x86_64 | \
15199    powerpc)
15200      druntime_fiber_asm_external=yes
15201      ;;
15202  esac
15203  if test "$druntime_fiber_asm_external" = no; then
15204    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15205$as_echo_n "checking for library containing swapcontext... " >&6; }
15206if ${ac_cv_search_swapcontext+:} false; then :
15207  $as_echo_n "(cached) " >&6
15208else
15209  ac_func_search_save_LIBS=$LIBS
15210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211/* end confdefs.h.  */
15212
15213/* Override any GCC internal prototype to avoid an error.
15214   Use char because int might match the return type of a GCC
15215   builtin and then its argument prototype would still apply.  */
15216#ifdef __cplusplus
15217extern "C"
15218#endif
15219char swapcontext ();
15220int
15221main ()
15222{
15223return swapcontext ();
15224  ;
15225  return 0;
15226}
15227_ACEOF
15228for ac_lib in '' c ucontext; do
15229  if test -z "$ac_lib"; then
15230    ac_res="none required"
15231  else
15232    ac_res=-l$ac_lib
15233    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15234  fi
15235  if ac_fn_c_try_link "$LINENO"; then :
15236  ac_cv_search_swapcontext=$ac_res
15237fi
15238rm -f core conftest.err conftest.$ac_objext \
15239    conftest$ac_exeext
15240  if ${ac_cv_search_swapcontext+:} false; then :
15241  break
15242fi
15243done
15244if ${ac_cv_search_swapcontext+:} false; then :
15245
15246else
15247  ac_cv_search_swapcontext=no
15248fi
15249rm conftest.$ac_ext
15250LIBS=$ac_func_search_save_LIBS
15251fi
15252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15253$as_echo "$ac_cv_search_swapcontext" >&6; }
15254ac_res=$ac_cv_search_swapcontext
15255if test "$ac_res" != no; then :
15256  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15257
15258else
15259  as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15260fi
15261
15262  fi
15263
15264
15265  ac_ext=c
15266ac_cpp='$CPP $CPPFLAGS'
15267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15269ac_compiler_gnu=$ac_cv_c_compiler_gnu
15270
15271  LIBZ=""
15272
15273
15274# Check whether --with-target-system-zlib was given.
15275if test "${with_target_system_zlib+set}" = set; then :
15276  withval=$with_target_system_zlib;
15277else
15278  with_target_system_zlib=no
15279fi
15280
15281
15282  case "$with_target_system_zlib" in
15283    yes|no|auto) ;;
15284    *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15285  esac
15286
15287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15288$as_echo_n "checking for system zlib... " >&6; }
15289  save_LIBS=$LIBS
15290  LIBS="$LIBS -lz"
15291      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292/* end confdefs.h.  */
15293#include <zlib.h>
15294int
15295main ()
15296{
15297gzopen("none", "rb")
15298  ;
15299  return 0;
15300}
15301_ACEOF
15302if ac_fn_c_try_link "$LINENO"; then :
15303
15304      if test "$cross_compiling" = yes; then :
15305          system_zlib_found=no
15306
15307else
15308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309/* end confdefs.h.  */
15310
15311        #include <zlib.h>
15312        int main() {
15313          gzFile file = gzopen("none", "rb");
15314          return 0;
15315        }
15316
15317_ACEOF
15318if ac_fn_c_try_run "$LINENO"; then :
15319  system_zlib_found=yes
15320else
15321  system_zlib_found=no
15322fi
15323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15324  conftest.$ac_objext conftest.beam conftest.$ac_ext
15325fi
15326
15327
15328else
15329  system_zlib_found=no
15330fi
15331rm -f core conftest.err conftest.$ac_objext \
15332    conftest$ac_exeext conftest.$ac_ext
15333  LIBS=$save_LIBS
15334
15335  if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15336    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15337$as_echo "found" >&6; }
15338    LIBS="$LIBS -lz"
15339  elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15340    as_fn_error $? "system zlib required but not found" "$LINENO" 5
15341  else
15342    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15343$as_echo "just compiled" >&6; }
15344    LIBZ=../../zlib/libz_convenience.la
15345  fi
15346
15347
15348  ac_ext=c
15349ac_cpp='$CPP $CPPFLAGS'
15350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15352ac_compiler_gnu=$ac_cv_c_compiler_gnu
15353
15354
15355
15356
15357
15358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15359$as_echo_n "checking D GCC version... " >&6; }
15360  gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15362$as_echo "$gcc_version" >&6; }
15363
15364
15365
15366# Check whether --with-cross-host was given.
15367if test "${with_cross_host+set}" = set; then :
15368  withval=$with_cross_host;
15369fi
15370
15371
15372  libphobos_toolexecdir=no
15373  libphobos_toolexeclibdir=no
15374
15375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15376$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15377  # Check whether --enable-version-specific-runtime-libs was given.
15378if test "${enable_version_specific_runtime_libs+set}" = set; then :
15379  enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15380      yes) version_specific_libs=yes ;;
15381      no)  version_specific_libs=no ;;
15382      *)   as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15383     esac
15384else
15385  version_specific_libs=no
15386fi
15387
15388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15389$as_echo "$version_specific_libs" >&6; }
15390
15391
15392# Check whether --with-toolexeclibdir was given.
15393if test "${with_toolexeclibdir+set}" = set; then :
15394  withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15395  /)
15396    ;;
15397  */)
15398    with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15399    ;;
15400esac
15401else
15402  with_toolexeclibdir=no
15403fi
15404
15405
15406
15407  # Version-specific runtime libs processing.
15408  if test $version_specific_libs = yes; then
15409    libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15410    libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15411  else
15412    # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15413    # Install a library built with a cross compiler in tooldir, not libdir.
15414    if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15415      libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15416      case ${with_toolexeclibdir} in
15417	no)
15418	  libphobos_toolexeclibdir='${toolexecdir}/lib'
15419	  ;;
15420	*)
15421	  libphobos_toolexeclibdir=${with_toolexeclibdir}
15422	  ;;
15423      esac
15424    else
15425      libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15426      libphobos_toolexeclibdir='${libdir}'
15427    fi
15428    multi_os_directory=`$GDC -print-multi-os-directory`
15429    case $multi_os_directory in
15430      .) ;; # Avoid trailing /.
15431      *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15432    esac
15433  fi
15434
15435
15436
15437  # Default case for install directory for D sources files.
15438  gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15439
15440
15441
15442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15443$as_echo_n "checking for --enable-libphobos... " >&6; }
15444# Check whether --enable-libphobos was given.
15445if test "${enable_libphobos+set}" = set; then :
15446  enableval=$enable_libphobos;
15447fi
15448
15449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15450$as_echo "$enable_libphobos" >&6; }
15451
15452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15453$as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15454
15455# Check whether --with-libphobos-druntime-only was given.
15456if test "${with_libphobos_druntime_only+set}" = set; then :
15457  withval=$with_libphobos_druntime_only;
15458else
15459  with_libphobos_druntime_only=auto
15460fi
15461
15462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15463$as_echo "$with_libphobos_druntime_only" >&6; }
15464
15465case "$with_libphobos_druntime_only" in
15466  yes|no|auto) ;;
15467  *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15468esac
15469
15470# See if supported.
15471unset LIBPHOBOS_SUPPORTED
15472unset LIBDRUNTIME_ONLY
15473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15474$as_echo_n "checking for host support for libphobos... " >&6; }
15475. ${srcdir}/configure.tgt
15476case ${host} in
15477  x86_64-*-solaris2.* | i?86-*-solaris2.*)
15478    # libphobos doesn't compile with the Solaris/x86 assembler due to a
15479    # relatively low linelength limit.
15480    as_prog=`$CC -print-prog-name=as`
15481    if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15482      druntime_cv_use_gas=yes;
15483    else
15484      druntime_cv_use_gas=no;
15485    fi
15486    rm -f a.out
15487    if test x$druntime_cv_use_gas = xno; then
15488      LIBPHOBOS_SUPPORTED=no
15489    fi
15490    # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15491    if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15492      LIBPHOBOS_SUPPORTED=no
15493    fi
15494    ;;
15495esac
15496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15497$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15498
15499# Decide if it's usable.
15500case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15501*:no)  use_libphobos=no  ;;
15502*:yes) use_libphobos=yes ;;
15503yes:*) use_libphobos=yes ;;
15504*:*)   use_libphobos=no  ;;
15505esac
15506 if test x$use_libphobos = xyes; then
15507  ENABLE_LIBPHOBOS_TRUE=
15508  ENABLE_LIBPHOBOS_FALSE='#'
15509else
15510  ENABLE_LIBPHOBOS_TRUE='#'
15511  ENABLE_LIBPHOBOS_FALSE=
15512fi
15513
15514
15515# Decide if only libdruntime should be built.
15516case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15517*:no)  only_libdruntime=no  ;;
15518*:yes) only_libdruntime=yes ;;
15519yes:*) only_libdruntime=yes ;;
15520*:*)   only_libdruntime=no  ;;
15521esac
15522 if test x$only_libdruntime = xyes; then
15523  ENABLE_LIBDRUNTIME_ONLY_TRUE=
15524  ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15525else
15526  ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15527  ENABLE_LIBDRUNTIME_ONLY_FALSE=
15528fi
15529
15530
15531# Enable expensive internal checks
15532# Check whether --enable-libphobos-checking was given.
15533if test "${enable_libphobos_checking+set}" = set; then :
15534  enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15535else
15536  ac_checking_flags=release
15537fi
15538
15539IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
15540for check in release $ac_checking_flags
15541do
15542	case $check in
15543	# These set all the flags to specific states
15544	yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15545	no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15546	# These enable particular checks
15547	assert) ASSERT_FLAG="-fassert" ;;
15548	# Accept
15549	*) ;;
15550	esac
15551done
15552IFS="$ac_save_IFS"
15553CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15554
15555
15556# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15557if test "$DCFG_MINFO_BRACKETING" = "false"; then
15558    DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15559else
15560    DRTSTUFF_SPEC=/dev/null
15561fi
15562
15563
15564# Add dependencies for libgphobos.spec file
15565SPEC_PHOBOS_DEPS="$LIBS"
15566
15567
15568# Libdruntime / phobos soname version
15569libtool_VERSION=2:0:0
15570
15571
15572# Set default flags (after DRUNTIME_WERROR!)
15573if test -z "$GDCFLAGS"; then
15574    GDCFLAGS="-g -O2"
15575fi
15576
15577
15578WARN_DFLAGS="-Wall $WERROR_FLAG"
15579
15580
15581# Sanity check for the cross-compilation case:
15582ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15583if test "x$ac_cv_header_stdio_h" = xyes; then :
15584  :
15585else
15586  as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15587fi
15588
15589
15590
15591ac_config_files="$ac_config_files Makefile"
15592
15593
15594ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15595
15596ac_config_files="$ac_config_files src/libgphobos.spec"
15597
15598ac_config_files="$ac_config_files testsuite/testsuite_flags"
15599
15600
15601# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15602# that multilib installs will end up installed in the correct place.
15603# The testsuite needs it for multilib-aware ABI baseline files.
15604# To work around this not being passed down from config-ml.in ->
15605# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15606# append it here.  Only modify Makefiles that have just been created.
15607#
15608# Also, get rid of this simulated-VPATH thing that automake does.
15609ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15610
15611
15612cat >confcache <<\_ACEOF
15613# This file is a shell script that caches the results of configure
15614# tests run on this system so they can be shared between configure
15615# scripts and configure runs, see configure's option --config-cache.
15616# It is not useful on other systems.  If it contains results you don't
15617# want to keep, you may remove or edit it.
15618#
15619# config.status only pays attention to the cache file if you give it
15620# the --recheck option to rerun configure.
15621#
15622# `ac_cv_env_foo' variables (set or unset) will be overridden when
15623# loading this file, other *unset* `ac_cv_foo' will be assigned the
15624# following values.
15625
15626_ACEOF
15627
15628# The following way of writing the cache mishandles newlines in values,
15629# but we know of no workaround that is simple, portable, and efficient.
15630# So, we kill variables containing newlines.
15631# Ultrix sh set writes to stderr and can't be redirected directly,
15632# and sets the high bit in the cache file unless we assign to the vars.
15633(
15634  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15635    eval ac_val=\$$ac_var
15636    case $ac_val in #(
15637    *${as_nl}*)
15638      case $ac_var in #(
15639      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15640$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15641      esac
15642      case $ac_var in #(
15643      _ | IFS | as_nl) ;; #(
15644      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15645      *) { eval $ac_var=; unset $ac_var;} ;;
15646      esac ;;
15647    esac
15648  done
15649
15650  (set) 2>&1 |
15651    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15652    *${as_nl}ac_space=\ *)
15653      # `set' does not quote correctly, so add quotes: double-quote
15654      # substitution turns \\\\ into \\, and sed turns \\ into \.
15655      sed -n \
15656	"s/'/'\\\\''/g;
15657	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15658      ;; #(
15659    *)
15660      # `set' quotes correctly as required by POSIX, so do not add quotes.
15661      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15662      ;;
15663    esac |
15664    sort
15665) |
15666  sed '
15667     /^ac_cv_env_/b end
15668     t clear
15669     :clear
15670     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15671     t end
15672     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15673     :end' >>confcache
15674if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15675  if test -w "$cache_file"; then
15676    if test "x$cache_file" != "x/dev/null"; then
15677      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15678$as_echo "$as_me: updating cache $cache_file" >&6;}
15679      if test ! -f "$cache_file" || test -h "$cache_file"; then
15680	cat confcache >"$cache_file"
15681      else
15682        case $cache_file in #(
15683        */* | ?:*)
15684	  mv -f confcache "$cache_file"$$ &&
15685	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15686        *)
15687	  mv -f confcache "$cache_file" ;;
15688	esac
15689      fi
15690    fi
15691  else
15692    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15693$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15694  fi
15695fi
15696rm -f confcache
15697
15698test "x$prefix" = xNONE && prefix=$ac_default_prefix
15699# Let make expand exec_prefix.
15700test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15701
15702DEFS=-DHAVE_CONFIG_H
15703
15704ac_libobjs=
15705ac_ltlibobjs=
15706U=
15707for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15708  # 1. Remove the extension, and $U if already installed.
15709  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15710  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15711  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15712  #    will be set to the directory where LIBOBJS objects are built.
15713  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15714  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15715done
15716LIBOBJS=$ac_libobjs
15717
15718LTLIBOBJS=$ac_ltlibobjs
15719
15720
15721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15722$as_echo_n "checking that generated files are newer than configure... " >&6; }
15723   if test -n "$am_sleep_pid"; then
15724     # Hide warnings about reused PIDs.
15725     wait $am_sleep_pid 2>/dev/null
15726   fi
15727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15728$as_echo "done" >&6; }
15729 if test -n "$EXEEXT"; then
15730  am__EXEEXT_TRUE=
15731  am__EXEEXT_FALSE='#'
15732else
15733  am__EXEEXT_TRUE='#'
15734  am__EXEEXT_FALSE=
15735fi
15736
15737if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15738  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15739Usually this means the macro was only invoked conditionally." "$LINENO" 5
15740fi
15741if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15742  as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15743Usually this means the macro was only invoked conditionally." "$LINENO" 5
15744fi
15745if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15746  as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15747Usually this means the macro was only invoked conditionally." "$LINENO" 5
15748fi
15749if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15750  as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15751Usually this means the macro was only invoked conditionally." "$LINENO" 5
15752fi
15753if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15754  as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15755Usually this means the macro was only invoked conditionally." "$LINENO" 5
15756fi
15757if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15758  as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15759Usually this means the macro was only invoked conditionally." "$LINENO" 5
15760fi
15761if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15762  as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15763Usually this means the macro was only invoked conditionally." "$LINENO" 5
15764fi
15765if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15766  as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15767Usually this means the macro was only invoked conditionally." "$LINENO" 5
15768fi
15769if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15770  as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15771Usually this means the macro was only invoked conditionally." "$LINENO" 5
15772fi
15773if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15774  as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15775Usually this means the macro was only invoked conditionally." "$LINENO" 5
15776fi
15777if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15778  as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15779Usually this means the macro was only invoked conditionally." "$LINENO" 5
15780fi
15781if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15782  as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15783Usually this means the macro was only invoked conditionally." "$LINENO" 5
15784fi
15785if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15786  as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15787Usually this means the macro was only invoked conditionally." "$LINENO" 5
15788fi
15789if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15790  as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15791Usually this means the macro was only invoked conditionally." "$LINENO" 5
15792fi
15793if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15794  as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15795Usually this means the macro was only invoked conditionally." "$LINENO" 5
15796fi
15797if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15798  as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15799Usually this means the macro was only invoked conditionally." "$LINENO" 5
15800fi
15801if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15802  as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15803Usually this means the macro was only invoked conditionally." "$LINENO" 5
15804fi
15805if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15806  as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15807Usually this means the macro was only invoked conditionally." "$LINENO" 5
15808fi
15809if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15810  as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15811Usually this means the macro was only invoked conditionally." "$LINENO" 5
15812fi
15813if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15814  as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15815Usually this means the macro was only invoked conditionally." "$LINENO" 5
15816fi
15817if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15818  as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15819Usually this means the macro was only invoked conditionally." "$LINENO" 5
15820fi
15821if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15822  as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15823Usually this means the macro was only invoked conditionally." "$LINENO" 5
15824fi
15825if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15826  as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15827Usually this means the macro was only invoked conditionally." "$LINENO" 5
15828fi
15829
15830: "${CONFIG_STATUS=./config.status}"
15831ac_write_fail=0
15832ac_clean_files_save=$ac_clean_files
15833ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15834{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15835$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15836as_write_fail=0
15837cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15838#! $SHELL
15839# Generated by $as_me.
15840# Run this file to recreate the current configuration.
15841# Compiler output produced by configure, useful for debugging
15842# configure, is in config.log if it exists.
15843
15844debug=false
15845ac_cs_recheck=false
15846ac_cs_silent=false
15847
15848SHELL=\${CONFIG_SHELL-$SHELL}
15849export SHELL
15850_ASEOF
15851cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15852## -------------------- ##
15853## M4sh Initialization. ##
15854## -------------------- ##
15855
15856# Be more Bourne compatible
15857DUALCASE=1; export DUALCASE # for MKS sh
15858if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15859  emulate sh
15860  NULLCMD=:
15861  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15862  # is contrary to our usage.  Disable this feature.
15863  alias -g '${1+"$@"}'='"$@"'
15864  setopt NO_GLOB_SUBST
15865else
15866  case `(set -o) 2>/dev/null` in #(
15867  *posix*) :
15868    set -o posix ;; #(
15869  *) :
15870     ;;
15871esac
15872fi
15873
15874
15875as_nl='
15876'
15877export as_nl
15878# Printing a long string crashes Solaris 7 /usr/bin/printf.
15879as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15880as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15881as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15882# Prefer a ksh shell builtin over an external printf program on Solaris,
15883# but without wasting forks for bash or zsh.
15884if test -z "$BASH_VERSION$ZSH_VERSION" \
15885    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15886  as_echo='print -r --'
15887  as_echo_n='print -rn --'
15888elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15889  as_echo='printf %s\n'
15890  as_echo_n='printf %s'
15891else
15892  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15893    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15894    as_echo_n='/usr/ucb/echo -n'
15895  else
15896    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15897    as_echo_n_body='eval
15898      arg=$1;
15899      case $arg in #(
15900      *"$as_nl"*)
15901	expr "X$arg" : "X\\(.*\\)$as_nl";
15902	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15903      esac;
15904      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15905    '
15906    export as_echo_n_body
15907    as_echo_n='sh -c $as_echo_n_body as_echo'
15908  fi
15909  export as_echo_body
15910  as_echo='sh -c $as_echo_body as_echo'
15911fi
15912
15913# The user is always right.
15914if test "${PATH_SEPARATOR+set}" != set; then
15915  PATH_SEPARATOR=:
15916  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15917    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15918      PATH_SEPARATOR=';'
15919  }
15920fi
15921
15922
15923# IFS
15924# We need space, tab and new line, in precisely that order.  Quoting is
15925# there to prevent editors from complaining about space-tab.
15926# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15927# splitting by setting IFS to empty value.)
15928IFS=" ""	$as_nl"
15929
15930# Find who we are.  Look in the path if we contain no directory separator.
15931as_myself=
15932case $0 in #((
15933  *[\\/]* ) as_myself=$0 ;;
15934  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15935for as_dir in $PATH
15936do
15937  IFS=$as_save_IFS
15938  test -z "$as_dir" && as_dir=.
15939    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15940  done
15941IFS=$as_save_IFS
15942
15943     ;;
15944esac
15945# We did not find ourselves, most probably we were run as `sh COMMAND'
15946# in which case we are not to be found in the path.
15947if test "x$as_myself" = x; then
15948  as_myself=$0
15949fi
15950if test ! -f "$as_myself"; then
15951  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15952  exit 1
15953fi
15954
15955# Unset variables that we do not need and which cause bugs (e.g. in
15956# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15957# suppresses any "Segmentation fault" message there.  '((' could
15958# trigger a bug in pdksh 5.2.14.
15959for as_var in BASH_ENV ENV MAIL MAILPATH
15960do eval test x\${$as_var+set} = xset \
15961  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15962done
15963PS1='$ '
15964PS2='> '
15965PS4='+ '
15966
15967# NLS nuisances.
15968LC_ALL=C
15969export LC_ALL
15970LANGUAGE=C
15971export LANGUAGE
15972
15973# CDPATH.
15974(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15975
15976
15977# as_fn_error STATUS ERROR [LINENO LOG_FD]
15978# ----------------------------------------
15979# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15980# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15981# script with STATUS, using 1 if that was 0.
15982as_fn_error ()
15983{
15984  as_status=$1; test $as_status -eq 0 && as_status=1
15985  if test "$4"; then
15986    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15987    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15988  fi
15989  $as_echo "$as_me: error: $2" >&2
15990  as_fn_exit $as_status
15991} # as_fn_error
15992
15993
15994# as_fn_set_status STATUS
15995# -----------------------
15996# Set $? to STATUS, without forking.
15997as_fn_set_status ()
15998{
15999  return $1
16000} # as_fn_set_status
16001
16002# as_fn_exit STATUS
16003# -----------------
16004# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16005as_fn_exit ()
16006{
16007  set +e
16008  as_fn_set_status $1
16009  exit $1
16010} # as_fn_exit
16011
16012# as_fn_unset VAR
16013# ---------------
16014# Portably unset VAR.
16015as_fn_unset ()
16016{
16017  { eval $1=; unset $1;}
16018}
16019as_unset=as_fn_unset
16020# as_fn_append VAR VALUE
16021# ----------------------
16022# Append the text in VALUE to the end of the definition contained in VAR. Take
16023# advantage of any shell optimizations that allow amortized linear growth over
16024# repeated appends, instead of the typical quadratic growth present in naive
16025# implementations.
16026if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16027  eval 'as_fn_append ()
16028  {
16029    eval $1+=\$2
16030  }'
16031else
16032  as_fn_append ()
16033  {
16034    eval $1=\$$1\$2
16035  }
16036fi # as_fn_append
16037
16038# as_fn_arith ARG...
16039# ------------------
16040# Perform arithmetic evaluation on the ARGs, and store the result in the
16041# global $as_val. Take advantage of shells that can avoid forks. The arguments
16042# must be portable across $(()) and expr.
16043if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16044  eval 'as_fn_arith ()
16045  {
16046    as_val=$(( $* ))
16047  }'
16048else
16049  as_fn_arith ()
16050  {
16051    as_val=`expr "$@" || test $? -eq 1`
16052  }
16053fi # as_fn_arith
16054
16055
16056if expr a : '\(a\)' >/dev/null 2>&1 &&
16057   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16058  as_expr=expr
16059else
16060  as_expr=false
16061fi
16062
16063if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16064  as_basename=basename
16065else
16066  as_basename=false
16067fi
16068
16069if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16070  as_dirname=dirname
16071else
16072  as_dirname=false
16073fi
16074
16075as_me=`$as_basename -- "$0" ||
16076$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16077	 X"$0" : 'X\(//\)$' \| \
16078	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16079$as_echo X/"$0" |
16080    sed '/^.*\/\([^/][^/]*\)\/*$/{
16081	    s//\1/
16082	    q
16083	  }
16084	  /^X\/\(\/\/\)$/{
16085	    s//\1/
16086	    q
16087	  }
16088	  /^X\/\(\/\).*/{
16089	    s//\1/
16090	    q
16091	  }
16092	  s/.*/./; q'`
16093
16094# Avoid depending upon Character Ranges.
16095as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16096as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16097as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16098as_cr_digits='0123456789'
16099as_cr_alnum=$as_cr_Letters$as_cr_digits
16100
16101ECHO_C= ECHO_N= ECHO_T=
16102case `echo -n x` in #(((((
16103-n*)
16104  case `echo 'xy\c'` in
16105  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16106  xy)  ECHO_C='\c';;
16107  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16108       ECHO_T='	';;
16109  esac;;
16110*)
16111  ECHO_N='-n';;
16112esac
16113
16114rm -f conf$$ conf$$.exe conf$$.file
16115if test -d conf$$.dir; then
16116  rm -f conf$$.dir/conf$$.file
16117else
16118  rm -f conf$$.dir
16119  mkdir conf$$.dir 2>/dev/null
16120fi
16121if (echo >conf$$.file) 2>/dev/null; then
16122  if ln -s conf$$.file conf$$ 2>/dev/null; then
16123    as_ln_s='ln -s'
16124    # ... but there are two gotchas:
16125    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16126    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16127    # In both cases, we have to default to `cp -pR'.
16128    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16129      as_ln_s='cp -pR'
16130  elif ln conf$$.file conf$$ 2>/dev/null; then
16131    as_ln_s=ln
16132  else
16133    as_ln_s='cp -pR'
16134  fi
16135else
16136  as_ln_s='cp -pR'
16137fi
16138rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16139rmdir conf$$.dir 2>/dev/null
16140
16141
16142# as_fn_mkdir_p
16143# -------------
16144# Create "$as_dir" as a directory, including parents if necessary.
16145as_fn_mkdir_p ()
16146{
16147
16148  case $as_dir in #(
16149  -*) as_dir=./$as_dir;;
16150  esac
16151  test -d "$as_dir" || eval $as_mkdir_p || {
16152    as_dirs=
16153    while :; do
16154      case $as_dir in #(
16155      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16156      *) as_qdir=$as_dir;;
16157      esac
16158      as_dirs="'$as_qdir' $as_dirs"
16159      as_dir=`$as_dirname -- "$as_dir" ||
16160$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16161	 X"$as_dir" : 'X\(//\)[^/]' \| \
16162	 X"$as_dir" : 'X\(//\)$' \| \
16163	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16164$as_echo X"$as_dir" |
16165    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16166	    s//\1/
16167	    q
16168	  }
16169	  /^X\(\/\/\)[^/].*/{
16170	    s//\1/
16171	    q
16172	  }
16173	  /^X\(\/\/\)$/{
16174	    s//\1/
16175	    q
16176	  }
16177	  /^X\(\/\).*/{
16178	    s//\1/
16179	    q
16180	  }
16181	  s/.*/./; q'`
16182      test -d "$as_dir" && break
16183    done
16184    test -z "$as_dirs" || eval "mkdir $as_dirs"
16185  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16186
16187
16188} # as_fn_mkdir_p
16189if mkdir -p . 2>/dev/null; then
16190  as_mkdir_p='mkdir -p "$as_dir"'
16191else
16192  test -d ./-p && rmdir ./-p
16193  as_mkdir_p=false
16194fi
16195
16196
16197# as_fn_executable_p FILE
16198# -----------------------
16199# Test if FILE is an executable regular file.
16200as_fn_executable_p ()
16201{
16202  test -f "$1" && test -x "$1"
16203} # as_fn_executable_p
16204as_test_x='test -x'
16205as_executable_p=as_fn_executable_p
16206
16207# Sed expression to map a string onto a valid CPP name.
16208as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16209
16210# Sed expression to map a string onto a valid variable name.
16211as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16212
16213
16214exec 6>&1
16215## ----------------------------------- ##
16216## Main body of $CONFIG_STATUS script. ##
16217## ----------------------------------- ##
16218_ASEOF
16219test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16220
16221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16222# Save the log message, to keep $0 and so on meaningful, and to
16223# report actual input values of CONFIG_FILES etc. instead of their
16224# values after options handling.
16225ac_log="
16226This file was extended by package-unused $as_me version-unused, which was
16227generated by GNU Autoconf 2.69.  Invocation command line was
16228
16229  CONFIG_FILES    = $CONFIG_FILES
16230  CONFIG_HEADERS  = $CONFIG_HEADERS
16231  CONFIG_LINKS    = $CONFIG_LINKS
16232  CONFIG_COMMANDS = $CONFIG_COMMANDS
16233  $ $0 $@
16234
16235on `(hostname || uname -n) 2>/dev/null | sed 1q`
16236"
16237
16238_ACEOF
16239
16240case $ac_config_files in *"
16241"*) set x $ac_config_files; shift; ac_config_files=$*;;
16242esac
16243
16244case $ac_config_headers in *"
16245"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16246esac
16247
16248
16249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16250# Files that config.status was made for.
16251config_files="$ac_config_files"
16252config_headers="$ac_config_headers"
16253config_commands="$ac_config_commands"
16254
16255_ACEOF
16256
16257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16258ac_cs_usage="\
16259\`$as_me' instantiates files and other configuration actions
16260from templates according to the current configuration.  Unless the files
16261and actions are specified as TAGs, all are instantiated by default.
16262
16263Usage: $0 [OPTION]... [TAG]...
16264
16265  -h, --help       print this help, then exit
16266  -V, --version    print version number and configuration settings, then exit
16267      --config     print configuration, then exit
16268  -q, --quiet, --silent
16269                   do not print progress messages
16270  -d, --debug      don't remove temporary files
16271      --recheck    update $as_me by reconfiguring in the same conditions
16272      --file=FILE[:TEMPLATE]
16273                   instantiate the configuration file FILE
16274      --header=FILE[:TEMPLATE]
16275                   instantiate the configuration header FILE
16276
16277Configuration files:
16278$config_files
16279
16280Configuration headers:
16281$config_headers
16282
16283Configuration commands:
16284$config_commands
16285
16286Report bugs to the package provider."
16287
16288_ACEOF
16289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16291ac_cs_version="\\
16292package-unused config.status version-unused
16293configured by $0, generated by GNU Autoconf 2.69,
16294  with options \\"\$ac_cs_config\\"
16295
16296Copyright (C) 2012 Free Software Foundation, Inc.
16297This config.status script is free software; the Free Software Foundation
16298gives unlimited permission to copy, distribute and modify it."
16299
16300ac_pwd='$ac_pwd'
16301srcdir='$srcdir'
16302INSTALL='$INSTALL'
16303MKDIR_P='$MKDIR_P'
16304AWK='$AWK'
16305test -n "\$AWK" || AWK=awk
16306_ACEOF
16307
16308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16309# The default lists apply if the user does not specify any file.
16310ac_need_defaults=:
16311while test $# != 0
16312do
16313  case $1 in
16314  --*=?*)
16315    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16316    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16317    ac_shift=:
16318    ;;
16319  --*=)
16320    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16321    ac_optarg=
16322    ac_shift=:
16323    ;;
16324  *)
16325    ac_option=$1
16326    ac_optarg=$2
16327    ac_shift=shift
16328    ;;
16329  esac
16330
16331  case $ac_option in
16332  # Handling of the options.
16333  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16334    ac_cs_recheck=: ;;
16335  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16336    $as_echo "$ac_cs_version"; exit ;;
16337  --config | --confi | --conf | --con | --co | --c )
16338    $as_echo "$ac_cs_config"; exit ;;
16339  --debug | --debu | --deb | --de | --d | -d )
16340    debug=: ;;
16341  --file | --fil | --fi | --f )
16342    $ac_shift
16343    case $ac_optarg in
16344    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16345    '') as_fn_error $? "missing file argument" ;;
16346    esac
16347    as_fn_append CONFIG_FILES " '$ac_optarg'"
16348    ac_need_defaults=false;;
16349  --header | --heade | --head | --hea )
16350    $ac_shift
16351    case $ac_optarg in
16352    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16353    esac
16354    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16355    ac_need_defaults=false;;
16356  --he | --h)
16357    # Conflict between --help and --header
16358    as_fn_error $? "ambiguous option: \`$1'
16359Try \`$0 --help' for more information.";;
16360  --help | --hel | -h )
16361    $as_echo "$ac_cs_usage"; exit ;;
16362  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16363  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16364    ac_cs_silent=: ;;
16365
16366  # This is an error.
16367  -*) as_fn_error $? "unrecognized option: \`$1'
16368Try \`$0 --help' for more information." ;;
16369
16370  *) as_fn_append ac_config_targets " $1"
16371     ac_need_defaults=false ;;
16372
16373  esac
16374  shift
16375done
16376
16377ac_configure_extra_args=
16378
16379if $ac_cs_silent; then
16380  exec 6>/dev/null
16381  ac_configure_extra_args="$ac_configure_extra_args --silent"
16382fi
16383
16384_ACEOF
16385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16386if \$ac_cs_recheck; then
16387  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16388  shift
16389  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16390  CONFIG_SHELL='$SHELL'
16391  export CONFIG_SHELL
16392  exec "\$@"
16393fi
16394
16395_ACEOF
16396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16397exec 5>>config.log
16398{
16399  echo
16400  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16401## Running $as_me. ##
16402_ASBOX
16403  $as_echo "$ac_log"
16404} >&5
16405
16406_ACEOF
16407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16408#
16409# INIT-COMMANDS
16410#
16411
16412srcdir="$srcdir"
16413host="$host"
16414target="$target"
16415with_multisubdir="$with_multisubdir"
16416with_multisrctop="$with_multisrctop"
16417with_target_subdir="$with_target_subdir"
16418ac_configure_args="${multilib_arg} ${ac_configure_args}"
16419multi_basedir="$multi_basedir"
16420CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16421CC="$CC"
16422CXX="$CXX"
16423GFORTRAN="$GFORTRAN"
16424GDC="$GDC"
16425
16426
16427# The HP-UX ksh and POSIX shell print the target directory to stdout
16428# if CDPATH is set.
16429(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16430
16431sed_quote_subst='$sed_quote_subst'
16432double_quote_subst='$double_quote_subst'
16433delay_variable_subst='$delay_variable_subst'
16434macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16435macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16436enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16437enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16438pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16439enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16440SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16441ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16442host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16443host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16444host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16445build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16446build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16447build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16448SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16449Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16450GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16451EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16452FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16453LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16454NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16455LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16456max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16457ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16458exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16459lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16460lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16461lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16462reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16463reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16464OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16465deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16466file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16467AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16468AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16469STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16470RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16471old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16472old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16473old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16474lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16475CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16476CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16477compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16478GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16479lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16480lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16481lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16482lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16483objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16484MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16485lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16486lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16487lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16488lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16489lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16490need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16491DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16492NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16493LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16494OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16495OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16496libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16497shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16498extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16499archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16500enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16501export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16502whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16503compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16504old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16505old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16506archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16507archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16508module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16509module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16510with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16511allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16512no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16513hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16514hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16515hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16516hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16517hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16518hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16519hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16520hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16521inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16522link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16523fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16524always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16525export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16526exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16527include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16528prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16529file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16530variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16531need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16532need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16533version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16534runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16535shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16536shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16537libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16538library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16539soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16540install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16541postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16542postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16543finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16544finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16545hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16546sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16547sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16548hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16549enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16550enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16551enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16552old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16553striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16554LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16555reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16556reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16557old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16558compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16559GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16560lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16561lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16562lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16563lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16564lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16565archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16566enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16567export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16568whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16569compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16570old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16571old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16572archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16573archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16574module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16575module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16576with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16577allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16578no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16579hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16580hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16581hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16582hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16583hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16584hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16585hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16586hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16587inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16588link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16589fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16590always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16591export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16592exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16593include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16594prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16595file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16596hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16597
16598LTCC='$LTCC'
16599LTCFLAGS='$LTCFLAGS'
16600compiler='$compiler_DEFAULT'
16601
16602# A function that is used when there is no print builtin or printf.
16603func_fallback_echo ()
16604{
16605  eval 'cat <<_LTECHO_EOF
16606\$1
16607_LTECHO_EOF'
16608}
16609
16610# Quote evaled strings.
16611for var in SHELL \
16612ECHO \
16613SED \
16614GREP \
16615EGREP \
16616FGREP \
16617LD \
16618NM \
16619LN_S \
16620lt_SP2NL \
16621lt_NL2SP \
16622reload_flag \
16623OBJDUMP \
16624deplibs_check_method \
16625file_magic_cmd \
16626AR \
16627AR_FLAGS \
16628STRIP \
16629RANLIB \
16630CC \
16631CFLAGS \
16632compiler \
16633lt_cv_sys_global_symbol_pipe \
16634lt_cv_sys_global_symbol_to_cdecl \
16635lt_cv_sys_global_symbol_to_c_name_address \
16636lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16637lt_prog_compiler_no_builtin_flag \
16638lt_prog_compiler_wl \
16639lt_prog_compiler_pic \
16640lt_prog_compiler_static \
16641lt_cv_prog_compiler_c_o \
16642need_locks \
16643DSYMUTIL \
16644NMEDIT \
16645LIPO \
16646OTOOL \
16647OTOOL64 \
16648shrext_cmds \
16649export_dynamic_flag_spec \
16650whole_archive_flag_spec \
16651compiler_needs_object \
16652with_gnu_ld \
16653allow_undefined_flag \
16654no_undefined_flag \
16655hardcode_libdir_flag_spec \
16656hardcode_libdir_flag_spec_ld \
16657hardcode_libdir_separator \
16658fix_srcfile_path \
16659exclude_expsyms \
16660include_expsyms \
16661file_list_spec \
16662variables_saved_for_relink \
16663libname_spec \
16664library_names_spec \
16665soname_spec \
16666install_override_mode \
16667finish_eval \
16668old_striplib \
16669striplib \
16670LD_D \
16671reload_flag_D \
16672compiler_D \
16673lt_prog_compiler_no_builtin_flag_D \
16674lt_prog_compiler_wl_D \
16675lt_prog_compiler_pic_D \
16676lt_prog_compiler_static_D \
16677lt_cv_prog_compiler_c_o_D \
16678export_dynamic_flag_spec_D \
16679whole_archive_flag_spec_D \
16680compiler_needs_object_D \
16681with_gnu_ld_D \
16682allow_undefined_flag_D \
16683no_undefined_flag_D \
16684hardcode_libdir_flag_spec_D \
16685hardcode_libdir_flag_spec_ld_D \
16686hardcode_libdir_separator_D \
16687fix_srcfile_path_D \
16688exclude_expsyms_D \
16689include_expsyms_D \
16690file_list_spec_D; do
16691    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16692    *[\\\\\\\`\\"\\\$]*)
16693      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16694      ;;
16695    *)
16696      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16697      ;;
16698    esac
16699done
16700
16701# Double-quote double-evaled strings.
16702for var in reload_cmds \
16703old_postinstall_cmds \
16704old_postuninstall_cmds \
16705old_archive_cmds \
16706extract_expsyms_cmds \
16707old_archive_from_new_cmds \
16708old_archive_from_expsyms_cmds \
16709archive_cmds \
16710archive_expsym_cmds \
16711module_cmds \
16712module_expsym_cmds \
16713export_symbols_cmds \
16714prelink_cmds \
16715postinstall_cmds \
16716postuninstall_cmds \
16717finish_cmds \
16718sys_lib_search_path_spec \
16719sys_lib_dlsearch_path_spec \
16720reload_cmds_D \
16721old_archive_cmds_D \
16722old_archive_from_new_cmds_D \
16723old_archive_from_expsyms_cmds_D \
16724archive_cmds_D \
16725archive_expsym_cmds_D \
16726module_cmds_D \
16727module_expsym_cmds_D \
16728export_symbols_cmds_D \
16729prelink_cmds_D; do
16730    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16731    *[\\\\\\\`\\"\\\$]*)
16732      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16733      ;;
16734    *)
16735      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16736      ;;
16737    esac
16738done
16739
16740ac_aux_dir='$ac_aux_dir'
16741xsi_shell='$xsi_shell'
16742lt_shell_append='$lt_shell_append'
16743
16744# See if we are running on zsh, and set the options which allow our
16745# commands through without removal of \ escapes INIT.
16746if test -n "\${ZSH_VERSION+set}" ; then
16747   setopt NO_GLOB_SUBST
16748fi
16749
16750
16751    PACKAGE='$PACKAGE'
16752    VERSION='$VERSION'
16753    TIMESTAMP='$TIMESTAMP'
16754    RM='$RM'
16755    ofile='$ofile'
16756
16757
16758
16759
16760
16761
16762_ACEOF
16763
16764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16765
16766# Handling of arguments.
16767for ac_config_target in $ac_config_targets
16768do
16769  case $ac_config_target in
16770    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16771    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16772    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16773    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16774    "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16775    "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16776    "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16777    "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16778    "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16779    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16780    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16781
16782  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16783  esac
16784done
16785
16786
16787# If the user did not use the arguments to specify the items to instantiate,
16788# then the envvar interface is used.  Set only those that are not.
16789# We use the long form for the default assignment because of an extremely
16790# bizarre bug on SunOS 4.1.3.
16791if $ac_need_defaults; then
16792  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16793  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16794  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16795fi
16796
16797# Have a temporary directory for convenience.  Make it in the build tree
16798# simply because there is no reason against having it here, and in addition,
16799# creating and moving files from /tmp can sometimes cause problems.
16800# Hook for its removal unless debugging.
16801# Note that there is a small window in which the directory will not be cleaned:
16802# after its creation but before its name has been assigned to `$tmp'.
16803$debug ||
16804{
16805  tmp= ac_tmp=
16806  trap 'exit_status=$?
16807  : "${ac_tmp:=$tmp}"
16808  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16809' 0
16810  trap 'as_fn_exit 1' 1 2 13 15
16811}
16812# Create a (secure) tmp directory for tmp files.
16813
16814{
16815  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16816  test -d "$tmp"
16817}  ||
16818{
16819  tmp=./conf$$-$RANDOM
16820  (umask 077 && mkdir "$tmp")
16821} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16822ac_tmp=$tmp
16823
16824# Set up the scripts for CONFIG_FILES section.
16825# No need to generate them if there are no CONFIG_FILES.
16826# This happens for instance with `./config.status config.h'.
16827if test -n "$CONFIG_FILES"; then
16828
16829if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16830  ac_cs_awk_getline=:
16831  ac_cs_awk_pipe_init=
16832  ac_cs_awk_read_file='
16833      while ((getline aline < (F[key])) > 0)
16834	print(aline)
16835      close(F[key])'
16836  ac_cs_awk_pipe_fini=
16837else
16838  ac_cs_awk_getline=false
16839  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16840  ac_cs_awk_read_file='
16841      print "|#_!!_#|"
16842      print "cat " F[key] " &&"
16843      '$ac_cs_awk_pipe_init
16844  # The final `:' finishes the AND list.
16845  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16846fi
16847ac_cr=`echo X | tr X '\015'`
16848# On cygwin, bash can eat \r inside `` if the user requested igncr.
16849# But we know of no other shell where ac_cr would be empty at this
16850# point, so we can use a bashism as a fallback.
16851if test "x$ac_cr" = x; then
16852  eval ac_cr=\$\'\\r\'
16853fi
16854ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16855if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16856  ac_cs_awk_cr='\\r'
16857else
16858  ac_cs_awk_cr=$ac_cr
16859fi
16860
16861echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16862_ACEOF
16863
16864# Create commands to substitute file output variables.
16865{
16866  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16867  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16868  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16869  echo "_ACAWK" &&
16870  echo "_ACEOF"
16871} >conf$$files.sh &&
16872. ./conf$$files.sh ||
16873  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16874rm -f conf$$files.sh
16875
16876{
16877  echo "cat >conf$$subs.awk <<_ACEOF" &&
16878  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16879  echo "_ACEOF"
16880} >conf$$subs.sh ||
16881  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16882ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16883ac_delim='%!_!# '
16884for ac_last_try in false false false false false :; do
16885  . ./conf$$subs.sh ||
16886    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16887
16888  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16889  if test $ac_delim_n = $ac_delim_num; then
16890    break
16891  elif $ac_last_try; then
16892    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16893  else
16894    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16895  fi
16896done
16897rm -f conf$$subs.sh
16898
16899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16900cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16901_ACEOF
16902sed -n '
16903h
16904s/^/S["/; s/!.*/"]=/
16905p
16906g
16907s/^[^!]*!//
16908:repl
16909t repl
16910s/'"$ac_delim"'$//
16911t delim
16912:nl
16913h
16914s/\(.\{148\}\)..*/\1/
16915t more1
16916s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16917p
16918n
16919b repl
16920:more1
16921s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16922p
16923g
16924s/.\{148\}//
16925t nl
16926:delim
16927h
16928s/\(.\{148\}\)..*/\1/
16929t more2
16930s/["\\]/\\&/g; s/^/"/; s/$/"/
16931p
16932b
16933:more2
16934s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16935p
16936g
16937s/.\{148\}//
16938t delim
16939' <conf$$subs.awk | sed '
16940/^[^""]/{
16941  N
16942  s/\n//
16943}
16944' >>$CONFIG_STATUS || ac_write_fail=1
16945rm -f conf$$subs.awk
16946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16947_ACAWK
16948cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16949  for (key in S) S_is_set[key] = 1
16950  FS = ""
16951  \$ac_cs_awk_pipe_init
16952}
16953{
16954  line = $ 0
16955  nfields = split(line, field, "@")
16956  substed = 0
16957  len = length(field[1])
16958  for (i = 2; i < nfields; i++) {
16959    key = field[i]
16960    keylen = length(key)
16961    if (S_is_set[key]) {
16962      value = S[key]
16963      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16964      len += length(value) + length(field[++i])
16965      substed = 1
16966    } else
16967      len += 1 + keylen
16968  }
16969  if (nfields == 3 && !substed) {
16970    key = field[2]
16971    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
16972      \$ac_cs_awk_read_file
16973      next
16974    }
16975  }
16976  print line
16977}
16978\$ac_cs_awk_pipe_fini
16979_ACAWK
16980_ACEOF
16981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16982if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16983  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16984else
16985  cat
16986fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16987  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16988_ACEOF
16989
16990# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16991# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16992# trailing colons and then remove the whole line if VPATH becomes empty
16993# (actually we leave an empty line to preserve line numbers).
16994if test "x$srcdir" = x.; then
16995  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16996h
16997s///
16998s/^/:/
16999s/[	 ]*$/:/
17000s/:\$(srcdir):/:/g
17001s/:\${srcdir}:/:/g
17002s/:@srcdir@:/:/g
17003s/^:*//
17004s/:*$//
17005x
17006s/\(=[	 ]*\).*/\1/
17007G
17008s/\n//
17009s/^[^=]*=[	 ]*$//
17010}'
17011fi
17012
17013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17014fi # test -n "$CONFIG_FILES"
17015
17016# Set up the scripts for CONFIG_HEADERS section.
17017# No need to generate them if there are no CONFIG_HEADERS.
17018# This happens for instance with `./config.status Makefile'.
17019if test -n "$CONFIG_HEADERS"; then
17020cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17021BEGIN {
17022_ACEOF
17023
17024# Transform confdefs.h into an awk script `defines.awk', embedded as
17025# here-document in config.status, that substitutes the proper values into
17026# config.h.in to produce config.h.
17027
17028# Create a delimiter string that does not exist in confdefs.h, to ease
17029# handling of long lines.
17030ac_delim='%!_!# '
17031for ac_last_try in false false :; do
17032  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17033  if test -z "$ac_tt"; then
17034    break
17035  elif $ac_last_try; then
17036    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17037  else
17038    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17039  fi
17040done
17041
17042# For the awk script, D is an array of macro values keyed by name,
17043# likewise P contains macro parameters if any.  Preserve backslash
17044# newline sequences.
17045
17046ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17047sed -n '
17048s/.\{148\}/&'"$ac_delim"'/g
17049t rset
17050:rset
17051s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17052t def
17053d
17054:def
17055s/\\$//
17056t bsnl
17057s/["\\]/\\&/g
17058s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17059D["\1"]=" \3"/p
17060s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17061d
17062:bsnl
17063s/["\\]/\\&/g
17064s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17065D["\1"]=" \3\\\\\\n"\\/p
17066t cont
17067s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17068t cont
17069d
17070:cont
17071n
17072s/.\{148\}/&'"$ac_delim"'/g
17073t clear
17074:clear
17075s/\\$//
17076t bsnlc
17077s/["\\]/\\&/g; s/^/"/; s/$/"/p
17078d
17079:bsnlc
17080s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17081b cont
17082' <confdefs.h | sed '
17083s/'"$ac_delim"'/"\\\
17084"/g' >>$CONFIG_STATUS || ac_write_fail=1
17085
17086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17087  for (key in D) D_is_set[key] = 1
17088  FS = ""
17089}
17090/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17091  line = \$ 0
17092  split(line, arg, " ")
17093  if (arg[1] == "#") {
17094    defundef = arg[2]
17095    mac1 = arg[3]
17096  } else {
17097    defundef = substr(arg[1], 2)
17098    mac1 = arg[2]
17099  }
17100  split(mac1, mac2, "(") #)
17101  macro = mac2[1]
17102  prefix = substr(line, 1, index(line, defundef) - 1)
17103  if (D_is_set[macro]) {
17104    # Preserve the white space surrounding the "#".
17105    print prefix "define", macro P[macro] D[macro]
17106    next
17107  } else {
17108    # Replace #undef with comments.  This is necessary, for example,
17109    # in the case of _POSIX_SOURCE, which is predefined and required
17110    # on some systems where configure will not decide to define it.
17111    if (defundef == "undef") {
17112      print "/*", prefix defundef, macro, "*/"
17113      next
17114    }
17115  }
17116}
17117{ print }
17118_ACAWK
17119_ACEOF
17120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17121  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17122fi # test -n "$CONFIG_HEADERS"
17123
17124
17125eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17126shift
17127for ac_tag
17128do
17129  case $ac_tag in
17130  :[FHLC]) ac_mode=$ac_tag; continue;;
17131  esac
17132  case $ac_mode$ac_tag in
17133  :[FHL]*:*);;
17134  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17135  :[FH]-) ac_tag=-:-;;
17136  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17137  esac
17138  ac_save_IFS=$IFS
17139  IFS=:
17140  set x $ac_tag
17141  IFS=$ac_save_IFS
17142  shift
17143  ac_file=$1
17144  shift
17145
17146  case $ac_mode in
17147  :L) ac_source=$1;;
17148  :[FH])
17149    ac_file_inputs=
17150    for ac_f
17151    do
17152      case $ac_f in
17153      -) ac_f="$ac_tmp/stdin";;
17154      *) # Look for the file first in the build tree, then in the source tree
17155	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17156	 # because $ac_f cannot contain `:'.
17157	 test -f "$ac_f" ||
17158	   case $ac_f in
17159	   [\\/$]*) false;;
17160	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17161	   esac ||
17162	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17163      esac
17164      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17165      as_fn_append ac_file_inputs " '$ac_f'"
17166    done
17167
17168    # Let's still pretend it is `configure' which instantiates (i.e., don't
17169    # use $as_me), people would be surprised to read:
17170    #    /* config.h.  Generated by config.status.  */
17171    configure_input='Generated from '`
17172	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17173	`' by configure.'
17174    if test x"$ac_file" != x-; then
17175      configure_input="$ac_file.  $configure_input"
17176      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17177$as_echo "$as_me: creating $ac_file" >&6;}
17178    fi
17179    # Neutralize special characters interpreted by sed in replacement strings.
17180    case $configure_input in #(
17181    *\&* | *\|* | *\\* )
17182       ac_sed_conf_input=`$as_echo "$configure_input" |
17183       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17184    *) ac_sed_conf_input=$configure_input;;
17185    esac
17186
17187    case $ac_tag in
17188    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17189      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17190    esac
17191    ;;
17192  esac
17193
17194  ac_dir=`$as_dirname -- "$ac_file" ||
17195$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17196	 X"$ac_file" : 'X\(//\)[^/]' \| \
17197	 X"$ac_file" : 'X\(//\)$' \| \
17198	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17199$as_echo X"$ac_file" |
17200    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17201	    s//\1/
17202	    q
17203	  }
17204	  /^X\(\/\/\)[^/].*/{
17205	    s//\1/
17206	    q
17207	  }
17208	  /^X\(\/\/\)$/{
17209	    s//\1/
17210	    q
17211	  }
17212	  /^X\(\/\).*/{
17213	    s//\1/
17214	    q
17215	  }
17216	  s/.*/./; q'`
17217  as_dir="$ac_dir"; as_fn_mkdir_p
17218  ac_builddir=.
17219
17220case "$ac_dir" in
17221.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17222*)
17223  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17224  # A ".." for each directory in $ac_dir_suffix.
17225  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17226  case $ac_top_builddir_sub in
17227  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17228  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17229  esac ;;
17230esac
17231ac_abs_top_builddir=$ac_pwd
17232ac_abs_builddir=$ac_pwd$ac_dir_suffix
17233# for backward compatibility:
17234ac_top_builddir=$ac_top_build_prefix
17235
17236case $srcdir in
17237  .)  # We are building in place.
17238    ac_srcdir=.
17239    ac_top_srcdir=$ac_top_builddir_sub
17240    ac_abs_top_srcdir=$ac_pwd ;;
17241  [\\/]* | ?:[\\/]* )  # Absolute name.
17242    ac_srcdir=$srcdir$ac_dir_suffix;
17243    ac_top_srcdir=$srcdir
17244    ac_abs_top_srcdir=$srcdir ;;
17245  *) # Relative name.
17246    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17247    ac_top_srcdir=$ac_top_build_prefix$srcdir
17248    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17249esac
17250ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17251
17252
17253  case $ac_mode in
17254  :F)
17255  #
17256  # CONFIG_FILE
17257  #
17258
17259  case $INSTALL in
17260  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17261  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17262  esac
17263  ac_MKDIR_P=$MKDIR_P
17264  case $MKDIR_P in
17265  [\\/$]* | ?:[\\/]* ) ;;
17266  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17267  esac
17268_ACEOF
17269
17270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17271# If the template does not know about datarootdir, expand it.
17272# FIXME: This hack should be removed a few years after 2.60.
17273ac_datarootdir_hack=; ac_datarootdir_seen=
17274ac_sed_dataroot='
17275/datarootdir/ {
17276  p
17277  q
17278}
17279/@datadir@/p
17280/@docdir@/p
17281/@infodir@/p
17282/@localedir@/p
17283/@mandir@/p'
17284case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17285*datarootdir*) ac_datarootdir_seen=yes;;
17286*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17287  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17288$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17289_ACEOF
17290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17291  ac_datarootdir_hack='
17292  s&@datadir@&$datadir&g
17293  s&@docdir@&$docdir&g
17294  s&@infodir@&$infodir&g
17295  s&@localedir@&$localedir&g
17296  s&@mandir@&$mandir&g
17297  s&\\\${datarootdir}&$datarootdir&g' ;;
17298esac
17299_ACEOF
17300
17301# Neutralize VPATH when `$srcdir' = `.'.
17302# Shell code in configure.ac might set extrasub.
17303# FIXME: do we really want to maintain this feature?
17304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17305ac_sed_extra="$ac_vpsub
17306$extrasub
17307_ACEOF
17308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17309:t
17310/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17311s|@configure_input@|$ac_sed_conf_input|;t t
17312s&@top_builddir@&$ac_top_builddir_sub&;t t
17313s&@top_build_prefix@&$ac_top_build_prefix&;t t
17314s&@srcdir@&$ac_srcdir&;t t
17315s&@abs_srcdir@&$ac_abs_srcdir&;t t
17316s&@top_srcdir@&$ac_top_srcdir&;t t
17317s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17318s&@builddir@&$ac_builddir&;t t
17319s&@abs_builddir@&$ac_abs_builddir&;t t
17320s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17321s&@INSTALL@&$ac_INSTALL&;t t
17322s&@MKDIR_P@&$ac_MKDIR_P&;t t
17323$ac_datarootdir_hack
17324"
17325eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17326if $ac_cs_awk_getline; then
17327  $AWK -f "$ac_tmp/subs.awk"
17328else
17329  $AWK -f "$ac_tmp/subs.awk" | $SHELL
17330fi \
17331  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17332
17333test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17334  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17335  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17336      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17337  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17338which seems to be undefined.  Please make sure it is defined" >&5
17339$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17340which seems to be undefined.  Please make sure it is defined" >&2;}
17341
17342  rm -f "$ac_tmp/stdin"
17343  case $ac_file in
17344  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17345  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17346  esac \
17347  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17348 ;;
17349  :H)
17350  #
17351  # CONFIG_HEADER
17352  #
17353  if test x"$ac_file" != x-; then
17354    {
17355      $as_echo "/* $configure_input  */" \
17356      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17357    } >"$ac_tmp/config.h" \
17358      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17359    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17360      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17361$as_echo "$as_me: $ac_file is unchanged" >&6;}
17362    else
17363      rm -f "$ac_file"
17364      mv "$ac_tmp/config.h" "$ac_file" \
17365	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17366    fi
17367  else
17368    $as_echo "/* $configure_input  */" \
17369      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17370      || as_fn_error $? "could not create -" "$LINENO" 5
17371  fi
17372# Compute "$ac_file"'s index in $config_headers.
17373_am_arg="$ac_file"
17374_am_stamp_count=1
17375for _am_header in $config_headers :; do
17376  case $_am_header in
17377    $_am_arg | $_am_arg:* )
17378      break ;;
17379    * )
17380      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17381  esac
17382done
17383echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17384$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17385	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17386	 X"$_am_arg" : 'X\(//\)$' \| \
17387	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17388$as_echo X"$_am_arg" |
17389    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17390	    s//\1/
17391	    q
17392	  }
17393	  /^X\(\/\/\)[^/].*/{
17394	    s//\1/
17395	    q
17396	  }
17397	  /^X\(\/\/\)$/{
17398	    s//\1/
17399	    q
17400	  }
17401	  /^X\(\/\).*/{
17402	    s//\1/
17403	    q
17404	  }
17405	  s/.*/./; q'`/stamp-h$_am_stamp_count
17406 ;;
17407
17408  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17409$as_echo "$as_me: executing $ac_file commands" >&6;}
17410 ;;
17411  esac
17412
17413
17414  case $ac_file$ac_mode in
17415    "default-1":C)
17416# Only add multilib support code if we just rebuilt the top-level
17417# Makefile.
17418case " $CONFIG_FILES " in
17419 *" Makefile "*)
17420   ac_file=Makefile . ${multi_basedir}/config-ml.in
17421   ;;
17422esac ;;
17423    "libtool":C)
17424
17425    # See if we are running on zsh, and set the options which allow our
17426    # commands through without removal of \ escapes.
17427    if test -n "${ZSH_VERSION+set}" ; then
17428      setopt NO_GLOB_SUBST
17429    fi
17430
17431    cfgfile="${ofile}T"
17432    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17433    $RM "$cfgfile"
17434
17435    cat <<_LT_EOF >> "$cfgfile"
17436#! $SHELL
17437
17438# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17439# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17440# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17441# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17442#
17443#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17444#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17445#   Written by Gordon Matzigkeit, 1996
17446#
17447#   This file is part of GNU Libtool.
17448#
17449# GNU Libtool is free software; you can redistribute it and/or
17450# modify it under the terms of the GNU General Public License as
17451# published by the Free Software Foundation; either version 2 of
17452# the License, or (at your option) any later version.
17453#
17454# As a special exception to the GNU General Public License,
17455# if you distribute this file as part of a program or library that
17456# is built using GNU Libtool, you may include this file under the
17457# same distribution terms that you use for the rest of that program.
17458#
17459# GNU Libtool is distributed in the hope that it will be useful,
17460# but WITHOUT ANY WARRANTY; without even the implied warranty of
17461# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17462# GNU General Public License for more details.
17463#
17464# You should have received a copy of the GNU General Public License
17465# along with GNU Libtool; see the file COPYING.  If not, a copy
17466# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17467# obtained by writing to the Free Software Foundation, Inc.,
17468# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17469
17470
17471# The names of the tagged configurations supported by this script.
17472available_tags="D "
17473
17474# ### BEGIN LIBTOOL CONFIG
17475
17476# Which release of libtool.m4 was used?
17477macro_version=$macro_version
17478macro_revision=$macro_revision
17479
17480# Whether or not to build shared libraries.
17481build_libtool_libs=$enable_shared
17482
17483# Whether or not to build static libraries.
17484build_old_libs=$enable_static
17485
17486# What type of objects to build.
17487pic_mode=$pic_mode
17488
17489# Whether or not to optimize for fast installation.
17490fast_install=$enable_fast_install
17491
17492# Shell to use when invoking shell scripts.
17493SHELL=$lt_SHELL
17494
17495# An echo program that protects backslashes.
17496ECHO=$lt_ECHO
17497
17498# The host system.
17499host_alias=$host_alias
17500host=$host
17501host_os=$host_os
17502
17503# The build system.
17504build_alias=$build_alias
17505build=$build
17506build_os=$build_os
17507
17508# A sed program that does not truncate output.
17509SED=$lt_SED
17510
17511# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17512Xsed="\$SED -e 1s/^X//"
17513
17514# A grep program that handles long lines.
17515GREP=$lt_GREP
17516
17517# An ERE matcher.
17518EGREP=$lt_EGREP
17519
17520# A literal string matcher.
17521FGREP=$lt_FGREP
17522
17523# A BSD- or MS-compatible name lister.
17524NM=$lt_NM
17525
17526# Whether we need soft or hard links.
17527LN_S=$lt_LN_S
17528
17529# What is the maximum length of a command?
17530max_cmd_len=$max_cmd_len
17531
17532# Object file suffix (normally "o").
17533objext=$ac_objext
17534
17535# Executable file suffix (normally "").
17536exeext=$exeext
17537
17538# whether the shell understands "unset".
17539lt_unset=$lt_unset
17540
17541# turn spaces into newlines.
17542SP2NL=$lt_lt_SP2NL
17543
17544# turn newlines into spaces.
17545NL2SP=$lt_lt_NL2SP
17546
17547# An object symbol dumper.
17548OBJDUMP=$lt_OBJDUMP
17549
17550# Method to check whether dependent libraries are shared objects.
17551deplibs_check_method=$lt_deplibs_check_method
17552
17553# Command to use when deplibs_check_method == "file_magic".
17554file_magic_cmd=$lt_file_magic_cmd
17555
17556# The archiver.
17557AR=$lt_AR
17558AR_FLAGS=$lt_AR_FLAGS
17559
17560# A symbol stripping program.
17561STRIP=$lt_STRIP
17562
17563# Commands used to install an old-style archive.
17564RANLIB=$lt_RANLIB
17565old_postinstall_cmds=$lt_old_postinstall_cmds
17566old_postuninstall_cmds=$lt_old_postuninstall_cmds
17567
17568# Whether to use a lock for old archive extraction.
17569lock_old_archive_extraction=$lock_old_archive_extraction
17570
17571# A C compiler.
17572LTCC=$lt_CC
17573
17574# LTCC compiler flags.
17575LTCFLAGS=$lt_CFLAGS
17576
17577# Take the output of nm and produce a listing of raw symbols and C names.
17578global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17579
17580# Transform the output of nm in a proper C declaration.
17581global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17582
17583# Transform the output of nm in a C name address pair.
17584global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17585
17586# Transform the output of nm in a C name address pair when lib prefix is needed.
17587global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17588
17589# The name of the directory that contains temporary libtool files.
17590objdir=$objdir
17591
17592# Used to examine libraries when file_magic_cmd begins with "file".
17593MAGIC_CMD=$MAGIC_CMD
17594
17595# Must we lock files when doing compilation?
17596need_locks=$lt_need_locks
17597
17598# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17599DSYMUTIL=$lt_DSYMUTIL
17600
17601# Tool to change global to local symbols on Mac OS X.
17602NMEDIT=$lt_NMEDIT
17603
17604# Tool to manipulate fat objects and archives on Mac OS X.
17605LIPO=$lt_LIPO
17606
17607# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17608OTOOL=$lt_OTOOL
17609
17610# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17611OTOOL64=$lt_OTOOL64
17612
17613# Old archive suffix (normally "a").
17614libext=$libext
17615
17616# Shared library suffix (normally ".so").
17617shrext_cmds=$lt_shrext_cmds
17618
17619# The commands to extract the exported symbol list from a shared archive.
17620extract_expsyms_cmds=$lt_extract_expsyms_cmds
17621
17622# Variables whose values should be saved in libtool wrapper scripts and
17623# restored at link time.
17624variables_saved_for_relink=$lt_variables_saved_for_relink
17625
17626# Do we need the "lib" prefix for modules?
17627need_lib_prefix=$need_lib_prefix
17628
17629# Do we need a version for libraries?
17630need_version=$need_version
17631
17632# Library versioning type.
17633version_type=$version_type
17634
17635# Shared library runtime path variable.
17636runpath_var=$runpath_var
17637
17638# Shared library path variable.
17639shlibpath_var=$shlibpath_var
17640
17641# Is shlibpath searched before the hard-coded library search path?
17642shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17643
17644# Format of library name prefix.
17645libname_spec=$lt_libname_spec
17646
17647# List of archive names.  First name is the real one, the rest are links.
17648# The last name is the one that the linker finds with -lNAME
17649library_names_spec=$lt_library_names_spec
17650
17651# The coded name of the library, if different from the real name.
17652soname_spec=$lt_soname_spec
17653
17654# Permission mode override for installation of shared libraries.
17655install_override_mode=$lt_install_override_mode
17656
17657# Command to use after installation of a shared archive.
17658postinstall_cmds=$lt_postinstall_cmds
17659
17660# Command to use after uninstallation of a shared archive.
17661postuninstall_cmds=$lt_postuninstall_cmds
17662
17663# Commands used to finish a libtool library installation in a directory.
17664finish_cmds=$lt_finish_cmds
17665
17666# As "finish_cmds", except a single script fragment to be evaled but
17667# not shown.
17668finish_eval=$lt_finish_eval
17669
17670# Whether we should hardcode library paths into libraries.
17671hardcode_into_libs=$hardcode_into_libs
17672
17673# Compile-time system search path for libraries.
17674sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17675
17676# Run-time system search path for libraries.
17677sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17678
17679# Whether dlopen is supported.
17680dlopen_support=$enable_dlopen
17681
17682# Whether dlopen of programs is supported.
17683dlopen_self=$enable_dlopen_self
17684
17685# Whether dlopen of statically linked programs is supported.
17686dlopen_self_static=$enable_dlopen_self_static
17687
17688# Commands to strip libraries.
17689old_striplib=$lt_old_striplib
17690striplib=$lt_striplib
17691
17692
17693# The linker used to build libraries.
17694LD=$lt_LD
17695
17696# How to create reloadable object files.
17697reload_flag=$lt_reload_flag
17698reload_cmds=$lt_reload_cmds
17699
17700# Commands used to build an old-style archive.
17701old_archive_cmds=$lt_old_archive_cmds
17702
17703# A language specific compiler.
17704CC=$lt_compiler
17705
17706# Is the compiler the GNU compiler?
17707with_gcc=$GCC
17708
17709# Compiler flag to turn off builtin functions.
17710no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17711
17712# How to pass a linker flag through the compiler.
17713wl=$lt_lt_prog_compiler_wl
17714
17715# Additional compiler flags for building library objects.
17716pic_flag=$lt_lt_prog_compiler_pic
17717
17718# Compiler flag to prevent dynamic linking.
17719link_static_flag=$lt_lt_prog_compiler_static
17720
17721# Does compiler simultaneously support -c and -o options?
17722compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17723
17724# Whether or not to add -lc for building shared libraries.
17725build_libtool_need_lc=$archive_cmds_need_lc
17726
17727# Whether or not to disallow shared libs when runtime libs are static.
17728allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17729
17730# Compiler flag to allow reflexive dlopens.
17731export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17732
17733# Compiler flag to generate shared objects directly from archives.
17734whole_archive_flag_spec=$lt_whole_archive_flag_spec
17735
17736# Whether the compiler copes with passing no objects directly.
17737compiler_needs_object=$lt_compiler_needs_object
17738
17739# Create an old-style archive from a shared archive.
17740old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17741
17742# Create a temporary old-style archive to link instead of a shared archive.
17743old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17744
17745# Commands used to build a shared archive.
17746archive_cmds=$lt_archive_cmds
17747archive_expsym_cmds=$lt_archive_expsym_cmds
17748
17749# Commands used to build a loadable module if different from building
17750# a shared archive.
17751module_cmds=$lt_module_cmds
17752module_expsym_cmds=$lt_module_expsym_cmds
17753
17754# Whether we are building with GNU ld or not.
17755with_gnu_ld=$lt_with_gnu_ld
17756
17757# Flag that allows shared libraries with undefined symbols to be built.
17758allow_undefined_flag=$lt_allow_undefined_flag
17759
17760# Flag that enforces no undefined symbols.
17761no_undefined_flag=$lt_no_undefined_flag
17762
17763# Flag to hardcode \$libdir into a binary during linking.
17764# This must work even if \$libdir does not exist
17765hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17766
17767# If ld is used when linking, flag to hardcode \$libdir into a binary
17768# during linking.  This must work even if \$libdir does not exist.
17769hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17770
17771# Whether we need a single "-rpath" flag with a separated argument.
17772hardcode_libdir_separator=$lt_hardcode_libdir_separator
17773
17774# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17775# DIR into the resulting binary.
17776hardcode_direct=$hardcode_direct
17777
17778# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17779# DIR into the resulting binary and the resulting library dependency is
17780# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17781# library is relocated.
17782hardcode_direct_absolute=$hardcode_direct_absolute
17783
17784# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17785# into the resulting binary.
17786hardcode_minus_L=$hardcode_minus_L
17787
17788# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17789# into the resulting binary.
17790hardcode_shlibpath_var=$hardcode_shlibpath_var
17791
17792# Set to "yes" if building a shared library automatically hardcodes DIR
17793# into the library and all subsequent libraries and executables linked
17794# against it.
17795hardcode_automatic=$hardcode_automatic
17796
17797# Set to yes if linker adds runtime paths of dependent libraries
17798# to runtime path list.
17799inherit_rpath=$inherit_rpath
17800
17801# Whether libtool must link a program against all its dependency libraries.
17802link_all_deplibs=$link_all_deplibs
17803
17804# Fix the shell variable \$srcfile for the compiler.
17805fix_srcfile_path=$lt_fix_srcfile_path
17806
17807# Set to "yes" if exported symbols are required.
17808always_export_symbols=$always_export_symbols
17809
17810# The commands to list exported symbols.
17811export_symbols_cmds=$lt_export_symbols_cmds
17812
17813# Symbols that should not be listed in the preloaded symbols.
17814exclude_expsyms=$lt_exclude_expsyms
17815
17816# Symbols that must always be exported.
17817include_expsyms=$lt_include_expsyms
17818
17819# Commands necessary for linking programs (against libraries) with templates.
17820prelink_cmds=$lt_prelink_cmds
17821
17822# Specify filename containing input files.
17823file_list_spec=$lt_file_list_spec
17824
17825# How to hardcode a shared library path into an executable.
17826hardcode_action=$hardcode_action
17827
17828# ### END LIBTOOL CONFIG
17829
17830_LT_EOF
17831
17832  case $host_os in
17833  aix3*)
17834    cat <<\_LT_EOF >> "$cfgfile"
17835# AIX sometimes has problems with the GCC collect2 program.  For some
17836# reason, if we set the COLLECT_NAMES environment variable, the problems
17837# vanish in a puff of smoke.
17838if test "X${COLLECT_NAMES+set}" != Xset; then
17839  COLLECT_NAMES=
17840  export COLLECT_NAMES
17841fi
17842_LT_EOF
17843    ;;
17844  esac
17845
17846
17847ltmain="$ac_aux_dir/ltmain.sh"
17848
17849
17850  # We use sed instead of cat because bash on DJGPP gets confused if
17851  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17852  # text mode, it properly converts lines to CR/LF.  This bash problem
17853  # is reportedly fixed, but why not run on old versions too?
17854  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17855    || (rm -f "$cfgfile"; exit 1)
17856
17857  case $xsi_shell in
17858  yes)
17859    cat << \_LT_EOF >> "$cfgfile"
17860
17861# func_dirname file append nondir_replacement
17862# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17863# otherwise set result to NONDIR_REPLACEMENT.
17864func_dirname ()
17865{
17866  case ${1} in
17867    */*) func_dirname_result="${1%/*}${2}" ;;
17868    *  ) func_dirname_result="${3}" ;;
17869  esac
17870}
17871
17872# func_basename file
17873func_basename ()
17874{
17875  func_basename_result="${1##*/}"
17876}
17877
17878# func_dirname_and_basename file append nondir_replacement
17879# perform func_basename and func_dirname in a single function
17880# call:
17881#   dirname:  Compute the dirname of FILE.  If nonempty,
17882#             add APPEND to the result, otherwise set result
17883#             to NONDIR_REPLACEMENT.
17884#             value returned in "$func_dirname_result"
17885#   basename: Compute filename of FILE.
17886#             value retuned in "$func_basename_result"
17887# Implementation must be kept synchronized with func_dirname
17888# and func_basename. For efficiency, we do not delegate to
17889# those functions but instead duplicate the functionality here.
17890func_dirname_and_basename ()
17891{
17892  case ${1} in
17893    */*) func_dirname_result="${1%/*}${2}" ;;
17894    *  ) func_dirname_result="${3}" ;;
17895  esac
17896  func_basename_result="${1##*/}"
17897}
17898
17899# func_stripname prefix suffix name
17900# strip PREFIX and SUFFIX off of NAME.
17901# PREFIX and SUFFIX must not contain globbing or regex special
17902# characters, hashes, percent signs, but SUFFIX may contain a leading
17903# dot (in which case that matches only a dot).
17904func_stripname ()
17905{
17906  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17907  # positional parameters, so assign one to ordinary parameter first.
17908  func_stripname_result=${3}
17909  func_stripname_result=${func_stripname_result#"${1}"}
17910  func_stripname_result=${func_stripname_result%"${2}"}
17911}
17912
17913# func_opt_split
17914func_opt_split ()
17915{
17916  func_opt_split_opt=${1%%=*}
17917  func_opt_split_arg=${1#*=}
17918}
17919
17920# func_lo2o object
17921func_lo2o ()
17922{
17923  case ${1} in
17924    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17925    *)    func_lo2o_result=${1} ;;
17926  esac
17927}
17928
17929# func_xform libobj-or-source
17930func_xform ()
17931{
17932  func_xform_result=${1%.*}.lo
17933}
17934
17935# func_arith arithmetic-term...
17936func_arith ()
17937{
17938  func_arith_result=$(( $* ))
17939}
17940
17941# func_len string
17942# STRING may not start with a hyphen.
17943func_len ()
17944{
17945  func_len_result=${#1}
17946}
17947
17948_LT_EOF
17949    ;;
17950  *) # Bourne compatible functions.
17951    cat << \_LT_EOF >> "$cfgfile"
17952
17953# func_dirname file append nondir_replacement
17954# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17955# otherwise set result to NONDIR_REPLACEMENT.
17956func_dirname ()
17957{
17958  # Extract subdirectory from the argument.
17959  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17960  if test "X$func_dirname_result" = "X${1}"; then
17961    func_dirname_result="${3}"
17962  else
17963    func_dirname_result="$func_dirname_result${2}"
17964  fi
17965}
17966
17967# func_basename file
17968func_basename ()
17969{
17970  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17971}
17972
17973
17974# func_stripname prefix suffix name
17975# strip PREFIX and SUFFIX off of NAME.
17976# PREFIX and SUFFIX must not contain globbing or regex special
17977# characters, hashes, percent signs, but SUFFIX may contain a leading
17978# dot (in which case that matches only a dot).
17979# func_strip_suffix prefix name
17980func_stripname ()
17981{
17982  case ${2} in
17983    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17984    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17985  esac
17986}
17987
17988# sed scripts:
17989my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17990my_sed_long_arg='1s/^-[^=]*=//'
17991
17992# func_opt_split
17993func_opt_split ()
17994{
17995  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17996  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17997}
17998
17999# func_lo2o object
18000func_lo2o ()
18001{
18002  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18003}
18004
18005# func_xform libobj-or-source
18006func_xform ()
18007{
18008  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18009}
18010
18011# func_arith arithmetic-term...
18012func_arith ()
18013{
18014  func_arith_result=`expr "$@"`
18015}
18016
18017# func_len string
18018# STRING may not start with a hyphen.
18019func_len ()
18020{
18021  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18022}
18023
18024_LT_EOF
18025esac
18026
18027case $lt_shell_append in
18028  yes)
18029    cat << \_LT_EOF >> "$cfgfile"
18030
18031# func_append var value
18032# Append VALUE to the end of shell variable VAR.
18033func_append ()
18034{
18035  eval "$1+=\$2"
18036}
18037_LT_EOF
18038    ;;
18039  *)
18040    cat << \_LT_EOF >> "$cfgfile"
18041
18042# func_append var value
18043# Append VALUE to the end of shell variable VAR.
18044func_append ()
18045{
18046  eval "$1=\$$1\$2"
18047}
18048
18049_LT_EOF
18050    ;;
18051  esac
18052
18053
18054  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18055    || (rm -f "$cfgfile"; exit 1)
18056
18057  mv -f "$cfgfile" "$ofile" ||
18058    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18059  chmod +x "$ofile"
18060
18061
18062    cat <<_LT_EOF >> "$ofile"
18063
18064# ### BEGIN LIBTOOL TAG CONFIG: D
18065
18066# The linker used to build libraries.
18067LD=$lt_LD_D
18068
18069# How to create reloadable object files.
18070reload_flag=$lt_reload_flag_D
18071reload_cmds=$lt_reload_cmds_D
18072
18073# Commands used to build an old-style archive.
18074old_archive_cmds=$lt_old_archive_cmds_D
18075
18076# A language specific compiler.
18077CC=$lt_compiler_D
18078
18079# Is the compiler the GNU compiler?
18080with_gcc=$GCC_D
18081
18082# Compiler flag to turn off builtin functions.
18083no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18084
18085# How to pass a linker flag through the compiler.
18086wl=$lt_lt_prog_compiler_wl_D
18087
18088# Additional compiler flags for building library objects.
18089pic_flag=$lt_lt_prog_compiler_pic_D
18090
18091# Compiler flag to prevent dynamic linking.
18092link_static_flag=$lt_lt_prog_compiler_static_D
18093
18094# Does compiler simultaneously support -c and -o options?
18095compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18096
18097# Whether or not to add -lc for building shared libraries.
18098build_libtool_need_lc=$archive_cmds_need_lc_D
18099
18100# Whether or not to disallow shared libs when runtime libs are static.
18101allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18102
18103# Compiler flag to allow reflexive dlopens.
18104export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18105
18106# Compiler flag to generate shared objects directly from archives.
18107whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18108
18109# Whether the compiler copes with passing no objects directly.
18110compiler_needs_object=$lt_compiler_needs_object_D
18111
18112# Create an old-style archive from a shared archive.
18113old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18114
18115# Create a temporary old-style archive to link instead of a shared archive.
18116old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18117
18118# Commands used to build a shared archive.
18119archive_cmds=$lt_archive_cmds_D
18120archive_expsym_cmds=$lt_archive_expsym_cmds_D
18121
18122# Commands used to build a loadable module if different from building
18123# a shared archive.
18124module_cmds=$lt_module_cmds_D
18125module_expsym_cmds=$lt_module_expsym_cmds_D
18126
18127# Whether we are building with GNU ld or not.
18128with_gnu_ld=$lt_with_gnu_ld_D
18129
18130# Flag that allows shared libraries with undefined symbols to be built.
18131allow_undefined_flag=$lt_allow_undefined_flag_D
18132
18133# Flag that enforces no undefined symbols.
18134no_undefined_flag=$lt_no_undefined_flag_D
18135
18136# Flag to hardcode \$libdir into a binary during linking.
18137# This must work even if \$libdir does not exist
18138hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18139
18140# If ld is used when linking, flag to hardcode \$libdir into a binary
18141# during linking.  This must work even if \$libdir does not exist.
18142hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18143
18144# Whether we need a single "-rpath" flag with a separated argument.
18145hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18146
18147# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18148# DIR into the resulting binary.
18149hardcode_direct=$hardcode_direct_D
18150
18151# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18152# DIR into the resulting binary and the resulting library dependency is
18153# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18154# library is relocated.
18155hardcode_direct_absolute=$hardcode_direct_absolute_D
18156
18157# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18158# into the resulting binary.
18159hardcode_minus_L=$hardcode_minus_L_D
18160
18161# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18162# into the resulting binary.
18163hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18164
18165# Set to "yes" if building a shared library automatically hardcodes DIR
18166# into the library and all subsequent libraries and executables linked
18167# against it.
18168hardcode_automatic=$hardcode_automatic_D
18169
18170# Set to yes if linker adds runtime paths of dependent libraries
18171# to runtime path list.
18172inherit_rpath=$inherit_rpath_D
18173
18174# Whether libtool must link a program against all its dependency libraries.
18175link_all_deplibs=$link_all_deplibs_D
18176
18177# Fix the shell variable \$srcfile for the compiler.
18178fix_srcfile_path=$lt_fix_srcfile_path_D
18179
18180# Set to "yes" if exported symbols are required.
18181always_export_symbols=$always_export_symbols_D
18182
18183# The commands to list exported symbols.
18184export_symbols_cmds=$lt_export_symbols_cmds_D
18185
18186# Symbols that should not be listed in the preloaded symbols.
18187exclude_expsyms=$lt_exclude_expsyms_D
18188
18189# Symbols that must always be exported.
18190include_expsyms=$lt_include_expsyms_D
18191
18192# Commands necessary for linking programs (against libraries) with templates.
18193prelink_cmds=$lt_prelink_cmds_D
18194
18195# Specify filename containing input files.
18196file_list_spec=$lt_file_list_spec_D
18197
18198# How to hardcode a shared library path into an executable.
18199hardcode_action=$hardcode_action_D
18200
18201# ### END LIBTOOL TAG CONFIG: D
18202_LT_EOF
18203
18204 ;;
18205    "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
18206    "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18207s!`test -f '$<' || echo '$(srcdir)/'`!!
18208_EOF
18209   sed -f vpsed$$ $ac_file > tmp$$
18210   mv tmp$$ $ac_file
18211   rm vpsed$$
18212   echo 'MULTISUBDIR =' >> $ac_file
18213   ml_norecursion=yes
18214   . ${multi_basedir}/config-ml.in
18215   { ml_norecursion=; unset ml_norecursion;}
18216 ;;
18217    "src/Makefile":F) cat > vpsed$$ << \_EOF
18218s!`test -f '$<' || echo '$(srcdir)/'`!!
18219_EOF
18220   sed -f vpsed$$ $ac_file > tmp$$
18221   mv tmp$$ $ac_file
18222   rm vpsed$$
18223   echo 'MULTISUBDIR =' >> $ac_file
18224   ml_norecursion=yes
18225   . ${multi_basedir}/config-ml.in
18226   { ml_norecursion=; unset ml_norecursion;}
18227 ;;
18228    "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18229s!`test -f '$<' || echo '$(srcdir)/'`!!
18230_EOF
18231   sed -f vpsed$$ $ac_file > tmp$$
18232   mv tmp$$ $ac_file
18233   rm vpsed$$
18234   echo 'MULTISUBDIR =' >> $ac_file
18235   ml_norecursion=yes
18236   . ${multi_basedir}/config-ml.in
18237   { ml_norecursion=; unset ml_norecursion;}
18238 ;;
18239
18240  esac
18241done # for ac_tag
18242
18243
18244as_fn_exit 0
18245_ACEOF
18246ac_clean_files=$ac_clean_files_save
18247
18248test $ac_write_fail = 0 ||
18249  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18250
18251
18252# configure is writing to config.log, and then calls config.status.
18253# config.status does its own redirection, appending to config.log.
18254# Unfortunately, on DOS this fails, as config.log is still kept open
18255# by configure, so config.status won't be able to write to it; its
18256# output is simply discarded.  So we exec the FD to /dev/null,
18257# effectively closing config.log, so it can be properly (re)opened and
18258# appended to by config.status.  When coming back to configure, we
18259# need to make the FD available again.
18260if test "$no_create" != yes; then
18261  ac_cs_success=:
18262  ac_config_status_args=
18263  test "$silent" = yes &&
18264    ac_config_status_args="$ac_config_status_args --quiet"
18265  exec 5>/dev/null
18266  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18267  exec 5>>config.log
18268  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18269  # would make configure fail if this is the last instruction.
18270  $ac_cs_success || as_fn_exit 1
18271fi
18272if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18273  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18274$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18275fi
18276
18277