xref: /netbsd-src/external/gpl3/gcc.old/dist/libphobos/configure (revision e670fd5c413e99c2f6a37901bb21c537fcd322d2)
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
636GDCFLAGSX
637libtool_VERSION
638SPEC_PHOBOS_DEPS
639gdc_include_dir
640libphobos_toolexeclibdir
641libphobos_toolexecdir
642gcc_version
643LIBZ
644BACKTRACE_SUPPORTS_THREADS
645BACKTRACE_USES_MALLOC
646BACKTRACE_SUPPORTED
647LIBBACKTRACE
648LIBATOMIC
649DCFG_HAVE_LIBATOMIC
650DCFG_HAVE_64BIT_ATOMICS
651DCFG_HAVE_ATOMIC_BUILTINS
652DCFG_HAVE_QSORT_R
653OS_LINK_SPEC
654DCFG_DLPI_TLS_MODID
655DRUNTIME_OS_MINFO_BRACKETING_FALSE
656DRUNTIME_OS_MINFO_BRACKETING_TRUE
657DCFG_MINFO_BRACKETING
658DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
659DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
660DCFG_ARM_EABI_UNWINDER
661DCFG_THREAD_MODEL
662DRUNTIME_OS_SOLARIS_FALSE
663DRUNTIME_OS_SOLARIS_TRUE
664DRUNTIME_OS_MINGW_FALSE
665DRUNTIME_OS_MINGW_TRUE
666DRUNTIME_OS_LINUX_FALSE
667DRUNTIME_OS_LINUX_TRUE
668DRUNTIME_OS_OPENBSD_FALSE
669DRUNTIME_OS_OPENBSD_TRUE
670DRUNTIME_OS_NETBSD_FALSE
671DRUNTIME_OS_NETBSD_TRUE
672DRUNTIME_OS_FREEBSD_FALSE
673DRUNTIME_OS_FREEBSD_TRUE
674DRUNTIME_OS_DRAGONFLYBSD_FALSE
675DRUNTIME_OS_DRAGONFLYBSD_TRUE
676DRUNTIME_OS_DARWIN_FALSE
677DRUNTIME_OS_DARWIN_TRUE
678DRUNTIME_OS_ANDROID_FALSE
679DRUNTIME_OS_ANDROID_TRUE
680DRUNTIME_OS_AIX_FALSE
681DRUNTIME_OS_AIX_TRUE
682DRUNTIME_OS_UNIX_FALSE
683DRUNTIME_OS_UNIX_TRUE
684DRUNTIME_CPU_X86_FALSE
685DRUNTIME_CPU_X86_TRUE
686DRUNTIME_CPU_POWERPC64_FALSE
687DRUNTIME_CPU_POWERPC64_TRUE
688DRUNTIME_CPU_POWERPC_FALSE
689DRUNTIME_CPU_POWERPC_TRUE
690DRUNTIME_CPU_MIPS_FALSE
691DRUNTIME_CPU_MIPS_TRUE
692DRUNTIME_CPU_ARM_FALSE
693DRUNTIME_CPU_ARM_TRUE
694DRUNTIME_CPU_AARCH64_FALSE
695DRUNTIME_CPU_AARCH64_TRUE
696DRUNTIME_GC_ENABLE_FALSE
697DRUNTIME_GC_ENABLE_TRUE
698libphobos_srcdir
699libphobos_builddir
700get_gcc_base_ver
701ENABLE_LIBPHOBOS_FALSE
702ENABLE_LIBPHOBOS_TRUE
703phobos_compiler_shared_flag
704phobos_compiler_pic_flag
705OTOOL64
706OTOOL
707LIPO
708NMEDIT
709DSYMUTIL
710OBJDUMP
711LN_S
712NM
713ac_ct_DUMPBIN
714DUMPBIN
715LD
716FGREP
717SED
718LIBTOOL
719CFLAGS_FOR_BUILD
720CC_FOR_BUILD
721AR
722RANLIB
723MAINT
724MAINTAINER_MODE_FALSE
725MAINTAINER_MODE_TRUE
726GDCFLAGS
727GDC
728CCASFLAGS
729CCAS
730AM_BACKSLASH
731AM_DEFAULT_VERBOSITY
732AM_DEFAULT_V
733AM_V
734am__untar
735am__tar
736AMTAR
737am__leading_dot
738SET_MAKE
739AWK
740mkdir_p
741MKDIR_P
742INSTALL_STRIP_PROGRAM
743STRIP
744install_sh
745MAKEINFO
746AUTOHEADER
747AUTOMAKE
748AUTOCONF
749ACLOCAL
750VERSION
751PACKAGE
752CYGPATH_W
753am__isrc
754INSTALL_DATA
755INSTALL_SCRIPT
756INSTALL_PROGRAM
757EGREP
758GREP
759CPP
760OBJEXT
761EXEEXT
762ac_ct_CC
763CPPFLAGS
764LDFLAGS
765CFLAGS
766CC
767target_os
768target_vendor
769target_cpu
770target
771host_os
772host_vendor
773host_cpu
774host
775build_os
776build_vendor
777build_cpu
778build
779multi_basedir
780target_alias
781host_alias
782build_alias
783LIBS
784ECHO_T
785ECHO_N
786ECHO_C
787DEFS
788mandir
789localedir
790libdir
791psdir
792pdfdir
793dvidir
794htmldir
795infodir
796docdir
797oldincludedir
798includedir
799localstatedir
800sharedstatedir
801sysconfdir
802datadir
803datarootdir
804libexecdir
805sbindir
806bindir
807program_transform_name
808prefix
809exec_prefix
810PACKAGE_URL
811PACKAGE_BUGREPORT
812PACKAGE_STRING
813PACKAGE_VERSION
814PACKAGE_TARNAME
815PACKAGE_NAME
816PATH_SEPARATOR
817SHELL'
818ac_subst_files='DRTSTUFF_SPEC'
819ac_user_opts='
820enable_option_checking
821enable_multilib
822enable_silent_rules
823enable_maintainer_mode
824enable_shared
825enable_static
826with_pic
827enable_fast_install
828with_gnu_ld
829enable_libtool_lock
830enable_libphobos
831with_gcc_major_version_only
832enable_werror
833enable_druntime_gc
834enable_unix
835enable_thread_lib
836with_libatomic
837with_libbacktrace
838with_target_system_zlib
839with_cross_host
840enable_version_specific_runtime_libs
841'
842      ac_precious_vars='build_alias
843host_alias
844target_alias
845CC
846CFLAGS
847LDFLAGS
848LIBS
849CPPFLAGS
850CPP'
851
852
853# Initialize some variables set by options.
854ac_init_help=
855ac_init_version=false
856ac_unrecognized_opts=
857ac_unrecognized_sep=
858# The variables have the same names as the options, with
859# dashes changed to underlines.
860cache_file=/dev/null
861exec_prefix=NONE
862no_create=
863no_recursion=
864prefix=NONE
865program_prefix=NONE
866program_suffix=NONE
867program_transform_name=s,x,x,
868silent=
869site=
870srcdir=
871verbose=
872x_includes=NONE
873x_libraries=NONE
874
875# Installation directory options.
876# These are left unexpanded so users can "make install exec_prefix=/foo"
877# and all the variables that are supposed to be based on exec_prefix
878# by default will actually change.
879# Use braces instead of parens because sh, perl, etc. also accept them.
880# (The list follows the same order as the GNU Coding Standards.)
881bindir='${exec_prefix}/bin'
882sbindir='${exec_prefix}/sbin'
883libexecdir='${exec_prefix}/libexec'
884datarootdir='${prefix}/share'
885datadir='${datarootdir}'
886sysconfdir='${prefix}/etc'
887sharedstatedir='${prefix}/com'
888localstatedir='${prefix}/var'
889includedir='${prefix}/include'
890oldincludedir='/usr/include'
891docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892infodir='${datarootdir}/info'
893htmldir='${docdir}'
894dvidir='${docdir}'
895pdfdir='${docdir}'
896psdir='${docdir}'
897libdir='${exec_prefix}/lib'
898localedir='${datarootdir}/locale'
899mandir='${datarootdir}/man'
900
901ac_prev=
902ac_dashdash=
903for ac_option
904do
905  # If the previous option needs an argument, assign it.
906  if test -n "$ac_prev"; then
907    eval $ac_prev=\$ac_option
908    ac_prev=
909    continue
910  fi
911
912  case $ac_option in
913  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914  *=)   ac_optarg= ;;
915  *)    ac_optarg=yes ;;
916  esac
917
918  # Accept the important Cygnus configure options, so we can diagnose typos.
919
920  case $ac_dashdash$ac_option in
921  --)
922    ac_dashdash=yes ;;
923
924  -bindir | --bindir | --bindi | --bind | --bin | --bi)
925    ac_prev=bindir ;;
926  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927    bindir=$ac_optarg ;;
928
929  -build | --build | --buil | --bui | --bu)
930    ac_prev=build_alias ;;
931  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932    build_alias=$ac_optarg ;;
933
934  -cache-file | --cache-file | --cache-fil | --cache-fi \
935  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936    ac_prev=cache_file ;;
937  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939    cache_file=$ac_optarg ;;
940
941  --config-cache | -C)
942    cache_file=config.cache ;;
943
944  -datadir | --datadir | --datadi | --datad)
945    ac_prev=datadir ;;
946  -datadir=* | --datadir=* | --datadi=* | --datad=*)
947    datadir=$ac_optarg ;;
948
949  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950  | --dataroo | --dataro | --datar)
951    ac_prev=datarootdir ;;
952  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954    datarootdir=$ac_optarg ;;
955
956  -disable-* | --disable-*)
957    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958    # Reject names that are not valid shell variable names.
959    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960      as_fn_error $? "invalid feature name: $ac_useropt"
961    ac_useropt_orig=$ac_useropt
962    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963    case $ac_user_opts in
964      *"
965"enable_$ac_useropt"
966"*) ;;
967      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968	 ac_unrecognized_sep=', ';;
969    esac
970    eval enable_$ac_useropt=no ;;
971
972  -docdir | --docdir | --docdi | --doc | --do)
973    ac_prev=docdir ;;
974  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975    docdir=$ac_optarg ;;
976
977  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978    ac_prev=dvidir ;;
979  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980    dvidir=$ac_optarg ;;
981
982  -enable-* | --enable-*)
983    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984    # Reject names that are not valid shell variable names.
985    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986      as_fn_error $? "invalid feature name: $ac_useropt"
987    ac_useropt_orig=$ac_useropt
988    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989    case $ac_user_opts in
990      *"
991"enable_$ac_useropt"
992"*) ;;
993      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994	 ac_unrecognized_sep=', ';;
995    esac
996    eval enable_$ac_useropt=\$ac_optarg ;;
997
998  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000  | --exec | --exe | --ex)
1001    ac_prev=exec_prefix ;;
1002  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004  | --exec=* | --exe=* | --ex=*)
1005    exec_prefix=$ac_optarg ;;
1006
1007  -gas | --gas | --ga | --g)
1008    # Obsolete; use --with-gas.
1009    with_gas=yes ;;
1010
1011  -help | --help | --hel | --he | -h)
1012    ac_init_help=long ;;
1013  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014    ac_init_help=recursive ;;
1015  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016    ac_init_help=short ;;
1017
1018  -host | --host | --hos | --ho)
1019    ac_prev=host_alias ;;
1020  -host=* | --host=* | --hos=* | --ho=*)
1021    host_alias=$ac_optarg ;;
1022
1023  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024    ac_prev=htmldir ;;
1025  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026  | --ht=*)
1027    htmldir=$ac_optarg ;;
1028
1029  -includedir | --includedir | --includedi | --included | --include \
1030  | --includ | --inclu | --incl | --inc)
1031    ac_prev=includedir ;;
1032  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033  | --includ=* | --inclu=* | --incl=* | --inc=*)
1034    includedir=$ac_optarg ;;
1035
1036  -infodir | --infodir | --infodi | --infod | --info | --inf)
1037    ac_prev=infodir ;;
1038  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039    infodir=$ac_optarg ;;
1040
1041  -libdir | --libdir | --libdi | --libd)
1042    ac_prev=libdir ;;
1043  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044    libdir=$ac_optarg ;;
1045
1046  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047  | --libexe | --libex | --libe)
1048    ac_prev=libexecdir ;;
1049  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050  | --libexe=* | --libex=* | --libe=*)
1051    libexecdir=$ac_optarg ;;
1052
1053  -localedir | --localedir | --localedi | --localed | --locale)
1054    ac_prev=localedir ;;
1055  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056    localedir=$ac_optarg ;;
1057
1058  -localstatedir | --localstatedir | --localstatedi | --localstated \
1059  | --localstate | --localstat | --localsta | --localst | --locals)
1060    ac_prev=localstatedir ;;
1061  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063    localstatedir=$ac_optarg ;;
1064
1065  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066    ac_prev=mandir ;;
1067  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068    mandir=$ac_optarg ;;
1069
1070  -nfp | --nfp | --nf)
1071    # Obsolete; use --without-fp.
1072    with_fp=no ;;
1073
1074  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075  | --no-cr | --no-c | -n)
1076    no_create=yes ;;
1077
1078  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080    no_recursion=yes ;;
1081
1082  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084  | --oldin | --oldi | --old | --ol | --o)
1085    ac_prev=oldincludedir ;;
1086  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089    oldincludedir=$ac_optarg ;;
1090
1091  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092    ac_prev=prefix ;;
1093  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094    prefix=$ac_optarg ;;
1095
1096  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097  | --program-pre | --program-pr | --program-p)
1098    ac_prev=program_prefix ;;
1099  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101    program_prefix=$ac_optarg ;;
1102
1103  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104  | --program-suf | --program-su | --program-s)
1105    ac_prev=program_suffix ;;
1106  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108    program_suffix=$ac_optarg ;;
1109
1110  -program-transform-name | --program-transform-name \
1111  | --program-transform-nam | --program-transform-na \
1112  | --program-transform-n | --program-transform- \
1113  | --program-transform | --program-transfor \
1114  | --program-transfo | --program-transf \
1115  | --program-trans | --program-tran \
1116  | --progr-tra | --program-tr | --program-t)
1117    ac_prev=program_transform_name ;;
1118  -program-transform-name=* | --program-transform-name=* \
1119  | --program-transform-nam=* | --program-transform-na=* \
1120  | --program-transform-n=* | --program-transform-=* \
1121  | --program-transform=* | --program-transfor=* \
1122  | --program-transfo=* | --program-transf=* \
1123  | --program-trans=* | --program-tran=* \
1124  | --progr-tra=* | --program-tr=* | --program-t=*)
1125    program_transform_name=$ac_optarg ;;
1126
1127  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128    ac_prev=pdfdir ;;
1129  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130    pdfdir=$ac_optarg ;;
1131
1132  -psdir | --psdir | --psdi | --psd | --ps)
1133    ac_prev=psdir ;;
1134  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135    psdir=$ac_optarg ;;
1136
1137  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138  | -silent | --silent | --silen | --sile | --sil)
1139    silent=yes ;;
1140
1141  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142    ac_prev=sbindir ;;
1143  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144  | --sbi=* | --sb=*)
1145    sbindir=$ac_optarg ;;
1146
1147  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149  | --sharedst | --shareds | --shared | --share | --shar \
1150  | --sha | --sh)
1151    ac_prev=sharedstatedir ;;
1152  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155  | --sha=* | --sh=*)
1156    sharedstatedir=$ac_optarg ;;
1157
1158  -site | --site | --sit)
1159    ac_prev=site ;;
1160  -site=* | --site=* | --sit=*)
1161    site=$ac_optarg ;;
1162
1163  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164    ac_prev=srcdir ;;
1165  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166    srcdir=$ac_optarg ;;
1167
1168  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169  | --syscon | --sysco | --sysc | --sys | --sy)
1170    ac_prev=sysconfdir ;;
1171  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173    sysconfdir=$ac_optarg ;;
1174
1175  -target | --target | --targe | --targ | --tar | --ta | --t)
1176    ac_prev=target_alias ;;
1177  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178    target_alias=$ac_optarg ;;
1179
1180  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1181    verbose=yes ;;
1182
1183  -version | --version | --versio | --versi | --vers | -V)
1184    ac_init_version=: ;;
1185
1186  -with-* | --with-*)
1187    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188    # Reject names that are not valid shell variable names.
1189    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190      as_fn_error $? "invalid package name: $ac_useropt"
1191    ac_useropt_orig=$ac_useropt
1192    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193    case $ac_user_opts in
1194      *"
1195"with_$ac_useropt"
1196"*) ;;
1197      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198	 ac_unrecognized_sep=', ';;
1199    esac
1200    eval with_$ac_useropt=\$ac_optarg ;;
1201
1202  -without-* | --without-*)
1203    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204    # Reject names that are not valid shell variable names.
1205    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206      as_fn_error $? "invalid package name: $ac_useropt"
1207    ac_useropt_orig=$ac_useropt
1208    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209    case $ac_user_opts in
1210      *"
1211"with_$ac_useropt"
1212"*) ;;
1213      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214	 ac_unrecognized_sep=', ';;
1215    esac
1216    eval with_$ac_useropt=no ;;
1217
1218  --x)
1219    # Obsolete; use --with-x.
1220    with_x=yes ;;
1221
1222  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223  | --x-incl | --x-inc | --x-in | --x-i)
1224    ac_prev=x_includes ;;
1225  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227    x_includes=$ac_optarg ;;
1228
1229  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231    ac_prev=x_libraries ;;
1232  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234    x_libraries=$ac_optarg ;;
1235
1236  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1237Try \`$0 --help' for more information"
1238    ;;
1239
1240  *=*)
1241    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242    # Reject names that are not valid shell variable names.
1243    case $ac_envvar in #(
1244      '' | [0-9]* | *[!_$as_cr_alnum]* )
1245      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1246    esac
1247    eval $ac_envvar=\$ac_optarg
1248    export $ac_envvar ;;
1249
1250  *)
1251    # FIXME: should be removed in autoconf 3.0.
1252    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1256    ;;
1257
1258  esac
1259done
1260
1261if test -n "$ac_prev"; then
1262  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263  as_fn_error $? "missing argument to $ac_option"
1264fi
1265
1266if test -n "$ac_unrecognized_opts"; then
1267  case $enable_option_checking in
1268    no) ;;
1269    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1270    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271  esac
1272fi
1273
1274# Check all directory arguments for consistency.
1275for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276		datadir sysconfdir sharedstatedir localstatedir includedir \
1277		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278		libdir localedir mandir
1279do
1280  eval ac_val=\$$ac_var
1281  # Remove trailing slashes.
1282  case $ac_val in
1283    */ )
1284      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285      eval $ac_var=\$ac_val;;
1286  esac
1287  # Be sure to have absolute directory names.
1288  case $ac_val in
1289    [\\/$]* | ?:[\\/]* )  continue;;
1290    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291  esac
1292  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1293done
1294
1295# There might be people who depend on the old broken behavior: `$host'
1296# used to hold the argument of --host etc.
1297# FIXME: To remove some day.
1298build=$build_alias
1299host=$host_alias
1300target=$target_alias
1301
1302# FIXME: To remove some day.
1303if test "x$host_alias" != x; then
1304  if test "x$build_alias" = x; then
1305    cross_compiling=maybe
1306  elif test "x$build_alias" != "x$host_alias"; then
1307    cross_compiling=yes
1308  fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320  as_fn_error $? "working directory cannot be determined"
1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322  as_fn_error $? "pwd does not report name of working directory"
1323
1324
1325# Find the source files, if location was not specified.
1326if test -z "$srcdir"; then
1327  ac_srcdir_defaulted=yes
1328  # Try the directory containing this script, then the parent directory.
1329  ac_confdir=`$as_dirname -- "$as_myself" ||
1330$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331	 X"$as_myself" : 'X\(//\)[^/]' \| \
1332	 X"$as_myself" : 'X\(//\)$' \| \
1333	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334$as_echo X"$as_myself" |
1335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336	    s//\1/
1337	    q
1338	  }
1339	  /^X\(\/\/\)[^/].*/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\/\)$/{
1344	    s//\1/
1345	    q
1346	  }
1347	  /^X\(\/\).*/{
1348	    s//\1/
1349	    q
1350	  }
1351	  s/.*/./; q'`
1352  srcdir=$ac_confdir
1353  if test ! -r "$srcdir/$ac_unique_file"; then
1354    srcdir=..
1355  fi
1356else
1357  ac_srcdir_defaulted=no
1358fi
1359if test ! -r "$srcdir/$ac_unique_file"; then
1360  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1362fi
1363ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364ac_abs_confdir=`(
1365	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1366	pwd)`
1367# When building in place, set srcdir=.
1368if test "$ac_abs_confdir" = "$ac_pwd"; then
1369  srcdir=.
1370fi
1371# Remove unnecessary trailing slashes from srcdir.
1372# Double slashes in file names in object file debugging info
1373# mess up M-x gdb in Emacs.
1374case $srcdir in
1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376esac
1377for ac_var in $ac_precious_vars; do
1378  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379  eval ac_env_${ac_var}_value=\$${ac_var}
1380  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382done
1383
1384#
1385# Report the --help message.
1386#
1387if test "$ac_init_help" = "long"; then
1388  # Omit some internal or obsolete options to make the list less imposing.
1389  # This message is too long to be a string in the A/UX 3.1 sh.
1390  cat <<_ACEOF
1391\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1392
1393Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396VAR=VALUE.  See below for descriptions of some of the useful variables.
1397
1398Defaults for the options are specified in brackets.
1399
1400Configuration:
1401  -h, --help              display this help and exit
1402      --help=short        display options specific to this package
1403      --help=recursive    display the short help of all the included packages
1404  -V, --version           display version information and exit
1405  -q, --quiet, --silent   do not print \`checking ...' messages
1406      --cache-file=FILE   cache test results in FILE [disabled]
1407  -C, --config-cache      alias for \`--cache-file=config.cache'
1408  -n, --no-create         do not create output files
1409      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1410
1411Installation directories:
1412  --prefix=PREFIX         install architecture-independent files in PREFIX
1413                          [$ac_default_prefix]
1414  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1415                          [PREFIX]
1416
1417By default, \`make install' will install all the files in
1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1419an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420for instance \`--prefix=\$HOME'.
1421
1422For better control, use the options below.
1423
1424Fine tuning of the installation directories:
1425  --bindir=DIR            user executables [EPREFIX/bin]
1426  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1427  --libexecdir=DIR        program executables [EPREFIX/libexec]
1428  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1429  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1430  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1431  --libdir=DIR            object code libraries [EPREFIX/lib]
1432  --includedir=DIR        C header files [PREFIX/include]
1433  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1434  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1435  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1436  --infodir=DIR           info documentation [DATAROOTDIR/info]
1437  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1438  --mandir=DIR            man documentation [DATAROOTDIR/man]
1439  --docdir=DIR            documentation root [DATAROOTDIR/doc/libphobos]
1440  --htmldir=DIR           html documentation [DOCDIR]
1441  --dvidir=DIR            dvi documentation [DOCDIR]
1442  --pdfdir=DIR            pdf documentation [DOCDIR]
1443  --psdir=DIR             ps documentation [DOCDIR]
1444_ACEOF
1445
1446  cat <<\_ACEOF
1447
1448Program names:
1449  --program-prefix=PREFIX            prepend PREFIX to installed program names
1450  --program-suffix=SUFFIX            append SUFFIX to installed program names
1451  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1452
1453System types:
1454  --build=BUILD     configure for building on BUILD [guessed]
1455  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1456  --target=TARGET   configure for building compilers for TARGET [HOST]
1457_ACEOF
1458fi
1459
1460if test -n "$ac_init_help"; then
1461  case $ac_init_help in
1462     short | recursive ) echo "Configuration of package-unused version-unused:";;
1463   esac
1464  cat <<\_ACEOF
1465
1466Optional Features:
1467  --disable-option-checking  ignore unrecognized --enable/--with options
1468  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1469  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1470  --enable-multilib       build many library versions (default)
1471  --enable-silent-rules   less verbose build output (undo: "make V=1")
1472  --disable-silent-rules  verbose build output (undo: "make V=0")
1473  --enable-maintainer-mode
1474                          enable make rules and dependencies not useful (and
1475                          sometimes confusing) to the casual installer
1476  --enable-shared[=PKGS]  build shared libraries [default=yes]
1477  --enable-static[=PKGS]  build static libraries [default=yes]
1478  --enable-fast-install[=PKGS]
1479                          optimize for fast installation [default=yes]
1480  --disable-libtool-lock  avoid locking (might break parallel builds)
1481  --enable-libphobos      Enable libphobos
1482  --enable-werror         turns on -Werror [default=no]
1483  --enable-druntime-gc    enable D runtime garbage collector (default: yes)
1484  --enable-unix           enables Unix runtime (default: yes, for Unix
1485                          targets)
1486  --enable-thread-lib=<arg>
1487                          specify linker option for the system thread library
1488                          (default: autodetect)
1489  --enable-version-specific-runtime-libs
1490                          Specify that runtime libraries should be installed
1491                          in a compiler-specific directory
1492
1493Optional Packages:
1494  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1495  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1496  --with-pic              try to use only PIC/non-PIC objects [default=use
1497                          both]
1498  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1499  --with-gcc-major-version-only
1500                          use only GCC major number in filesystem paths
1501  --without-libatomic     Do not use libatomic in core.atomic (default: auto)
1502  --without-libbacktrace  Do not use libbacktrace in core.runtime (default:
1503                          auto)
1504  --with-target-system-zlib={yes,no,auto}
1505                          use installed libz (default: no)
1506  --with-cross-host=HOST  configuring with a cross compiler
1507
1508Some influential environment variables:
1509  CC          C compiler command
1510  CFLAGS      C compiler flags
1511  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1512              nonstandard directory <lib dir>
1513  LIBS        libraries to pass to the linker, e.g. -l<library>
1514  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515              you have headers in a nonstandard directory <include dir>
1516  CPP         C preprocessor
1517  CCAS        assembler compiler command (defaults to CC)
1518  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1519  GDC         D compiler command
1520  GDCFLAGS    D compiler flags
1521
1522Use these variables to override the choices made by `configure' or to help
1523it to find libraries and programs with nonstandard names/locations.
1524
1525Report bugs to the package provider.
1526_ACEOF
1527ac_status=$?
1528fi
1529
1530if test "$ac_init_help" = "recursive"; then
1531  # If there are subdirs, report their specific --help.
1532  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533    test -d "$ac_dir" ||
1534      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1535      continue
1536    ac_builddir=.
1537
1538case "$ac_dir" in
1539.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540*)
1541  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1542  # A ".." for each directory in $ac_dir_suffix.
1543  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1544  case $ac_top_builddir_sub in
1545  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547  esac ;;
1548esac
1549ac_abs_top_builddir=$ac_pwd
1550ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551# for backward compatibility:
1552ac_top_builddir=$ac_top_build_prefix
1553
1554case $srcdir in
1555  .)  # We are building in place.
1556    ac_srcdir=.
1557    ac_top_srcdir=$ac_top_builddir_sub
1558    ac_abs_top_srcdir=$ac_pwd ;;
1559  [\\/]* | ?:[\\/]* )  # Absolute name.
1560    ac_srcdir=$srcdir$ac_dir_suffix;
1561    ac_top_srcdir=$srcdir
1562    ac_abs_top_srcdir=$srcdir ;;
1563  *) # Relative name.
1564    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565    ac_top_srcdir=$ac_top_build_prefix$srcdir
1566    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567esac
1568ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569
1570    cd "$ac_dir" || { ac_status=$?; continue; }
1571    # Check for guested configure.
1572    if test -f "$ac_srcdir/configure.gnu"; then
1573      echo &&
1574      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575    elif test -f "$ac_srcdir/configure"; then
1576      echo &&
1577      $SHELL "$ac_srcdir/configure" --help=recursive
1578    else
1579      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580    fi || ac_status=$?
1581    cd "$ac_pwd" || { ac_status=$?; break; }
1582  done
1583fi
1584
1585test -n "$ac_init_help" && exit $ac_status
1586if $ac_init_version; then
1587  cat <<\_ACEOF
1588package-unused configure version-unused
1589generated by GNU Autoconf 2.69
1590
1591Copyright (C) 2012 Free Software Foundation, Inc.
1592This configure script is free software; the Free Software Foundation
1593gives unlimited permission to copy, distribute and modify it.
1594_ACEOF
1595  exit
1596fi
1597
1598## ------------------------ ##
1599## Autoconf initialization. ##
1600## ------------------------ ##
1601
1602# ac_fn_c_try_compile LINENO
1603# --------------------------
1604# Try to compile conftest.$ac_ext, and return whether this succeeded.
1605ac_fn_c_try_compile ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  rm -f conftest.$ac_objext
1609  if { { ac_try="$ac_compile"
1610case "(($ac_try" in
1611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612  *) ac_try_echo=$ac_try;;
1613esac
1614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615$as_echo "$ac_try_echo"; } >&5
1616  (eval "$ac_compile") 2>conftest.err
1617  ac_status=$?
1618  if test -s conftest.err; then
1619    grep -v '^ *+' conftest.err >conftest.er1
1620    cat conftest.er1 >&5
1621    mv -f conftest.er1 conftest.err
1622  fi
1623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624  test $ac_status = 0; } && {
1625	 test -z "$ac_c_werror_flag" ||
1626	 test ! -s conftest.err
1627       } && test -s conftest.$ac_objext; then :
1628  ac_retval=0
1629else
1630  $as_echo "$as_me: failed program was:" >&5
1631sed 's/^/| /' conftest.$ac_ext >&5
1632
1633	ac_retval=1
1634fi
1635  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636  as_fn_set_status $ac_retval
1637
1638} # ac_fn_c_try_compile
1639
1640# ac_fn_c_try_cpp LINENO
1641# ----------------------
1642# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643ac_fn_c_try_cpp ()
1644{
1645  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646  if { { ac_try="$ac_cpp conftest.$ac_ext"
1647case "(($ac_try" in
1648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649  *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652$as_echo "$ac_try_echo"; } >&5
1653  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654  ac_status=$?
1655  if test -s conftest.err; then
1656    grep -v '^ *+' conftest.err >conftest.er1
1657    cat conftest.er1 >&5
1658    mv -f conftest.er1 conftest.err
1659  fi
1660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; } > conftest.i && {
1662	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663	 test ! -s conftest.err
1664       }; then :
1665  ac_retval=0
1666else
1667  $as_echo "$as_me: failed program was:" >&5
1668sed 's/^/| /' conftest.$ac_ext >&5
1669
1670    ac_retval=1
1671fi
1672  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673  as_fn_set_status $ac_retval
1674
1675} # ac_fn_c_try_cpp
1676
1677# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1678# -------------------------------------------------------
1679# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1680# the include files in INCLUDES and setting the cache variable VAR
1681# accordingly.
1682ac_fn_c_check_header_mongrel ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  if eval \${$3+:} false; then :
1686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687$as_echo_n "checking for $2... " >&6; }
1688if eval \${$3+:} false; then :
1689  $as_echo_n "(cached) " >&6
1690fi
1691eval ac_res=\$$3
1692	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693$as_echo "$ac_res" >&6; }
1694else
1695  # Is the header compilable?
1696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1697$as_echo_n "checking $2 usability... " >&6; }
1698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699/* end confdefs.h.  */
1700$4
1701#include <$2>
1702_ACEOF
1703if ac_fn_c_try_compile "$LINENO"; then :
1704  ac_header_compiler=yes
1705else
1706  ac_header_compiler=no
1707fi
1708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1710$as_echo "$ac_header_compiler" >&6; }
1711
1712# Is the header present?
1713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1714$as_echo_n "checking $2 presence... " >&6; }
1715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716/* end confdefs.h.  */
1717#include <$2>
1718_ACEOF
1719if ac_fn_c_try_cpp "$LINENO"; then :
1720  ac_header_preproc=yes
1721else
1722  ac_header_preproc=no
1723fi
1724rm -f conftest.err conftest.i conftest.$ac_ext
1725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1726$as_echo "$ac_header_preproc" >&6; }
1727
1728# So?  What about this header?
1729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1730  yes:no: )
1731    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1732$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1733    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735    ;;
1736  no:yes:* )
1737    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1738$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1739    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1740$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1741    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1742$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1743    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1744$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1745    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1746$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1747    ;;
1748esac
1749  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750$as_echo_n "checking for $2... " >&6; }
1751if eval \${$3+:} false; then :
1752  $as_echo_n "(cached) " >&6
1753else
1754  eval "$3=\$ac_header_compiler"
1755fi
1756eval ac_res=\$$3
1757	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758$as_echo "$ac_res" >&6; }
1759fi
1760  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762} # ac_fn_c_check_header_mongrel
1763
1764# ac_fn_c_try_run LINENO
1765# ----------------------
1766# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767# that executables *can* be run.
1768ac_fn_c_try_run ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  if { { ac_try="$ac_link"
1772case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_link") 2>&5
1779  ac_status=$?
1780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782  { { case "(($ac_try" in
1783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784  *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788  (eval "$ac_try") 2>&5
1789  ac_status=$?
1790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791  test $ac_status = 0; }; }; then :
1792  ac_retval=0
1793else
1794  $as_echo "$as_me: program exited with status $ac_status" >&5
1795       $as_echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798       ac_retval=$ac_status
1799fi
1800  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802  as_fn_set_status $ac_retval
1803
1804} # ac_fn_c_try_run
1805
1806# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1807# -------------------------------------------------------
1808# Tests whether HEADER exists and can be compiled using the include files in
1809# INCLUDES, setting the cache variable VAR accordingly.
1810ac_fn_c_check_header_compile ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
1815if eval \${$3+:} false; then :
1816  $as_echo_n "(cached) " >&6
1817else
1818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819/* end confdefs.h.  */
1820$4
1821#include <$2>
1822_ACEOF
1823if ac_fn_c_try_compile "$LINENO"; then :
1824  eval "$3=yes"
1825else
1826  eval "$3=no"
1827fi
1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829fi
1830eval ac_res=\$$3
1831	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835} # ac_fn_c_check_header_compile
1836
1837# ac_fn_d_try_compile LINENO
1838# --------------------------
1839# Try to compile conftest.$ac_ext, and return whether this succeeded.
1840ac_fn_d_try_compile ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  rm -f conftest.$ac_objext
1844  if { { ac_try="$ac_compile"
1845case "(($ac_try" in
1846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847  *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850$as_echo "$ac_try_echo"; } >&5
1851  (eval "$ac_compile") 2>conftest.err
1852  ac_status=$?
1853  if test -s conftest.err; then
1854    grep -v '^ *+' conftest.err >conftest.er1
1855    cat conftest.er1 >&5
1856    mv -f conftest.er1 conftest.err
1857  fi
1858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859  test $ac_status = 0; } && {
1860	 test -z "$ac_d_werror_flag" ||
1861	 test ! -s conftest.err
1862       } && test -s conftest.$ac_objext; then :
1863  ac_retval=0
1864else
1865  $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868	ac_retval=1
1869fi
1870  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871  as_fn_set_status $ac_retval
1872
1873} # ac_fn_d_try_compile
1874
1875# ac_fn_c_try_link LINENO
1876# -----------------------
1877# Try to link conftest.$ac_ext, and return whether this succeeded.
1878ac_fn_c_try_link ()
1879{
1880  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881  rm -f conftest.$ac_objext conftest$ac_exeext
1882  if { { ac_try="$ac_link"
1883case "(($ac_try" in
1884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885  *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889  (eval "$ac_link") 2>conftest.err
1890  ac_status=$?
1891  if test -s conftest.err; then
1892    grep -v '^ *+' conftest.err >conftest.er1
1893    cat conftest.er1 >&5
1894    mv -f conftest.er1 conftest.err
1895  fi
1896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897  test $ac_status = 0; } && {
1898	 test -z "$ac_c_werror_flag" ||
1899	 test ! -s conftest.err
1900       } && test -s conftest$ac_exeext && {
1901	 test "$cross_compiling" = yes ||
1902	 test -x conftest$ac_exeext
1903       }; then :
1904  ac_retval=0
1905else
1906  $as_echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
1908
1909	ac_retval=1
1910fi
1911  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913  # interfere with the next link command; also delete a directory that is
1914  # left behind by Apple's compiler.  We do this before executing the actions.
1915  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917  as_fn_set_status $ac_retval
1918
1919} # ac_fn_c_try_link
1920
1921# ac_fn_c_check_func LINENO FUNC VAR
1922# ----------------------------------
1923# Tests whether FUNC exists, setting the cache variable VAR accordingly
1924ac_fn_c_check_func ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
1929if eval \${$3+:} false; then :
1930  $as_echo_n "(cached) " >&6
1931else
1932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1936#define $2 innocuous_$2
1937
1938/* System header to define __stub macros and hopefully few prototypes,
1939    which can conflict with char $2 (); below.
1940    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941    <limits.h> exists even on freestanding compilers.  */
1942
1943#ifdef __STDC__
1944# include <limits.h>
1945#else
1946# include <assert.h>
1947#endif
1948
1949#undef $2
1950
1951/* Override any GCC internal prototype to avoid an error.
1952   Use char because int might match the return type of a GCC
1953   builtin and then its argument prototype would still apply.  */
1954#ifdef __cplusplus
1955extern "C"
1956#endif
1957char $2 ();
1958/* The GNU C library defines this for functions which it implements
1959    to always fail with ENOSYS.  Some functions are actually named
1960    something starting with __ and the normal name is an alias.  */
1961#if defined __stub_$2 || defined __stub___$2
1962choke me
1963#endif
1964
1965int
1966main ()
1967{
1968return $2 ();
1969  ;
1970  return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_link "$LINENO"; then :
1974  eval "$3=yes"
1975else
1976  eval "$3=no"
1977fi
1978rm -f core conftest.err conftest.$ac_objext \
1979    conftest$ac_exeext conftest.$ac_ext
1980fi
1981eval ac_res=\$$3
1982	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983$as_echo "$ac_res" >&6; }
1984  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986} # ac_fn_c_check_func
1987
1988# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1989# ----------------------------------------------------
1990# Tries to find if the field MEMBER exists in type AGGR, after including
1991# INCLUDES, setting cache variable VAR accordingly.
1992ac_fn_c_check_member ()
1993{
1994  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1996$as_echo_n "checking for $2.$3... " >&6; }
1997if eval \${$4+:} false; then :
1998  $as_echo_n "(cached) " >&6
1999else
2000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h.  */
2002$5
2003int
2004main ()
2005{
2006static $2 ac_aggr;
2007if (ac_aggr.$3)
2008return 0;
2009  ;
2010  return 0;
2011}
2012_ACEOF
2013if ac_fn_c_try_compile "$LINENO"; then :
2014  eval "$4=yes"
2015else
2016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h.  */
2018$5
2019int
2020main ()
2021{
2022static $2 ac_aggr;
2023if (sizeof 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  eval "$4=no"
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038eval ac_res=\$$4
2039	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040$as_echo "$ac_res" >&6; }
2041  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043} # ac_fn_c_check_member
2044
2045# ac_fn_d_try_link LINENO
2046# -----------------------
2047# Try to link conftest.$ac_ext, and return whether this succeeded.
2048ac_fn_d_try_link ()
2049{
2050  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051  rm -f conftest.$ac_objext conftest$ac_exeext
2052  if { { ac_try="$ac_link"
2053case "(($ac_try" in
2054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055  *) ac_try_echo=$ac_try;;
2056esac
2057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058$as_echo "$ac_try_echo"; } >&5
2059  (eval "$ac_link") 2>conftest.err
2060  ac_status=$?
2061  if test -s conftest.err; then
2062    grep -v '^ *+' conftest.err >conftest.er1
2063    cat conftest.er1 >&5
2064    mv -f conftest.er1 conftest.err
2065  fi
2066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067  test $ac_status = 0; } && {
2068	 test -z "$ac_d_werror_flag" ||
2069	 test ! -s conftest.err
2070       } && test -s conftest$ac_exeext && {
2071	 test "$cross_compiling" = yes ||
2072	 test -x conftest$ac_exeext
2073       }; then :
2074  ac_retval=0
2075else
2076  $as_echo "$as_me: failed program was:" >&5
2077sed 's/^/| /' conftest.$ac_ext >&5
2078
2079	ac_retval=1
2080fi
2081  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2082  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2083  # interfere with the next link command; also delete a directory that is
2084  # left behind by Apple's compiler.  We do this before executing the actions.
2085  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2086  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087  as_fn_set_status $ac_retval
2088
2089} # ac_fn_d_try_link
2090cat >config.log <<_ACEOF
2091This file contains any messages produced by compilers while
2092running configure, to aid debugging if configure makes a mistake.
2093
2094It was created by package-unused $as_me version-unused, which was
2095generated by GNU Autoconf 2.69.  Invocation command line was
2096
2097  $ $0 $@
2098
2099_ACEOF
2100exec 5>>config.log
2101{
2102cat <<_ASUNAME
2103## --------- ##
2104## Platform. ##
2105## --------- ##
2106
2107hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2108uname -m = `(uname -m) 2>/dev/null || echo unknown`
2109uname -r = `(uname -r) 2>/dev/null || echo unknown`
2110uname -s = `(uname -s) 2>/dev/null || echo unknown`
2111uname -v = `(uname -v) 2>/dev/null || echo unknown`
2112
2113/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2114/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2115
2116/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2117/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2118/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2119/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2120/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2121/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2122/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2123
2124_ASUNAME
2125
2126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129  IFS=$as_save_IFS
2130  test -z "$as_dir" && as_dir=.
2131    $as_echo "PATH: $as_dir"
2132  done
2133IFS=$as_save_IFS
2134
2135} >&5
2136
2137cat >&5 <<_ACEOF
2138
2139
2140## ----------- ##
2141## Core tests. ##
2142## ----------- ##
2143
2144_ACEOF
2145
2146
2147# Keep a trace of the command line.
2148# Strip out --no-create and --no-recursion so they do not pile up.
2149# Strip out --silent because we don't want to record it for future runs.
2150# Also quote any args containing shell meta-characters.
2151# Make two passes to allow for proper duplicate-argument suppression.
2152ac_configure_args=
2153ac_configure_args0=
2154ac_configure_args1=
2155ac_must_keep_next=false
2156for ac_pass in 1 2
2157do
2158  for ac_arg
2159  do
2160    case $ac_arg in
2161    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2162    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2163    | -silent | --silent | --silen | --sile | --sil)
2164      continue ;;
2165    *\'*)
2166      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2167    esac
2168    case $ac_pass in
2169    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2170    2)
2171      as_fn_append ac_configure_args1 " '$ac_arg'"
2172      if test $ac_must_keep_next = true; then
2173	ac_must_keep_next=false # Got value, back to normal.
2174      else
2175	case $ac_arg in
2176	  *=* | --config-cache | -C | -disable-* | --disable-* \
2177	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2178	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2179	  | -with-* | --with-* | -without-* | --without-* | --x)
2180	    case "$ac_configure_args0 " in
2181	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2182	    esac
2183	    ;;
2184	  -* ) ac_must_keep_next=true ;;
2185	esac
2186      fi
2187      as_fn_append ac_configure_args " '$ac_arg'"
2188      ;;
2189    esac
2190  done
2191done
2192{ ac_configure_args0=; unset ac_configure_args0;}
2193{ ac_configure_args1=; unset ac_configure_args1;}
2194
2195# When interrupted or exit'd, cleanup temporary files, and complete
2196# config.log.  We remove comments because anyway the quotes in there
2197# would cause problems or look ugly.
2198# WARNING: Use '\'' to represent an apostrophe within the trap.
2199# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2200trap 'exit_status=$?
2201  # Save into config.log some information that might help in debugging.
2202  {
2203    echo
2204
2205    $as_echo "## ---------------- ##
2206## Cache variables. ##
2207## ---------------- ##"
2208    echo
2209    # The following way of writing the cache mishandles newlines in values,
2210(
2211  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2212    eval ac_val=\$$ac_var
2213    case $ac_val in #(
2214    *${as_nl}*)
2215      case $ac_var in #(
2216      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2217$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2218      esac
2219      case $ac_var in #(
2220      _ | IFS | as_nl) ;; #(
2221      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2222      *) { eval $ac_var=; unset $ac_var;} ;;
2223      esac ;;
2224    esac
2225  done
2226  (set) 2>&1 |
2227    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2228    *${as_nl}ac_space=\ *)
2229      sed -n \
2230	"s/'\''/'\''\\\\'\'''\''/g;
2231	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2232      ;; #(
2233    *)
2234      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2235      ;;
2236    esac |
2237    sort
2238)
2239    echo
2240
2241    $as_echo "## ----------------- ##
2242## Output variables. ##
2243## ----------------- ##"
2244    echo
2245    for ac_var in $ac_subst_vars
2246    do
2247      eval ac_val=\$$ac_var
2248      case $ac_val in
2249      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250      esac
2251      $as_echo "$ac_var='\''$ac_val'\''"
2252    done | sort
2253    echo
2254
2255    if test -n "$ac_subst_files"; then
2256      $as_echo "## ------------------- ##
2257## File substitutions. ##
2258## ------------------- ##"
2259      echo
2260      for ac_var in $ac_subst_files
2261      do
2262	eval ac_val=\$$ac_var
2263	case $ac_val in
2264	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265	esac
2266	$as_echo "$ac_var='\''$ac_val'\''"
2267      done | sort
2268      echo
2269    fi
2270
2271    if test -s confdefs.h; then
2272      $as_echo "## ----------- ##
2273## confdefs.h. ##
2274## ----------- ##"
2275      echo
2276      cat confdefs.h
2277      echo
2278    fi
2279    test "$ac_signal" != 0 &&
2280      $as_echo "$as_me: caught signal $ac_signal"
2281    $as_echo "$as_me: exit $exit_status"
2282  } >&5
2283  rm -f core *.core core.conftest.* &&
2284    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2285    exit $exit_status
2286' 0
2287for ac_signal in 1 2 13 15; do
2288  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2289done
2290ac_signal=0
2291
2292# confdefs.h avoids OS command line length limits that DEFS can exceed.
2293rm -f -r conftest* confdefs.h
2294
2295$as_echo "/* confdefs.h */" > confdefs.h
2296
2297# Predefined preprocessor variables.
2298
2299cat >>confdefs.h <<_ACEOF
2300#define PACKAGE_NAME "$PACKAGE_NAME"
2301_ACEOF
2302
2303cat >>confdefs.h <<_ACEOF
2304#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2305_ACEOF
2306
2307cat >>confdefs.h <<_ACEOF
2308#define PACKAGE_VERSION "$PACKAGE_VERSION"
2309_ACEOF
2310
2311cat >>confdefs.h <<_ACEOF
2312#define PACKAGE_STRING "$PACKAGE_STRING"
2313_ACEOF
2314
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2317_ACEOF
2318
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_URL "$PACKAGE_URL"
2321_ACEOF
2322
2323
2324# Let the site file select an alternate cache file if it wants to.
2325# Prefer an explicitly selected file to automatically selected ones.
2326ac_site_file1=NONE
2327ac_site_file2=NONE
2328if test -n "$CONFIG_SITE"; then
2329  # We do not want a PATH search for config.site.
2330  case $CONFIG_SITE in #((
2331    -*)  ac_site_file1=./$CONFIG_SITE;;
2332    */*) ac_site_file1=$CONFIG_SITE;;
2333    *)   ac_site_file1=./$CONFIG_SITE;;
2334  esac
2335elif test "x$prefix" != xNONE; then
2336  ac_site_file1=$prefix/share/config.site
2337  ac_site_file2=$prefix/etc/config.site
2338else
2339  ac_site_file1=$ac_default_prefix/share/config.site
2340  ac_site_file2=$ac_default_prefix/etc/config.site
2341fi
2342for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2343do
2344  test "x$ac_site_file" = xNONE && continue
2345  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2346    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2347$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2348    sed 's/^/| /' "$ac_site_file" >&5
2349    . "$ac_site_file" \
2350      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352as_fn_error $? "failed to load site script $ac_site_file
2353See \`config.log' for more details" "$LINENO" 5; }
2354  fi
2355done
2356
2357if test -r "$cache_file"; then
2358  # Some versions of bash will fail to source /dev/null (special files
2359  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2360  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2361    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362$as_echo "$as_me: loading cache $cache_file" >&6;}
2363    case $cache_file in
2364      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2365      *)                      . "./$cache_file";;
2366    esac
2367  fi
2368else
2369  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370$as_echo "$as_me: creating cache $cache_file" >&6;}
2371  >$cache_file
2372fi
2373
2374# Check that the precious variables saved in the cache have kept the same
2375# value.
2376ac_cache_corrupted=false
2377for ac_var in $ac_precious_vars; do
2378  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2379  eval ac_new_set=\$ac_env_${ac_var}_set
2380  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2381  eval ac_new_val=\$ac_env_${ac_var}_value
2382  case $ac_old_set,$ac_new_set in
2383    set,)
2384      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2385$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2386      ac_cache_corrupted=: ;;
2387    ,set)
2388      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2389$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2390      ac_cache_corrupted=: ;;
2391    ,);;
2392    *)
2393      if test "x$ac_old_val" != "x$ac_new_val"; then
2394	# differences in whitespace do not lead to failure.
2395	ac_old_val_w=`echo x $ac_old_val`
2396	ac_new_val_w=`echo x $ac_new_val`
2397	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2398	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2399$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2400	  ac_cache_corrupted=:
2401	else
2402	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2403$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2404	  eval $ac_var=\$ac_old_val
2405	fi
2406	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2407$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2408	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2409$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2410      fi;;
2411  esac
2412  # Pass precious variables to config.status.
2413  if test "$ac_new_set" = set; then
2414    case $ac_new_val in
2415    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2416    *) ac_arg=$ac_var=$ac_new_val ;;
2417    esac
2418    case " $ac_configure_args " in
2419      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2420      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2421    esac
2422  fi
2423done
2424if $ac_cache_corrupted; then
2425  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2427  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2428$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2429  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2430fi
2431## -------------------- ##
2432## Main body of script. ##
2433## -------------------- ##
2434
2435ac_ext=c
2436ac_cpp='$CPP $CPPFLAGS'
2437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440
2441
2442
2443
2444
2445
2446ac_config_headers="$ac_config_headers config.h"
2447
2448
2449# Default to --enable-multilib
2450# Check whether --enable-multilib was given.
2451if test "${enable_multilib+set}" = set; then :
2452  enableval=$enable_multilib; case "$enableval" in
2453  yes) multilib=yes ;;
2454  no)  multilib=no ;;
2455  *)   as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2456 esac
2457else
2458  multilib=yes
2459fi
2460
2461
2462# We may get other options which we leave undocumented:
2463# --with-target-subdir, --with-multisrctop, --with-multisubdir
2464# See config-ml.in if you want the gory details.
2465
2466if test "$srcdir" = "."; then
2467  if test "$with_target_subdir" != "."; then
2468    multi_basedir="$srcdir/$with_multisrctop../.."
2469  else
2470    multi_basedir="$srcdir/$with_multisrctop.."
2471  fi
2472else
2473  multi_basedir="$srcdir/.."
2474fi
2475
2476
2477# Even if the default multilib is not a cross compilation,
2478# it may be that some of the other multilibs are.
2479if test $cross_compiling = no && test $multilib = yes \
2480   && test "x${with_multisubdir}" != x ; then
2481   cross_compiling=maybe
2482fi
2483
2484ac_config_commands="$ac_config_commands default-1"
2485
2486ac_aux_dir=
2487for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2488  if test -f "$ac_dir/install-sh"; then
2489    ac_aux_dir=$ac_dir
2490    ac_install_sh="$ac_aux_dir/install-sh -c"
2491    break
2492  elif test -f "$ac_dir/install.sh"; then
2493    ac_aux_dir=$ac_dir
2494    ac_install_sh="$ac_aux_dir/install.sh -c"
2495    break
2496  elif test -f "$ac_dir/shtool"; then
2497    ac_aux_dir=$ac_dir
2498    ac_install_sh="$ac_aux_dir/shtool install -c"
2499    break
2500  fi
2501done
2502if test -z "$ac_aux_dir"; then
2503  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2504fi
2505
2506# These three variables are undocumented and unsupported,
2507# and are intended to be withdrawn in a future Autoconf release.
2508# They can cause serious problems if a builder's source tree is in a directory
2509# whose full name contains unusual characters.
2510ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2511ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2512ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2513
2514
2515# Make sure we can run config.sub.
2516$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2517  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2518
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2520$as_echo_n "checking build system type... " >&6; }
2521if ${ac_cv_build+:} false; then :
2522  $as_echo_n "(cached) " >&6
2523else
2524  ac_build_alias=$build_alias
2525test "x$ac_build_alias" = x &&
2526  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2527test "x$ac_build_alias" = x &&
2528  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2529ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2530  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2531
2532fi
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2534$as_echo "$ac_cv_build" >&6; }
2535case $ac_cv_build in
2536*-*-*) ;;
2537*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2538esac
2539build=$ac_cv_build
2540ac_save_IFS=$IFS; IFS='-'
2541set x $ac_cv_build
2542shift
2543build_cpu=$1
2544build_vendor=$2
2545shift; shift
2546# Remember, the first character of IFS is used to create $*,
2547# except with old shells:
2548build_os=$*
2549IFS=$ac_save_IFS
2550case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2551
2552
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2554$as_echo_n "checking host system type... " >&6; }
2555if ${ac_cv_host+:} false; then :
2556  $as_echo_n "(cached) " >&6
2557else
2558  if test "x$host_alias" = x; then
2559  ac_cv_host=$ac_cv_build
2560else
2561  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2562    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2563fi
2564
2565fi
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2567$as_echo "$ac_cv_host" >&6; }
2568case $ac_cv_host in
2569*-*-*) ;;
2570*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2571esac
2572host=$ac_cv_host
2573ac_save_IFS=$IFS; IFS='-'
2574set x $ac_cv_host
2575shift
2576host_cpu=$1
2577host_vendor=$2
2578shift; shift
2579# Remember, the first character of IFS is used to create $*,
2580# except with old shells:
2581host_os=$*
2582IFS=$ac_save_IFS
2583case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2584
2585
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2587$as_echo_n "checking target system type... " >&6; }
2588if ${ac_cv_target+:} false; then :
2589  $as_echo_n "(cached) " >&6
2590else
2591  if test "x$target_alias" = x; then
2592  ac_cv_target=$ac_cv_host
2593else
2594  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2595    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2596fi
2597
2598fi
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2600$as_echo "$ac_cv_target" >&6; }
2601case $ac_cv_target in
2602*-*-*) ;;
2603*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2604esac
2605target=$ac_cv_target
2606ac_save_IFS=$IFS; IFS='-'
2607set x $ac_cv_target
2608shift
2609target_cpu=$1
2610target_vendor=$2
2611shift; shift
2612# Remember, the first character of IFS is used to create $*,
2613# except with old shells:
2614target_os=$*
2615IFS=$ac_save_IFS
2616case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2617
2618
2619# The aliases save the names the user supplied, while $host etc.
2620# will get canonicalized.
2621test -n "$target_alias" &&
2622  test "$program_prefix$program_suffix$program_transform_name" = \
2623    NONENONEs,x,x, &&
2624  program_prefix=${target_alias}-
2625
2626# Expand $ac_aux_dir to an absolute path.
2627am_aux_dir=`cd "$ac_aux_dir" && pwd`
2628
2629ac_ext=c
2630ac_cpp='$CPP $CPPFLAGS'
2631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634if test -n "$ac_tool_prefix"; then
2635  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2636set dummy ${ac_tool_prefix}gcc; ac_word=$2
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638$as_echo_n "checking for $ac_word... " >&6; }
2639if ${ac_cv_prog_CC+:} false; then :
2640  $as_echo_n "(cached) " >&6
2641else
2642  if test -n "$CC"; then
2643  ac_cv_prog_CC="$CC" # Let the user override the test.
2644else
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648  IFS=$as_save_IFS
2649  test -z "$as_dir" && as_dir=.
2650    for ac_exec_ext in '' $ac_executable_extensions; do
2651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654    break 2
2655  fi
2656done
2657  done
2658IFS=$as_save_IFS
2659
2660fi
2661fi
2662CC=$ac_cv_prog_CC
2663if test -n "$CC"; then
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665$as_echo "$CC" >&6; }
2666else
2667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668$as_echo "no" >&6; }
2669fi
2670
2671
2672fi
2673if test -z "$ac_cv_prog_CC"; then
2674  ac_ct_CC=$CC
2675  # Extract the first word of "gcc", so it can be a program name with args.
2676set dummy gcc; ac_word=$2
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678$as_echo_n "checking for $ac_word... " >&6; }
2679if ${ac_cv_prog_ac_ct_CC+:} false; then :
2680  $as_echo_n "(cached) " >&6
2681else
2682  if test -n "$ac_ct_CC"; then
2683  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688  IFS=$as_save_IFS
2689  test -z "$as_dir" && as_dir=.
2690    for ac_exec_ext in '' $ac_executable_extensions; do
2691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692    ac_cv_prog_ac_ct_CC="gcc"
2693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694    break 2
2695  fi
2696done
2697  done
2698IFS=$as_save_IFS
2699
2700fi
2701fi
2702ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703if test -n "$ac_ct_CC"; then
2704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2705$as_echo "$ac_ct_CC" >&6; }
2706else
2707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708$as_echo "no" >&6; }
2709fi
2710
2711  if test "x$ac_ct_CC" = x; then
2712    CC=""
2713  else
2714    case $cross_compiling:$ac_tool_warned in
2715yes:)
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2718ac_tool_warned=yes ;;
2719esac
2720    CC=$ac_ct_CC
2721  fi
2722else
2723  CC="$ac_cv_prog_CC"
2724fi
2725
2726if test -z "$CC"; then
2727          if test -n "$ac_tool_prefix"; then
2728    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2729set dummy ${ac_tool_prefix}cc; ac_word=$2
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731$as_echo_n "checking for $ac_word... " >&6; }
2732if ${ac_cv_prog_CC+:} false; then :
2733  $as_echo_n "(cached) " >&6
2734else
2735  if test -n "$CC"; then
2736  ac_cv_prog_CC="$CC" # Let the user override the test.
2737else
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741  IFS=$as_save_IFS
2742  test -z "$as_dir" && as_dir=.
2743    for ac_exec_ext in '' $ac_executable_extensions; do
2744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745    ac_cv_prog_CC="${ac_tool_prefix}cc"
2746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747    break 2
2748  fi
2749done
2750  done
2751IFS=$as_save_IFS
2752
2753fi
2754fi
2755CC=$ac_cv_prog_CC
2756if test -n "$CC"; then
2757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758$as_echo "$CC" >&6; }
2759else
2760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761$as_echo "no" >&6; }
2762fi
2763
2764
2765  fi
2766fi
2767if test -z "$CC"; then
2768  # Extract the first word of "cc", so it can be a program name with args.
2769set dummy cc; ac_word=$2
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
2772if ${ac_cv_prog_CC+:} false; then :
2773  $as_echo_n "(cached) " >&6
2774else
2775  if test -n "$CC"; then
2776  ac_cv_prog_CC="$CC" # Let the user override the test.
2777else
2778  ac_prog_rejected=no
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782  IFS=$as_save_IFS
2783  test -z "$as_dir" && as_dir=.
2784    for ac_exec_ext in '' $ac_executable_extensions; do
2785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2787       ac_prog_rejected=yes
2788       continue
2789     fi
2790    ac_cv_prog_CC="cc"
2791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792    break 2
2793  fi
2794done
2795  done
2796IFS=$as_save_IFS
2797
2798if test $ac_prog_rejected = yes; then
2799  # We found a bogon in the path, so make sure we never use it.
2800  set dummy $ac_cv_prog_CC
2801  shift
2802  if test $# != 0; then
2803    # We chose a different compiler from the bogus one.
2804    # However, it has the same basename, so the bogon will be chosen
2805    # first if we set CC to just the basename; use the full file name.
2806    shift
2807    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2808  fi
2809fi
2810fi
2811fi
2812CC=$ac_cv_prog_CC
2813if test -n "$CC"; then
2814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815$as_echo "$CC" >&6; }
2816else
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
2819fi
2820
2821
2822fi
2823if test -z "$CC"; then
2824  if test -n "$ac_tool_prefix"; then
2825  for ac_prog in cl.exe
2826  do
2827    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830$as_echo_n "checking for $ac_word... " >&6; }
2831if ${ac_cv_prog_CC+:} false; then :
2832  $as_echo_n "(cached) " >&6
2833else
2834  if test -n "$CC"; then
2835  ac_cv_prog_CC="$CC" # Let the user override the test.
2836else
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840  IFS=$as_save_IFS
2841  test -z "$as_dir" && as_dir=.
2842    for ac_exec_ext in '' $ac_executable_extensions; do
2843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846    break 2
2847  fi
2848done
2849  done
2850IFS=$as_save_IFS
2851
2852fi
2853fi
2854CC=$ac_cv_prog_CC
2855if test -n "$CC"; then
2856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857$as_echo "$CC" >&6; }
2858else
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860$as_echo "no" >&6; }
2861fi
2862
2863
2864    test -n "$CC" && break
2865  done
2866fi
2867if test -z "$CC"; then
2868  ac_ct_CC=$CC
2869  for ac_prog in cl.exe
2870do
2871  # Extract the first word of "$ac_prog", so it can be a program name with args.
2872set dummy $ac_prog; ac_word=$2
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874$as_echo_n "checking for $ac_word... " >&6; }
2875if ${ac_cv_prog_ac_ct_CC+:} false; then :
2876  $as_echo_n "(cached) " >&6
2877else
2878  if test -n "$ac_ct_CC"; then
2879  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884  IFS=$as_save_IFS
2885  test -z "$as_dir" && as_dir=.
2886    for ac_exec_ext in '' $ac_executable_extensions; do
2887  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888    ac_cv_prog_ac_ct_CC="$ac_prog"
2889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890    break 2
2891  fi
2892done
2893  done
2894IFS=$as_save_IFS
2895
2896fi
2897fi
2898ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899if test -n "$ac_ct_CC"; then
2900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2901$as_echo "$ac_ct_CC" >&6; }
2902else
2903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904$as_echo "no" >&6; }
2905fi
2906
2907
2908  test -n "$ac_ct_CC" && break
2909done
2910
2911  if test "x$ac_ct_CC" = x; then
2912    CC=""
2913  else
2914    case $cross_compiling:$ac_tool_warned in
2915yes:)
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918ac_tool_warned=yes ;;
2919esac
2920    CC=$ac_ct_CC
2921  fi
2922fi
2923
2924fi
2925
2926
2927test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929as_fn_error $? "no acceptable C compiler found in \$PATH
2930See \`config.log' for more details" "$LINENO" 5; }
2931
2932# Provide some information about the compiler.
2933$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2934set X $ac_compile
2935ac_compiler=$2
2936for ac_option in --version -v -V -qversion; do
2937  { { ac_try="$ac_compiler $ac_option >&5"
2938case "(($ac_try" in
2939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940  *) ac_try_echo=$ac_try;;
2941esac
2942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943$as_echo "$ac_try_echo"; } >&5
2944  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2945  ac_status=$?
2946  if test -s conftest.err; then
2947    sed '10a\
2948... rest of stderr output deleted ...
2949         10q' conftest.err >conftest.er1
2950    cat conftest.er1 >&5
2951  fi
2952  rm -f conftest.er1 conftest.err
2953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2954  test $ac_status = 0; }
2955done
2956
2957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958/* end confdefs.h.  */
2959
2960int
2961main ()
2962{
2963
2964  ;
2965  return 0;
2966}
2967_ACEOF
2968ac_clean_files_save=$ac_clean_files
2969ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2970# Try to create an executable without -o first, disregard a.out.
2971# It will help us diagnose broken compilers, and finding out an intuition
2972# of exeext.
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2974$as_echo_n "checking whether the C compiler works... " >&6; }
2975ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2976
2977# The possible output files:
2978ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2979
2980ac_rmfiles=
2981for ac_file in $ac_files
2982do
2983  case $ac_file in
2984    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2985    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2986  esac
2987done
2988rm -f $ac_rmfiles
2989
2990if { { ac_try="$ac_link_default"
2991case "(($ac_try" in
2992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993  *) ac_try_echo=$ac_try;;
2994esac
2995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996$as_echo "$ac_try_echo"; } >&5
2997  (eval "$ac_link_default") 2>&5
2998  ac_status=$?
2999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000  test $ac_status = 0; }; then :
3001  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3002# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3003# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3004# so that the user can short-circuit this test for compilers unknown to
3005# Autoconf.
3006for ac_file in $ac_files ''
3007do
3008  test -f "$ac_file" || continue
3009  case $ac_file in
3010    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3011	;;
3012    [ab].out )
3013	# We found the default executable, but exeext='' is most
3014	# certainly right.
3015	break;;
3016    *.* )
3017	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3018	then :; else
3019	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020	fi
3021	# We set ac_cv_exeext here because the later test for it is not
3022	# safe: cross compilers may not add the suffix if given an `-o'
3023	# argument, so we may need to know it at that point already.
3024	# Even if this section looks crufty: it has the advantage of
3025	# actually working.
3026	break;;
3027    * )
3028	break;;
3029  esac
3030done
3031test "$ac_cv_exeext" = no && ac_cv_exeext=
3032
3033else
3034  ac_file=''
3035fi
3036if test -z "$ac_file"; then :
3037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
3039$as_echo "$as_me: failed program was:" >&5
3040sed 's/^/| /' conftest.$ac_ext >&5
3041
3042{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044as_fn_error 77 "C compiler cannot create executables
3045See \`config.log' for more details" "$LINENO" 5; }
3046else
3047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048$as_echo "yes" >&6; }
3049fi
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3051$as_echo_n "checking for C compiler default output file name... " >&6; }
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3053$as_echo "$ac_file" >&6; }
3054ac_exeext=$ac_cv_exeext
3055
3056rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3057ac_clean_files=$ac_clean_files_save
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3059$as_echo_n "checking for suffix of executables... " >&6; }
3060if { { ac_try="$ac_link"
3061case "(($ac_try" in
3062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063  *) ac_try_echo=$ac_try;;
3064esac
3065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066$as_echo "$ac_try_echo"; } >&5
3067  (eval "$ac_link") 2>&5
3068  ac_status=$?
3069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070  test $ac_status = 0; }; then :
3071  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3072# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3073# work properly (i.e., refer to `conftest.exe'), while it won't with
3074# `rm'.
3075for ac_file in conftest.exe conftest conftest.*; do
3076  test -f "$ac_file" || continue
3077  case $ac_file in
3078    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3079    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080	  break;;
3081    * ) break;;
3082  esac
3083done
3084else
3085  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3088See \`config.log' for more details" "$LINENO" 5; }
3089fi
3090rm -f conftest conftest$ac_cv_exeext
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3092$as_echo "$ac_cv_exeext" >&6; }
3093
3094rm -f conftest.$ac_ext
3095EXEEXT=$ac_cv_exeext
3096ac_exeext=$EXEEXT
3097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098/* end confdefs.h.  */
3099#include <stdio.h>
3100int
3101main ()
3102{
3103FILE *f = fopen ("conftest.out", "w");
3104 return ferror (f) || fclose (f) != 0;
3105
3106  ;
3107  return 0;
3108}
3109_ACEOF
3110ac_clean_files="$ac_clean_files conftest.out"
3111# Check that the compiler produces executables we can run.  If not, either
3112# the compiler is broken, or we cross compile.
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3114$as_echo_n "checking whether we are cross compiling... " >&6; }
3115if test "$cross_compiling" != yes; then
3116  { { ac_try="$ac_link"
3117case "(($ac_try" in
3118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119  *) ac_try_echo=$ac_try;;
3120esac
3121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122$as_echo "$ac_try_echo"; } >&5
3123  (eval "$ac_link") 2>&5
3124  ac_status=$?
3125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126  test $ac_status = 0; }
3127  if { ac_try='./conftest$ac_cv_exeext'
3128  { { case "(($ac_try" in
3129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130  *) ac_try_echo=$ac_try;;
3131esac
3132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133$as_echo "$ac_try_echo"; } >&5
3134  (eval "$ac_try") 2>&5
3135  ac_status=$?
3136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137  test $ac_status = 0; }; }; then
3138    cross_compiling=no
3139  else
3140    if test "$cross_compiling" = maybe; then
3141	cross_compiling=yes
3142    else
3143	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145as_fn_error $? "cannot run C compiled programs.
3146If you meant to cross compile, use \`--host'.
3147See \`config.log' for more details" "$LINENO" 5; }
3148    fi
3149  fi
3150fi
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3152$as_echo "$cross_compiling" >&6; }
3153
3154rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3155ac_clean_files=$ac_clean_files_save
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3157$as_echo_n "checking for suffix of object files... " >&6; }
3158if ${ac_cv_objext+:} false; then :
3159  $as_echo_n "(cached) " >&6
3160else
3161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162/* end confdefs.h.  */
3163
3164int
3165main ()
3166{
3167
3168  ;
3169  return 0;
3170}
3171_ACEOF
3172rm -f conftest.o conftest.obj
3173if { { ac_try="$ac_compile"
3174case "(($ac_try" in
3175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176  *) ac_try_echo=$ac_try;;
3177esac
3178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179$as_echo "$ac_try_echo"; } >&5
3180  (eval "$ac_compile") 2>&5
3181  ac_status=$?
3182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183  test $ac_status = 0; }; then :
3184  for ac_file in conftest.o conftest.obj conftest.*; do
3185  test -f "$ac_file" || continue;
3186  case $ac_file in
3187    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3188    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3189       break;;
3190  esac
3191done
3192else
3193  $as_echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
3196{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198as_fn_error $? "cannot compute suffix of object files: cannot compile
3199See \`config.log' for more details" "$LINENO" 5; }
3200fi
3201rm -f conftest.$ac_cv_objext conftest.$ac_ext
3202fi
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3204$as_echo "$ac_cv_objext" >&6; }
3205OBJEXT=$ac_cv_objext
3206ac_objext=$OBJEXT
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3208$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3209if ${ac_cv_c_compiler_gnu+:} false; then :
3210  $as_echo_n "(cached) " >&6
3211else
3212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213/* end confdefs.h.  */
3214
3215int
3216main ()
3217{
3218#ifndef __GNUC__
3219       choke me
3220#endif
3221
3222  ;
3223  return 0;
3224}
3225_ACEOF
3226if ac_fn_c_try_compile "$LINENO"; then :
3227  ac_compiler_gnu=yes
3228else
3229  ac_compiler_gnu=no
3230fi
3231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232ac_cv_c_compiler_gnu=$ac_compiler_gnu
3233
3234fi
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3236$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3237if test $ac_compiler_gnu = yes; then
3238  GCC=yes
3239else
3240  GCC=
3241fi
3242ac_test_CFLAGS=${CFLAGS+set}
3243ac_save_CFLAGS=$CFLAGS
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3245$as_echo_n "checking whether $CC accepts -g... " >&6; }
3246if ${ac_cv_prog_cc_g+:} false; then :
3247  $as_echo_n "(cached) " >&6
3248else
3249  ac_save_c_werror_flag=$ac_c_werror_flag
3250   ac_c_werror_flag=yes
3251   ac_cv_prog_cc_g=no
3252   CFLAGS="-g"
3253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254/* end confdefs.h.  */
3255
3256int
3257main ()
3258{
3259
3260  ;
3261  return 0;
3262}
3263_ACEOF
3264if ac_fn_c_try_compile "$LINENO"; then :
3265  ac_cv_prog_cc_g=yes
3266else
3267  CFLAGS=""
3268      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269/* end confdefs.h.  */
3270
3271int
3272main ()
3273{
3274
3275  ;
3276  return 0;
3277}
3278_ACEOF
3279if ac_fn_c_try_compile "$LINENO"; then :
3280
3281else
3282  ac_c_werror_flag=$ac_save_c_werror_flag
3283	 CFLAGS="-g"
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  ac_cv_prog_cc_g=yes
3297fi
3298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299fi
3300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301fi
3302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303   ac_c_werror_flag=$ac_save_c_werror_flag
3304fi
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3306$as_echo "$ac_cv_prog_cc_g" >&6; }
3307if test "$ac_test_CFLAGS" = set; then
3308  CFLAGS=$ac_save_CFLAGS
3309elif test $ac_cv_prog_cc_g = yes; then
3310  if test "$GCC" = yes; then
3311    CFLAGS="-g -O2"
3312  else
3313    CFLAGS="-g"
3314  fi
3315else
3316  if test "$GCC" = yes; then
3317    CFLAGS="-O2"
3318  else
3319    CFLAGS=
3320  fi
3321fi
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3323$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3324if ${ac_cv_prog_cc_c89+:} false; then :
3325  $as_echo_n "(cached) " >&6
3326else
3327  ac_cv_prog_cc_c89=no
3328ac_save_CC=$CC
3329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330/* end confdefs.h.  */
3331#include <stdarg.h>
3332#include <stdio.h>
3333struct stat;
3334/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3335struct buf { int x; };
3336FILE * (*rcsopen) (struct buf *, struct stat *, int);
3337static char *e (p, i)
3338     char **p;
3339     int i;
3340{
3341  return p[i];
3342}
3343static char *f (char * (*g) (char **, int), char **p, ...)
3344{
3345  char *s;
3346  va_list v;
3347  va_start (v,p);
3348  s = g (p, va_arg (v,int));
3349  va_end (v);
3350  return s;
3351}
3352
3353/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3354   function prototypes and stuff, but not '\xHH' hex character constants.
3355   These don't provoke an error unfortunately, instead are silently treated
3356   as 'x'.  The following induces an error, until -std is added to get
3357   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3358   array size at least.  It's necessary to write '\x00'==0 to get something
3359   that's true only with -std.  */
3360int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3361
3362/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3363   inside strings and character constants.  */
3364#define FOO(x) 'x'
3365int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3366
3367int test (int i, double x);
3368struct s1 {int (*f) (int a);};
3369struct s2 {int (*f) (double a);};
3370int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3371int argc;
3372char **argv;
3373int
3374main ()
3375{
3376return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3382	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3383do
3384  CC="$ac_save_CC $ac_arg"
3385  if ac_fn_c_try_compile "$LINENO"; then :
3386  ac_cv_prog_cc_c89=$ac_arg
3387fi
3388rm -f core conftest.err conftest.$ac_objext
3389  test "x$ac_cv_prog_cc_c89" != "xno" && break
3390done
3391rm -f conftest.$ac_ext
3392CC=$ac_save_CC
3393
3394fi
3395# AC_CACHE_VAL
3396case "x$ac_cv_prog_cc_c89" in
3397  x)
3398    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3399$as_echo "none needed" >&6; } ;;
3400  xno)
3401    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3402$as_echo "unsupported" >&6; } ;;
3403  *)
3404    CC="$CC $ac_cv_prog_cc_c89"
3405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3406$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3407esac
3408if test "x$ac_cv_prog_cc_c89" != xno; then :
3409
3410fi
3411
3412ac_ext=c
3413ac_cpp='$CPP $CPPFLAGS'
3414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417
3418ac_ext=c
3419ac_cpp='$CPP $CPPFLAGS'
3420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3424$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3425if ${am_cv_prog_cc_c_o+:} false; then :
3426  $as_echo_n "(cached) " >&6
3427else
3428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429/* end confdefs.h.  */
3430
3431int
3432main ()
3433{
3434
3435  ;
3436  return 0;
3437}
3438_ACEOF
3439  # Make sure it works both with $CC and with simple cc.
3440  # Following AC_PROG_CC_C_O, we do the test twice because some
3441  # compilers refuse to overwrite an existing .o file with -o,
3442  # though they will create one.
3443  am_cv_prog_cc_c_o=yes
3444  for am_i in 1 2; do
3445    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3446   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } \
3450         && test -f conftest2.$ac_objext; then
3451      : OK
3452    else
3453      am_cv_prog_cc_c_o=no
3454      break
3455    fi
3456  done
3457  rm -f core conftest*
3458  unset am_i
3459fi
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3461$as_echo "$am_cv_prog_cc_c_o" >&6; }
3462if test "$am_cv_prog_cc_c_o" != yes; then
3463   # Losing compiler, so override with the script.
3464   # FIXME: It is wrong to rewrite CC.
3465   # But if we don't then we get into trouble of one sort or another.
3466   # A longer-term fix would be to have automake use am__CC in this case,
3467   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3468   CC="$am_aux_dir/compile $CC"
3469fi
3470ac_ext=c
3471ac_cpp='$CPP $CPPFLAGS'
3472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475
3476
3477
3478ac_ext=c
3479ac_cpp='$CPP $CPPFLAGS'
3480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3484$as_echo_n "checking how to run the C preprocessor... " >&6; }
3485# On Suns, sometimes $CPP names a directory.
3486if test -n "$CPP" && test -d "$CPP"; then
3487  CPP=
3488fi
3489if test -z "$CPP"; then
3490  if ${ac_cv_prog_CPP+:} false; then :
3491  $as_echo_n "(cached) " >&6
3492else
3493      # Double quotes because CPP needs to be expanded
3494    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3495    do
3496      ac_preproc_ok=false
3497for ac_c_preproc_warn_flag in '' yes
3498do
3499  # Use a header file that comes with gcc, so configuring glibc
3500  # with a fresh cross-compiler works.
3501  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502  # <limits.h> exists even on freestanding compilers.
3503  # On the NeXT, cc -E runs the code through the compiler's parser,
3504  # not just through cpp. "Syntax error" is here to catch this case.
3505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506/* end confdefs.h.  */
3507#ifdef __STDC__
3508# include <limits.h>
3509#else
3510# include <assert.h>
3511#endif
3512		     Syntax error
3513_ACEOF
3514if ac_fn_c_try_cpp "$LINENO"; then :
3515
3516else
3517  # Broken: fails on valid input.
3518continue
3519fi
3520rm -f conftest.err conftest.i conftest.$ac_ext
3521
3522  # OK, works on sane cases.  Now check whether nonexistent headers
3523  # can be detected and how.
3524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526#include <ac_nonexistent.h>
3527_ACEOF
3528if ac_fn_c_try_cpp "$LINENO"; then :
3529  # Broken: success on invalid input.
3530continue
3531else
3532  # Passes both tests.
3533ac_preproc_ok=:
3534break
3535fi
3536rm -f conftest.err conftest.i conftest.$ac_ext
3537
3538done
3539# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3540rm -f conftest.i conftest.err conftest.$ac_ext
3541if $ac_preproc_ok; then :
3542  break
3543fi
3544
3545    done
3546    ac_cv_prog_CPP=$CPP
3547
3548fi
3549  CPP=$ac_cv_prog_CPP
3550else
3551  ac_cv_prog_CPP=$CPP
3552fi
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3554$as_echo "$CPP" >&6; }
3555ac_preproc_ok=false
3556for ac_c_preproc_warn_flag in '' yes
3557do
3558  # Use a header file that comes with gcc, so configuring glibc
3559  # with a fresh cross-compiler works.
3560  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3561  # <limits.h> exists even on freestanding compilers.
3562  # On the NeXT, cc -E runs the code through the compiler's parser,
3563  # not just through cpp. "Syntax error" is here to catch this case.
3564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565/* end confdefs.h.  */
3566#ifdef __STDC__
3567# include <limits.h>
3568#else
3569# include <assert.h>
3570#endif
3571		     Syntax error
3572_ACEOF
3573if ac_fn_c_try_cpp "$LINENO"; then :
3574
3575else
3576  # Broken: fails on valid input.
3577continue
3578fi
3579rm -f conftest.err conftest.i conftest.$ac_ext
3580
3581  # OK, works on sane cases.  Now check whether nonexistent headers
3582  # can be detected and how.
3583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585#include <ac_nonexistent.h>
3586_ACEOF
3587if ac_fn_c_try_cpp "$LINENO"; then :
3588  # Broken: success on invalid input.
3589continue
3590else
3591  # Passes both tests.
3592ac_preproc_ok=:
3593break
3594fi
3595rm -f conftest.err conftest.i conftest.$ac_ext
3596
3597done
3598# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599rm -f conftest.i conftest.err conftest.$ac_ext
3600if $ac_preproc_ok; then :
3601
3602else
3603  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3606See \`config.log' for more details" "$LINENO" 5; }
3607fi
3608
3609ac_ext=c
3610ac_cpp='$CPP $CPPFLAGS'
3611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3617$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3618if ${ac_cv_path_GREP+:} false; then :
3619  $as_echo_n "(cached) " >&6
3620else
3621  if test -z "$GREP"; then
3622  ac_path_GREP_found=false
3623  # Loop through the user's path and test for each of PROGNAME-LIST
3624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3626do
3627  IFS=$as_save_IFS
3628  test -z "$as_dir" && as_dir=.
3629    for ac_prog in grep ggrep; do
3630    for ac_exec_ext in '' $ac_executable_extensions; do
3631      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3632      as_fn_executable_p "$ac_path_GREP" || continue
3633# Check for GNU ac_path_GREP and select it if it is found.
3634  # Check for GNU $ac_path_GREP
3635case `"$ac_path_GREP" --version 2>&1` in
3636*GNU*)
3637  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3638*)
3639  ac_count=0
3640  $as_echo_n 0123456789 >"conftest.in"
3641  while :
3642  do
3643    cat "conftest.in" "conftest.in" >"conftest.tmp"
3644    mv "conftest.tmp" "conftest.in"
3645    cp "conftest.in" "conftest.nl"
3646    $as_echo 'GREP' >> "conftest.nl"
3647    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3649    as_fn_arith $ac_count + 1 && ac_count=$as_val
3650    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3651      # Best one so far, save it but keep looking for a better one
3652      ac_cv_path_GREP="$ac_path_GREP"
3653      ac_path_GREP_max=$ac_count
3654    fi
3655    # 10*(2^10) chars as input seems more than enough
3656    test $ac_count -gt 10 && break
3657  done
3658  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3659esac
3660
3661      $ac_path_GREP_found && break 3
3662    done
3663  done
3664  done
3665IFS=$as_save_IFS
3666  if test -z "$ac_cv_path_GREP"; then
3667    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3668  fi
3669else
3670  ac_cv_path_GREP=$GREP
3671fi
3672
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3675$as_echo "$ac_cv_path_GREP" >&6; }
3676 GREP="$ac_cv_path_GREP"
3677
3678
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3680$as_echo_n "checking for egrep... " >&6; }
3681if ${ac_cv_path_EGREP+:} false; then :
3682  $as_echo_n "(cached) " >&6
3683else
3684  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3685   then ac_cv_path_EGREP="$GREP -E"
3686   else
3687     if test -z "$EGREP"; then
3688  ac_path_EGREP_found=false
3689  # Loop through the user's path and test for each of PROGNAME-LIST
3690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3692do
3693  IFS=$as_save_IFS
3694  test -z "$as_dir" && as_dir=.
3695    for ac_prog in egrep; do
3696    for ac_exec_ext in '' $ac_executable_extensions; do
3697      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3698      as_fn_executable_p "$ac_path_EGREP" || continue
3699# Check for GNU ac_path_EGREP and select it if it is found.
3700  # Check for GNU $ac_path_EGREP
3701case `"$ac_path_EGREP" --version 2>&1` in
3702*GNU*)
3703  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3704*)
3705  ac_count=0
3706  $as_echo_n 0123456789 >"conftest.in"
3707  while :
3708  do
3709    cat "conftest.in" "conftest.in" >"conftest.tmp"
3710    mv "conftest.tmp" "conftest.in"
3711    cp "conftest.in" "conftest.nl"
3712    $as_echo 'EGREP' >> "conftest.nl"
3713    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3714    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3715    as_fn_arith $ac_count + 1 && ac_count=$as_val
3716    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3717      # Best one so far, save it but keep looking for a better one
3718      ac_cv_path_EGREP="$ac_path_EGREP"
3719      ac_path_EGREP_max=$ac_count
3720    fi
3721    # 10*(2^10) chars as input seems more than enough
3722    test $ac_count -gt 10 && break
3723  done
3724  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3725esac
3726
3727      $ac_path_EGREP_found && break 3
3728    done
3729  done
3730  done
3731IFS=$as_save_IFS
3732  if test -z "$ac_cv_path_EGREP"; then
3733    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3734  fi
3735else
3736  ac_cv_path_EGREP=$EGREP
3737fi
3738
3739   fi
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3742$as_echo "$ac_cv_path_EGREP" >&6; }
3743 EGREP="$ac_cv_path_EGREP"
3744
3745
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3747$as_echo_n "checking for ANSI C header files... " >&6; }
3748if ${ac_cv_header_stdc+:} false; then :
3749  $as_echo_n "(cached) " >&6
3750else
3751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752/* end confdefs.h.  */
3753#include <stdlib.h>
3754#include <stdarg.h>
3755#include <string.h>
3756#include <float.h>
3757
3758int
3759main ()
3760{
3761
3762  ;
3763  return 0;
3764}
3765_ACEOF
3766if ac_fn_c_try_compile "$LINENO"; then :
3767  ac_cv_header_stdc=yes
3768else
3769  ac_cv_header_stdc=no
3770fi
3771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772
3773if test $ac_cv_header_stdc = yes; then
3774  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776/* end confdefs.h.  */
3777#include <string.h>
3778
3779_ACEOF
3780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781  $EGREP "memchr" >/dev/null 2>&1; then :
3782
3783else
3784  ac_cv_header_stdc=no
3785fi
3786rm -f conftest*
3787
3788fi
3789
3790if test $ac_cv_header_stdc = yes; then
3791  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h.  */
3794#include <stdlib.h>
3795
3796_ACEOF
3797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798  $EGREP "free" >/dev/null 2>&1; then :
3799
3800else
3801  ac_cv_header_stdc=no
3802fi
3803rm -f conftest*
3804
3805fi
3806
3807if test $ac_cv_header_stdc = yes; then
3808  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3809  if test "$cross_compiling" = yes; then :
3810  :
3811else
3812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h.  */
3814#include <ctype.h>
3815#include <stdlib.h>
3816#if ((' ' & 0x0FF) == 0x020)
3817# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3818# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3819#else
3820# define ISLOWER(c) \
3821		   (('a' <= (c) && (c) <= 'i') \
3822		     || ('j' <= (c) && (c) <= 'r') \
3823		     || ('s' <= (c) && (c) <= 'z'))
3824# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3825#endif
3826
3827#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3828int
3829main ()
3830{
3831  int i;
3832  for (i = 0; i < 256; i++)
3833    if (XOR (islower (i), ISLOWER (i))
3834	|| toupper (i) != TOUPPER (i))
3835      return 2;
3836  return 0;
3837}
3838_ACEOF
3839if ac_fn_c_try_run "$LINENO"; then :
3840
3841else
3842  ac_cv_header_stdc=no
3843fi
3844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3845  conftest.$ac_objext conftest.beam conftest.$ac_ext
3846fi
3847
3848fi
3849fi
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3851$as_echo "$ac_cv_header_stdc" >&6; }
3852if test $ac_cv_header_stdc = yes; then
3853
3854$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3855
3856fi
3857
3858# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3859for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3860		  inttypes.h stdint.h unistd.h
3861do :
3862  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3863ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3864"
3865if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3866  cat >>confdefs.h <<_ACEOF
3867#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3868_ACEOF
3869
3870fi
3871
3872done
3873
3874
3875
3876  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3877if test "x$ac_cv_header_minix_config_h" = xyes; then :
3878  MINIX=yes
3879else
3880  MINIX=
3881fi
3882
3883
3884  if test "$MINIX" = yes; then
3885
3886$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3887
3888
3889$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3890
3891
3892$as_echo "#define _MINIX 1" >>confdefs.h
3893
3894  fi
3895
3896
3897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3898$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3899if ${ac_cv_safe_to_define___extensions__+:} false; then :
3900  $as_echo_n "(cached) " >&6
3901else
3902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903/* end confdefs.h.  */
3904
3905#         define __EXTENSIONS__ 1
3906          $ac_includes_default
3907int
3908main ()
3909{
3910
3911  ;
3912  return 0;
3913}
3914_ACEOF
3915if ac_fn_c_try_compile "$LINENO"; then :
3916  ac_cv_safe_to_define___extensions__=yes
3917else
3918  ac_cv_safe_to_define___extensions__=no
3919fi
3920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921fi
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3923$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3924  test $ac_cv_safe_to_define___extensions__ = yes &&
3925    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3926
3927  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3928
3929  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3930
3931  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3932
3933  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3934
3935
3936
3937target_alias=${target_alias-$target}
3938
3939
3940# 1.11.1: Require that version of automake.
3941# foreign: Don't require README, INSTALL, NEWS, etc.
3942# no-define: Don't define PACKAGE and VERSION.
3943# no-dependencies: Don't generate automatic dependencies.
3944#    (because it breaks when using bootstrap-lean, since some of the
3945#    headers are gone at "make install" time).
3946# subdir-objects: Build objects in sub-directories.
3947# -Wall: Issue all automake warnings.
3948# -Wno-portability: Don't warn about constructs supported by GNU make.
3949#    (because GCC requires GNU make anyhow).
3950#  -Wno-override: Overrides used in testsuite.
3951am__api_version='1.15'
3952
3953# Find a good install program.  We prefer a C program (faster),
3954# so one script is as good as another.  But avoid the broken or
3955# incompatible versions:
3956# SysV /etc/install, /usr/sbin/install
3957# SunOS /usr/etc/install
3958# IRIX /sbin/install
3959# AIX /bin/install
3960# AmigaOS /C/install, which installs bootblocks on floppy discs
3961# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3962# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3963# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3964# OS/2's system install, which has a completely different semantic
3965# ./install, which can be erroneously created by make from ./install.sh.
3966# Reject install programs that cannot install multiple files.
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3968$as_echo_n "checking for a BSD-compatible install... " >&6; }
3969if test -z "$INSTALL"; then
3970if ${ac_cv_path_install+:} false; then :
3971  $as_echo_n "(cached) " >&6
3972else
3973  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976  IFS=$as_save_IFS
3977  test -z "$as_dir" && as_dir=.
3978    # Account for people who put trailing slashes in PATH elements.
3979case $as_dir/ in #((
3980  ./ | .// | /[cC]/* | \
3981  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3982  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3983  /usr/ucb/* ) ;;
3984  *)
3985    # OSF1 and SCO ODT 3.0 have their own names for install.
3986    # Don't use installbsd from OSF since it installs stuff as root
3987    # by default.
3988    for ac_prog in ginstall scoinst install; do
3989      for ac_exec_ext in '' $ac_executable_extensions; do
3990	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3991	  if test $ac_prog = install &&
3992	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3993	    # AIX install.  It has an incompatible calling convention.
3994	    :
3995	  elif test $ac_prog = install &&
3996	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3997	    # program-specific install script used by HP pwplus--don't use.
3998	    :
3999	  else
4000	    rm -rf conftest.one conftest.two conftest.dir
4001	    echo one > conftest.one
4002	    echo two > conftest.two
4003	    mkdir conftest.dir
4004	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4005	      test -s conftest.one && test -s conftest.two &&
4006	      test -s conftest.dir/conftest.one &&
4007	      test -s conftest.dir/conftest.two
4008	    then
4009	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4010	      break 3
4011	    fi
4012	  fi
4013	fi
4014      done
4015    done
4016    ;;
4017esac
4018
4019  done
4020IFS=$as_save_IFS
4021
4022rm -rf conftest.one conftest.two conftest.dir
4023
4024fi
4025  if test "${ac_cv_path_install+set}" = set; then
4026    INSTALL=$ac_cv_path_install
4027  else
4028    # As a last resort, use the slow shell script.  Don't cache a
4029    # value for INSTALL within a source directory, because that will
4030    # break other packages using the cache if that directory is
4031    # removed, or if the value is a relative name.
4032    INSTALL=$ac_install_sh
4033  fi
4034fi
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4036$as_echo "$INSTALL" >&6; }
4037
4038# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4039# It thinks the first close brace ends the variable substitution.
4040test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4041
4042test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4043
4044test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4045
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4047$as_echo_n "checking whether build environment is sane... " >&6; }
4048# Reject unsafe characters in $srcdir or the absolute working directory
4049# name.  Accept space and tab only in the latter.
4050am_lf='
4051'
4052case `pwd` in
4053  *[\\\"\#\$\&\'\`$am_lf]*)
4054    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4055esac
4056case $srcdir in
4057  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4058    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4059esac
4060
4061# Do 'set' in a subshell so we don't clobber the current shell's
4062# arguments.  Must try -L first in case configure is actually a
4063# symlink; some systems play weird games with the mod time of symlinks
4064# (eg FreeBSD returns the mod time of the symlink's containing
4065# directory).
4066if (
4067   am_has_slept=no
4068   for am_try in 1 2; do
4069     echo "timestamp, slept: $am_has_slept" > conftest.file
4070     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4071     if test "$*" = "X"; then
4072	# -L didn't work.
4073	set X `ls -t "$srcdir/configure" conftest.file`
4074     fi
4075     if test "$*" != "X $srcdir/configure conftest.file" \
4076	&& test "$*" != "X conftest.file $srcdir/configure"; then
4077
4078	# If neither matched, then we have a broken ls.  This can happen
4079	# if, for instance, CONFIG_SHELL is bash and it inherits a
4080	# broken ls alias from the environment.  This has actually
4081	# happened.  Such a system could not be considered "sane".
4082	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4083  alias in your environment" "$LINENO" 5
4084     fi
4085     if test "$2" = conftest.file || test $am_try -eq 2; then
4086       break
4087     fi
4088     # Just in case.
4089     sleep 1
4090     am_has_slept=yes
4091   done
4092   test "$2" = conftest.file
4093   )
4094then
4095   # Ok.
4096   :
4097else
4098   as_fn_error $? "newly created file is older than distributed files!
4099Check your system clock" "$LINENO" 5
4100fi
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102$as_echo "yes" >&6; }
4103# If we didn't sleep, we still need to ensure time stamps of config.status and
4104# generated files are strictly newer.
4105am_sleep_pid=
4106if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4107  ( sleep 1 ) &
4108  am_sleep_pid=$!
4109fi
4110
4111rm -f conftest.file
4112
4113test "$program_prefix" != NONE &&
4114  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4115# Use a double $ so make ignores it.
4116test "$program_suffix" != NONE &&
4117  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4118# Double any \ or $.
4119# By default was `s,x,x', remove it if useless.
4120ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4121program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4122
4123if test x"${MISSING+set}" != xset; then
4124  case $am_aux_dir in
4125  *\ * | *\	*)
4126    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4127  *)
4128    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4129  esac
4130fi
4131# Use eval to expand $SHELL
4132if eval "$MISSING --is-lightweight"; then
4133  am_missing_run="$MISSING "
4134else
4135  am_missing_run=
4136  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4137$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4138fi
4139
4140if test x"${install_sh+set}" != xset; then
4141  case $am_aux_dir in
4142  *\ * | *\	*)
4143    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4144  *)
4145    install_sh="\${SHELL} $am_aux_dir/install-sh"
4146  esac
4147fi
4148
4149# Installed binaries are usually stripped using 'strip' when the user
4150# run "make install-strip".  However 'strip' might not be the right
4151# tool to use in cross-compilation environments, therefore Automake
4152# will honor the 'STRIP' environment variable to overrule this program.
4153if test "$cross_compiling" != no; then
4154  if test -n "$ac_tool_prefix"; then
4155  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4156set dummy ${ac_tool_prefix}strip; ac_word=$2
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158$as_echo_n "checking for $ac_word... " >&6; }
4159if ${ac_cv_prog_STRIP+:} false; then :
4160  $as_echo_n "(cached) " >&6
4161else
4162  if test -n "$STRIP"; then
4163  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4164else
4165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166for as_dir in $PATH
4167do
4168  IFS=$as_save_IFS
4169  test -z "$as_dir" && as_dir=.
4170    for ac_exec_ext in '' $ac_executable_extensions; do
4171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174    break 2
4175  fi
4176done
4177  done
4178IFS=$as_save_IFS
4179
4180fi
4181fi
4182STRIP=$ac_cv_prog_STRIP
4183if test -n "$STRIP"; then
4184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4185$as_echo "$STRIP" >&6; }
4186else
4187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188$as_echo "no" >&6; }
4189fi
4190
4191
4192fi
4193if test -z "$ac_cv_prog_STRIP"; then
4194  ac_ct_STRIP=$STRIP
4195  # Extract the first word of "strip", so it can be a program name with args.
4196set dummy strip; ac_word=$2
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198$as_echo_n "checking for $ac_word... " >&6; }
4199if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4200  $as_echo_n "(cached) " >&6
4201else
4202  if test -n "$ac_ct_STRIP"; then
4203  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4204else
4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208  IFS=$as_save_IFS
4209  test -z "$as_dir" && as_dir=.
4210    for ac_exec_ext in '' $ac_executable_extensions; do
4211  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212    ac_cv_prog_ac_ct_STRIP="strip"
4213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214    break 2
4215  fi
4216done
4217  done
4218IFS=$as_save_IFS
4219
4220fi
4221fi
4222ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4223if test -n "$ac_ct_STRIP"; then
4224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4225$as_echo "$ac_ct_STRIP" >&6; }
4226else
4227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228$as_echo "no" >&6; }
4229fi
4230
4231  if test "x$ac_ct_STRIP" = x; then
4232    STRIP=":"
4233  else
4234    case $cross_compiling:$ac_tool_warned in
4235yes:)
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4238ac_tool_warned=yes ;;
4239esac
4240    STRIP=$ac_ct_STRIP
4241  fi
4242else
4243  STRIP="$ac_cv_prog_STRIP"
4244fi
4245
4246fi
4247INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4248
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4250$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4251if test -z "$MKDIR_P"; then
4252  if ${ac_cv_path_mkdir+:} false; then :
4253  $as_echo_n "(cached) " >&6
4254else
4255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4257do
4258  IFS=$as_save_IFS
4259  test -z "$as_dir" && as_dir=.
4260    for ac_prog in mkdir gmkdir; do
4261	 for ac_exec_ext in '' $ac_executable_extensions; do
4262	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4263	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4264	     'mkdir (GNU coreutils) '* | \
4265	     'mkdir (coreutils) '* | \
4266	     'mkdir (fileutils) '4.1*)
4267	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4268	       break 3;;
4269	   esac
4270	 done
4271       done
4272  done
4273IFS=$as_save_IFS
4274
4275fi
4276
4277  test -d ./--version && rmdir ./--version
4278  if test "${ac_cv_path_mkdir+set}" = set; then
4279    MKDIR_P="$ac_cv_path_mkdir -p"
4280  else
4281    # As a last resort, use the slow shell script.  Don't cache a
4282    # value for MKDIR_P within a source directory, because that will
4283    # break other packages using the cache if that directory is
4284    # removed, or if the value is a relative name.
4285    MKDIR_P="$ac_install_sh -d"
4286  fi
4287fi
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4289$as_echo "$MKDIR_P" >&6; }
4290
4291for ac_prog in gawk mawk nawk awk
4292do
4293  # Extract the first word of "$ac_prog", so it can be a program name with args.
4294set dummy $ac_prog; ac_word=$2
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296$as_echo_n "checking for $ac_word... " >&6; }
4297if ${ac_cv_prog_AWK+:} false; then :
4298  $as_echo_n "(cached) " >&6
4299else
4300  if test -n "$AWK"; then
4301  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4302else
4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH
4305do
4306  IFS=$as_save_IFS
4307  test -z "$as_dir" && as_dir=.
4308    for ac_exec_ext in '' $ac_executable_extensions; do
4309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310    ac_cv_prog_AWK="$ac_prog"
4311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312    break 2
4313  fi
4314done
4315  done
4316IFS=$as_save_IFS
4317
4318fi
4319fi
4320AWK=$ac_cv_prog_AWK
4321if test -n "$AWK"; then
4322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4323$as_echo "$AWK" >&6; }
4324else
4325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326$as_echo "no" >&6; }
4327fi
4328
4329
4330  test -n "$AWK" && break
4331done
4332
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4334$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4335set x ${MAKE-make}
4336ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4337if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4338  $as_echo_n "(cached) " >&6
4339else
4340  cat >conftest.make <<\_ACEOF
4341SHELL = /bin/sh
4342all:
4343	@echo '@@@%%%=$(MAKE)=@@@%%%'
4344_ACEOF
4345# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4346case `${MAKE-make} -f conftest.make 2>/dev/null` in
4347  *@@@%%%=?*=@@@%%%*)
4348    eval ac_cv_prog_make_${ac_make}_set=yes;;
4349  *)
4350    eval ac_cv_prog_make_${ac_make}_set=no;;
4351esac
4352rm -f conftest.make
4353fi
4354if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356$as_echo "yes" >&6; }
4357  SET_MAKE=
4358else
4359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360$as_echo "no" >&6; }
4361  SET_MAKE="MAKE=${MAKE-make}"
4362fi
4363
4364rm -rf .tst 2>/dev/null
4365mkdir .tst 2>/dev/null
4366if test -d .tst; then
4367  am__leading_dot=.
4368else
4369  am__leading_dot=_
4370fi
4371rmdir .tst 2>/dev/null
4372
4373# Check whether --enable-silent-rules was given.
4374if test "${enable_silent_rules+set}" = set; then :
4375  enableval=$enable_silent_rules;
4376fi
4377
4378case $enable_silent_rules in # (((
4379  yes) AM_DEFAULT_VERBOSITY=0;;
4380   no) AM_DEFAULT_VERBOSITY=1;;
4381    *) AM_DEFAULT_VERBOSITY=1;;
4382esac
4383am_make=${MAKE-make}
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4385$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4386if ${am_cv_make_support_nested_variables+:} false; then :
4387  $as_echo_n "(cached) " >&6
4388else
4389  if $as_echo 'TRUE=$(BAR$(V))
4390BAR0=false
4391BAR1=true
4392V=1
4393am__doit:
4394	@$(TRUE)
4395.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4396  am_cv_make_support_nested_variables=yes
4397else
4398  am_cv_make_support_nested_variables=no
4399fi
4400fi
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4402$as_echo "$am_cv_make_support_nested_variables" >&6; }
4403if test $am_cv_make_support_nested_variables = yes; then
4404    AM_V='$(V)'
4405  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4406else
4407  AM_V=$AM_DEFAULT_VERBOSITY
4408  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4409fi
4410AM_BACKSLASH='\'
4411
4412if test "`cd $srcdir && pwd`" != "`pwd`"; then
4413  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4414  # is not polluted with repeated "-I."
4415  am__isrc=' -I$(srcdir)'
4416  # test to see if srcdir already configured
4417  if test -f $srcdir/config.status; then
4418    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4419  fi
4420fi
4421
4422# test whether we have cygpath
4423if test -z "$CYGPATH_W"; then
4424  if (cygpath --version) >/dev/null 2>/dev/null; then
4425    CYGPATH_W='cygpath -w'
4426  else
4427    CYGPATH_W=echo
4428  fi
4429fi
4430
4431
4432# Define the identity of the package.
4433 PACKAGE='libphobos'
4434 VERSION='version-unused'
4435
4436
4437# Some tools Automake needs.
4438
4439ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4440
4441
4442AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4443
4444
4445AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4446
4447
4448AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4449
4450
4451MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4452
4453# For better backward compatibility.  To be removed once Automake 1.9.x
4454# dies out for good.  For more background, see:
4455# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4456# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4457mkdir_p='$(MKDIR_P)'
4458
4459# We need awk for the "check" target (and possibly the TAP driver).  The
4460# system "awk" is bad on some platforms.
4461# Always define AMTAR for backward compatibility.  Yes, it's still used
4462# in the wild :-(  We should find a proper way to deprecate it ...
4463AMTAR='$${TAR-tar}'
4464
4465
4466# We'll loop over all known methods to create a tar archive until one works.
4467_am_tools='gnutar  pax cpio none'
4468
4469am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4470
4471
4472
4473
4474
4475
4476# POSIX will say in a future version that running "rm -f" with no argument
4477# is OK; and we want to be able to make that assumption in our Makefile
4478# recipes.  So use an aggressive probe to check that the usage we want is
4479# actually supported "in the wild" to an acceptable degree.
4480# See automake bug#10828.
4481# To make any issue more visible, cause the running configure to be aborted
4482# by default if the 'rm' program in use doesn't match our expectations; the
4483# user can still override this though.
4484if rm -f && rm -fr && rm -rf; then : OK; else
4485  cat >&2 <<'END'
4486Oops!
4487
4488Your 'rm' program seems unable to run without file operands specified
4489on the command line, even when the '-f' option is present.  This is contrary
4490to the behaviour of most rm programs out there, and not conforming with
4491the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4492
4493Please tell bug-automake@gnu.org about your system, including the value
4494of your $PATH and any error possibly output before this message.  This
4495can help us improve future automake versions.
4496
4497END
4498  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4499    echo 'Configuration will proceed anyway, since you have set the' >&2
4500    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4501    echo >&2
4502  else
4503    cat >&2 <<'END'
4504Aborting the configuration process, to ensure you take notice of the issue.
4505
4506You can download and install GNU coreutils to get an 'rm' implementation
4507that behaves properly: <http://www.gnu.org/software/coreutils/>.
4508
4509If you want to complete the configuration process using your problematic
4510'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4511to "yes", and re-run configure.
4512
4513END
4514    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4515  fi
4516fi
4517
4518
4519
4520
4521# By default we simply use the C compiler to build assembly code.
4522
4523test "${CCAS+set}" = set || CCAS=$CC
4524test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4525
4526
4527
4528ac_ext=c
4529ac_cpp='$CPP $CPPFLAGS'
4530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533if test -n "$ac_tool_prefix"; then
4534  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4535set dummy ${ac_tool_prefix}gcc; ac_word=$2
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537$as_echo_n "checking for $ac_word... " >&6; }
4538if ${ac_cv_prog_CC+:} false; then :
4539  $as_echo_n "(cached) " >&6
4540else
4541  if test -n "$CC"; then
4542  ac_cv_prog_CC="$CC" # Let the user override the test.
4543else
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547  IFS=$as_save_IFS
4548  test -z "$as_dir" && as_dir=.
4549    for ac_exec_ext in '' $ac_executable_extensions; do
4550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553    break 2
4554  fi
4555done
4556  done
4557IFS=$as_save_IFS
4558
4559fi
4560fi
4561CC=$ac_cv_prog_CC
4562if test -n "$CC"; then
4563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4564$as_echo "$CC" >&6; }
4565else
4566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567$as_echo "no" >&6; }
4568fi
4569
4570
4571fi
4572if test -z "$ac_cv_prog_CC"; then
4573  ac_ct_CC=$CC
4574  # Extract the first word of "gcc", so it can be a program name with args.
4575set dummy gcc; ac_word=$2
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577$as_echo_n "checking for $ac_word... " >&6; }
4578if ${ac_cv_prog_ac_ct_CC+:} false; then :
4579  $as_echo_n "(cached) " >&6
4580else
4581  if test -n "$ac_ct_CC"; then
4582  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4583else
4584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585for as_dir in $PATH
4586do
4587  IFS=$as_save_IFS
4588  test -z "$as_dir" && as_dir=.
4589    for ac_exec_ext in '' $ac_executable_extensions; do
4590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4591    ac_cv_prog_ac_ct_CC="gcc"
4592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593    break 2
4594  fi
4595done
4596  done
4597IFS=$as_save_IFS
4598
4599fi
4600fi
4601ac_ct_CC=$ac_cv_prog_ac_ct_CC
4602if test -n "$ac_ct_CC"; then
4603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4604$as_echo "$ac_ct_CC" >&6; }
4605else
4606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607$as_echo "no" >&6; }
4608fi
4609
4610  if test "x$ac_ct_CC" = x; then
4611    CC=""
4612  else
4613    case $cross_compiling:$ac_tool_warned in
4614yes:)
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617ac_tool_warned=yes ;;
4618esac
4619    CC=$ac_ct_CC
4620  fi
4621else
4622  CC="$ac_cv_prog_CC"
4623fi
4624
4625if test -z "$CC"; then
4626          if test -n "$ac_tool_prefix"; then
4627    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4628set dummy ${ac_tool_prefix}cc; ac_word=$2
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630$as_echo_n "checking for $ac_word... " >&6; }
4631if ${ac_cv_prog_CC+:} false; then :
4632  $as_echo_n "(cached) " >&6
4633else
4634  if test -n "$CC"; then
4635  ac_cv_prog_CC="$CC" # Let the user override the test.
4636else
4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640  IFS=$as_save_IFS
4641  test -z "$as_dir" && as_dir=.
4642    for ac_exec_ext in '' $ac_executable_extensions; do
4643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644    ac_cv_prog_CC="${ac_tool_prefix}cc"
4645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646    break 2
4647  fi
4648done
4649  done
4650IFS=$as_save_IFS
4651
4652fi
4653fi
4654CC=$ac_cv_prog_CC
4655if test -n "$CC"; then
4656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4657$as_echo "$CC" >&6; }
4658else
4659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660$as_echo "no" >&6; }
4661fi
4662
4663
4664  fi
4665fi
4666if test -z "$CC"; then
4667  # Extract the first word of "cc", so it can be a program name with args.
4668set dummy cc; ac_word=$2
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670$as_echo_n "checking for $ac_word... " >&6; }
4671if ${ac_cv_prog_CC+:} false; then :
4672  $as_echo_n "(cached) " >&6
4673else
4674  if test -n "$CC"; then
4675  ac_cv_prog_CC="$CC" # Let the user override the test.
4676else
4677  ac_prog_rejected=no
4678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681  IFS=$as_save_IFS
4682  test -z "$as_dir" && as_dir=.
4683    for ac_exec_ext in '' $ac_executable_extensions; do
4684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4686       ac_prog_rejected=yes
4687       continue
4688     fi
4689    ac_cv_prog_CC="cc"
4690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691    break 2
4692  fi
4693done
4694  done
4695IFS=$as_save_IFS
4696
4697if test $ac_prog_rejected = yes; then
4698  # We found a bogon in the path, so make sure we never use it.
4699  set dummy $ac_cv_prog_CC
4700  shift
4701  if test $# != 0; then
4702    # We chose a different compiler from the bogus one.
4703    # However, it has the same basename, so the bogon will be chosen
4704    # first if we set CC to just the basename; use the full file name.
4705    shift
4706    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4707  fi
4708fi
4709fi
4710fi
4711CC=$ac_cv_prog_CC
4712if test -n "$CC"; then
4713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4714$as_echo "$CC" >&6; }
4715else
4716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717$as_echo "no" >&6; }
4718fi
4719
4720
4721fi
4722if test -z "$CC"; then
4723  if test -n "$ac_tool_prefix"; then
4724  for ac_prog in cl.exe
4725  do
4726    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729$as_echo_n "checking for $ac_word... " >&6; }
4730if ${ac_cv_prog_CC+:} false; then :
4731  $as_echo_n "(cached) " >&6
4732else
4733  if test -n "$CC"; then
4734  ac_cv_prog_CC="$CC" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739  IFS=$as_save_IFS
4740  test -z "$as_dir" && as_dir=.
4741    for ac_exec_ext in '' $ac_executable_extensions; do
4742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745    break 2
4746  fi
4747done
4748  done
4749IFS=$as_save_IFS
4750
4751fi
4752fi
4753CC=$ac_cv_prog_CC
4754if test -n "$CC"; then
4755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4756$as_echo "$CC" >&6; }
4757else
4758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759$as_echo "no" >&6; }
4760fi
4761
4762
4763    test -n "$CC" && break
4764  done
4765fi
4766if test -z "$CC"; then
4767  ac_ct_CC=$CC
4768  for ac_prog in cl.exe
4769do
4770  # Extract the first word of "$ac_prog", so it can be a program name with args.
4771set dummy $ac_prog; ac_word=$2
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773$as_echo_n "checking for $ac_word... " >&6; }
4774if ${ac_cv_prog_ac_ct_CC+:} false; then :
4775  $as_echo_n "(cached) " >&6
4776else
4777  if test -n "$ac_ct_CC"; then
4778  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4779else
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783  IFS=$as_save_IFS
4784  test -z "$as_dir" && as_dir=.
4785    for ac_exec_ext in '' $ac_executable_extensions; do
4786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787    ac_cv_prog_ac_ct_CC="$ac_prog"
4788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789    break 2
4790  fi
4791done
4792  done
4793IFS=$as_save_IFS
4794
4795fi
4796fi
4797ac_ct_CC=$ac_cv_prog_ac_ct_CC
4798if test -n "$ac_ct_CC"; then
4799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4800$as_echo "$ac_ct_CC" >&6; }
4801else
4802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803$as_echo "no" >&6; }
4804fi
4805
4806
4807  test -n "$ac_ct_CC" && break
4808done
4809
4810  if test "x$ac_ct_CC" = x; then
4811    CC=""
4812  else
4813    case $cross_compiling:$ac_tool_warned in
4814yes:)
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817ac_tool_warned=yes ;;
4818esac
4819    CC=$ac_ct_CC
4820  fi
4821fi
4822
4823fi
4824
4825
4826test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4828as_fn_error $? "no acceptable C compiler found in \$PATH
4829See \`config.log' for more details" "$LINENO" 5; }
4830
4831# Provide some information about the compiler.
4832$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4833set X $ac_compile
4834ac_compiler=$2
4835for ac_option in --version -v -V -qversion; do
4836  { { ac_try="$ac_compiler $ac_option >&5"
4837case "(($ac_try" in
4838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839  *) ac_try_echo=$ac_try;;
4840esac
4841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4842$as_echo "$ac_try_echo"; } >&5
4843  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4844  ac_status=$?
4845  if test -s conftest.err; then
4846    sed '10a\
4847... rest of stderr output deleted ...
4848         10q' conftest.err >conftest.er1
4849    cat conftest.er1 >&5
4850  fi
4851  rm -f conftest.er1 conftest.err
4852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4853  test $ac_status = 0; }
4854done
4855
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4857$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4858if ${ac_cv_c_compiler_gnu+:} false; then :
4859  $as_echo_n "(cached) " >&6
4860else
4861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862/* end confdefs.h.  */
4863
4864int
4865main ()
4866{
4867#ifndef __GNUC__
4868       choke me
4869#endif
4870
4871  ;
4872  return 0;
4873}
4874_ACEOF
4875if ac_fn_c_try_compile "$LINENO"; then :
4876  ac_compiler_gnu=yes
4877else
4878  ac_compiler_gnu=no
4879fi
4880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881ac_cv_c_compiler_gnu=$ac_compiler_gnu
4882
4883fi
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4885$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4886if test $ac_compiler_gnu = yes; then
4887  GCC=yes
4888else
4889  GCC=
4890fi
4891ac_test_CFLAGS=${CFLAGS+set}
4892ac_save_CFLAGS=$CFLAGS
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4894$as_echo_n "checking whether $CC accepts -g... " >&6; }
4895if ${ac_cv_prog_cc_g+:} false; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898  ac_save_c_werror_flag=$ac_c_werror_flag
4899   ac_c_werror_flag=yes
4900   ac_cv_prog_cc_g=no
4901   CFLAGS="-g"
4902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903/* end confdefs.h.  */
4904
4905int
4906main ()
4907{
4908
4909  ;
4910  return 0;
4911}
4912_ACEOF
4913if ac_fn_c_try_compile "$LINENO"; then :
4914  ac_cv_prog_cc_g=yes
4915else
4916  CFLAGS=""
4917      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918/* end confdefs.h.  */
4919
4920int
4921main ()
4922{
4923
4924  ;
4925  return 0;
4926}
4927_ACEOF
4928if ac_fn_c_try_compile "$LINENO"; then :
4929
4930else
4931  ac_c_werror_flag=$ac_save_c_werror_flag
4932	 CFLAGS="-g"
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  ac_cv_prog_cc_g=yes
4946fi
4947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948fi
4949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952   ac_c_werror_flag=$ac_save_c_werror_flag
4953fi
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4955$as_echo "$ac_cv_prog_cc_g" >&6; }
4956if test "$ac_test_CFLAGS" = set; then
4957  CFLAGS=$ac_save_CFLAGS
4958elif test $ac_cv_prog_cc_g = yes; then
4959  if test "$GCC" = yes; then
4960    CFLAGS="-g -O2"
4961  else
4962    CFLAGS="-g"
4963  fi
4964else
4965  if test "$GCC" = yes; then
4966    CFLAGS="-O2"
4967  else
4968    CFLAGS=
4969  fi
4970fi
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4972$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4973if ${ac_cv_prog_cc_c89+:} false; then :
4974  $as_echo_n "(cached) " >&6
4975else
4976  ac_cv_prog_cc_c89=no
4977ac_save_CC=$CC
4978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979/* end confdefs.h.  */
4980#include <stdarg.h>
4981#include <stdio.h>
4982struct stat;
4983/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4984struct buf { int x; };
4985FILE * (*rcsopen) (struct buf *, struct stat *, int);
4986static char *e (p, i)
4987     char **p;
4988     int i;
4989{
4990  return p[i];
4991}
4992static char *f (char * (*g) (char **, int), char **p, ...)
4993{
4994  char *s;
4995  va_list v;
4996  va_start (v,p);
4997  s = g (p, va_arg (v,int));
4998  va_end (v);
4999  return s;
5000}
5001
5002/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5003   function prototypes and stuff, but not '\xHH' hex character constants.
5004   These don't provoke an error unfortunately, instead are silently treated
5005   as 'x'.  The following induces an error, until -std is added to get
5006   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5007   array size at least.  It's necessary to write '\x00'==0 to get something
5008   that's true only with -std.  */
5009int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5010
5011/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5012   inside strings and character constants.  */
5013#define FOO(x) 'x'
5014int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5015
5016int test (int i, double x);
5017struct s1 {int (*f) (int a);};
5018struct s2 {int (*f) (double a);};
5019int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5020int argc;
5021char **argv;
5022int
5023main ()
5024{
5025return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5026  ;
5027  return 0;
5028}
5029_ACEOF
5030for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5031	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5032do
5033  CC="$ac_save_CC $ac_arg"
5034  if ac_fn_c_try_compile "$LINENO"; then :
5035  ac_cv_prog_cc_c89=$ac_arg
5036fi
5037rm -f core conftest.err conftest.$ac_objext
5038  test "x$ac_cv_prog_cc_c89" != "xno" && break
5039done
5040rm -f conftest.$ac_ext
5041CC=$ac_save_CC
5042
5043fi
5044# AC_CACHE_VAL
5045case "x$ac_cv_prog_cc_c89" in
5046  x)
5047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5048$as_echo "none needed" >&6; } ;;
5049  xno)
5050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5051$as_echo "unsupported" >&6; } ;;
5052  *)
5053    CC="$CC $ac_cv_prog_cc_c89"
5054    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5055$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5056esac
5057if test "x$ac_cv_prog_cc_c89" != xno; then :
5058
5059fi
5060
5061ac_ext=c
5062ac_cpp='$CPP $CPPFLAGS'
5063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066
5067ac_ext=c
5068ac_cpp='$CPP $CPPFLAGS'
5069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5073$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5074if ${am_cv_prog_cc_c_o+:} false; then :
5075  $as_echo_n "(cached) " >&6
5076else
5077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078/* end confdefs.h.  */
5079
5080int
5081main ()
5082{
5083
5084  ;
5085  return 0;
5086}
5087_ACEOF
5088  # Make sure it works both with $CC and with simple cc.
5089  # Following AC_PROG_CC_C_O, we do the test twice because some
5090  # compilers refuse to overwrite an existing .o file with -o,
5091  # though they will create one.
5092  am_cv_prog_cc_c_o=yes
5093  for am_i in 1 2; do
5094    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5095   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } \
5099         && test -f conftest2.$ac_objext; then
5100      : OK
5101    else
5102      am_cv_prog_cc_c_o=no
5103      break
5104    fi
5105  done
5106  rm -f core conftest*
5107  unset am_i
5108fi
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5110$as_echo "$am_cv_prog_cc_c_o" >&6; }
5111if test "$am_cv_prog_cc_c_o" != yes; then
5112   # Losing compiler, so override with the script.
5113   # FIXME: It is wrong to rewrite CC.
5114   # But if we don't then we get into trouble of one sort or another.
5115   # A longer-term fix would be to have automake use am__CC in this case,
5116   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5117   CC="$am_aux_dir/compile $CC"
5118fi
5119ac_ext=c
5120ac_cpp='$CPP $CPPFLAGS'
5121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124
5125
5126ac_ext=d
5127ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5128ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129ac_compiler_gnu=yes
5130if test -n "$ac_tool_prefix"; then
5131  # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5132set dummy ${ac_tool_prefix}gdc; ac_word=$2
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134$as_echo_n "checking for $ac_word... " >&6; }
5135if ${ac_cv_prog_GDC+:} false; then :
5136  $as_echo_n "(cached) " >&6
5137else
5138  if test -n "$GDC"; then
5139  ac_cv_prog_GDC="$GDC" # Let the user override the test.
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144  IFS=$as_save_IFS
5145  test -z "$as_dir" && as_dir=.
5146    for ac_exec_ext in '' $ac_executable_extensions; do
5147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148    ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150    break 2
5151  fi
5152done
5153  done
5154IFS=$as_save_IFS
5155
5156fi
5157fi
5158GDC=$ac_cv_prog_GDC
5159if test -n "$GDC"; then
5160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5161$as_echo "$GDC" >&6; }
5162else
5163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164$as_echo "no" >&6; }
5165fi
5166
5167
5168fi
5169if test -z "$ac_cv_prog_GDC"; then
5170  ac_ct_GDC=$GDC
5171  # Extract the first word of "gdc", so it can be a program name with args.
5172set dummy gdc; ac_word=$2
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174$as_echo_n "checking for $ac_word... " >&6; }
5175if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178  if test -n "$ac_ct_GDC"; then
5179  ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5180else
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184  IFS=$as_save_IFS
5185  test -z "$as_dir" && as_dir=.
5186    for ac_exec_ext in '' $ac_executable_extensions; do
5187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188    ac_cv_prog_ac_ct_GDC="gdc"
5189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190    break 2
5191  fi
5192done
5193  done
5194IFS=$as_save_IFS
5195
5196fi
5197fi
5198ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5199if test -n "$ac_ct_GDC"; then
5200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5201$as_echo "$ac_ct_GDC" >&6; }
5202else
5203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204$as_echo "no" >&6; }
5205fi
5206
5207  if test "x$ac_ct_GDC" = x; then
5208    GDC=""
5209  else
5210    case $cross_compiling:$ac_tool_warned in
5211yes:)
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214ac_tool_warned=yes ;;
5215esac
5216    GDC=$ac_ct_GDC
5217  fi
5218else
5219  GDC="$ac_cv_prog_GDC"
5220fi
5221
5222if test -z "$GDC"; then
5223  if test -n "$ac_tool_prefix"; then
5224    # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5225set dummy ${ac_tool_prefix}gdc; ac_word=$2
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227$as_echo_n "checking for $ac_word... " >&6; }
5228if ${ac_cv_prog_GDC+:} false; then :
5229  $as_echo_n "(cached) " >&6
5230else
5231  if test -n "$GDC"; then
5232  ac_cv_prog_GDC="$GDC" # Let the user override the test.
5233else
5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235for as_dir in $PATH
5236do
5237  IFS=$as_save_IFS
5238  test -z "$as_dir" && as_dir=.
5239    for ac_exec_ext in '' $ac_executable_extensions; do
5240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241    ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243    break 2
5244  fi
5245done
5246  done
5247IFS=$as_save_IFS
5248
5249fi
5250fi
5251GDC=$ac_cv_prog_GDC
5252if test -n "$GDC"; then
5253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5254$as_echo "$GDC" >&6; }
5255else
5256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257$as_echo "no" >&6; }
5258fi
5259
5260
5261  fi
5262fi
5263if test -z "$GDC"; then
5264  # Extract the first word of "gdc", so it can be a program name with args.
5265set dummy gdc; ac_word=$2
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267$as_echo_n "checking for $ac_word... " >&6; }
5268if ${ac_cv_prog_GDC+:} false; then :
5269  $as_echo_n "(cached) " >&6
5270else
5271  if test -n "$GDC"; then
5272  ac_cv_prog_GDC="$GDC" # Let the user override the test.
5273else
5274  ac_prog_rejected=no
5275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH
5277do
5278  IFS=$as_save_IFS
5279  test -z "$as_dir" && as_dir=.
5280    for ac_exec_ext in '' $ac_executable_extensions; do
5281  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282    if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5283       ac_prog_rejected=yes
5284       continue
5285     fi
5286    ac_cv_prog_GDC="gdc"
5287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288    break 2
5289  fi
5290done
5291  done
5292IFS=$as_save_IFS
5293
5294if test $ac_prog_rejected = yes; then
5295  # We found a bogon in the path, so make sure we never use it.
5296  set dummy $ac_cv_prog_GDC
5297  shift
5298  if test $# != 0; then
5299    # We chose a different compiler from the bogus one.
5300    # However, it has the same basename, so the bogon will be chosen
5301    # first if we set GDC to just the basename; use the full file name.
5302    shift
5303    ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5304  fi
5305fi
5306fi
5307fi
5308GDC=$ac_cv_prog_GDC
5309if test -n "$GDC"; then
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5311$as_echo "$GDC" >&6; }
5312else
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314$as_echo "no" >&6; }
5315fi
5316
5317
5318fi
5319
5320
5321# Provide some information about the compiler.
5322$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5323set X $ac_compile
5324ac_compiler=$2
5325{ { ac_try="$ac_compiler --version >&5"
5326case "(($ac_try" in
5327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328  *) ac_try_echo=$ac_try;;
5329esac
5330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5331$as_echo "$ac_try_echo"; } >&5
5332  (eval "$ac_compiler --version >&5") 2>conftest.err
5333  ac_status=$?
5334  if test -s conftest.err; then
5335    sed '10a\
5336... rest of stderr output deleted ...
5337         10q' conftest.err >conftest.er1
5338    cat conftest.er1 >&5
5339  fi
5340  rm -f conftest.er1 conftest.err
5341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5342  test $ac_status = 0; }
5343ac_ext=c
5344ac_cpp='$CPP $CPPFLAGS'
5345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347ac_compiler_gnu=$ac_cv_c_compiler_gnu
5348
5349
5350      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5351$as_echo_n "checking for absolute libphobos source path... " >&6; }
5352if ${phobos_cv_abs_srcdir+:} false; then :
5353  $as_echo_n "(cached) " >&6
5354else
5355  phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5356fi
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5358$as_echo "$phobos_cv_abs_srcdir" >&6; }
5359    if test -d "$phobos_cv_abs_srcdir"; then :
5360
5361else
5362  as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5363fi
5364
5365
5366
5367
5368  gdc_save_DFLAGS=$GDCFLAGS
5369  GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
5370
5371  ac_ext=d
5372ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5373ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374ac_compiler_gnu=yes
5375
5376    { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5377$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5378    cat > conftest.$ac_ext <<_ACEOF
5379module mod;
5380
5381
5382extern(C) int main() {
5383  return 0;
5384}
5385_ACEOF
5386if ac_fn_d_try_compile "$LINENO"; then :
5387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5388$as_echo "yes" >&6; }
5389else
5390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391$as_echo "no" >&6; }
5392       as_fn_error $? "can't compile D sources!" "$LINENO" 5
5393fi
5394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395  ac_ext=c
5396ac_cpp='$CPP $CPPFLAGS'
5397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5399ac_compiler_gnu=$ac_cv_c_compiler_gnu
5400
5401
5402  GDCFLAGS=$gdc_save_DFLAGS
5403
5404
5405
5406
5407
5408
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5410$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5411    # Check whether --enable-maintainer-mode was given.
5412if test "${enable_maintainer_mode+set}" = set; then :
5413  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5414else
5415  USE_MAINTAINER_MODE=no
5416fi
5417
5418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5419$as_echo "$USE_MAINTAINER_MODE" >&6; }
5420   if test $USE_MAINTAINER_MODE = yes; then
5421  MAINTAINER_MODE_TRUE=
5422  MAINTAINER_MODE_FALSE='#'
5423else
5424  MAINTAINER_MODE_TRUE='#'
5425  MAINTAINER_MODE_FALSE=
5426fi
5427
5428  MAINT=$MAINTAINER_MODE_TRUE
5429
5430
5431if test -n "$ac_tool_prefix"; then
5432  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5433set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435$as_echo_n "checking for $ac_word... " >&6; }
5436if ${ac_cv_prog_RANLIB+:} false; then :
5437  $as_echo_n "(cached) " >&6
5438else
5439  if test -n "$RANLIB"; then
5440  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5441else
5442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445  IFS=$as_save_IFS
5446  test -z "$as_dir" && as_dir=.
5447    for ac_exec_ext in '' $ac_executable_extensions; do
5448  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451    break 2
5452  fi
5453done
5454  done
5455IFS=$as_save_IFS
5456
5457fi
5458fi
5459RANLIB=$ac_cv_prog_RANLIB
5460if test -n "$RANLIB"; then
5461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5462$as_echo "$RANLIB" >&6; }
5463else
5464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465$as_echo "no" >&6; }
5466fi
5467
5468
5469fi
5470if test -z "$ac_cv_prog_RANLIB"; then
5471  ac_ct_RANLIB=$RANLIB
5472  # Extract the first word of "ranlib", so it can be a program name with args.
5473set dummy ranlib; ac_word=$2
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475$as_echo_n "checking for $ac_word... " >&6; }
5476if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5477  $as_echo_n "(cached) " >&6
5478else
5479  if test -n "$ac_ct_RANLIB"; then
5480  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5481else
5482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485  IFS=$as_save_IFS
5486  test -z "$as_dir" && as_dir=.
5487    for ac_exec_ext in '' $ac_executable_extensions; do
5488  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489    ac_cv_prog_ac_ct_RANLIB="ranlib"
5490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491    break 2
5492  fi
5493done
5494  done
5495IFS=$as_save_IFS
5496
5497fi
5498fi
5499ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5500if test -n "$ac_ct_RANLIB"; then
5501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5502$as_echo "$ac_ct_RANLIB" >&6; }
5503else
5504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505$as_echo "no" >&6; }
5506fi
5507
5508  if test "x$ac_ct_RANLIB" = x; then
5509    RANLIB=":"
5510  else
5511    case $cross_compiling:$ac_tool_warned in
5512yes:)
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5515ac_tool_warned=yes ;;
5516esac
5517    RANLIB=$ac_ct_RANLIB
5518  fi
5519else
5520  RANLIB="$ac_cv_prog_RANLIB"
5521fi
5522
5523
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5525$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5526set x ${MAKE-make}
5527ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5528if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5529  $as_echo_n "(cached) " >&6
5530else
5531  cat >conftest.make <<\_ACEOF
5532SHELL = /bin/sh
5533all:
5534	@echo '@@@%%%=$(MAKE)=@@@%%%'
5535_ACEOF
5536# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5537case `${MAKE-make} -f conftest.make 2>/dev/null` in
5538  *@@@%%%=?*=@@@%%%*)
5539    eval ac_cv_prog_make_${ac_make}_set=yes;;
5540  *)
5541    eval ac_cv_prog_make_${ac_make}_set=no;;
5542esac
5543rm -f conftest.make
5544fi
5545if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547$as_echo "yes" >&6; }
5548  SET_MAKE=
5549else
5550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551$as_echo "no" >&6; }
5552  SET_MAKE="MAKE=${MAKE-make}"
5553fi
5554
5555
5556# This should be inherited in the recursive make, but ensure it is defined.
5557test "$AR" || AR=ar
5558
5559
5560CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5561
5562
5563
5564# Enable libtool
5565case `pwd` in
5566  *\ * | *\	*)
5567    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5568$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5569esac
5570
5571
5572
5573macro_version='2.2.7a'
5574macro_revision='1.3134'
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588ltmain="$ac_aux_dir/ltmain.sh"
5589
5590# Backslashify metacharacters that are still active within
5591# double-quoted strings.
5592sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5593
5594# Same as above, but do not quote variable references.
5595double_quote_subst='s/\(["`\\]\)/\\\1/g'
5596
5597# Sed substitution to delay expansion of an escaped shell variable in a
5598# double_quote_subst'ed string.
5599delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5600
5601# Sed substitution to delay expansion of an escaped single quote.
5602delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5603
5604# Sed substitution to avoid accidental globbing in evaled expressions
5605no_glob_subst='s/\*/\\\*/g'
5606
5607ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5608ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5609ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5610
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5612$as_echo_n "checking how to print strings... " >&6; }
5613# Test print first, because it will be a builtin if present.
5614if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5615   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5616  ECHO='print -r --'
5617elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5618  ECHO='printf %s\n'
5619else
5620  # Use this function as a fallback that always works.
5621  func_fallback_echo ()
5622  {
5623    eval 'cat <<_LTECHO_EOF
5624$1
5625_LTECHO_EOF'
5626  }
5627  ECHO='func_fallback_echo'
5628fi
5629
5630# func_echo_all arg...
5631# Invoke $ECHO with all args, space-separated.
5632func_echo_all ()
5633{
5634    $ECHO ""
5635}
5636
5637case "$ECHO" in
5638  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5639$as_echo "printf" >&6; } ;;
5640  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5641$as_echo "print -r" >&6; } ;;
5642  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5643$as_echo "cat" >&6; } ;;
5644esac
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5660$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5661if ${ac_cv_path_SED+:} false; then :
5662  $as_echo_n "(cached) " >&6
5663else
5664            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5665     for ac_i in 1 2 3 4 5 6 7; do
5666       ac_script="$ac_script$as_nl$ac_script"
5667     done
5668     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5669     { ac_script=; unset ac_script;}
5670     if test -z "$SED"; then
5671  ac_path_SED_found=false
5672  # Loop through the user's path and test for each of PROGNAME-LIST
5673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674for as_dir in $PATH
5675do
5676  IFS=$as_save_IFS
5677  test -z "$as_dir" && as_dir=.
5678    for ac_prog in sed gsed; do
5679    for ac_exec_ext in '' $ac_executable_extensions; do
5680      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5681      as_fn_executable_p "$ac_path_SED" || continue
5682# Check for GNU ac_path_SED and select it if it is found.
5683  # Check for GNU $ac_path_SED
5684case `"$ac_path_SED" --version 2>&1` in
5685*GNU*)
5686  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5687*)
5688  ac_count=0
5689  $as_echo_n 0123456789 >"conftest.in"
5690  while :
5691  do
5692    cat "conftest.in" "conftest.in" >"conftest.tmp"
5693    mv "conftest.tmp" "conftest.in"
5694    cp "conftest.in" "conftest.nl"
5695    $as_echo '' >> "conftest.nl"
5696    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5697    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5698    as_fn_arith $ac_count + 1 && ac_count=$as_val
5699    if test $ac_count -gt ${ac_path_SED_max-0}; then
5700      # Best one so far, save it but keep looking for a better one
5701      ac_cv_path_SED="$ac_path_SED"
5702      ac_path_SED_max=$ac_count
5703    fi
5704    # 10*(2^10) chars as input seems more than enough
5705    test $ac_count -gt 10 && break
5706  done
5707  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5708esac
5709
5710      $ac_path_SED_found && break 3
5711    done
5712  done
5713  done
5714IFS=$as_save_IFS
5715  if test -z "$ac_cv_path_SED"; then
5716    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5717  fi
5718else
5719  ac_cv_path_SED=$SED
5720fi
5721
5722fi
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5724$as_echo "$ac_cv_path_SED" >&6; }
5725 SED="$ac_cv_path_SED"
5726  rm -f conftest.sed
5727
5728test -z "$SED" && SED=sed
5729Xsed="$SED -e 1s/^X//"
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5742$as_echo_n "checking for fgrep... " >&6; }
5743if ${ac_cv_path_FGREP+:} false; then :
5744  $as_echo_n "(cached) " >&6
5745else
5746  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5747   then ac_cv_path_FGREP="$GREP -F"
5748   else
5749     if test -z "$FGREP"; then
5750  ac_path_FGREP_found=false
5751  # Loop through the user's path and test for each of PROGNAME-LIST
5752  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5754do
5755  IFS=$as_save_IFS
5756  test -z "$as_dir" && as_dir=.
5757    for ac_prog in fgrep; do
5758    for ac_exec_ext in '' $ac_executable_extensions; do
5759      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5760      as_fn_executable_p "$ac_path_FGREP" || continue
5761# Check for GNU ac_path_FGREP and select it if it is found.
5762  # Check for GNU $ac_path_FGREP
5763case `"$ac_path_FGREP" --version 2>&1` in
5764*GNU*)
5765  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5766*)
5767  ac_count=0
5768  $as_echo_n 0123456789 >"conftest.in"
5769  while :
5770  do
5771    cat "conftest.in" "conftest.in" >"conftest.tmp"
5772    mv "conftest.tmp" "conftest.in"
5773    cp "conftest.in" "conftest.nl"
5774    $as_echo 'FGREP' >> "conftest.nl"
5775    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5776    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5777    as_fn_arith $ac_count + 1 && ac_count=$as_val
5778    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5779      # Best one so far, save it but keep looking for a better one
5780      ac_cv_path_FGREP="$ac_path_FGREP"
5781      ac_path_FGREP_max=$ac_count
5782    fi
5783    # 10*(2^10) chars as input seems more than enough
5784    test $ac_count -gt 10 && break
5785  done
5786  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5787esac
5788
5789      $ac_path_FGREP_found && break 3
5790    done
5791  done
5792  done
5793IFS=$as_save_IFS
5794  if test -z "$ac_cv_path_FGREP"; then
5795    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5796  fi
5797else
5798  ac_cv_path_FGREP=$FGREP
5799fi
5800
5801   fi
5802fi
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5804$as_echo "$ac_cv_path_FGREP" >&6; }
5805 FGREP="$ac_cv_path_FGREP"
5806
5807
5808test -z "$GREP" && GREP=grep
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828# Check whether --with-gnu-ld was given.
5829if test "${with_gnu_ld+set}" = set; then :
5830  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5831else
5832  with_gnu_ld=no
5833fi
5834
5835ac_prog=ld
5836if test "$GCC" = yes; then
5837  # Check if gcc -print-prog-name=ld gives a path.
5838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5839$as_echo_n "checking for ld used by $CC... " >&6; }
5840  case $host in
5841  *-*-mingw*)
5842    # gcc leaves a trailing carriage return which upsets mingw
5843    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5844  *)
5845    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5846  esac
5847  case $ac_prog in
5848    # Accept absolute paths.
5849    [\\/]* | ?:[\\/]*)
5850      re_direlt='/[^/][^/]*/\.\./'
5851      # Canonicalize the pathname of ld
5852      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5853      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5854	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5855      done
5856      test -z "$LD" && LD="$ac_prog"
5857      ;;
5858  "")
5859    # If it fails, then pretend we aren't using GCC.
5860    ac_prog=ld
5861    ;;
5862  *)
5863    # If it is relative, then search for the first ld in PATH.
5864    with_gnu_ld=unknown
5865    ;;
5866  esac
5867elif test "$with_gnu_ld" = yes; then
5868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5869$as_echo_n "checking for GNU ld... " >&6; }
5870else
5871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5872$as_echo_n "checking for non-GNU ld... " >&6; }
5873fi
5874if ${lt_cv_path_LD+:} false; then :
5875  $as_echo_n "(cached) " >&6
5876else
5877  if test -z "$LD"; then
5878  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5879  for ac_dir in $PATH; do
5880    IFS="$lt_save_ifs"
5881    test -z "$ac_dir" && ac_dir=.
5882    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5883      lt_cv_path_LD="$ac_dir/$ac_prog"
5884      # Check to see if the program is GNU ld.  I'd rather use --version,
5885      # but apparently some variants of GNU ld only accept -v.
5886      # Break only if it was the GNU/non-GNU ld that we prefer.
5887      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5888      *GNU* | *'with BFD'*)
5889	test "$with_gnu_ld" != no && break
5890	;;
5891      *)
5892	test "$with_gnu_ld" != yes && break
5893	;;
5894      esac
5895    fi
5896  done
5897  IFS="$lt_save_ifs"
5898else
5899  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5900fi
5901fi
5902
5903LD="$lt_cv_path_LD"
5904if test -n "$LD"; then
5905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5906$as_echo "$LD" >&6; }
5907else
5908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909$as_echo "no" >&6; }
5910fi
5911test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5913$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5914if ${lt_cv_prog_gnu_ld+:} false; then :
5915  $as_echo_n "(cached) " >&6
5916else
5917  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5918case `$LD -v 2>&1 </dev/null` in
5919*GNU* | *'with BFD'*)
5920  lt_cv_prog_gnu_ld=yes
5921  ;;
5922*)
5923  lt_cv_prog_gnu_ld=no
5924  ;;
5925esac
5926fi
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5928$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5929with_gnu_ld=$lt_cv_prog_gnu_ld
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5940$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5941if ${lt_cv_path_NM+:} false; then :
5942  $as_echo_n "(cached) " >&6
5943else
5944  if test -n "$NM"; then
5945  # Let the user override the test.
5946  lt_cv_path_NM="$NM"
5947else
5948  lt_nm_to_check="${ac_tool_prefix}nm"
5949  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5950    lt_nm_to_check="$lt_nm_to_check nm"
5951  fi
5952  for lt_tmp_nm in $lt_nm_to_check; do
5953    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5954    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5955      IFS="$lt_save_ifs"
5956      test -z "$ac_dir" && ac_dir=.
5957      tmp_nm="$ac_dir/$lt_tmp_nm"
5958      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5959	# Check to see if the nm accepts a BSD-compat flag.
5960	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5961	#   nm: unknown option "B" ignored
5962	# Tru64's nm complains that /dev/null is an invalid object file
5963	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5964	*/dev/null* | *'Invalid file or object type'*)
5965	  lt_cv_path_NM="$tmp_nm -B"
5966	  break
5967	  ;;
5968	*)
5969	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5970	  */dev/null*)
5971	    lt_cv_path_NM="$tmp_nm -p"
5972	    break
5973	    ;;
5974	  *)
5975	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5976	    continue # so that we can try to find one that supports BSD flags
5977	    ;;
5978	  esac
5979	  ;;
5980	esac
5981      fi
5982    done
5983    IFS="$lt_save_ifs"
5984  done
5985  : ${lt_cv_path_NM=no}
5986fi
5987fi
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5989$as_echo "$lt_cv_path_NM" >&6; }
5990if test "$lt_cv_path_NM" != "no"; then
5991  NM="$lt_cv_path_NM"
5992else
5993  # Didn't find any BSD compatible name lister, look for dumpbin.
5994  if test -n "$DUMPBIN"; then :
5995    # Let the user override the test.
5996  else
5997    if test -n "$ac_tool_prefix"; then
5998  for ac_prog in dumpbin "link -dump"
5999  do
6000    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003$as_echo_n "checking for $ac_word... " >&6; }
6004if ${ac_cv_prog_DUMPBIN+:} false; then :
6005  $as_echo_n "(cached) " >&6
6006else
6007  if test -n "$DUMPBIN"; then
6008  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013  IFS=$as_save_IFS
6014  test -z "$as_dir" && as_dir=.
6015    for ac_exec_ext in '' $ac_executable_extensions; do
6016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019    break 2
6020  fi
6021done
6022  done
6023IFS=$as_save_IFS
6024
6025fi
6026fi
6027DUMPBIN=$ac_cv_prog_DUMPBIN
6028if test -n "$DUMPBIN"; then
6029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6030$as_echo "$DUMPBIN" >&6; }
6031else
6032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033$as_echo "no" >&6; }
6034fi
6035
6036
6037    test -n "$DUMPBIN" && break
6038  done
6039fi
6040if test -z "$DUMPBIN"; then
6041  ac_ct_DUMPBIN=$DUMPBIN
6042  for ac_prog in dumpbin "link -dump"
6043do
6044  # Extract the first word of "$ac_prog", so it can be a program name with args.
6045set dummy $ac_prog; ac_word=$2
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047$as_echo_n "checking for $ac_word... " >&6; }
6048if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6049  $as_echo_n "(cached) " >&6
6050else
6051  if test -n "$ac_ct_DUMPBIN"; then
6052  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057  IFS=$as_save_IFS
6058  test -z "$as_dir" && as_dir=.
6059    for ac_exec_ext in '' $ac_executable_extensions; do
6060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063    break 2
6064  fi
6065done
6066  done
6067IFS=$as_save_IFS
6068
6069fi
6070fi
6071ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6072if test -n "$ac_ct_DUMPBIN"; then
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6074$as_echo "$ac_ct_DUMPBIN" >&6; }
6075else
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077$as_echo "no" >&6; }
6078fi
6079
6080
6081  test -n "$ac_ct_DUMPBIN" && break
6082done
6083
6084  if test "x$ac_ct_DUMPBIN" = x; then
6085    DUMPBIN=":"
6086  else
6087    case $cross_compiling:$ac_tool_warned in
6088yes:)
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091ac_tool_warned=yes ;;
6092esac
6093    DUMPBIN=$ac_ct_DUMPBIN
6094  fi
6095fi
6096
6097    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6098    *COFF*)
6099      DUMPBIN="$DUMPBIN -symbols"
6100      ;;
6101    *)
6102      DUMPBIN=:
6103      ;;
6104    esac
6105  fi
6106
6107  if test "$DUMPBIN" != ":"; then
6108    NM="$DUMPBIN"
6109  fi
6110fi
6111test -z "$NM" && NM=nm
6112
6113
6114
6115
6116
6117
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6119$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6120if ${lt_cv_nm_interface+:} false; then :
6121  $as_echo_n "(cached) " >&6
6122else
6123  lt_cv_nm_interface="BSD nm"
6124  echo "int some_variable = 0;" > conftest.$ac_ext
6125  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6126  (eval "$ac_compile" 2>conftest.err)
6127  cat conftest.err >&5
6128  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6129  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6130  cat conftest.err >&5
6131  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6132  cat conftest.out >&5
6133  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6134    lt_cv_nm_interface="MS dumpbin"
6135  fi
6136  rm -f conftest*
6137fi
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6139$as_echo "$lt_cv_nm_interface" >&6; }
6140
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6142$as_echo_n "checking whether ln -s works... " >&6; }
6143LN_S=$as_ln_s
6144if test "$LN_S" = "ln -s"; then
6145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6146$as_echo "yes" >&6; }
6147else
6148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6149$as_echo "no, using $LN_S" >&6; }
6150fi
6151
6152# find the maximum length of command line arguments
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6154$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6155if ${lt_cv_sys_max_cmd_len+:} false; then :
6156  $as_echo_n "(cached) " >&6
6157else
6158    i=0
6159  teststring="ABCD"
6160
6161  case $build_os in
6162  msdosdjgpp*)
6163    # On DJGPP, this test can blow up pretty badly due to problems in libc
6164    # (any single argument exceeding 2000 bytes causes a buffer overrun
6165    # during glob expansion).  Even if it were fixed, the result of this
6166    # check would be larger than it should be.
6167    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6168    ;;
6169
6170  gnu*)
6171    # Under GNU Hurd, this test is not required because there is
6172    # no limit to the length of command line arguments.
6173    # Libtool will interpret -1 as no limit whatsoever
6174    lt_cv_sys_max_cmd_len=-1;
6175    ;;
6176
6177  cygwin* | mingw* | cegcc*)
6178    # On Win9x/ME, this test blows up -- it succeeds, but takes
6179    # about 5 minutes as the teststring grows exponentially.
6180    # Worse, since 9x/ME are not pre-emptively multitasking,
6181    # you end up with a "frozen" computer, even though with patience
6182    # the test eventually succeeds (with a max line length of 256k).
6183    # Instead, let's just punt: use the minimum linelength reported by
6184    # all of the supported platforms: 8192 (on NT/2K/XP).
6185    lt_cv_sys_max_cmd_len=8192;
6186    ;;
6187
6188  mint*)
6189    # On MiNT this can take a long time and run out of memory.
6190    lt_cv_sys_max_cmd_len=8192;
6191    ;;
6192
6193  amigaos*)
6194    # On AmigaOS with pdksh, this test takes hours, literally.
6195    # So we just punt and use a minimum line length of 8192.
6196    lt_cv_sys_max_cmd_len=8192;
6197    ;;
6198
6199  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6200    # This has been around since 386BSD, at least.  Likely further.
6201    if test -x /sbin/sysctl; then
6202      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6203    elif test -x /usr/sbin/sysctl; then
6204      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6205    else
6206      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6207    fi
6208    # And add a safety zone
6209    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6210    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6211    ;;
6212
6213  interix*)
6214    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6215    lt_cv_sys_max_cmd_len=196608
6216    ;;
6217
6218  osf*)
6219    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6220    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6221    # nice to cause kernel panics so lets avoid the loop below.
6222    # First set a reasonable default.
6223    lt_cv_sys_max_cmd_len=16384
6224    #
6225    if test -x /sbin/sysconfig; then
6226      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6227        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6228      esac
6229    fi
6230    ;;
6231  sco3.2v5*)
6232    lt_cv_sys_max_cmd_len=102400
6233    ;;
6234  sysv5* | sco5v6* | sysv4.2uw2*)
6235    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6236    if test -n "$kargmax"; then
6237      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6238    else
6239      lt_cv_sys_max_cmd_len=32768
6240    fi
6241    ;;
6242  *)
6243    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6244    if test -n "$lt_cv_sys_max_cmd_len"; then
6245      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6246      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6247    else
6248      # Make teststring a little bigger before we do anything with it.
6249      # a 1K string should be a reasonable start.
6250      for i in 1 2 3 4 5 6 7 8 ; do
6251        teststring=$teststring$teststring
6252      done
6253      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6254      # If test is not a shell built-in, we'll probably end up computing a
6255      # maximum length that is only half of the actual maximum length, but
6256      # we can't tell.
6257      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6258	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6259	      test $i != 17 # 1/2 MB should be enough
6260      do
6261        i=`expr $i + 1`
6262        teststring=$teststring$teststring
6263      done
6264      # Only check the string length outside the loop.
6265      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6266      teststring=
6267      # Add a significant safety factor because C++ compilers can tack on
6268      # massive amounts of additional arguments before passing them to the
6269      # linker.  It appears as though 1/2 is a usable value.
6270      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6271    fi
6272    ;;
6273  esac
6274
6275fi
6276
6277if test -n $lt_cv_sys_max_cmd_len ; then
6278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6279$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6280else
6281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6282$as_echo "none" >&6; }
6283fi
6284max_cmd_len=$lt_cv_sys_max_cmd_len
6285
6286
6287
6288
6289
6290
6291: ${CP="cp -f"}
6292: ${MV="mv -f"}
6293: ${RM="rm -f"}
6294
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6296$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6297# Try some XSI features
6298xsi_shell=no
6299( _lt_dummy="a/b/c"
6300  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6301      = c,a/b,, \
6302    && eval 'test $(( 1 + 1 )) -eq 2 \
6303    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6304  && xsi_shell=yes
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6306$as_echo "$xsi_shell" >&6; }
6307
6308
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6310$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6311lt_shell_append=no
6312( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6313    >/dev/null 2>&1 \
6314  && lt_shell_append=yes
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6316$as_echo "$lt_shell_append" >&6; }
6317
6318
6319if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6320  lt_unset=unset
6321else
6322  lt_unset=false
6323fi
6324
6325
6326
6327
6328
6329# test EBCDIC or ASCII
6330case `echo X|tr X '\101'` in
6331 A) # ASCII based system
6332    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6333  lt_SP2NL='tr \040 \012'
6334  lt_NL2SP='tr \015\012 \040\040'
6335  ;;
6336 *) # EBCDIC based system
6337  lt_SP2NL='tr \100 \n'
6338  lt_NL2SP='tr \r\n \100\100'
6339  ;;
6340esac
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6351$as_echo_n "checking for $LD option to reload object files... " >&6; }
6352if ${lt_cv_ld_reload_flag+:} false; then :
6353  $as_echo_n "(cached) " >&6
6354else
6355  lt_cv_ld_reload_flag='-r'
6356fi
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6358$as_echo "$lt_cv_ld_reload_flag" >&6; }
6359reload_flag=$lt_cv_ld_reload_flag
6360case $reload_flag in
6361"" | " "*) ;;
6362*) reload_flag=" $reload_flag" ;;
6363esac
6364reload_cmds='$LD$reload_flag -o $output$reload_objs'
6365case $host_os in
6366  darwin*)
6367    if test "$GCC" = yes; then
6368      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6369    else
6370      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6371    fi
6372    ;;
6373esac
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383if test -n "$ac_tool_prefix"; then
6384  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6385set dummy ${ac_tool_prefix}objdump; ac_word=$2
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387$as_echo_n "checking for $ac_word... " >&6; }
6388if ${ac_cv_prog_OBJDUMP+:} false; then :
6389  $as_echo_n "(cached) " >&6
6390else
6391  if test -n "$OBJDUMP"; then
6392  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6393else
6394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
6396do
6397  IFS=$as_save_IFS
6398  test -z "$as_dir" && as_dir=.
6399    for ac_exec_ext in '' $ac_executable_extensions; do
6400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403    break 2
6404  fi
6405done
6406  done
6407IFS=$as_save_IFS
6408
6409fi
6410fi
6411OBJDUMP=$ac_cv_prog_OBJDUMP
6412if test -n "$OBJDUMP"; then
6413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6414$as_echo "$OBJDUMP" >&6; }
6415else
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417$as_echo "no" >&6; }
6418fi
6419
6420
6421fi
6422if test -z "$ac_cv_prog_OBJDUMP"; then
6423  ac_ct_OBJDUMP=$OBJDUMP
6424  # Extract the first word of "objdump", so it can be a program name with args.
6425set dummy objdump; ac_word=$2
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427$as_echo_n "checking for $ac_word... " >&6; }
6428if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6429  $as_echo_n "(cached) " >&6
6430else
6431  if test -n "$ac_ct_OBJDUMP"; then
6432  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6433else
6434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435for as_dir in $PATH
6436do
6437  IFS=$as_save_IFS
6438  test -z "$as_dir" && as_dir=.
6439    for ac_exec_ext in '' $ac_executable_extensions; do
6440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443    break 2
6444  fi
6445done
6446  done
6447IFS=$as_save_IFS
6448
6449fi
6450fi
6451ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6452if test -n "$ac_ct_OBJDUMP"; then
6453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6454$as_echo "$ac_ct_OBJDUMP" >&6; }
6455else
6456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457$as_echo "no" >&6; }
6458fi
6459
6460  if test "x$ac_ct_OBJDUMP" = x; then
6461    OBJDUMP="false"
6462  else
6463    case $cross_compiling:$ac_tool_warned in
6464yes:)
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6467ac_tool_warned=yes ;;
6468esac
6469    OBJDUMP=$ac_ct_OBJDUMP
6470  fi
6471else
6472  OBJDUMP="$ac_cv_prog_OBJDUMP"
6473fi
6474
6475test -z "$OBJDUMP" && OBJDUMP=objdump
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6486$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6487if ${lt_cv_deplibs_check_method+:} false; then :
6488  $as_echo_n "(cached) " >&6
6489else
6490  lt_cv_file_magic_cmd='$MAGIC_CMD'
6491lt_cv_file_magic_test_file=
6492lt_cv_deplibs_check_method='unknown'
6493# Need to set the preceding variable on all platforms that support
6494# interlibrary dependencies.
6495# 'none' -- dependencies not supported.
6496# `unknown' -- same as none, but documents that we really don't know.
6497# 'pass_all' -- all dependencies passed with no checks.
6498# 'test_compile' -- check by making test program.
6499# 'file_magic [[regex]]' -- check by looking for files in library path
6500# which responds to the $file_magic_cmd with a given extended regex.
6501# If you have `file' or equivalent on your system and you're not sure
6502# whether `pass_all' will *always* work, you probably want this one.
6503
6504case $host_os in
6505aix[4-9]*)
6506  lt_cv_deplibs_check_method=pass_all
6507  ;;
6508
6509beos*)
6510  lt_cv_deplibs_check_method=pass_all
6511  ;;
6512
6513bsdi[45]*)
6514  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6515  lt_cv_file_magic_cmd='/usr/bin/file -L'
6516  lt_cv_file_magic_test_file=/shlib/libc.so
6517  ;;
6518
6519cygwin*)
6520  # func_win32_libid is a shell function defined in ltmain.sh
6521  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6522  lt_cv_file_magic_cmd='func_win32_libid'
6523  ;;
6524
6525mingw* | pw32*)
6526  # Base MSYS/MinGW do not provide the 'file' command needed by
6527  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6528  # unless we find 'file', for example because we are cross-compiling.
6529  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6530  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6531    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6532    lt_cv_file_magic_cmd='func_win32_libid'
6533  else
6534    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6535    lt_cv_file_magic_cmd='$OBJDUMP -f'
6536  fi
6537  ;;
6538
6539cegcc*)
6540  # use the weaker test based on 'objdump'. See mingw*.
6541  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6542  lt_cv_file_magic_cmd='$OBJDUMP -f'
6543  ;;
6544
6545darwin* | rhapsody*)
6546  lt_cv_deplibs_check_method=pass_all
6547  ;;
6548
6549freebsd* | dragonfly*)
6550  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6551    case $host_cpu in
6552    i*86 )
6553      # Not sure whether the presence of OpenBSD here was a mistake.
6554      # Let's accept both of them until this is cleared up.
6555      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6556      lt_cv_file_magic_cmd=/usr/bin/file
6557      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6558      ;;
6559    esac
6560  else
6561    lt_cv_deplibs_check_method=pass_all
6562  fi
6563  ;;
6564
6565gnu*)
6566  lt_cv_deplibs_check_method=pass_all
6567  ;;
6568
6569haiku*)
6570  lt_cv_deplibs_check_method=pass_all
6571  ;;
6572
6573hpux10.20* | hpux11*)
6574  lt_cv_file_magic_cmd=/usr/bin/file
6575  case $host_cpu in
6576  ia64*)
6577    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6578    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6579    ;;
6580  hppa*64*)
6581    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]'
6582    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6583    ;;
6584  *)
6585    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6586    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6587    ;;
6588  esac
6589  ;;
6590
6591interix[3-9]*)
6592  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6593  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6594  ;;
6595
6596irix5* | irix6* | nonstopux*)
6597  case $LD in
6598  *-32|*"-32 ") libmagic=32-bit;;
6599  *-n32|*"-n32 ") libmagic=N32;;
6600  *-64|*"-64 ") libmagic=64-bit;;
6601  *) libmagic=never-match;;
6602  esac
6603  lt_cv_deplibs_check_method=pass_all
6604  ;;
6605
6606# This must be Linux ELF.
6607linux* | k*bsd*-gnu | kopensolaris*-gnu)
6608  lt_cv_deplibs_check_method=pass_all
6609  ;;
6610
6611netbsd*)
6612  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6613    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6614  else
6615    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6616  fi
6617  ;;
6618
6619newos6*)
6620  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6621  lt_cv_file_magic_cmd=/usr/bin/file
6622  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6623  ;;
6624
6625*nto* | *qnx*)
6626  lt_cv_deplibs_check_method=pass_all
6627  ;;
6628
6629openbsd*)
6630  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6631    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6632  else
6633    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6634  fi
6635  ;;
6636
6637osf3* | osf4* | osf5*)
6638  lt_cv_deplibs_check_method=pass_all
6639  ;;
6640
6641rdos*)
6642  lt_cv_deplibs_check_method=pass_all
6643  ;;
6644
6645solaris*)
6646  lt_cv_deplibs_check_method=pass_all
6647  ;;
6648
6649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6650  lt_cv_deplibs_check_method=pass_all
6651  ;;
6652
6653sysv4 | sysv4.3*)
6654  case $host_vendor in
6655  motorola)
6656    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]'
6657    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6658    ;;
6659  ncr)
6660    lt_cv_deplibs_check_method=pass_all
6661    ;;
6662  sequent)
6663    lt_cv_file_magic_cmd='/bin/file'
6664    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6665    ;;
6666  sni)
6667    lt_cv_file_magic_cmd='/bin/file'
6668    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6669    lt_cv_file_magic_test_file=/lib/libc.so
6670    ;;
6671  siemens)
6672    lt_cv_deplibs_check_method=pass_all
6673    ;;
6674  pc)
6675    lt_cv_deplibs_check_method=pass_all
6676    ;;
6677  esac
6678  ;;
6679
6680tpf*)
6681  lt_cv_deplibs_check_method=pass_all
6682  ;;
6683esac
6684
6685fi
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6687$as_echo "$lt_cv_deplibs_check_method" >&6; }
6688file_magic_cmd=$lt_cv_file_magic_cmd
6689deplibs_check_method=$lt_cv_deplibs_check_method
6690test -z "$deplibs_check_method" && deplibs_check_method=unknown
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703if test -n "$ac_tool_prefix"; then
6704  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6705set dummy ${ac_tool_prefix}ar; ac_word=$2
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707$as_echo_n "checking for $ac_word... " >&6; }
6708if ${ac_cv_prog_AR+:} false; then :
6709  $as_echo_n "(cached) " >&6
6710else
6711  if test -n "$AR"; then
6712  ac_cv_prog_AR="$AR" # Let the user override the test.
6713else
6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717  IFS=$as_save_IFS
6718  test -z "$as_dir" && as_dir=.
6719    for ac_exec_ext in '' $ac_executable_extensions; do
6720  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6721    ac_cv_prog_AR="${ac_tool_prefix}ar"
6722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723    break 2
6724  fi
6725done
6726  done
6727IFS=$as_save_IFS
6728
6729fi
6730fi
6731AR=$ac_cv_prog_AR
6732if test -n "$AR"; then
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6734$as_echo "$AR" >&6; }
6735else
6736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737$as_echo "no" >&6; }
6738fi
6739
6740
6741fi
6742if test -z "$ac_cv_prog_AR"; then
6743  ac_ct_AR=$AR
6744  # Extract the first word of "ar", so it can be a program name with args.
6745set dummy ar; ac_word=$2
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747$as_echo_n "checking for $ac_word... " >&6; }
6748if ${ac_cv_prog_ac_ct_AR+:} false; then :
6749  $as_echo_n "(cached) " >&6
6750else
6751  if test -n "$ac_ct_AR"; then
6752  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6753else
6754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in $PATH
6756do
6757  IFS=$as_save_IFS
6758  test -z "$as_dir" && as_dir=.
6759    for ac_exec_ext in '' $ac_executable_extensions; do
6760  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761    ac_cv_prog_ac_ct_AR="ar"
6762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763    break 2
6764  fi
6765done
6766  done
6767IFS=$as_save_IFS
6768
6769fi
6770fi
6771ac_ct_AR=$ac_cv_prog_ac_ct_AR
6772if test -n "$ac_ct_AR"; then
6773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6774$as_echo "$ac_ct_AR" >&6; }
6775else
6776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777$as_echo "no" >&6; }
6778fi
6779
6780  if test "x$ac_ct_AR" = x; then
6781    AR="false"
6782  else
6783    case $cross_compiling:$ac_tool_warned in
6784yes:)
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6787ac_tool_warned=yes ;;
6788esac
6789    AR=$ac_ct_AR
6790  fi
6791else
6792  AR="$ac_cv_prog_AR"
6793fi
6794
6795test -z "$AR" && AR=ar
6796test -z "$AR_FLAGS" && AR_FLAGS=cru
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808if test -n "$ac_tool_prefix"; then
6809  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6810set dummy ${ac_tool_prefix}strip; ac_word=$2
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812$as_echo_n "checking for $ac_word... " >&6; }
6813if ${ac_cv_prog_STRIP+:} false; then :
6814  $as_echo_n "(cached) " >&6
6815else
6816  if test -n "$STRIP"; then
6817  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822  IFS=$as_save_IFS
6823  test -z "$as_dir" && as_dir=.
6824    for ac_exec_ext in '' $ac_executable_extensions; do
6825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828    break 2
6829  fi
6830done
6831  done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
6836STRIP=$ac_cv_prog_STRIP
6837if test -n "$STRIP"; then
6838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6839$as_echo "$STRIP" >&6; }
6840else
6841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842$as_echo "no" >&6; }
6843fi
6844
6845
6846fi
6847if test -z "$ac_cv_prog_STRIP"; then
6848  ac_ct_STRIP=$STRIP
6849  # Extract the first word of "strip", so it can be a program name with args.
6850set dummy strip; ac_word=$2
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852$as_echo_n "checking for $ac_word... " >&6; }
6853if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6854  $as_echo_n "(cached) " >&6
6855else
6856  if test -n "$ac_ct_STRIP"; then
6857  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862  IFS=$as_save_IFS
6863  test -z "$as_dir" && as_dir=.
6864    for ac_exec_ext in '' $ac_executable_extensions; do
6865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866    ac_cv_prog_ac_ct_STRIP="strip"
6867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868    break 2
6869  fi
6870done
6871  done
6872IFS=$as_save_IFS
6873
6874fi
6875fi
6876ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6877if test -n "$ac_ct_STRIP"; then
6878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6879$as_echo "$ac_ct_STRIP" >&6; }
6880else
6881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882$as_echo "no" >&6; }
6883fi
6884
6885  if test "x$ac_ct_STRIP" = x; then
6886    STRIP=":"
6887  else
6888    case $cross_compiling:$ac_tool_warned in
6889yes:)
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892ac_tool_warned=yes ;;
6893esac
6894    STRIP=$ac_ct_STRIP
6895  fi
6896else
6897  STRIP="$ac_cv_prog_STRIP"
6898fi
6899
6900test -z "$STRIP" && STRIP=:
6901
6902
6903
6904
6905
6906
6907if test -n "$ac_tool_prefix"; then
6908  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6909set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911$as_echo_n "checking for $ac_word... " >&6; }
6912if ${ac_cv_prog_RANLIB+:} false; then :
6913  $as_echo_n "(cached) " >&6
6914else
6915  if test -n "$RANLIB"; then
6916  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6917else
6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921  IFS=$as_save_IFS
6922  test -z "$as_dir" && as_dir=.
6923    for ac_exec_ext in '' $ac_executable_extensions; do
6924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927    break 2
6928  fi
6929done
6930  done
6931IFS=$as_save_IFS
6932
6933fi
6934fi
6935RANLIB=$ac_cv_prog_RANLIB
6936if test -n "$RANLIB"; then
6937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6938$as_echo "$RANLIB" >&6; }
6939else
6940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941$as_echo "no" >&6; }
6942fi
6943
6944
6945fi
6946if test -z "$ac_cv_prog_RANLIB"; then
6947  ac_ct_RANLIB=$RANLIB
6948  # Extract the first word of "ranlib", so it can be a program name with args.
6949set dummy ranlib; ac_word=$2
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951$as_echo_n "checking for $ac_word... " >&6; }
6952if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6953  $as_echo_n "(cached) " >&6
6954else
6955  if test -n "$ac_ct_RANLIB"; then
6956  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6957else
6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961  IFS=$as_save_IFS
6962  test -z "$as_dir" && as_dir=.
6963    for ac_exec_ext in '' $ac_executable_extensions; do
6964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6965    ac_cv_prog_ac_ct_RANLIB="ranlib"
6966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967    break 2
6968  fi
6969done
6970  done
6971IFS=$as_save_IFS
6972
6973fi
6974fi
6975ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6976if test -n "$ac_ct_RANLIB"; then
6977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6978$as_echo "$ac_ct_RANLIB" >&6; }
6979else
6980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981$as_echo "no" >&6; }
6982fi
6983
6984  if test "x$ac_ct_RANLIB" = x; then
6985    RANLIB=":"
6986  else
6987    case $cross_compiling:$ac_tool_warned in
6988yes:)
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991ac_tool_warned=yes ;;
6992esac
6993    RANLIB=$ac_ct_RANLIB
6994  fi
6995else
6996  RANLIB="$ac_cv_prog_RANLIB"
6997fi
6998
6999test -z "$RANLIB" && RANLIB=:
7000
7001
7002
7003
7004
7005
7006# Determine commands to create old-style static archives.
7007old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7008old_postinstall_cmds='chmod 644 $oldlib'
7009old_postuninstall_cmds=
7010
7011if test -n "$RANLIB"; then
7012  case $host_os in
7013  openbsd*)
7014    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7015    ;;
7016  *)
7017    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7018    ;;
7019  esac
7020  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7021fi
7022
7023case $host_os in
7024  darwin*)
7025    lock_old_archive_extraction=yes ;;
7026  *)
7027    lock_old_archive_extraction=no ;;
7028esac
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068# If no C compiler was specified, use CC.
7069LTCC=${LTCC-"$CC"}
7070
7071# If no C compiler flags were specified, use CFLAGS.
7072LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7073
7074# Allow CC to be a program name with arguments.
7075compiler=$CC
7076
7077
7078# Check for command to grab the raw symbol name followed by C symbol from nm.
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7080$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7081if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7082  $as_echo_n "(cached) " >&6
7083else
7084
7085# These are sane defaults that work on at least a few old systems.
7086# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7087
7088# Character class describing NM global symbol codes.
7089symcode='[BCDEGRST]'
7090
7091# Regexp to match symbols that can be accessed directly from C.
7092sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7093
7094# Define system-specific variables.
7095case $host_os in
7096aix*)
7097  symcode='[BCDT]'
7098  ;;
7099cygwin* | mingw* | pw32* | cegcc*)
7100  symcode='[ABCDGISTW]'
7101  ;;
7102hpux*)
7103  if test "$host_cpu" = ia64; then
7104    symcode='[ABCDEGRST]'
7105  fi
7106  ;;
7107irix* | nonstopux*)
7108  symcode='[BCDEGRST]'
7109  ;;
7110osf*)
7111  symcode='[BCDEGQRST]'
7112  ;;
7113solaris*)
7114  symcode='[BDRT]'
7115  ;;
7116sco3.2v5*)
7117  symcode='[DT]'
7118  ;;
7119sysv4.2uw2*)
7120  symcode='[DT]'
7121  ;;
7122sysv5* | sco5v6* | unixware* | OpenUNIX*)
7123  symcode='[ABDT]'
7124  ;;
7125sysv4)
7126  symcode='[DFNSTU]'
7127  ;;
7128esac
7129
7130# If we're using GNU nm, then use its standard symbol codes.
7131case `$NM -V 2>&1` in
7132*GNU* | *'with BFD'*)
7133  symcode='[ABCDGIRSTW]' ;;
7134esac
7135
7136# Transform an extracted symbol line into a proper C declaration.
7137# Some systems (esp. on ia64) link data and code symbols differently,
7138# so use this general approach.
7139lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7140
7141# Transform an extracted symbol line into symbol name and symbol address
7142lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7143lt_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'"
7144
7145# Handle CRLF in mingw tool chain
7146opt_cr=
7147case $build_os in
7148mingw*)
7149  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7150  ;;
7151esac
7152
7153# Try without a prefix underscore, then with it.
7154for ac_symprfx in "" "_"; do
7155
7156  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7157  symxfrm="\\1 $ac_symprfx\\2 \\2"
7158
7159  # Write the raw and C identifiers.
7160  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7161    # Fake it for dumpbin and say T for any non-static function
7162    # and D for any global variable.
7163    # Also find C++ and __fastcall symbols from MSVC++,
7164    # which start with @ or ?.
7165    lt_cv_sys_global_symbol_pipe="$AWK '"\
7166"     {last_section=section; section=\$ 3};"\
7167"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7168"     \$ 0!~/External *\|/{next};"\
7169"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7170"     {if(hide[section]) next};"\
7171"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7172"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7173"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7174"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7175"     ' prfx=^$ac_symprfx"
7176  else
7177    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7178  fi
7179
7180  # Check to see that the pipe works correctly.
7181  pipe_works=no
7182
7183  rm -f conftest*
7184  cat > conftest.$ac_ext <<_LT_EOF
7185#ifdef __cplusplus
7186extern "C" {
7187#endif
7188char nm_test_var;
7189void nm_test_func(void);
7190void nm_test_func(void){}
7191#ifdef __cplusplus
7192}
7193#endif
7194int main(){nm_test_var='a';nm_test_func();return(0);}
7195_LT_EOF
7196
7197  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7198  (eval $ac_compile) 2>&5
7199  ac_status=$?
7200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201  test $ac_status = 0; }; then
7202    # Now try to grab the symbols.
7203    nlist=conftest.nm
7204    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7205  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7206  ac_status=$?
7207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208  test $ac_status = 0; } && test -s "$nlist"; then
7209      # Try sorting and uniquifying the output.
7210      if sort "$nlist" | uniq > "$nlist"T; then
7211	mv -f "$nlist"T "$nlist"
7212      else
7213	rm -f "$nlist"T
7214      fi
7215
7216      # Make sure that we snagged all the symbols we need.
7217      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7218	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7219	  cat <<_LT_EOF > conftest.$ac_ext
7220#ifdef __cplusplus
7221extern "C" {
7222#endif
7223
7224_LT_EOF
7225	  # Now generate the symbol file.
7226	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7227
7228	  cat <<_LT_EOF >> conftest.$ac_ext
7229
7230/* The mapping between symbol names and symbols.  */
7231const struct {
7232  const char *name;
7233  void       *address;
7234}
7235lt__PROGRAM__LTX_preloaded_symbols[] =
7236{
7237  { "@PROGRAM@", (void *) 0 },
7238_LT_EOF
7239	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7240	  cat <<\_LT_EOF >> conftest.$ac_ext
7241  {0, (void *) 0}
7242};
7243
7244/* This works around a problem in FreeBSD linker */
7245#ifdef FREEBSD_WORKAROUND
7246static const void *lt_preloaded_setup() {
7247  return lt__PROGRAM__LTX_preloaded_symbols;
7248}
7249#endif
7250
7251#ifdef __cplusplus
7252}
7253#endif
7254_LT_EOF
7255	  # Now try linking the two files.
7256	  mv conftest.$ac_objext conftstm.$ac_objext
7257	  lt_save_LIBS="$LIBS"
7258	  lt_save_CFLAGS="$CFLAGS"
7259	  LIBS="conftstm.$ac_objext"
7260	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7261	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7262  (eval $ac_link) 2>&5
7263  ac_status=$?
7264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7266	    pipe_works=yes
7267	  fi
7268	  LIBS="$lt_save_LIBS"
7269	  CFLAGS="$lt_save_CFLAGS"
7270	else
7271	  echo "cannot find nm_test_func in $nlist" >&5
7272	fi
7273      else
7274	echo "cannot find nm_test_var in $nlist" >&5
7275      fi
7276    else
7277      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7278    fi
7279  else
7280    echo "$progname: failed program was:" >&5
7281    cat conftest.$ac_ext >&5
7282  fi
7283  rm -rf conftest* conftst*
7284
7285  # Do not use the global_symbol_pipe unless it works.
7286  if test "$pipe_works" = yes; then
7287    break
7288  else
7289    lt_cv_sys_global_symbol_pipe=
7290  fi
7291done
7292
7293fi
7294
7295if test -z "$lt_cv_sys_global_symbol_pipe"; then
7296  lt_cv_sys_global_symbol_to_cdecl=
7297fi
7298if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7300$as_echo "failed" >&6; }
7301else
7302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7303$as_echo "ok" >&6; }
7304fi
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327# Check whether --enable-libtool-lock was given.
7328if test "${enable_libtool_lock+set}" = set; then :
7329  enableval=$enable_libtool_lock;
7330fi
7331
7332test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7333
7334# Some flags need to be propagated to the compiler or linker for good
7335# libtool support.
7336case $host in
7337ia64-*-hpux*)
7338  # Find out which ABI we are using.
7339  echo 'int i;' > conftest.$ac_ext
7340  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7341  (eval $ac_compile) 2>&5
7342  ac_status=$?
7343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344  test $ac_status = 0; }; then
7345    case `/usr/bin/file conftest.$ac_objext` in
7346      *ELF-32*)
7347	HPUX_IA64_MODE="32"
7348	;;
7349      *ELF-64*)
7350	HPUX_IA64_MODE="64"
7351	;;
7352    esac
7353  fi
7354  rm -rf conftest*
7355  ;;
7356*-*-irix6*)
7357  # Find out which ABI we are using.
7358  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7359  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7360  (eval $ac_compile) 2>&5
7361  ac_status=$?
7362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7363  test $ac_status = 0; }; then
7364    if test "$lt_cv_prog_gnu_ld" = yes; then
7365      case `/usr/bin/file conftest.$ac_objext` in
7366	*32-bit*)
7367	  LD="${LD-ld} -melf32bsmip"
7368	  ;;
7369	*N32*)
7370	  LD="${LD-ld} -melf32bmipn32"
7371	  ;;
7372	*64-bit*)
7373	  LD="${LD-ld} -melf64bmip"
7374	;;
7375      esac
7376    else
7377      case `/usr/bin/file conftest.$ac_objext` in
7378	*32-bit*)
7379	  LD="${LD-ld} -32"
7380	  ;;
7381	*N32*)
7382	  LD="${LD-ld} -n32"
7383	  ;;
7384	*64-bit*)
7385	  LD="${LD-ld} -64"
7386	  ;;
7387      esac
7388    fi
7389  fi
7390  rm -rf conftest*
7391  ;;
7392
7393x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7394s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7395  # Find out which ABI we are using.
7396  echo 'int i;' > conftest.$ac_ext
7397  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7398  (eval $ac_compile) 2>&5
7399  ac_status=$?
7400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7401  test $ac_status = 0; }; then
7402    case `/usr/bin/file conftest.o` in
7403      *32-bit*)
7404	case $host in
7405	  x86_64-*kfreebsd*-gnu)
7406	    LD="${LD-ld} -m elf_i386_fbsd"
7407	    ;;
7408	  x86_64-*linux*)
7409	    case `/usr/bin/file conftest.o` in
7410	      *x86-64*)
7411		LD="${LD-ld} -m elf32_x86_64"
7412		;;
7413	      *)
7414		LD="${LD-ld} -m elf_i386"
7415		;;
7416	    esac
7417	    ;;
7418	  powerpc64le-*linux*)
7419	    LD="${LD-ld} -m elf32lppclinux"
7420	    ;;
7421	  powerpc64-*linux*)
7422	    LD="${LD-ld} -m elf32ppclinux"
7423	    ;;
7424	  s390x-*linux*)
7425	    LD="${LD-ld} -m elf_s390"
7426	    ;;
7427	  sparc64-*linux*)
7428	    LD="${LD-ld} -m elf32_sparc"
7429	    ;;
7430	esac
7431	;;
7432      *64-bit*)
7433	case $host in
7434	  x86_64-*kfreebsd*-gnu)
7435	    LD="${LD-ld} -m elf_x86_64_fbsd"
7436	    ;;
7437	  x86_64-*linux*)
7438	    LD="${LD-ld} -m elf_x86_64"
7439	    ;;
7440	  powerpcle-*linux*)
7441	    LD="${LD-ld} -m elf64lppc"
7442	    ;;
7443	  powerpc-*linux*)
7444	    LD="${LD-ld} -m elf64ppc"
7445	    ;;
7446	  s390*-*linux*|s390*-*tpf*)
7447	    LD="${LD-ld} -m elf64_s390"
7448	    ;;
7449	  sparc*-*linux*)
7450	    LD="${LD-ld} -m elf64_sparc"
7451	    ;;
7452	esac
7453	;;
7454    esac
7455  fi
7456  rm -rf conftest*
7457  ;;
7458
7459*-*-sco3.2v5*)
7460  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7461  SAVE_CFLAGS="$CFLAGS"
7462  CFLAGS="$CFLAGS -belf"
7463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7464$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7465if ${lt_cv_cc_needs_belf+:} false; then :
7466  $as_echo_n "(cached) " >&6
7467else
7468  ac_ext=c
7469ac_cpp='$CPP $CPPFLAGS'
7470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7472ac_compiler_gnu=$ac_cv_c_compiler_gnu
7473
7474     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h.  */
7476
7477int
7478main ()
7479{
7480
7481  ;
7482  return 0;
7483}
7484_ACEOF
7485if ac_fn_c_try_link "$LINENO"; then :
7486  lt_cv_cc_needs_belf=yes
7487else
7488  lt_cv_cc_needs_belf=no
7489fi
7490rm -f core conftest.err conftest.$ac_objext \
7491    conftest$ac_exeext conftest.$ac_ext
7492     ac_ext=c
7493ac_cpp='$CPP $CPPFLAGS'
7494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
7498fi
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7500$as_echo "$lt_cv_cc_needs_belf" >&6; }
7501  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7502    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7503    CFLAGS="$SAVE_CFLAGS"
7504  fi
7505  ;;
7506sparc*-*solaris*)
7507  # Find out which ABI we are using.
7508  echo 'int i;' > conftest.$ac_ext
7509  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7510  (eval $ac_compile) 2>&5
7511  ac_status=$?
7512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513  test $ac_status = 0; }; then
7514    case `/usr/bin/file conftest.o` in
7515    *64-bit*)
7516      case $lt_cv_prog_gnu_ld in
7517      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7518      *)
7519	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7520	  LD="${LD-ld} -64"
7521	fi
7522	;;
7523      esac
7524      ;;
7525    esac
7526  fi
7527  rm -rf conftest*
7528  ;;
7529esac
7530
7531need_locks="$enable_libtool_lock"
7532
7533
7534  case $host_os in
7535    rhapsody* | darwin*)
7536    if test -n "$ac_tool_prefix"; then
7537  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7538set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540$as_echo_n "checking for $ac_word... " >&6; }
7541if ${ac_cv_prog_DSYMUTIL+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  if test -n "$DSYMUTIL"; then
7545  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7546else
7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550  IFS=$as_save_IFS
7551  test -z "$as_dir" && as_dir=.
7552    for ac_exec_ext in '' $ac_executable_extensions; do
7553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556    break 2
7557  fi
7558done
7559  done
7560IFS=$as_save_IFS
7561
7562fi
7563fi
7564DSYMUTIL=$ac_cv_prog_DSYMUTIL
7565if test -n "$DSYMUTIL"; then
7566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7567$as_echo "$DSYMUTIL" >&6; }
7568else
7569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570$as_echo "no" >&6; }
7571fi
7572
7573
7574fi
7575if test -z "$ac_cv_prog_DSYMUTIL"; then
7576  ac_ct_DSYMUTIL=$DSYMUTIL
7577  # Extract the first word of "dsymutil", so it can be a program name with args.
7578set dummy dsymutil; ac_word=$2
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580$as_echo_n "checking for $ac_word... " >&6; }
7581if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7582  $as_echo_n "(cached) " >&6
7583else
7584  if test -n "$ac_ct_DSYMUTIL"; then
7585  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7586else
7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590  IFS=$as_save_IFS
7591  test -z "$as_dir" && as_dir=.
7592    for ac_exec_ext in '' $ac_executable_extensions; do
7593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596    break 2
7597  fi
7598done
7599  done
7600IFS=$as_save_IFS
7601
7602fi
7603fi
7604ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7605if test -n "$ac_ct_DSYMUTIL"; then
7606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7607$as_echo "$ac_ct_DSYMUTIL" >&6; }
7608else
7609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610$as_echo "no" >&6; }
7611fi
7612
7613  if test "x$ac_ct_DSYMUTIL" = x; then
7614    DSYMUTIL=":"
7615  else
7616    case $cross_compiling:$ac_tool_warned in
7617yes:)
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620ac_tool_warned=yes ;;
7621esac
7622    DSYMUTIL=$ac_ct_DSYMUTIL
7623  fi
7624else
7625  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7626fi
7627
7628    if test -n "$ac_tool_prefix"; then
7629  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7630set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632$as_echo_n "checking for $ac_word... " >&6; }
7633if ${ac_cv_prog_NMEDIT+:} false; then :
7634  $as_echo_n "(cached) " >&6
7635else
7636  if test -n "$NMEDIT"; then
7637  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7638else
7639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642  IFS=$as_save_IFS
7643  test -z "$as_dir" && as_dir=.
7644    for ac_exec_ext in '' $ac_executable_extensions; do
7645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648    break 2
7649  fi
7650done
7651  done
7652IFS=$as_save_IFS
7653
7654fi
7655fi
7656NMEDIT=$ac_cv_prog_NMEDIT
7657if test -n "$NMEDIT"; then
7658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7659$as_echo "$NMEDIT" >&6; }
7660else
7661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662$as_echo "no" >&6; }
7663fi
7664
7665
7666fi
7667if test -z "$ac_cv_prog_NMEDIT"; then
7668  ac_ct_NMEDIT=$NMEDIT
7669  # Extract the first word of "nmedit", so it can be a program name with args.
7670set dummy nmedit; ac_word=$2
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672$as_echo_n "checking for $ac_word... " >&6; }
7673if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7674  $as_echo_n "(cached) " >&6
7675else
7676  if test -n "$ac_ct_NMEDIT"; then
7677  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7678else
7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682  IFS=$as_save_IFS
7683  test -z "$as_dir" && as_dir=.
7684    for ac_exec_ext in '' $ac_executable_extensions; do
7685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688    break 2
7689  fi
7690done
7691  done
7692IFS=$as_save_IFS
7693
7694fi
7695fi
7696ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7697if test -n "$ac_ct_NMEDIT"; then
7698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7699$as_echo "$ac_ct_NMEDIT" >&6; }
7700else
7701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702$as_echo "no" >&6; }
7703fi
7704
7705  if test "x$ac_ct_NMEDIT" = x; then
7706    NMEDIT=":"
7707  else
7708    case $cross_compiling:$ac_tool_warned in
7709yes:)
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712ac_tool_warned=yes ;;
7713esac
7714    NMEDIT=$ac_ct_NMEDIT
7715  fi
7716else
7717  NMEDIT="$ac_cv_prog_NMEDIT"
7718fi
7719
7720    if test -n "$ac_tool_prefix"; then
7721  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7722set dummy ${ac_tool_prefix}lipo; ac_word=$2
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724$as_echo_n "checking for $ac_word... " >&6; }
7725if ${ac_cv_prog_LIPO+:} false; then :
7726  $as_echo_n "(cached) " >&6
7727else
7728  if test -n "$LIPO"; then
7729  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7730else
7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734  IFS=$as_save_IFS
7735  test -z "$as_dir" && as_dir=.
7736    for ac_exec_ext in '' $ac_executable_extensions; do
7737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7738    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740    break 2
7741  fi
7742done
7743  done
7744IFS=$as_save_IFS
7745
7746fi
7747fi
7748LIPO=$ac_cv_prog_LIPO
7749if test -n "$LIPO"; then
7750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7751$as_echo "$LIPO" >&6; }
7752else
7753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754$as_echo "no" >&6; }
7755fi
7756
7757
7758fi
7759if test -z "$ac_cv_prog_LIPO"; then
7760  ac_ct_LIPO=$LIPO
7761  # Extract the first word of "lipo", so it can be a program name with args.
7762set dummy lipo; ac_word=$2
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764$as_echo_n "checking for $ac_word... " >&6; }
7765if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  if test -n "$ac_ct_LIPO"; then
7769  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7770else
7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774  IFS=$as_save_IFS
7775  test -z "$as_dir" && as_dir=.
7776    for ac_exec_ext in '' $ac_executable_extensions; do
7777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778    ac_cv_prog_ac_ct_LIPO="lipo"
7779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780    break 2
7781  fi
7782done
7783  done
7784IFS=$as_save_IFS
7785
7786fi
7787fi
7788ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7789if test -n "$ac_ct_LIPO"; then
7790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7791$as_echo "$ac_ct_LIPO" >&6; }
7792else
7793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794$as_echo "no" >&6; }
7795fi
7796
7797  if test "x$ac_ct_LIPO" = x; then
7798    LIPO=":"
7799  else
7800    case $cross_compiling:$ac_tool_warned in
7801yes:)
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7804ac_tool_warned=yes ;;
7805esac
7806    LIPO=$ac_ct_LIPO
7807  fi
7808else
7809  LIPO="$ac_cv_prog_LIPO"
7810fi
7811
7812    if test -n "$ac_tool_prefix"; then
7813  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7814set dummy ${ac_tool_prefix}otool; ac_word=$2
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816$as_echo_n "checking for $ac_word... " >&6; }
7817if ${ac_cv_prog_OTOOL+:} false; then :
7818  $as_echo_n "(cached) " >&6
7819else
7820  if test -n "$OTOOL"; then
7821  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7822else
7823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824for as_dir in $PATH
7825do
7826  IFS=$as_save_IFS
7827  test -z "$as_dir" && as_dir=.
7828    for ac_exec_ext in '' $ac_executable_extensions; do
7829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832    break 2
7833  fi
7834done
7835  done
7836IFS=$as_save_IFS
7837
7838fi
7839fi
7840OTOOL=$ac_cv_prog_OTOOL
7841if test -n "$OTOOL"; then
7842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7843$as_echo "$OTOOL" >&6; }
7844else
7845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846$as_echo "no" >&6; }
7847fi
7848
7849
7850fi
7851if test -z "$ac_cv_prog_OTOOL"; then
7852  ac_ct_OTOOL=$OTOOL
7853  # Extract the first word of "otool", so it can be a program name with args.
7854set dummy otool; ac_word=$2
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856$as_echo_n "checking for $ac_word... " >&6; }
7857if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7858  $as_echo_n "(cached) " >&6
7859else
7860  if test -n "$ac_ct_OTOOL"; then
7861  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7862else
7863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864for as_dir in $PATH
7865do
7866  IFS=$as_save_IFS
7867  test -z "$as_dir" && as_dir=.
7868    for ac_exec_ext in '' $ac_executable_extensions; do
7869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870    ac_cv_prog_ac_ct_OTOOL="otool"
7871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872    break 2
7873  fi
7874done
7875  done
7876IFS=$as_save_IFS
7877
7878fi
7879fi
7880ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7881if test -n "$ac_ct_OTOOL"; then
7882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7883$as_echo "$ac_ct_OTOOL" >&6; }
7884else
7885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886$as_echo "no" >&6; }
7887fi
7888
7889  if test "x$ac_ct_OTOOL" = x; then
7890    OTOOL=":"
7891  else
7892    case $cross_compiling:$ac_tool_warned in
7893yes:)
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7896ac_tool_warned=yes ;;
7897esac
7898    OTOOL=$ac_ct_OTOOL
7899  fi
7900else
7901  OTOOL="$ac_cv_prog_OTOOL"
7902fi
7903
7904    if test -n "$ac_tool_prefix"; then
7905  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7906set dummy ${ac_tool_prefix}otool64; ac_word=$2
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908$as_echo_n "checking for $ac_word... " >&6; }
7909if ${ac_cv_prog_OTOOL64+:} false; then :
7910  $as_echo_n "(cached) " >&6
7911else
7912  if test -n "$OTOOL64"; then
7913  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7914else
7915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916for as_dir in $PATH
7917do
7918  IFS=$as_save_IFS
7919  test -z "$as_dir" && as_dir=.
7920    for ac_exec_ext in '' $ac_executable_extensions; do
7921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7922    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924    break 2
7925  fi
7926done
7927  done
7928IFS=$as_save_IFS
7929
7930fi
7931fi
7932OTOOL64=$ac_cv_prog_OTOOL64
7933if test -n "$OTOOL64"; then
7934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7935$as_echo "$OTOOL64" >&6; }
7936else
7937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938$as_echo "no" >&6; }
7939fi
7940
7941
7942fi
7943if test -z "$ac_cv_prog_OTOOL64"; then
7944  ac_ct_OTOOL64=$OTOOL64
7945  # Extract the first word of "otool64", so it can be a program name with args.
7946set dummy otool64; ac_word=$2
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948$as_echo_n "checking for $ac_word... " >&6; }
7949if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7950  $as_echo_n "(cached) " >&6
7951else
7952  if test -n "$ac_ct_OTOOL64"; then
7953  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7954else
7955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956for as_dir in $PATH
7957do
7958  IFS=$as_save_IFS
7959  test -z "$as_dir" && as_dir=.
7960    for ac_exec_ext in '' $ac_executable_extensions; do
7961  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962    ac_cv_prog_ac_ct_OTOOL64="otool64"
7963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964    break 2
7965  fi
7966done
7967  done
7968IFS=$as_save_IFS
7969
7970fi
7971fi
7972ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7973if test -n "$ac_ct_OTOOL64"; then
7974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7975$as_echo "$ac_ct_OTOOL64" >&6; }
7976else
7977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978$as_echo "no" >&6; }
7979fi
7980
7981  if test "x$ac_ct_OTOOL64" = x; then
7982    OTOOL64=":"
7983  else
7984    case $cross_compiling:$ac_tool_warned in
7985yes:)
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7988ac_tool_warned=yes ;;
7989esac
7990    OTOOL64=$ac_ct_OTOOL64
7991  fi
7992else
7993  OTOOL64="$ac_cv_prog_OTOOL64"
7994fi
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8023$as_echo_n "checking for -single_module linker flag... " >&6; }
8024if ${lt_cv_apple_cc_single_mod+:} false; then :
8025  $as_echo_n "(cached) " >&6
8026else
8027  lt_cv_apple_cc_single_mod=no
8028      if test -z "${LT_MULTI_MODULE}"; then
8029	# By default we will add the -single_module flag. You can override
8030	# by either setting the environment variable LT_MULTI_MODULE
8031	# non-empty at configure time, or by adding -multi_module to the
8032	# link flags.
8033	rm -rf libconftest.dylib*
8034	echo "int foo(void){return 1;}" > conftest.c
8035	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8036-dynamiclib -Wl,-single_module conftest.c" >&5
8037	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8038	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8039        _lt_result=$?
8040	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8041	  lt_cv_apple_cc_single_mod=yes
8042	else
8043	  cat conftest.err >&5
8044	fi
8045	rm -rf libconftest.dylib*
8046	rm -f conftest.*
8047      fi
8048fi
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8050$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8051    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8052$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8053if ${lt_cv_ld_exported_symbols_list+:} false; then :
8054  $as_echo_n "(cached) " >&6
8055else
8056  lt_cv_ld_exported_symbols_list=no
8057      save_LDFLAGS=$LDFLAGS
8058      echo "_main" > conftest.sym
8059      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8060      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061/* end confdefs.h.  */
8062
8063int
8064main ()
8065{
8066
8067  ;
8068  return 0;
8069}
8070_ACEOF
8071if ac_fn_c_try_link "$LINENO"; then :
8072  lt_cv_ld_exported_symbols_list=yes
8073else
8074  lt_cv_ld_exported_symbols_list=no
8075fi
8076rm -f core conftest.err conftest.$ac_objext \
8077    conftest$ac_exeext conftest.$ac_ext
8078	LDFLAGS="$save_LDFLAGS"
8079
8080fi
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8082$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8083    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8084$as_echo_n "checking for -force_load linker flag... " >&6; }
8085if ${lt_cv_ld_force_load+:} false; then :
8086  $as_echo_n "(cached) " >&6
8087else
8088  lt_cv_ld_force_load=no
8089      cat > conftest.c << _LT_EOF
8090int forced_loaded() { return 2;}
8091_LT_EOF
8092      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8093      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8094      echo "$AR cru libconftest.a conftest.o" >&5
8095      $AR cru libconftest.a conftest.o 2>&5
8096      cat > conftest.c << _LT_EOF
8097int main() { return 0;}
8098_LT_EOF
8099      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8100      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8101      _lt_result=$?
8102      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8103	lt_cv_ld_force_load=yes
8104      else
8105	cat conftest.err >&5
8106      fi
8107        rm -f conftest.err libconftest.a conftest conftest.c
8108        rm -rf conftest.dSYM
8109
8110fi
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8112$as_echo "$lt_cv_ld_force_load" >&6; }
8113    case $host_os in
8114    rhapsody* | darwin1.[012])
8115      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8116    darwin1.*)
8117      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8118    darwin*) # darwin 5.x on
8119      # if running on 10.5 or later, the deployment target defaults
8120      # to the OS version, if on x86, and 10.4, the deployment
8121      # target defaults to 10.4. Don't you love it?
8122      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8123	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8124	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8125	10.[012][,.]*)
8126	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8127	10.*)
8128	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8129      esac
8130    ;;
8131  esac
8132    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8133      _lt_dar_single_mod='$single_module'
8134    fi
8135    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8136      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8137    else
8138      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8139    fi
8140    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8141      _lt_dsymutil='~$DSYMUTIL $lib || :'
8142    else
8143      _lt_dsymutil=
8144    fi
8145    ;;
8146  esac
8147
8148for ac_header in dlfcn.h
8149do :
8150  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8151"
8152if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8153  cat >>confdefs.h <<_ACEOF
8154#define HAVE_DLFCN_H 1
8155_ACEOF
8156
8157fi
8158
8159done
8160
8161
8162
8163
8164
8165# Set options
8166enable_dlopen=yes
8167
8168
8169
8170
8171  enable_win32_dll=no
8172
8173
8174            # Check whether --enable-shared was given.
8175if test "${enable_shared+set}" = set; then :
8176  enableval=$enable_shared; p=${PACKAGE-default}
8177    case $enableval in
8178    yes) enable_shared=yes ;;
8179    no) enable_shared=no ;;
8180    *)
8181      enable_shared=no
8182      # Look at the argument we got.  We use all the common list separators.
8183      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184      for pkg in $enableval; do
8185	IFS="$lt_save_ifs"
8186	if test "X$pkg" = "X$p"; then
8187	  enable_shared=yes
8188	fi
8189      done
8190      IFS="$lt_save_ifs"
8191      ;;
8192    esac
8193else
8194  enable_shared=yes
8195fi
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205  # Check whether --enable-static was given.
8206if test "${enable_static+set}" = set; then :
8207  enableval=$enable_static; p=${PACKAGE-default}
8208    case $enableval in
8209    yes) enable_static=yes ;;
8210    no) enable_static=no ;;
8211    *)
8212     enable_static=no
8213      # Look at the argument we got.  We use all the common list separators.
8214      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8215      for pkg in $enableval; do
8216	IFS="$lt_save_ifs"
8217	if test "X$pkg" = "X$p"; then
8218	  enable_static=yes
8219	fi
8220      done
8221      IFS="$lt_save_ifs"
8222      ;;
8223    esac
8224else
8225  enable_static=yes
8226fi
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237# Check whether --with-pic was given.
8238if test "${with_pic+set}" = set; then :
8239  withval=$with_pic; pic_mode="$withval"
8240else
8241  pic_mode=default
8242fi
8243
8244
8245test -z "$pic_mode" && pic_mode=default
8246
8247
8248
8249
8250
8251
8252
8253  # Check whether --enable-fast-install was given.
8254if test "${enable_fast_install+set}" = set; then :
8255  enableval=$enable_fast_install; p=${PACKAGE-default}
8256    case $enableval in
8257    yes) enable_fast_install=yes ;;
8258    no) enable_fast_install=no ;;
8259    *)
8260      enable_fast_install=no
8261      # Look at the argument we got.  We use all the common list separators.
8262      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8263      for pkg in $enableval; do
8264	IFS="$lt_save_ifs"
8265	if test "X$pkg" = "X$p"; then
8266	  enable_fast_install=yes
8267	fi
8268      done
8269      IFS="$lt_save_ifs"
8270      ;;
8271    esac
8272else
8273  enable_fast_install=yes
8274fi
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286# This can be used to rebuild libtool when needed
8287LIBTOOL_DEPS="$ltmain"
8288
8289# Always use our own libtool.
8290LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317test -z "$LN_S" && LN_S="ln -s"
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332if test -n "${ZSH_VERSION+set}" ; then
8333   setopt NO_GLOB_SUBST
8334fi
8335
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8337$as_echo_n "checking for objdir... " >&6; }
8338if ${lt_cv_objdir+:} false; then :
8339  $as_echo_n "(cached) " >&6
8340else
8341  rm -f .libs 2>/dev/null
8342mkdir .libs 2>/dev/null
8343if test -d .libs; then
8344  lt_cv_objdir=.libs
8345else
8346  # MS-DOS does not allow filenames that begin with a dot.
8347  lt_cv_objdir=_libs
8348fi
8349rmdir .libs 2>/dev/null
8350fi
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8352$as_echo "$lt_cv_objdir" >&6; }
8353objdir=$lt_cv_objdir
8354
8355
8356
8357
8358
8359cat >>confdefs.h <<_ACEOF
8360#define LT_OBJDIR "$lt_cv_objdir/"
8361_ACEOF
8362
8363
8364
8365
8366case $host_os in
8367aix3*)
8368  # AIX sometimes has problems with the GCC collect2 program.  For some
8369  # reason, if we set the COLLECT_NAMES environment variable, the problems
8370  # vanish in a puff of smoke.
8371  if test "X${COLLECT_NAMES+set}" != Xset; then
8372    COLLECT_NAMES=
8373    export COLLECT_NAMES
8374  fi
8375  ;;
8376esac
8377
8378# Global variables:
8379ofile=libtool
8380can_build_shared=yes
8381
8382# All known linkers require a `.a' archive for static linking (except MSVC,
8383# which needs '.lib').
8384libext=a
8385
8386with_gnu_ld="$lt_cv_prog_gnu_ld"
8387
8388old_CC="$CC"
8389old_CFLAGS="$CFLAGS"
8390
8391# Set sane defaults for various variables
8392test -z "$CC" && CC=cc
8393test -z "$LTCC" && LTCC=$CC
8394test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8395test -z "$LD" && LD=ld
8396test -z "$ac_objext" && ac_objext=o
8397
8398for cc_temp in $compiler""; do
8399  case $cc_temp in
8400    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8401    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8402    \-*) ;;
8403    *) break;;
8404  esac
8405done
8406cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8407
8408
8409# Only perform the check for file, if the check method requires it
8410test -z "$MAGIC_CMD" && MAGIC_CMD=file
8411case $deplibs_check_method in
8412file_magic*)
8413  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8414    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8415$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8416if ${lt_cv_path_MAGIC_CMD+:} false; then :
8417  $as_echo_n "(cached) " >&6
8418else
8419  case $MAGIC_CMD in
8420[\\/*] |  ?:[\\/]*)
8421  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8422  ;;
8423*)
8424  lt_save_MAGIC_CMD="$MAGIC_CMD"
8425  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8426  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8427  for ac_dir in $ac_dummy; do
8428    IFS="$lt_save_ifs"
8429    test -z "$ac_dir" && ac_dir=.
8430    if test -f $ac_dir/${ac_tool_prefix}file; then
8431      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8432      if test -n "$file_magic_test_file"; then
8433	case $deplibs_check_method in
8434	"file_magic "*)
8435	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8436	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8437	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8438	    $EGREP "$file_magic_regex" > /dev/null; then
8439	    :
8440	  else
8441	    cat <<_LT_EOF 1>&2
8442
8443*** Warning: the command libtool uses to detect shared libraries,
8444*** $file_magic_cmd, produces output that libtool cannot recognize.
8445*** The result is that libtool may fail to recognize shared libraries
8446*** as such.  This will affect the creation of libtool libraries that
8447*** depend on shared libraries, but programs linked with such libtool
8448*** libraries will work regardless of this problem.  Nevertheless, you
8449*** may want to report the problem to your system manager and/or to
8450*** bug-libtool@gnu.org
8451
8452_LT_EOF
8453	  fi ;;
8454	esac
8455      fi
8456      break
8457    fi
8458  done
8459  IFS="$lt_save_ifs"
8460  MAGIC_CMD="$lt_save_MAGIC_CMD"
8461  ;;
8462esac
8463fi
8464
8465MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8466if test -n "$MAGIC_CMD"; then
8467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8468$as_echo "$MAGIC_CMD" >&6; }
8469else
8470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471$as_echo "no" >&6; }
8472fi
8473
8474
8475
8476
8477
8478if test -z "$lt_cv_path_MAGIC_CMD"; then
8479  if test -n "$ac_tool_prefix"; then
8480    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8481$as_echo_n "checking for file... " >&6; }
8482if ${lt_cv_path_MAGIC_CMD+:} false; then :
8483  $as_echo_n "(cached) " >&6
8484else
8485  case $MAGIC_CMD in
8486[\\/*] |  ?:[\\/]*)
8487  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8488  ;;
8489*)
8490  lt_save_MAGIC_CMD="$MAGIC_CMD"
8491  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8492  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8493  for ac_dir in $ac_dummy; do
8494    IFS="$lt_save_ifs"
8495    test -z "$ac_dir" && ac_dir=.
8496    if test -f $ac_dir/file; then
8497      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8498      if test -n "$file_magic_test_file"; then
8499	case $deplibs_check_method in
8500	"file_magic "*)
8501	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8502	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8503	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8504	    $EGREP "$file_magic_regex" > /dev/null; then
8505	    :
8506	  else
8507	    cat <<_LT_EOF 1>&2
8508
8509*** Warning: the command libtool uses to detect shared libraries,
8510*** $file_magic_cmd, produces output that libtool cannot recognize.
8511*** The result is that libtool may fail to recognize shared libraries
8512*** as such.  This will affect the creation of libtool libraries that
8513*** depend on shared libraries, but programs linked with such libtool
8514*** libraries will work regardless of this problem.  Nevertheless, you
8515*** may want to report the problem to your system manager and/or to
8516*** bug-libtool@gnu.org
8517
8518_LT_EOF
8519	  fi ;;
8520	esac
8521      fi
8522      break
8523    fi
8524  done
8525  IFS="$lt_save_ifs"
8526  MAGIC_CMD="$lt_save_MAGIC_CMD"
8527  ;;
8528esac
8529fi
8530
8531MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8532if test -n "$MAGIC_CMD"; then
8533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8534$as_echo "$MAGIC_CMD" >&6; }
8535else
8536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537$as_echo "no" >&6; }
8538fi
8539
8540
8541  else
8542    MAGIC_CMD=:
8543  fi
8544fi
8545
8546  fi
8547  ;;
8548esac
8549
8550# Use C for the default configuration in the libtool script
8551
8552lt_save_CC="$CC"
8553ac_ext=c
8554ac_cpp='$CPP $CPPFLAGS'
8555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8557ac_compiler_gnu=$ac_cv_c_compiler_gnu
8558
8559
8560# Source file extension for C test sources.
8561ac_ext=c
8562
8563# Object file extension for compiled C test sources.
8564objext=o
8565objext=$objext
8566
8567# Code to be used in simple compile tests
8568lt_simple_compile_test_code="int some_variable = 0;"
8569
8570# Code to be used in simple link tests
8571lt_simple_link_test_code='int main(){return(0);}'
8572
8573
8574
8575
8576
8577
8578
8579# If no C compiler was specified, use CC.
8580LTCC=${LTCC-"$CC"}
8581
8582# If no C compiler flags were specified, use CFLAGS.
8583LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8584
8585# Allow CC to be a program name with arguments.
8586compiler=$CC
8587
8588# Save the default compiler, since it gets overwritten when the other
8589# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8590compiler_DEFAULT=$CC
8591
8592# save warnings/boilerplate of simple test code
8593ac_outfile=conftest.$ac_objext
8594echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8595eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8596_lt_compiler_boilerplate=`cat conftest.err`
8597$RM conftest*
8598
8599ac_outfile=conftest.$ac_objext
8600echo "$lt_simple_link_test_code" >conftest.$ac_ext
8601eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8602_lt_linker_boilerplate=`cat conftest.err`
8603$RM -r conftest*
8604
8605
8606## CAVEAT EMPTOR:
8607## There is no encapsulation within the following macros, do not change
8608## the running order or otherwise move them around unless you know exactly
8609## what you are doing...
8610if test -n "$compiler"; then
8611
8612lt_prog_compiler_no_builtin_flag=
8613
8614if test "$GCC" = yes; then
8615  case $cc_basename in
8616  nvcc*)
8617    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8618  *)
8619    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8620  esac
8621
8622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8623$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8624if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8625  $as_echo_n "(cached) " >&6
8626else
8627  lt_cv_prog_compiler_rtti_exceptions=no
8628   ac_outfile=conftest.$ac_objext
8629   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8630   lt_compiler_flag="-fno-rtti -fno-exceptions"
8631   # Insert the option either (1) after the last *FLAGS variable, or
8632   # (2) before a word containing "conftest.", or (3) at the end.
8633   # Note that $ac_compile itself does not contain backslashes and begins
8634   # with a dollar sign (not a hyphen), so the echo should work correctly.
8635   # The option is referenced via a variable to avoid confusing sed.
8636   lt_compile=`echo "$ac_compile" | $SED \
8637   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8638   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8639   -e 's:$: $lt_compiler_flag:'`
8640   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8641   (eval "$lt_compile" 2>conftest.err)
8642   ac_status=$?
8643   cat conftest.err >&5
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   if (exit $ac_status) && test -s "$ac_outfile"; then
8646     # The compiler can only warn and ignore the option if not recognized
8647     # So say no if there are warnings other than the usual output.
8648     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8649     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8650     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8651       lt_cv_prog_compiler_rtti_exceptions=yes
8652     fi
8653   fi
8654   $RM conftest*
8655
8656fi
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8658$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8659
8660if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8661    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8662else
8663    :
8664fi
8665
8666fi
8667
8668
8669
8670
8671
8672
8673  lt_prog_compiler_wl=
8674lt_prog_compiler_pic=
8675lt_prog_compiler_static=
8676
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8678$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8679
8680  if test "$GCC" = yes; then
8681    lt_prog_compiler_wl='-Wl,'
8682    lt_prog_compiler_static='-static'
8683
8684    case $host_os in
8685      aix*)
8686      # All AIX code is PIC.
8687      if test "$host_cpu" = ia64; then
8688	# AIX 5 now supports IA64 processor
8689	lt_prog_compiler_static='-Bstatic'
8690      fi
8691      lt_prog_compiler_pic='-fPIC'
8692      ;;
8693
8694    amigaos*)
8695      case $host_cpu in
8696      powerpc)
8697            # see comment about AmigaOS4 .so support
8698            lt_prog_compiler_pic='-fPIC'
8699        ;;
8700      m68k)
8701            # FIXME: we need at least 68020 code to build shared libraries, but
8702            # adding the `-m68020' flag to GCC prevents building anything better,
8703            # like `-m68040'.
8704            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8705        ;;
8706      esac
8707      ;;
8708
8709    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8710      # PIC is the default for these OSes.
8711      ;;
8712
8713    mingw* | cygwin* | pw32* | os2* | cegcc*)
8714      # This hack is so that the source file can tell whether it is being
8715      # built for inclusion in a dll (and should export symbols for example).
8716      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8717      # (--disable-auto-import) libraries
8718      lt_prog_compiler_pic='-DDLL_EXPORT'
8719      ;;
8720
8721    darwin* | rhapsody*)
8722      # PIC is the default on this platform
8723      # Common symbols not allowed in MH_DYLIB files
8724      lt_prog_compiler_pic='-fno-common'
8725      ;;
8726
8727    haiku*)
8728      # PIC is the default for Haiku.
8729      # The "-static" flag exists, but is broken.
8730      lt_prog_compiler_static=
8731      ;;
8732
8733    hpux*)
8734      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8735      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8736      # sets the default TLS model and affects inlining.
8737      case $host_cpu in
8738      hppa*64*)
8739	# +Z the default
8740	;;
8741      *)
8742	lt_prog_compiler_pic='-fPIC'
8743	;;
8744      esac
8745      ;;
8746
8747    interix[3-9]*)
8748      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8749      # Instead, we relocate shared libraries at runtime.
8750      ;;
8751
8752    msdosdjgpp*)
8753      # Just because we use GCC doesn't mean we suddenly get shared libraries
8754      # on systems that don't support them.
8755      lt_prog_compiler_can_build_shared=no
8756      enable_shared=no
8757      ;;
8758
8759    *nto* | *qnx*)
8760      # QNX uses GNU C++, but need to define -shared option too, otherwise
8761      # it will coredump.
8762      lt_prog_compiler_pic='-fPIC -shared'
8763      ;;
8764
8765    sysv4*MP*)
8766      if test -d /usr/nec; then
8767	lt_prog_compiler_pic=-Kconform_pic
8768      fi
8769      ;;
8770
8771    *)
8772      lt_prog_compiler_pic='-fPIC'
8773      ;;
8774    esac
8775
8776    case $cc_basename in
8777    nvcc*) # Cuda Compiler Driver 2.2
8778      lt_prog_compiler_wl='-Xlinker '
8779      lt_prog_compiler_pic='-Xcompiler -fPIC'
8780      ;;
8781    esac
8782  else
8783    # PORTME Check for flag to pass linker flags through the system compiler.
8784    case $host_os in
8785    aix*)
8786      lt_prog_compiler_wl='-Wl,'
8787      if test "$host_cpu" = ia64; then
8788	# AIX 5 now supports IA64 processor
8789	lt_prog_compiler_static='-Bstatic'
8790      else
8791	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8792      fi
8793      ;;
8794
8795    mingw* | cygwin* | pw32* | os2* | cegcc*)
8796      # This hack is so that the source file can tell whether it is being
8797      # built for inclusion in a dll (and should export symbols for example).
8798      lt_prog_compiler_pic='-DDLL_EXPORT'
8799      ;;
8800
8801    hpux9* | hpux10* | hpux11*)
8802      lt_prog_compiler_wl='-Wl,'
8803      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8804      # not for PA HP-UX.
8805      case $host_cpu in
8806      hppa*64*|ia64*)
8807	# +Z the default
8808	;;
8809      *)
8810	lt_prog_compiler_pic='+Z'
8811	;;
8812      esac
8813      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8814      lt_prog_compiler_static='${wl}-a ${wl}archive'
8815      ;;
8816
8817    irix5* | irix6* | nonstopux*)
8818      lt_prog_compiler_wl='-Wl,'
8819      # PIC (with -KPIC) is the default.
8820      lt_prog_compiler_static='-non_shared'
8821      ;;
8822
8823    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8824      case $cc_basename in
8825      # old Intel for x86_64 which still supported -KPIC.
8826      ecc*)
8827	lt_prog_compiler_wl='-Wl,'
8828	lt_prog_compiler_pic='-KPIC'
8829	lt_prog_compiler_static='-static'
8830        ;;
8831      # icc used to be incompatible with GCC.
8832      # ICC 10 doesn't accept -KPIC any more.
8833      icc* | ifort*)
8834	lt_prog_compiler_wl='-Wl,'
8835	lt_prog_compiler_pic='-fPIC'
8836	lt_prog_compiler_static='-static'
8837        ;;
8838      # Lahey Fortran 8.1.
8839      lf95*)
8840	lt_prog_compiler_wl='-Wl,'
8841	lt_prog_compiler_pic='--shared'
8842	lt_prog_compiler_static='--static'
8843	;;
8844      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8845        # Portland Group compilers (*not* the Pentium gcc compiler,
8846	# which looks to be a dead project)
8847	lt_prog_compiler_wl='-Wl,'
8848	lt_prog_compiler_pic='-fpic'
8849	lt_prog_compiler_static='-Bstatic'
8850        ;;
8851      ccc*)
8852        lt_prog_compiler_wl='-Wl,'
8853        # All Alpha code is PIC.
8854        lt_prog_compiler_static='-non_shared'
8855        ;;
8856      xl* | bgxl* | bgf* | mpixl*)
8857	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8858	lt_prog_compiler_wl='-Wl,'
8859	lt_prog_compiler_pic='-qpic'
8860	lt_prog_compiler_static='-qstaticlink'
8861	;;
8862      *)
8863	case `$CC -V 2>&1 | sed 5q` in
8864	*Sun\ F* | *Sun*Fortran*)
8865	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8866	  lt_prog_compiler_pic='-KPIC'
8867	  lt_prog_compiler_static='-Bstatic'
8868	  lt_prog_compiler_wl=''
8869	  ;;
8870	*Sun\ C*)
8871	  # Sun C 5.9
8872	  lt_prog_compiler_pic='-KPIC'
8873	  lt_prog_compiler_static='-Bstatic'
8874	  lt_prog_compiler_wl='-Wl,'
8875	  ;;
8876	esac
8877	;;
8878      esac
8879      ;;
8880
8881    newsos6)
8882      lt_prog_compiler_pic='-KPIC'
8883      lt_prog_compiler_static='-Bstatic'
8884      ;;
8885
8886    *nto* | *qnx*)
8887      # QNX uses GNU C++, but need to define -shared option too, otherwise
8888      # it will coredump.
8889      lt_prog_compiler_pic='-fPIC -shared'
8890      ;;
8891
8892    osf3* | osf4* | osf5*)
8893      lt_prog_compiler_wl='-Wl,'
8894      # All OSF/1 code is PIC.
8895      lt_prog_compiler_static='-non_shared'
8896      ;;
8897
8898    rdos*)
8899      lt_prog_compiler_static='-non_shared'
8900      ;;
8901
8902    solaris*)
8903      lt_prog_compiler_pic='-KPIC'
8904      lt_prog_compiler_static='-Bstatic'
8905      case $cc_basename in
8906      f77* | f90* | f95*)
8907	lt_prog_compiler_wl='-Qoption ld ';;
8908      *)
8909	lt_prog_compiler_wl='-Wl,';;
8910      esac
8911      ;;
8912
8913    sunos4*)
8914      lt_prog_compiler_wl='-Qoption ld '
8915      lt_prog_compiler_pic='-PIC'
8916      lt_prog_compiler_static='-Bstatic'
8917      ;;
8918
8919    sysv4 | sysv4.2uw2* | sysv4.3*)
8920      lt_prog_compiler_wl='-Wl,'
8921      lt_prog_compiler_pic='-KPIC'
8922      lt_prog_compiler_static='-Bstatic'
8923      ;;
8924
8925    sysv4*MP*)
8926      if test -d /usr/nec ;then
8927	lt_prog_compiler_pic='-Kconform_pic'
8928	lt_prog_compiler_static='-Bstatic'
8929      fi
8930      ;;
8931
8932    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8933      lt_prog_compiler_wl='-Wl,'
8934      lt_prog_compiler_pic='-KPIC'
8935      lt_prog_compiler_static='-Bstatic'
8936      ;;
8937
8938    unicos*)
8939      lt_prog_compiler_wl='-Wl,'
8940      lt_prog_compiler_can_build_shared=no
8941      ;;
8942
8943    uts4*)
8944      lt_prog_compiler_pic='-pic'
8945      lt_prog_compiler_static='-Bstatic'
8946      ;;
8947
8948    *)
8949      lt_prog_compiler_can_build_shared=no
8950      ;;
8951    esac
8952  fi
8953
8954case $host_os in
8955  # For platforms which do not support PIC, -DPIC is meaningless:
8956  *djgpp*)
8957    lt_prog_compiler_pic=
8958    ;;
8959  *)
8960    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8961    ;;
8962esac
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8964$as_echo "$lt_prog_compiler_pic" >&6; }
8965
8966
8967
8968
8969
8970
8971#
8972# Check to make sure the PIC flag actually works.
8973#
8974if test -n "$lt_prog_compiler_pic"; then
8975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8976$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8977if ${lt_cv_prog_compiler_pic_works+:} false; then :
8978  $as_echo_n "(cached) " >&6
8979else
8980  lt_cv_prog_compiler_pic_works=no
8981   ac_outfile=conftest.$ac_objext
8982   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8983   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8984   # Insert the option either (1) after the last *FLAGS variable, or
8985   # (2) before a word containing "conftest.", or (3) at the end.
8986   # Note that $ac_compile itself does not contain backslashes and begins
8987   # with a dollar sign (not a hyphen), so the echo should work correctly.
8988   # The option is referenced via a variable to avoid confusing sed.
8989   lt_compile=`echo "$ac_compile" | $SED \
8990   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8991   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8992   -e 's:$: $lt_compiler_flag:'`
8993   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8994   (eval "$lt_compile" 2>conftest.err)
8995   ac_status=$?
8996   cat conftest.err >&5
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   if (exit $ac_status) && test -s "$ac_outfile"; then
8999     # The compiler can only warn and ignore the option if not recognized
9000     # So say no if there are warnings other than the usual output.
9001     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9002     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9003     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9004       lt_cv_prog_compiler_pic_works=yes
9005     fi
9006   fi
9007   $RM conftest*
9008
9009fi
9010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9011$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9012
9013if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9014    case $lt_prog_compiler_pic in
9015     "" | " "*) ;;
9016     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9017     esac
9018else
9019    lt_prog_compiler_pic=
9020     lt_prog_compiler_can_build_shared=no
9021fi
9022
9023fi
9024
9025
9026
9027
9028
9029
9030#
9031# Check to make sure the static flag actually works.
9032#
9033wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9035$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9036if ${lt_cv_prog_compiler_static_works+:} false; then :
9037  $as_echo_n "(cached) " >&6
9038else
9039  lt_cv_prog_compiler_static_works=no
9040   save_LDFLAGS="$LDFLAGS"
9041   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9042   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9043   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9044     # The linker can only warn and ignore the option if not recognized
9045     # So say no if there are warnings
9046     if test -s conftest.err; then
9047       # Append any errors to the config.log.
9048       cat conftest.err 1>&5
9049       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9050       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9051       if diff conftest.exp conftest.er2 >/dev/null; then
9052         lt_cv_prog_compiler_static_works=yes
9053       fi
9054     else
9055       lt_cv_prog_compiler_static_works=yes
9056     fi
9057   fi
9058   $RM -r conftest*
9059   LDFLAGS="$save_LDFLAGS"
9060
9061fi
9062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9063$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9064
9065if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9066    :
9067else
9068    lt_prog_compiler_static=
9069fi
9070
9071
9072
9073
9074
9075
9076
9077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9078$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9079if ${lt_cv_prog_compiler_c_o+:} false; then :
9080  $as_echo_n "(cached) " >&6
9081else
9082  lt_cv_prog_compiler_c_o=no
9083   $RM -r conftest 2>/dev/null
9084   mkdir conftest
9085   cd conftest
9086   mkdir out
9087   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9088
9089   lt_compiler_flag="-o out/conftest2.$ac_objext"
9090   # Insert the option either (1) after the last *FLAGS variable, or
9091   # (2) before a word containing "conftest.", or (3) at the end.
9092   # Note that $ac_compile itself does not contain backslashes and begins
9093   # with a dollar sign (not a hyphen), so the echo should work correctly.
9094   lt_compile=`echo "$ac_compile" | $SED \
9095   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9096   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9097   -e 's:$: $lt_compiler_flag:'`
9098   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9099   (eval "$lt_compile" 2>out/conftest.err)
9100   ac_status=$?
9101   cat out/conftest.err >&5
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9104   then
9105     # The compiler can only warn and ignore the option if not recognized
9106     # So say no if there are warnings
9107     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9108     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9109     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9110       lt_cv_prog_compiler_c_o=yes
9111     fi
9112   fi
9113   chmod u+w . 2>&5
9114   $RM conftest*
9115   # SGI C++ compiler will create directory out/ii_files/ for
9116   # template instantiation
9117   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9118   $RM out/* && rmdir out
9119   cd ..
9120   $RM -r conftest
9121   $RM conftest*
9122
9123fi
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9125$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9126
9127
9128
9129
9130
9131
9132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9133$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9134if ${lt_cv_prog_compiler_c_o+:} false; then :
9135  $as_echo_n "(cached) " >&6
9136else
9137  lt_cv_prog_compiler_c_o=no
9138   $RM -r conftest 2>/dev/null
9139   mkdir conftest
9140   cd conftest
9141   mkdir out
9142   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9143
9144   lt_compiler_flag="-o out/conftest2.$ac_objext"
9145   # Insert the option either (1) after the last *FLAGS variable, or
9146   # (2) before a word containing "conftest.", or (3) at the end.
9147   # Note that $ac_compile itself does not contain backslashes and begins
9148   # with a dollar sign (not a hyphen), so the echo should work correctly.
9149   lt_compile=`echo "$ac_compile" | $SED \
9150   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9151   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9152   -e 's:$: $lt_compiler_flag:'`
9153   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9154   (eval "$lt_compile" 2>out/conftest.err)
9155   ac_status=$?
9156   cat out/conftest.err >&5
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9159   then
9160     # The compiler can only warn and ignore the option if not recognized
9161     # So say no if there are warnings
9162     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9163     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9164     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9165       lt_cv_prog_compiler_c_o=yes
9166     fi
9167   fi
9168   chmod u+w . 2>&5
9169   $RM conftest*
9170   # SGI C++ compiler will create directory out/ii_files/ for
9171   # template instantiation
9172   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9173   $RM out/* && rmdir out
9174   cd ..
9175   $RM -r conftest
9176   $RM conftest*
9177
9178fi
9179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9180$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9181
9182
9183
9184
9185hard_links="nottested"
9186if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9187  # do not overwrite the value of need_locks provided by the user
9188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9189$as_echo_n "checking if we can lock with hard links... " >&6; }
9190  hard_links=yes
9191  $RM conftest*
9192  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9193  touch conftest.a
9194  ln conftest.a conftest.b 2>&5 || hard_links=no
9195  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9197$as_echo "$hard_links" >&6; }
9198  if test "$hard_links" = no; then
9199    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9200$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9201    need_locks=warn
9202  fi
9203else
9204  need_locks=no
9205fi
9206
9207
9208
9209
9210
9211
9212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9213$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9214
9215  runpath_var=
9216  allow_undefined_flag=
9217  always_export_symbols=no
9218  archive_cmds=
9219  archive_expsym_cmds=
9220  compiler_needs_object=no
9221  enable_shared_with_static_runtimes=no
9222  export_dynamic_flag_spec=
9223  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9224  hardcode_automatic=no
9225  hardcode_direct=no
9226  hardcode_direct_absolute=no
9227  hardcode_libdir_flag_spec=
9228  hardcode_libdir_flag_spec_ld=
9229  hardcode_libdir_separator=
9230  hardcode_minus_L=no
9231  hardcode_shlibpath_var=unsupported
9232  inherit_rpath=no
9233  link_all_deplibs=unknown
9234  module_cmds=
9235  module_expsym_cmds=
9236  old_archive_from_new_cmds=
9237  old_archive_from_expsyms_cmds=
9238  thread_safe_flag_spec=
9239  whole_archive_flag_spec=
9240  # include_expsyms should be a list of space-separated symbols to be *always*
9241  # included in the symbol list
9242  include_expsyms=
9243  # exclude_expsyms can be an extended regexp of symbols to exclude
9244  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9245  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9246  # as well as any symbol that contains `d'.
9247  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9248  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9249  # platforms (ab)use it in PIC code, but their linkers get confused if
9250  # the symbol is explicitly referenced.  Since portable code cannot
9251  # rely on this symbol name, it's probably fine to never include it in
9252  # preloaded symbol tables.
9253  # Exclude shared library initialization/finalization symbols.
9254  extract_expsyms_cmds=
9255
9256  case $host_os in
9257  cygwin* | mingw* | pw32* | cegcc*)
9258    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9259    # When not using gcc, we currently assume that we are using
9260    # Microsoft Visual C++.
9261    if test "$GCC" != yes; then
9262      with_gnu_ld=no
9263    fi
9264    ;;
9265  interix*)
9266    # we just hope/assume this is gcc and not c89 (= MSVC++)
9267    with_gnu_ld=yes
9268    ;;
9269  openbsd*)
9270    with_gnu_ld=no
9271    ;;
9272  esac
9273
9274  ld_shlibs=yes
9275
9276  # On some targets, GNU ld is compatible enough with the native linker
9277  # that we're better off using the native interface for both.
9278  lt_use_gnu_ld_interface=no
9279  if test "$with_gnu_ld" = yes; then
9280    case $host_os in
9281      aix*)
9282	# The AIX port of GNU ld has always aspired to compatibility
9283	# with the native linker.  However, as the warning in the GNU ld
9284	# block says, versions before 2.19.5* couldn't really create working
9285	# shared libraries, regardless of the interface used.
9286	case `$LD -v 2>&1` in
9287	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9288	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9289	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9290	  *)
9291	    lt_use_gnu_ld_interface=yes
9292	    ;;
9293	esac
9294	;;
9295      *)
9296	lt_use_gnu_ld_interface=yes
9297	;;
9298    esac
9299  fi
9300
9301  if test "$lt_use_gnu_ld_interface" = yes; then
9302    # If archive_cmds runs LD, not CC, wlarc should be empty
9303    wlarc='${wl}'
9304
9305    # Set some defaults for GNU ld with shared library support. These
9306    # are reset later if shared libraries are not supported. Putting them
9307    # here allows them to be overridden if necessary.
9308    runpath_var=LD_RUN_PATH
9309    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310    export_dynamic_flag_spec='${wl}--export-dynamic'
9311    # ancient GNU ld didn't support --whole-archive et. al.
9312    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9313      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9314    else
9315      whole_archive_flag_spec=
9316    fi
9317    supports_anon_versioning=no
9318    case `$LD -v 2>&1` in
9319      *GNU\ gold*) supports_anon_versioning=yes ;;
9320      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9321      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9322      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9323      *\ 2.11.*) ;; # other 2.11 versions
9324      *) supports_anon_versioning=yes ;;
9325    esac
9326
9327    # See if GNU ld supports shared libraries.
9328    case $host_os in
9329    aix[3-9]*)
9330      # On AIX/PPC, the GNU linker is very broken
9331      if test "$host_cpu" != ia64; then
9332	ld_shlibs=no
9333	cat <<_LT_EOF 1>&2
9334
9335*** Warning: the GNU linker, at least up to release 2.19, is reported
9336*** to be unable to reliably create shared libraries on AIX.
9337*** Therefore, libtool is disabling shared libraries support.  If you
9338*** really care for shared libraries, you may want to install binutils
9339*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9340*** You will then need to restart the configuration process.
9341
9342_LT_EOF
9343      fi
9344      ;;
9345
9346    amigaos*)
9347      case $host_cpu in
9348      powerpc)
9349            # see comment about AmigaOS4 .so support
9350            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9351            archive_expsym_cmds=''
9352        ;;
9353      m68k)
9354            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)'
9355            hardcode_libdir_flag_spec='-L$libdir'
9356            hardcode_minus_L=yes
9357        ;;
9358      esac
9359      ;;
9360
9361    beos*)
9362      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9363	allow_undefined_flag=unsupported
9364	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9365	# support --undefined.  This deserves some investigation.  FIXME
9366	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367      else
9368	ld_shlibs=no
9369      fi
9370      ;;
9371
9372    cygwin* | mingw* | pw32* | cegcc*)
9373      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9374      # as there is no search path for DLLs.
9375      hardcode_libdir_flag_spec='-L$libdir'
9376      export_dynamic_flag_spec='${wl}--export-all-symbols'
9377      allow_undefined_flag=unsupported
9378      always_export_symbols=no
9379      enable_shared_with_static_runtimes=yes
9380      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9381
9382      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9383        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9384	# If the export-symbols file already is a .def file (1st line
9385	# is EXPORTS), use it as is; otherwise, prepend...
9386	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9387	  cp $export_symbols $output_objdir/$soname.def;
9388	else
9389	  echo EXPORTS > $output_objdir/$soname.def;
9390	  cat $export_symbols >> $output_objdir/$soname.def;
9391	fi~
9392	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9393      else
9394	ld_shlibs=no
9395      fi
9396      ;;
9397
9398    haiku*)
9399      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400      link_all_deplibs=yes
9401      ;;
9402
9403    interix[3-9]*)
9404      hardcode_direct=no
9405      hardcode_shlibpath_var=no
9406      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9407      export_dynamic_flag_spec='${wl}-E'
9408      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9409      # Instead, shared libraries are loaded at an image base (0x10000000 by
9410      # default) and relocated if they conflict, which is a slow very memory
9411      # consuming and fragmenting process.  To avoid this, we pick a random,
9412      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9413      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9414      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9415      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'
9416      ;;
9417
9418    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9419      tmp_diet=no
9420      if test "$host_os" = linux-dietlibc; then
9421	case $cc_basename in
9422	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9423	esac
9424      fi
9425      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9426	 && test "$tmp_diet" = no
9427      then
9428	tmp_addflag=' $pic_flag'
9429	tmp_sharedflag='-shared'
9430	case $cc_basename,$host_cpu in
9431        pgcc*)				# Portland Group C compiler
9432	  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'
9433	  tmp_addflag=' $pic_flag'
9434	  ;;
9435	pgf77* | pgf90* | pgf95* | pgfortran*)
9436					# Portland Group f77 and f90 compilers
9437	  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'
9438	  tmp_addflag=' $pic_flag -Mnomain' ;;
9439	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9440	  tmp_addflag=' -i_dynamic' ;;
9441	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9442	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9443	ifc* | ifort*)			# Intel Fortran compiler
9444	  tmp_addflag=' -nofor_main' ;;
9445	lf95*)				# Lahey Fortran 8.1
9446	  whole_archive_flag_spec=
9447	  tmp_sharedflag='--shared' ;;
9448	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9449	  tmp_sharedflag='-qmkshrobj'
9450	  tmp_addflag= ;;
9451	nvcc*)	# Cuda Compiler Driver 2.2
9452	  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'
9453	  compiler_needs_object=yes
9454	  ;;
9455	esac
9456	case `$CC -V 2>&1 | sed 5q` in
9457	*Sun\ C*)			# Sun C 5.9
9458	  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'
9459	  compiler_needs_object=yes
9460	  tmp_sharedflag='-G' ;;
9461	*Sun\ F*)			# Sun Fortran 8.3
9462	  tmp_sharedflag='-G' ;;
9463	esac
9464	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465
9466        if test "x$supports_anon_versioning" = xyes; then
9467          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9468	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9469	    echo "local: *; };" >> $output_objdir/$libname.ver~
9470	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9471        fi
9472
9473	case $cc_basename in
9474	xlf* | bgf* | bgxlf* | mpixlf*)
9475	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9476	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9477	  hardcode_libdir_flag_spec=
9478	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9479	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9480	  if test "x$supports_anon_versioning" = xyes; then
9481	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9482	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9483	      echo "local: *; };" >> $output_objdir/$libname.ver~
9484	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9485	  fi
9486	  ;;
9487	esac
9488      else
9489        ld_shlibs=no
9490      fi
9491      ;;
9492
9493    netbsd*)
9494      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9495	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9496	wlarc=
9497      else
9498	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9500      fi
9501      ;;
9502
9503    solaris*)
9504      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9505	ld_shlibs=no
9506	cat <<_LT_EOF 1>&2
9507
9508*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9509*** create shared libraries on Solaris systems.  Therefore, libtool
9510*** is disabling shared libraries support.  We urge you to upgrade GNU
9511*** binutils to release 2.9.1 or newer.  Another option is to modify
9512*** your PATH or compiler configuration so that the native linker is
9513*** used, and then restart.
9514
9515_LT_EOF
9516      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9517	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9519      else
9520	ld_shlibs=no
9521      fi
9522      ;;
9523
9524    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9525      case `$LD -v 2>&1` in
9526        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9527	ld_shlibs=no
9528	cat <<_LT_EOF 1>&2
9529
9530*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9531*** reliably create shared libraries on SCO systems.  Therefore, libtool
9532*** is disabling shared libraries support.  We urge you to upgrade GNU
9533*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9534*** your PATH or compiler configuration so that the native linker is
9535*** used, and then restart.
9536
9537_LT_EOF
9538	;;
9539	*)
9540	  # For security reasons, it is highly recommended that you always
9541	  # use absolute paths for naming shared libraries, and exclude the
9542	  # DT_RUNPATH tag from executables and libraries.  But doing so
9543	  # requires that you compile everything twice, which is a pain.
9544	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9545	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9546	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9548	  else
9549	    ld_shlibs=no
9550	  fi
9551	;;
9552      esac
9553      ;;
9554
9555    sunos4*)
9556      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9557      wlarc=
9558      hardcode_direct=yes
9559      hardcode_shlibpath_var=no
9560      ;;
9561
9562    *)
9563      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9564	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9566      else
9567	ld_shlibs=no
9568      fi
9569      ;;
9570    esac
9571
9572    if test "$ld_shlibs" = no; then
9573      runpath_var=
9574      hardcode_libdir_flag_spec=
9575      export_dynamic_flag_spec=
9576      whole_archive_flag_spec=
9577    fi
9578  else
9579    # PORTME fill in a description of your system's linker (not GNU ld)
9580    case $host_os in
9581    aix3*)
9582      allow_undefined_flag=unsupported
9583      always_export_symbols=yes
9584      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'
9585      # Note: this linker hardcodes the directories in LIBPATH if there
9586      # are no directories specified by -L.
9587      hardcode_minus_L=yes
9588      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9589	# Neither direct hardcoding nor static linking is supported with a
9590	# broken collect2.
9591	hardcode_direct=unsupported
9592      fi
9593      ;;
9594
9595    aix[4-9]*)
9596      if test "$host_cpu" = ia64; then
9597	# On IA64, the linker does run time linking by default, so we don't
9598	# have to do anything special.
9599	aix_use_runtimelinking=no
9600	exp_sym_flag='-Bexport'
9601	no_entry_flag=""
9602      else
9603	# If we're using GNU nm, then we don't want the "-C" option.
9604	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9605	# Also, AIX nm treats weak defined symbols like other global
9606	# defined symbols, whereas GNU nm marks them as "W".
9607	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9608	  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'
9609	else
9610	  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'
9611	fi
9612	aix_use_runtimelinking=no
9613
9614	# Test if we are trying to use run time linking or normal
9615	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9616	# need to do runtime linking.
9617	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9618	  for ld_flag in $LDFLAGS; do
9619	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9620	    aix_use_runtimelinking=yes
9621	    break
9622	  fi
9623	  done
9624	  ;;
9625	esac
9626
9627	exp_sym_flag='-bexport'
9628	no_entry_flag='-bnoentry'
9629      fi
9630
9631      # When large executables or shared objects are built, AIX ld can
9632      # have problems creating the table of contents.  If linking a library
9633      # or program results in "error TOC overflow" add -mminimal-toc to
9634      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9635      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9636
9637      archive_cmds=''
9638      hardcode_direct=yes
9639      hardcode_direct_absolute=yes
9640      hardcode_libdir_separator=':'
9641      link_all_deplibs=yes
9642      file_list_spec='${wl}-f,'
9643
9644      if test "$GCC" = yes; then
9645	case $host_os in aix4.[012]|aix4.[012].*)
9646	# We only want to do this on AIX 4.2 and lower, the check
9647	# below for broken collect2 doesn't work under 4.3+
9648	  collect2name=`${CC} -print-prog-name=collect2`
9649	  if test -f "$collect2name" &&
9650	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9651	  then
9652	  # We have reworked collect2
9653	  :
9654	  else
9655	  # We have old collect2
9656	  hardcode_direct=unsupported
9657	  # It fails to find uninstalled libraries when the uninstalled
9658	  # path is not listed in the libpath.  Setting hardcode_minus_L
9659	  # to unsupported forces relinking
9660	  hardcode_minus_L=yes
9661	  hardcode_libdir_flag_spec='-L$libdir'
9662	  hardcode_libdir_separator=
9663	  fi
9664	  ;;
9665	esac
9666	shared_flag='-shared'
9667	if test "$aix_use_runtimelinking" = yes; then
9668	  shared_flag="$shared_flag "'${wl}-G'
9669	fi
9670      else
9671	# not using gcc
9672	if test "$host_cpu" = ia64; then
9673	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9674	# chokes on -Wl,-G. The following line is correct:
9675	  shared_flag='-G'
9676	else
9677	  if test "$aix_use_runtimelinking" = yes; then
9678	    shared_flag='${wl}-G'
9679	  else
9680	    shared_flag='${wl}-bM:SRE'
9681	  fi
9682	fi
9683      fi
9684
9685      export_dynamic_flag_spec='${wl}-bexpall'
9686      # It seems that -bexpall does not export symbols beginning with
9687      # underscore (_), so it is better to generate a list of symbols to export.
9688      always_export_symbols=yes
9689      if test "$aix_use_runtimelinking" = yes; then
9690	# Warning - without using the other runtime loading flags (-brtl),
9691	# -berok will link without error, but may produce a broken library.
9692	allow_undefined_flag='-berok'
9693        # Determine the default libpath from the value encoded in an
9694        # empty executable.
9695        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h.  */
9697
9698int
9699main ()
9700{
9701
9702  ;
9703  return 0;
9704}
9705_ACEOF
9706if ac_fn_c_try_link "$LINENO"; then :
9707
9708lt_aix_libpath_sed='
9709    /Import File Strings/,/^$/ {
9710	/^0/ {
9711	    s/^0  *\(.*\)$/\1/
9712	    p
9713	}
9714    }'
9715aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9716# Check for a 64-bit object if we didn't find anything.
9717if test -z "$aix_libpath"; then
9718  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9719fi
9720fi
9721rm -f core conftest.err conftest.$ac_objext \
9722    conftest$ac_exeext conftest.$ac_ext
9723if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9724
9725        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9726        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"
9727      else
9728	if test "$host_cpu" = ia64; then
9729	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9730	  allow_undefined_flag="-z nodefs"
9731	  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"
9732	else
9733	 # Determine the default libpath from the value encoded in an
9734	 # empty executable.
9735	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736/* end confdefs.h.  */
9737
9738int
9739main ()
9740{
9741
9742  ;
9743  return 0;
9744}
9745_ACEOF
9746if ac_fn_c_try_link "$LINENO"; then :
9747
9748lt_aix_libpath_sed='
9749    /Import File Strings/,/^$/ {
9750	/^0/ {
9751	    s/^0  *\(.*\)$/\1/
9752	    p
9753	}
9754    }'
9755aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9756# Check for a 64-bit object if we didn't find anything.
9757if test -z "$aix_libpath"; then
9758  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9759fi
9760fi
9761rm -f core conftest.err conftest.$ac_objext \
9762    conftest$ac_exeext conftest.$ac_ext
9763if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9764
9765	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9766	  # Warning - without using the other run time loading flags,
9767	  # -berok will link without error, but may produce a broken library.
9768	  no_undefined_flag=' ${wl}-bernotok'
9769	  allow_undefined_flag=' ${wl}-berok'
9770	  if test "$with_gnu_ld" = yes; then
9771	    # We only use this code for GNU lds that support --whole-archive.
9772	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9773	  else
9774	    # Exported symbols can be pulled into shared objects from archives
9775	    whole_archive_flag_spec='$convenience'
9776	  fi
9777	  archive_cmds_need_lc=yes
9778	  # This is similar to how AIX traditionally builds its shared libraries.
9779	  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'
9780	fi
9781      fi
9782      ;;
9783
9784    amigaos*)
9785      case $host_cpu in
9786      powerpc)
9787            # see comment about AmigaOS4 .so support
9788            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789            archive_expsym_cmds=''
9790        ;;
9791      m68k)
9792            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)'
9793            hardcode_libdir_flag_spec='-L$libdir'
9794            hardcode_minus_L=yes
9795        ;;
9796      esac
9797      ;;
9798
9799    bsdi[45]*)
9800      export_dynamic_flag_spec=-rdynamic
9801      ;;
9802
9803    cygwin* | mingw* | pw32* | cegcc*)
9804      # When not using gcc, we currently assume that we are using
9805      # Microsoft Visual C++.
9806      # hardcode_libdir_flag_spec is actually meaningless, as there is
9807      # no search path for DLLs.
9808      hardcode_libdir_flag_spec=' '
9809      allow_undefined_flag=unsupported
9810      # Tell ltmain to make .lib files, not .a files.
9811      libext=lib
9812      # Tell ltmain to make .dll files, not .so files.
9813      shrext_cmds=".dll"
9814      # FIXME: Setting linknames here is a bad hack.
9815      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9816      # The linker will automatically build a .lib file if we build a DLL.
9817      old_archive_from_new_cmds='true'
9818      # FIXME: Should let the user specify the lib program.
9819      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9820      fix_srcfile_path='`cygpath -w "$srcfile"`'
9821      enable_shared_with_static_runtimes=yes
9822      ;;
9823
9824    darwin* | rhapsody*)
9825
9826
9827  archive_cmds_need_lc=no
9828  hardcode_direct=no
9829  hardcode_automatic=yes
9830  hardcode_shlibpath_var=unsupported
9831  if test "$lt_cv_ld_force_load" = "yes"; then
9832    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\"`'
9833  else
9834    whole_archive_flag_spec=''
9835  fi
9836  link_all_deplibs=yes
9837  allow_undefined_flag="$_lt_dar_allow_undefined"
9838  case $cc_basename in
9839     ifort*) _lt_dar_can_shared=yes ;;
9840     *) _lt_dar_can_shared=$GCC ;;
9841  esac
9842  if test "$_lt_dar_can_shared" = "yes"; then
9843    output_verbose_link_cmd=func_echo_all
9844    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9845    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9846    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}"
9847    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}"
9848
9849  else
9850  ld_shlibs=no
9851  fi
9852
9853      ;;
9854
9855    dgux*)
9856      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857      hardcode_libdir_flag_spec='-L$libdir'
9858      hardcode_shlibpath_var=no
9859      ;;
9860
9861    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9862    # support.  Future versions do this automatically, but an explicit c++rt0.o
9863    # does not break anything, and helps significantly (at the cost of a little
9864    # extra space).
9865    freebsd2.2*)
9866      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9867      hardcode_libdir_flag_spec='-R$libdir'
9868      hardcode_direct=yes
9869      hardcode_shlibpath_var=no
9870      ;;
9871
9872    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9873    freebsd2.*)
9874      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9875      hardcode_direct=yes
9876      hardcode_minus_L=yes
9877      hardcode_shlibpath_var=no
9878      ;;
9879
9880    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9881    freebsd* | dragonfly*)
9882      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9883      hardcode_libdir_flag_spec='-R$libdir'
9884      hardcode_direct=yes
9885      hardcode_shlibpath_var=no
9886      ;;
9887
9888    hpux9*)
9889      if test "$GCC" = yes; then
9890	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'
9891      else
9892	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'
9893      fi
9894      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9895      hardcode_libdir_separator=:
9896      hardcode_direct=yes
9897
9898      # hardcode_minus_L: Not really in the search PATH,
9899      # but as the default location of the library.
9900      hardcode_minus_L=yes
9901      export_dynamic_flag_spec='${wl}-E'
9902      ;;
9903
9904    hpux10*)
9905      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9906	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9907      else
9908	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9909      fi
9910      if test "$with_gnu_ld" = no; then
9911	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9912	hardcode_libdir_flag_spec_ld='+b $libdir'
9913	hardcode_libdir_separator=:
9914	hardcode_direct=yes
9915	hardcode_direct_absolute=yes
9916	export_dynamic_flag_spec='${wl}-E'
9917	# hardcode_minus_L: Not really in the search PATH,
9918	# but as the default location of the library.
9919	hardcode_minus_L=yes
9920      fi
9921      ;;
9922
9923    hpux11*)
9924      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9925	case $host_cpu in
9926	hppa*64*)
9927	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9928	  ;;
9929	ia64*)
9930	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9931	  ;;
9932	*)
9933	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9934	  ;;
9935	esac
9936      else
9937	case $host_cpu in
9938	hppa*64*)
9939	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9940	  ;;
9941	ia64*)
9942	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9943	  ;;
9944	*)
9945
9946	  # Older versions of the 11.00 compiler do not understand -b yet
9947	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9948	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9949$as_echo_n "checking if $CC understands -b... " >&6; }
9950if ${lt_cv_prog_compiler__b+:} false; then :
9951  $as_echo_n "(cached) " >&6
9952else
9953  lt_cv_prog_compiler__b=no
9954   save_LDFLAGS="$LDFLAGS"
9955   LDFLAGS="$LDFLAGS -b"
9956   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9957   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9958     # The linker can only warn and ignore the option if not recognized
9959     # So say no if there are warnings
9960     if test -s conftest.err; then
9961       # Append any errors to the config.log.
9962       cat conftest.err 1>&5
9963       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9964       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9965       if diff conftest.exp conftest.er2 >/dev/null; then
9966         lt_cv_prog_compiler__b=yes
9967       fi
9968     else
9969       lt_cv_prog_compiler__b=yes
9970     fi
9971   fi
9972   $RM -r conftest*
9973   LDFLAGS="$save_LDFLAGS"
9974
9975fi
9976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9977$as_echo "$lt_cv_prog_compiler__b" >&6; }
9978
9979if test x"$lt_cv_prog_compiler__b" = xyes; then
9980    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9981else
9982    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9983fi
9984
9985	  ;;
9986	esac
9987      fi
9988      if test "$with_gnu_ld" = no; then
9989	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9990	hardcode_libdir_separator=:
9991
9992	case $host_cpu in
9993	hppa*64*|ia64*)
9994	  hardcode_direct=no
9995	  hardcode_shlibpath_var=no
9996	  ;;
9997	*)
9998	  hardcode_direct=yes
9999	  hardcode_direct_absolute=yes
10000	  export_dynamic_flag_spec='${wl}-E'
10001
10002	  # hardcode_minus_L: Not really in the search PATH,
10003	  # but as the default location of the library.
10004	  hardcode_minus_L=yes
10005	  ;;
10006	esac
10007      fi
10008      ;;
10009
10010    irix5* | irix6* | nonstopux*)
10011      if test "$GCC" = yes; then
10012	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'
10013	# Try to use the -exported_symbol ld option, if it does not
10014	# work, assume that -exports_file does not work either and
10015	# implicitly export all symbols.
10016        save_LDFLAGS="$LDFLAGS"
10017        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10018        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019/* end confdefs.h.  */
10020int foo(void) {}
10021_ACEOF
10022if ac_fn_c_try_link "$LINENO"; then :
10023  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'
10024
10025fi
10026rm -f core conftest.err conftest.$ac_objext \
10027    conftest$ac_exeext conftest.$ac_ext
10028        LDFLAGS="$save_LDFLAGS"
10029      else
10030	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'
10031	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'
10032      fi
10033      archive_cmds_need_lc='no'
10034      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10035      hardcode_libdir_separator=:
10036      inherit_rpath=yes
10037      link_all_deplibs=yes
10038      ;;
10039
10040    netbsd*)
10041      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10042	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10043      else
10044	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10045      fi
10046      hardcode_libdir_flag_spec='-R$libdir'
10047      hardcode_direct=yes
10048      hardcode_shlibpath_var=no
10049      ;;
10050
10051    newsos6)
10052      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053      hardcode_direct=yes
10054      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10055      hardcode_libdir_separator=:
10056      hardcode_shlibpath_var=no
10057      ;;
10058
10059    *nto* | *qnx*)
10060      ;;
10061
10062    openbsd*)
10063      if test -f /usr/libexec/ld.so; then
10064	hardcode_direct=yes
10065	hardcode_shlibpath_var=no
10066	hardcode_direct_absolute=yes
10067	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10068	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10069	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10070	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10071	  export_dynamic_flag_spec='${wl}-E'
10072	else
10073	  case $host_os in
10074	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10075	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10076	     hardcode_libdir_flag_spec='-R$libdir'
10077	     ;;
10078	   *)
10079	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10080	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10081	     ;;
10082	  esac
10083	fi
10084      else
10085	ld_shlibs=no
10086      fi
10087      ;;
10088
10089    os2*)
10090      hardcode_libdir_flag_spec='-L$libdir'
10091      hardcode_minus_L=yes
10092      allow_undefined_flag=unsupported
10093      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'
10094      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10095      ;;
10096
10097    osf3*)
10098      if test "$GCC" = yes; then
10099	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10100	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'
10101      else
10102	allow_undefined_flag=' -expect_unresolved \*'
10103	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'
10104      fi
10105      archive_cmds_need_lc='no'
10106      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10107      hardcode_libdir_separator=:
10108      ;;
10109
10110    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10111      if test "$GCC" = yes; then
10112	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10113	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'
10114	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115      else
10116	allow_undefined_flag=' -expect_unresolved \*'
10117	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'
10118	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~
10119	$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'
10120
10121	# Both c and cxx compiler support -rpath directly
10122	hardcode_libdir_flag_spec='-rpath $libdir'
10123      fi
10124      archive_cmds_need_lc='no'
10125      hardcode_libdir_separator=:
10126      ;;
10127
10128    solaris*)
10129      no_undefined_flag=' -z defs'
10130      if test "$GCC" = yes; then
10131	wlarc='${wl}'
10132	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10133	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10134	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10135      else
10136	case `$CC -V 2>&1` in
10137	*"Compilers 5.0"*)
10138	  wlarc=''
10139	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10140	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10141	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10142	  ;;
10143	*)
10144	  wlarc='${wl}'
10145	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10146	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10147	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10148	  ;;
10149	esac
10150      fi
10151      hardcode_libdir_flag_spec='-R$libdir'
10152      hardcode_shlibpath_var=no
10153      case $host_os in
10154      solaris2.[0-5] | solaris2.[0-5].*) ;;
10155      *)
10156	# The compiler driver will combine and reorder linker options,
10157	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10158	# but is careful enough not to reorder.
10159	# Supported since Solaris 2.6 (maybe 2.5.1?)
10160	if test "$GCC" = yes; then
10161	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10162	else
10163	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10164	fi
10165	;;
10166      esac
10167      link_all_deplibs=yes
10168      ;;
10169
10170    sunos4*)
10171      if test "x$host_vendor" = xsequent; then
10172	# Use $CC to link under sequent, because it throws in some extra .o
10173	# files that make .init and .fini sections work.
10174	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10175      else
10176	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10177      fi
10178      hardcode_libdir_flag_spec='-L$libdir'
10179      hardcode_direct=yes
10180      hardcode_minus_L=yes
10181      hardcode_shlibpath_var=no
10182      ;;
10183
10184    sysv4)
10185      case $host_vendor in
10186	sni)
10187	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188	  hardcode_direct=yes # is this really true???
10189	;;
10190	siemens)
10191	  ## LD is ld it makes a PLAMLIB
10192	  ## CC just makes a GrossModule.
10193	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10194	  reload_cmds='$CC -r -o $output$reload_objs'
10195	  hardcode_direct=no
10196        ;;
10197	motorola)
10198	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10200	;;
10201      esac
10202      runpath_var='LD_RUN_PATH'
10203      hardcode_shlibpath_var=no
10204      ;;
10205
10206    sysv4.3*)
10207      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208      hardcode_shlibpath_var=no
10209      export_dynamic_flag_spec='-Bexport'
10210      ;;
10211
10212    sysv4*MP*)
10213      if test -d /usr/nec; then
10214	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215	hardcode_shlibpath_var=no
10216	runpath_var=LD_RUN_PATH
10217	hardcode_runpath_var=yes
10218	ld_shlibs=yes
10219      fi
10220      ;;
10221
10222    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10223      no_undefined_flag='${wl}-z,text'
10224      archive_cmds_need_lc=no
10225      hardcode_shlibpath_var=no
10226      runpath_var='LD_RUN_PATH'
10227
10228      if test "$GCC" = yes; then
10229	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10230	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231      else
10232	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234      fi
10235      ;;
10236
10237    sysv5* | sco3.2v5* | sco5v6*)
10238      # Note: We can NOT use -z defs as we might desire, because we do not
10239      # link with -lc, and that would cause any symbols used from libc to
10240      # always be unresolved, which means just about no library would
10241      # ever link correctly.  If we're not using GNU ld we use -z text
10242      # though, which does catch some bad symbols but isn't as heavy-handed
10243      # as -z defs.
10244      no_undefined_flag='${wl}-z,text'
10245      allow_undefined_flag='${wl}-z,nodefs'
10246      archive_cmds_need_lc=no
10247      hardcode_shlibpath_var=no
10248      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10249      hardcode_libdir_separator=':'
10250      link_all_deplibs=yes
10251      export_dynamic_flag_spec='${wl}-Bexport'
10252      runpath_var='LD_RUN_PATH'
10253
10254      if test "$GCC" = yes; then
10255	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10256	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10257      else
10258	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260      fi
10261      ;;
10262
10263    uts4*)
10264      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265      hardcode_libdir_flag_spec='-L$libdir'
10266      hardcode_shlibpath_var=no
10267      ;;
10268
10269    *)
10270      ld_shlibs=no
10271      ;;
10272    esac
10273
10274    if test x$host_vendor = xsni; then
10275      case $host in
10276      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10277	export_dynamic_flag_spec='${wl}-Blargedynsym'
10278	;;
10279      esac
10280    fi
10281  fi
10282
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10284$as_echo "$ld_shlibs" >&6; }
10285test "$ld_shlibs" = no && can_build_shared=no
10286
10287with_gnu_ld=$with_gnu_ld
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303#
10304# Do we need to explicitly link libc?
10305#
10306case "x$archive_cmds_need_lc" in
10307x|xyes)
10308  # Assume -lc should be added
10309  archive_cmds_need_lc=yes
10310
10311  if test "$enable_shared" = yes && test "$GCC" = yes; then
10312    case $archive_cmds in
10313    *'~'*)
10314      # FIXME: we may have to deal with multi-command sequences.
10315      ;;
10316    '$CC '*)
10317      # Test whether the compiler implicitly links with -lc since on some
10318      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10319      # to ld, don't add -lc before -lgcc.
10320      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10321$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10322if ${lt_cv_archive_cmds_need_lc+:} false; then :
10323  $as_echo_n "(cached) " >&6
10324else
10325  $RM conftest*
10326	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10327
10328	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10329  (eval $ac_compile) 2>&5
10330  ac_status=$?
10331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332  test $ac_status = 0; } 2>conftest.err; then
10333	  soname=conftest
10334	  lib=conftest
10335	  libobjs=conftest.$ac_objext
10336	  deplibs=
10337	  wl=$lt_prog_compiler_wl
10338	  pic_flag=$lt_prog_compiler_pic
10339	  compiler_flags=-v
10340	  linker_flags=-v
10341	  verstring=
10342	  output_objdir=.
10343	  libname=conftest
10344	  lt_save_allow_undefined_flag=$allow_undefined_flag
10345	  allow_undefined_flag=
10346	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10347  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10348  ac_status=$?
10349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10350  test $ac_status = 0; }
10351	  then
10352	    lt_cv_archive_cmds_need_lc=no
10353	  else
10354	    lt_cv_archive_cmds_need_lc=yes
10355	  fi
10356	  allow_undefined_flag=$lt_save_allow_undefined_flag
10357	else
10358	  cat conftest.err 1>&5
10359	fi
10360	$RM conftest*
10361
10362fi
10363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10364$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10365      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10366      ;;
10367    esac
10368  fi
10369  ;;
10370esac
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10529$as_echo_n "checking dynamic linker characteristics... " >&6; }
10530
10531if test "$GCC" = yes; then
10532  case $host_os in
10533    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10534    *) lt_awk_arg="/^libraries:/" ;;
10535  esac
10536  case $host_os in
10537    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10538    *) lt_sed_strip_eq="s,=/,/,g" ;;
10539  esac
10540  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10541  case $lt_search_path_spec in
10542  *\;*)
10543    # if the path contains ";" then we assume it to be the separator
10544    # otherwise default to the standard path separator (i.e. ":") - it is
10545    # assumed that no part of a normal pathname contains ";" but that should
10546    # okay in the real world where ";" in dirpaths is itself problematic.
10547    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10548    ;;
10549  *)
10550    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10551    ;;
10552  esac
10553  # Ok, now we have the path, separated by spaces, we can step through it
10554  # and add multilib dir if necessary.
10555  lt_tmp_lt_search_path_spec=
10556  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10557  for lt_sys_path in $lt_search_path_spec; do
10558    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10559      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10560    else
10561      test -d "$lt_sys_path" && \
10562	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10563    fi
10564  done
10565  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10566BEGIN {RS=" "; FS="/|\n";} {
10567  lt_foo="";
10568  lt_count=0;
10569  for (lt_i = NF; lt_i > 0; lt_i--) {
10570    if ($lt_i != "" && $lt_i != ".") {
10571      if ($lt_i == "..") {
10572        lt_count++;
10573      } else {
10574        if (lt_count == 0) {
10575          lt_foo="/" $lt_i lt_foo;
10576        } else {
10577          lt_count--;
10578        }
10579      }
10580    }
10581  }
10582  if (lt_foo != "") { lt_freq[lt_foo]++; }
10583  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10584}'`
10585  # AWK program above erroneously prepends '/' to C:/dos/paths
10586  # for these hosts.
10587  case $host_os in
10588    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10589      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10590  esac
10591  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10592else
10593  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10594fi
10595library_names_spec=
10596libname_spec='lib$name'
10597soname_spec=
10598shrext_cmds=".so"
10599postinstall_cmds=
10600postuninstall_cmds=
10601finish_cmds=
10602finish_eval=
10603shlibpath_var=
10604shlibpath_overrides_runpath=unknown
10605version_type=none
10606dynamic_linker="$host_os ld.so"
10607sys_lib_dlsearch_path_spec="/lib /usr/lib"
10608need_lib_prefix=unknown
10609hardcode_into_libs=no
10610
10611# when you set need_version to no, make sure it does not cause -set_version
10612# flags to be left without arguments
10613need_version=unknown
10614
10615case $host_os in
10616aix3*)
10617  version_type=linux
10618  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10619  shlibpath_var=LIBPATH
10620
10621  # AIX 3 has no versioning support, so we append a major version to the name.
10622  soname_spec='${libname}${release}${shared_ext}$major'
10623  ;;
10624
10625aix[4-9]*)
10626  version_type=linux
10627  need_lib_prefix=no
10628  need_version=no
10629  hardcode_into_libs=yes
10630  if test "$host_cpu" = ia64; then
10631    # AIX 5 supports IA64
10632    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10633    shlibpath_var=LD_LIBRARY_PATH
10634  else
10635    # With GCC up to 2.95.x, collect2 would create an import file
10636    # for dependence libraries.  The import file would start with
10637    # the line `#! .'.  This would cause the generated library to
10638    # depend on `.', always an invalid library.  This was fixed in
10639    # development snapshots of GCC prior to 3.0.
10640    case $host_os in
10641      aix4 | aix4.[01] | aix4.[01].*)
10642      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10643	   echo ' yes '
10644	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10645	:
10646      else
10647	can_build_shared=no
10648      fi
10649      ;;
10650    esac
10651    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10652    # soname into executable. Probably we can add versioning support to
10653    # collect2, so additional links can be useful in future.
10654    if test "$aix_use_runtimelinking" = yes; then
10655      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10656      # instead of lib<name>.a to let people know that these are not
10657      # typical AIX shared libraries.
10658      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659    else
10660      # We preserve .a as extension for shared libraries through AIX4.2
10661      # and later when we are not doing run time linking.
10662      library_names_spec='${libname}${release}.a $libname.a'
10663      soname_spec='${libname}${release}${shared_ext}$major'
10664    fi
10665    shlibpath_var=LIBPATH
10666  fi
10667  ;;
10668
10669amigaos*)
10670  case $host_cpu in
10671  powerpc)
10672    # Since July 2007 AmigaOS4 officially supports .so libraries.
10673    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10674    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675    ;;
10676  m68k)
10677    library_names_spec='$libname.ixlibrary $libname.a'
10678    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10679    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'
10680    ;;
10681  esac
10682  ;;
10683
10684beos*)
10685  library_names_spec='${libname}${shared_ext}'
10686  dynamic_linker="$host_os ld.so"
10687  shlibpath_var=LIBRARY_PATH
10688  ;;
10689
10690bsdi[45]*)
10691  version_type=linux
10692  need_version=no
10693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694  soname_spec='${libname}${release}${shared_ext}$major'
10695  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10696  shlibpath_var=LD_LIBRARY_PATH
10697  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10698  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10699  # the default ld.so.conf also contains /usr/contrib/lib and
10700  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10701  # libtool to hard-code these into programs
10702  ;;
10703
10704cygwin* | mingw* | pw32* | cegcc*)
10705  version_type=windows
10706  shrext_cmds=".dll"
10707  need_version=no
10708  need_lib_prefix=no
10709
10710  case $GCC,$host_os in
10711  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10712    library_names_spec='$libname.dll.a'
10713    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10714    postinstall_cmds='base_file=`basename \${file}`~
10715      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10716      dldir=$destdir/`dirname \$dlpath`~
10717      test -d \$dldir || mkdir -p \$dldir~
10718      $install_prog $dir/$dlname \$dldir/$dlname~
10719      chmod a+x \$dldir/$dlname~
10720      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10721        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10722      fi'
10723    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10724      dlpath=$dir/\$dldll~
10725       $RM \$dlpath'
10726    shlibpath_overrides_runpath=yes
10727
10728    case $host_os in
10729    cygwin*)
10730      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10731      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10732
10733      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10734      ;;
10735    mingw* | cegcc*)
10736      # MinGW DLLs use traditional 'lib' prefix
10737      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10738      ;;
10739    pw32*)
10740      # pw32 DLLs use 'pw' prefix rather than 'lib'
10741      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10742      ;;
10743    esac
10744    ;;
10745
10746  *)
10747    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10748    ;;
10749  esac
10750  dynamic_linker='Win32 ld.exe'
10751  # FIXME: first we should search . and the directory the executable is in
10752  shlibpath_var=PATH
10753  ;;
10754
10755darwin* | rhapsody*)
10756  dynamic_linker="$host_os dyld"
10757  version_type=darwin
10758  need_lib_prefix=no
10759  need_version=no
10760  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10761  soname_spec='${libname}${release}${major}$shared_ext'
10762  shlibpath_overrides_runpath=yes
10763  shlibpath_var=DYLD_LIBRARY_PATH
10764  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10765
10766  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10767  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10768  ;;
10769
10770dgux*)
10771  version_type=linux
10772  need_lib_prefix=no
10773  need_version=no
10774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10775  soname_spec='${libname}${release}${shared_ext}$major'
10776  shlibpath_var=LD_LIBRARY_PATH
10777  ;;
10778
10779freebsd* | dragonfly*)
10780  # DragonFly does not have aout.  When/if they implement a new
10781  # versioning mechanism, adjust this.
10782  if test -x /usr/bin/objformat; then
10783    objformat=`/usr/bin/objformat`
10784  else
10785    case $host_os in
10786    freebsd[23].*) objformat=aout ;;
10787    *) objformat=elf ;;
10788    esac
10789  fi
10790  version_type=freebsd-$objformat
10791  case $version_type in
10792    freebsd-elf*)
10793      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10794      need_version=no
10795      need_lib_prefix=no
10796      ;;
10797    freebsd-*)
10798      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10799      need_version=yes
10800      ;;
10801  esac
10802  shlibpath_var=LD_LIBRARY_PATH
10803  case $host_os in
10804  freebsd2.*)
10805    shlibpath_overrides_runpath=yes
10806    ;;
10807  freebsd3.[01]* | freebsdelf3.[01]*)
10808    shlibpath_overrides_runpath=yes
10809    hardcode_into_libs=yes
10810    ;;
10811  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10812  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10813    shlibpath_overrides_runpath=no
10814    hardcode_into_libs=yes
10815    ;;
10816  *) # from 4.6 on, and DragonFly
10817    shlibpath_overrides_runpath=yes
10818    hardcode_into_libs=yes
10819    ;;
10820  esac
10821  ;;
10822
10823gnu*)
10824  version_type=linux
10825  need_lib_prefix=no
10826  need_version=no
10827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10828  soname_spec='${libname}${release}${shared_ext}$major'
10829  shlibpath_var=LD_LIBRARY_PATH
10830  hardcode_into_libs=yes
10831  ;;
10832
10833haiku*)
10834  version_type=linux
10835  need_lib_prefix=no
10836  need_version=no
10837  dynamic_linker="$host_os runtime_loader"
10838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10839  soname_spec='${libname}${release}${shared_ext}$major'
10840  shlibpath_var=LIBRARY_PATH
10841  shlibpath_overrides_runpath=yes
10842  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10843  hardcode_into_libs=yes
10844  ;;
10845
10846hpux9* | hpux10* | hpux11*)
10847  # Give a soname corresponding to the major version so that dld.sl refuses to
10848  # link against other versions.
10849  version_type=sunos
10850  need_lib_prefix=no
10851  need_version=no
10852  case $host_cpu in
10853  ia64*)
10854    shrext_cmds='.so'
10855    hardcode_into_libs=yes
10856    dynamic_linker="$host_os dld.so"
10857    shlibpath_var=LD_LIBRARY_PATH
10858    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10859    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860    soname_spec='${libname}${release}${shared_ext}$major'
10861    if test "X$HPUX_IA64_MODE" = X32; then
10862      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10863    else
10864      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10865    fi
10866    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10867    ;;
10868  hppa*64*)
10869    shrext_cmds='.sl'
10870    hardcode_into_libs=yes
10871    dynamic_linker="$host_os dld.sl"
10872    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10873    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10874    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875    soname_spec='${libname}${release}${shared_ext}$major'
10876    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10877    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10878    ;;
10879  *)
10880    shrext_cmds='.sl'
10881    dynamic_linker="$host_os dld.sl"
10882    shlibpath_var=SHLIB_PATH
10883    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10884    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885    soname_spec='${libname}${release}${shared_ext}$major'
10886    ;;
10887  esac
10888  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10889  postinstall_cmds='chmod 555 $lib'
10890  # or fails outright, so override atomically:
10891  install_override_mode=555
10892  ;;
10893
10894interix[3-9]*)
10895  version_type=linux
10896  need_lib_prefix=no
10897  need_version=no
10898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10899  soname_spec='${libname}${release}${shared_ext}$major'
10900  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10901  shlibpath_var=LD_LIBRARY_PATH
10902  shlibpath_overrides_runpath=no
10903  hardcode_into_libs=yes
10904  ;;
10905
10906irix5* | irix6* | nonstopux*)
10907  case $host_os in
10908    nonstopux*) version_type=nonstopux ;;
10909    *)
10910	if test "$lt_cv_prog_gnu_ld" = yes; then
10911		version_type=linux
10912	else
10913		version_type=irix
10914	fi ;;
10915  esac
10916  need_lib_prefix=no
10917  need_version=no
10918  soname_spec='${libname}${release}${shared_ext}$major'
10919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10920  case $host_os in
10921  irix5* | nonstopux*)
10922    libsuff= shlibsuff=
10923    ;;
10924  *)
10925    case $LD in # libtool.m4 will add one of these switches to LD
10926    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10927      libsuff= shlibsuff= libmagic=32-bit;;
10928    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10929      libsuff=32 shlibsuff=N32 libmagic=N32;;
10930    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10931      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10932    *) libsuff= shlibsuff= libmagic=never-match;;
10933    esac
10934    ;;
10935  esac
10936  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10937  shlibpath_overrides_runpath=no
10938  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10939  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10940  hardcode_into_libs=yes
10941  ;;
10942
10943# No shared lib support for Linux oldld, aout, or coff.
10944linux*oldld* | linux*aout* | linux*coff*)
10945  dynamic_linker=no
10946  ;;
10947
10948# This must be Linux ELF.
10949linux* | k*bsd*-gnu | kopensolaris*-gnu)
10950  version_type=linux
10951  need_lib_prefix=no
10952  need_version=no
10953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954  soname_spec='${libname}${release}${shared_ext}$major'
10955  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10956  shlibpath_var=LD_LIBRARY_PATH
10957  shlibpath_overrides_runpath=no
10958
10959  # Some binutils ld are patched to set DT_RUNPATH
10960  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10961  $as_echo_n "(cached) " >&6
10962else
10963  lt_cv_shlibpath_overrides_runpath=no
10964    save_LDFLAGS=$LDFLAGS
10965    save_libdir=$libdir
10966    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10967	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10968    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969/* end confdefs.h.  */
10970
10971int
10972main ()
10973{
10974
10975  ;
10976  return 0;
10977}
10978_ACEOF
10979if ac_fn_c_try_link "$LINENO"; then :
10980  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10981  lt_cv_shlibpath_overrides_runpath=yes
10982fi
10983fi
10984rm -f core conftest.err conftest.$ac_objext \
10985    conftest$ac_exeext conftest.$ac_ext
10986    LDFLAGS=$save_LDFLAGS
10987    libdir=$save_libdir
10988
10989fi
10990
10991  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10992
10993  # This implies no fast_install, which is unacceptable.
10994  # Some rework will be needed to allow for fast_install
10995  # before this can be enabled.
10996  hardcode_into_libs=yes
10997
10998  # Append ld.so.conf contents to the search path
10999  if test -f /etc/ld.so.conf; then
11000    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' ' '`
11001    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11002  fi
11003
11004  # We used to test for /lib/ld.so.1 and disable shared libraries on
11005  # powerpc, because MkLinux only supported shared libraries with the
11006  # GNU dynamic linker.  Since this was broken with cross compilers,
11007  # most powerpc-linux boxes support dynamic linking these days and
11008  # people can always --disable-shared, the test was removed, and we
11009  # assume the GNU/Linux dynamic linker is in use.
11010  dynamic_linker='GNU/Linux ld.so'
11011  ;;
11012
11013netbsd*)
11014  version_type=sunos
11015  need_lib_prefix=no
11016  need_version=no
11017  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11018    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11019    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11020    dynamic_linker='NetBSD (a.out) ld.so'
11021  else
11022    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11023    soname_spec='${libname}${release}${shared_ext}$major'
11024    dynamic_linker='NetBSD ld.elf_so'
11025  fi
11026  shlibpath_var=LD_LIBRARY_PATH
11027  shlibpath_overrides_runpath=yes
11028  hardcode_into_libs=yes
11029  ;;
11030
11031newsos6)
11032  version_type=linux
11033  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034  shlibpath_var=LD_LIBRARY_PATH
11035  shlibpath_overrides_runpath=yes
11036  ;;
11037
11038*nto* | *qnx*)
11039  version_type=qnx
11040  need_lib_prefix=no
11041  need_version=no
11042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043  soname_spec='${libname}${release}${shared_ext}$major'
11044  shlibpath_var=LD_LIBRARY_PATH
11045  shlibpath_overrides_runpath=no
11046  hardcode_into_libs=yes
11047  dynamic_linker='ldqnx.so'
11048  ;;
11049
11050openbsd*)
11051  version_type=sunos
11052  sys_lib_dlsearch_path_spec="/usr/lib"
11053  need_lib_prefix=no
11054  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11055  case $host_os in
11056    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11057    *)				need_version=no  ;;
11058  esac
11059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11060  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11061  shlibpath_var=LD_LIBRARY_PATH
11062  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11063    case $host_os in
11064      openbsd2.[89] | openbsd2.[89].*)
11065	shlibpath_overrides_runpath=no
11066	;;
11067      *)
11068	shlibpath_overrides_runpath=yes
11069	;;
11070      esac
11071  else
11072    shlibpath_overrides_runpath=yes
11073  fi
11074  ;;
11075
11076os2*)
11077  libname_spec='$name'
11078  shrext_cmds=".dll"
11079  need_lib_prefix=no
11080  library_names_spec='$libname${shared_ext} $libname.a'
11081  dynamic_linker='OS/2 ld.exe'
11082  shlibpath_var=LIBPATH
11083  ;;
11084
11085osf3* | osf4* | osf5*)
11086  version_type=osf
11087  need_lib_prefix=no
11088  need_version=no
11089  soname_spec='${libname}${release}${shared_ext}$major'
11090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091  shlibpath_var=LD_LIBRARY_PATH
11092  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11093  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11094  ;;
11095
11096rdos*)
11097  dynamic_linker=no
11098  ;;
11099
11100solaris*)
11101  version_type=linux
11102  need_lib_prefix=no
11103  need_version=no
11104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105  soname_spec='${libname}${release}${shared_ext}$major'
11106  shlibpath_var=LD_LIBRARY_PATH
11107  shlibpath_overrides_runpath=yes
11108  hardcode_into_libs=yes
11109  # ldd complains unless libraries are executable
11110  postinstall_cmds='chmod +x $lib'
11111  ;;
11112
11113sunos4*)
11114  version_type=sunos
11115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11116  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11117  shlibpath_var=LD_LIBRARY_PATH
11118  shlibpath_overrides_runpath=yes
11119  if test "$with_gnu_ld" = yes; then
11120    need_lib_prefix=no
11121  fi
11122  need_version=yes
11123  ;;
11124
11125sysv4 | sysv4.3*)
11126  version_type=linux
11127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128  soname_spec='${libname}${release}${shared_ext}$major'
11129  shlibpath_var=LD_LIBRARY_PATH
11130  case $host_vendor in
11131    sni)
11132      shlibpath_overrides_runpath=no
11133      need_lib_prefix=no
11134      runpath_var=LD_RUN_PATH
11135      ;;
11136    siemens)
11137      need_lib_prefix=no
11138      ;;
11139    motorola)
11140      need_lib_prefix=no
11141      need_version=no
11142      shlibpath_overrides_runpath=no
11143      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11144      ;;
11145  esac
11146  ;;
11147
11148sysv4*MP*)
11149  if test -d /usr/nec ;then
11150    version_type=linux
11151    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11152    soname_spec='$libname${shared_ext}.$major'
11153    shlibpath_var=LD_LIBRARY_PATH
11154  fi
11155  ;;
11156
11157sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11158  version_type=freebsd-elf
11159  need_lib_prefix=no
11160  need_version=no
11161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11162  soname_spec='${libname}${release}${shared_ext}$major'
11163  shlibpath_var=LD_LIBRARY_PATH
11164  shlibpath_overrides_runpath=yes
11165  hardcode_into_libs=yes
11166  if test "$with_gnu_ld" = yes; then
11167    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11168  else
11169    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11170    case $host_os in
11171      sco3.2v5*)
11172        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11173	;;
11174    esac
11175  fi
11176  sys_lib_dlsearch_path_spec='/usr/lib'
11177  ;;
11178
11179tpf*)
11180  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11181  version_type=linux
11182  need_lib_prefix=no
11183  need_version=no
11184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185  shlibpath_var=LD_LIBRARY_PATH
11186  shlibpath_overrides_runpath=no
11187  hardcode_into_libs=yes
11188  ;;
11189
11190uts4*)
11191  version_type=linux
11192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193  soname_spec='${libname}${release}${shared_ext}$major'
11194  shlibpath_var=LD_LIBRARY_PATH
11195  ;;
11196
11197*)
11198  dynamic_linker=no
11199  ;;
11200esac
11201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11202$as_echo "$dynamic_linker" >&6; }
11203test "$dynamic_linker" = no && can_build_shared=no
11204
11205variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11206if test "$GCC" = yes; then
11207  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11208fi
11209
11210if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11211  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11212fi
11213if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11214  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11215fi
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11309$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11310hardcode_action=
11311if test -n "$hardcode_libdir_flag_spec" ||
11312   test -n "$runpath_var" ||
11313   test "X$hardcode_automatic" = "Xyes" ; then
11314
11315  # We can hardcode non-existent directories.
11316  if test "$hardcode_direct" != no &&
11317     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11318     # have to relink, otherwise we might link with an installed library
11319     # when we should be linking with a yet-to-be-installed one
11320     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11321     test "$hardcode_minus_L" != no; then
11322    # Linking always hardcodes the temporary library directory.
11323    hardcode_action=relink
11324  else
11325    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11326    hardcode_action=immediate
11327  fi
11328else
11329  # We cannot hardcode anything, or else we can only hardcode existing
11330  # directories.
11331  hardcode_action=unsupported
11332fi
11333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11334$as_echo "$hardcode_action" >&6; }
11335
11336if test "$hardcode_action" = relink ||
11337   test "$inherit_rpath" = yes; then
11338  # Fast installation is not supported
11339  enable_fast_install=no
11340elif test "$shlibpath_overrides_runpath" = yes ||
11341     test "$enable_shared" = no; then
11342  # Fast installation is not necessary
11343  enable_fast_install=needless
11344fi
11345
11346
11347
11348
11349
11350
11351  if test "x$enable_dlopen" != xyes; then
11352  enable_dlopen=unknown
11353  enable_dlopen_self=unknown
11354  enable_dlopen_self_static=unknown
11355else
11356  lt_cv_dlopen=no
11357  lt_cv_dlopen_libs=
11358
11359  case $host_os in
11360  beos*)
11361    lt_cv_dlopen="load_add_on"
11362    lt_cv_dlopen_libs=
11363    lt_cv_dlopen_self=yes
11364    ;;
11365
11366  mingw* | pw32* | cegcc*)
11367    lt_cv_dlopen="LoadLibrary"
11368    lt_cv_dlopen_libs=
11369    ;;
11370
11371  cygwin*)
11372    lt_cv_dlopen="dlopen"
11373    lt_cv_dlopen_libs=
11374    ;;
11375
11376  darwin*)
11377  # if libdl is installed we need to link against it
11378    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11379$as_echo_n "checking for dlopen in -ldl... " >&6; }
11380if ${ac_cv_lib_dl_dlopen+:} false; then :
11381  $as_echo_n "(cached) " >&6
11382else
11383  ac_check_lib_save_LIBS=$LIBS
11384LIBS="-ldl  $LIBS"
11385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386/* end confdefs.h.  */
11387
11388/* Override any GCC internal prototype to avoid an error.
11389   Use char because int might match the return type of a GCC
11390   builtin and then its argument prototype would still apply.  */
11391#ifdef __cplusplus
11392extern "C"
11393#endif
11394char dlopen ();
11395int
11396main ()
11397{
11398return dlopen ();
11399  ;
11400  return 0;
11401}
11402_ACEOF
11403if ac_fn_c_try_link "$LINENO"; then :
11404  ac_cv_lib_dl_dlopen=yes
11405else
11406  ac_cv_lib_dl_dlopen=no
11407fi
11408rm -f core conftest.err conftest.$ac_objext \
11409    conftest$ac_exeext conftest.$ac_ext
11410LIBS=$ac_check_lib_save_LIBS
11411fi
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11413$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11414if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11415  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11416else
11417
11418    lt_cv_dlopen="dyld"
11419    lt_cv_dlopen_libs=
11420    lt_cv_dlopen_self=yes
11421
11422fi
11423
11424    ;;
11425
11426  *)
11427    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11428if test "x$ac_cv_func_shl_load" = xyes; then :
11429  lt_cv_dlopen="shl_load"
11430else
11431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11432$as_echo_n "checking for shl_load in -ldld... " >&6; }
11433if ${ac_cv_lib_dld_shl_load+:} false; then :
11434  $as_echo_n "(cached) " >&6
11435else
11436  ac_check_lib_save_LIBS=$LIBS
11437LIBS="-ldld  $LIBS"
11438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439/* end confdefs.h.  */
11440
11441/* Override any GCC internal prototype to avoid an error.
11442   Use char because int might match the return type of a GCC
11443   builtin and then its argument prototype would still apply.  */
11444#ifdef __cplusplus
11445extern "C"
11446#endif
11447char shl_load ();
11448int
11449main ()
11450{
11451return shl_load ();
11452  ;
11453  return 0;
11454}
11455_ACEOF
11456if ac_fn_c_try_link "$LINENO"; then :
11457  ac_cv_lib_dld_shl_load=yes
11458else
11459  ac_cv_lib_dld_shl_load=no
11460fi
11461rm -f core conftest.err conftest.$ac_objext \
11462    conftest$ac_exeext conftest.$ac_ext
11463LIBS=$ac_check_lib_save_LIBS
11464fi
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11466$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11467if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11468  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11469else
11470  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11471if test "x$ac_cv_func_dlopen" = xyes; then :
11472  lt_cv_dlopen="dlopen"
11473else
11474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11475$as_echo_n "checking for dlopen in -ldl... " >&6; }
11476if ${ac_cv_lib_dl_dlopen+:} false; then :
11477  $as_echo_n "(cached) " >&6
11478else
11479  ac_check_lib_save_LIBS=$LIBS
11480LIBS="-ldl  $LIBS"
11481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482/* end confdefs.h.  */
11483
11484/* Override any GCC internal prototype to avoid an error.
11485   Use char because int might match the return type of a GCC
11486   builtin and then its argument prototype would still apply.  */
11487#ifdef __cplusplus
11488extern "C"
11489#endif
11490char dlopen ();
11491int
11492main ()
11493{
11494return dlopen ();
11495  ;
11496  return 0;
11497}
11498_ACEOF
11499if ac_fn_c_try_link "$LINENO"; then :
11500  ac_cv_lib_dl_dlopen=yes
11501else
11502  ac_cv_lib_dl_dlopen=no
11503fi
11504rm -f core conftest.err conftest.$ac_objext \
11505    conftest$ac_exeext conftest.$ac_ext
11506LIBS=$ac_check_lib_save_LIBS
11507fi
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11509$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11510if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11511  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11512else
11513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11514$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11515if ${ac_cv_lib_svld_dlopen+:} false; then :
11516  $as_echo_n "(cached) " >&6
11517else
11518  ac_check_lib_save_LIBS=$LIBS
11519LIBS="-lsvld  $LIBS"
11520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521/* end confdefs.h.  */
11522
11523/* Override any GCC internal prototype to avoid an error.
11524   Use char because int might match the return type of a GCC
11525   builtin and then its argument prototype would still apply.  */
11526#ifdef __cplusplus
11527extern "C"
11528#endif
11529char dlopen ();
11530int
11531main ()
11532{
11533return dlopen ();
11534  ;
11535  return 0;
11536}
11537_ACEOF
11538if ac_fn_c_try_link "$LINENO"; then :
11539  ac_cv_lib_svld_dlopen=yes
11540else
11541  ac_cv_lib_svld_dlopen=no
11542fi
11543rm -f core conftest.err conftest.$ac_objext \
11544    conftest$ac_exeext conftest.$ac_ext
11545LIBS=$ac_check_lib_save_LIBS
11546fi
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11548$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11549if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11550  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11551else
11552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11553$as_echo_n "checking for dld_link in -ldld... " >&6; }
11554if ${ac_cv_lib_dld_dld_link+:} false; then :
11555  $as_echo_n "(cached) " >&6
11556else
11557  ac_check_lib_save_LIBS=$LIBS
11558LIBS="-ldld  $LIBS"
11559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560/* end confdefs.h.  */
11561
11562/* Override any GCC internal prototype to avoid an error.
11563   Use char because int might match the return type of a GCC
11564   builtin and then its argument prototype would still apply.  */
11565#ifdef __cplusplus
11566extern "C"
11567#endif
11568char dld_link ();
11569int
11570main ()
11571{
11572return dld_link ();
11573  ;
11574  return 0;
11575}
11576_ACEOF
11577if ac_fn_c_try_link "$LINENO"; then :
11578  ac_cv_lib_dld_dld_link=yes
11579else
11580  ac_cv_lib_dld_dld_link=no
11581fi
11582rm -f core conftest.err conftest.$ac_objext \
11583    conftest$ac_exeext conftest.$ac_ext
11584LIBS=$ac_check_lib_save_LIBS
11585fi
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11587$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11588if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11589  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11590fi
11591
11592
11593fi
11594
11595
11596fi
11597
11598
11599fi
11600
11601
11602fi
11603
11604
11605fi
11606
11607    ;;
11608  esac
11609
11610  if test "x$lt_cv_dlopen" != xno; then
11611    enable_dlopen=yes
11612  else
11613    enable_dlopen=no
11614  fi
11615
11616  case $lt_cv_dlopen in
11617  dlopen)
11618    save_CPPFLAGS="$CPPFLAGS"
11619    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11620
11621    save_LDFLAGS="$LDFLAGS"
11622    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11623
11624    save_LIBS="$LIBS"
11625    LIBS="$lt_cv_dlopen_libs $LIBS"
11626
11627    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11628$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11629if ${lt_cv_dlopen_self+:} false; then :
11630  $as_echo_n "(cached) " >&6
11631else
11632  	  if test "$cross_compiling" = yes; then :
11633  lt_cv_dlopen_self=cross
11634else
11635  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11636  lt_status=$lt_dlunknown
11637  cat > conftest.$ac_ext <<_LT_EOF
11638#line 11638 "configure"
11639#include "confdefs.h"
11640
11641#if HAVE_DLFCN_H
11642#include <dlfcn.h>
11643#endif
11644
11645#include <stdio.h>
11646
11647#ifdef RTLD_GLOBAL
11648#  define LT_DLGLOBAL		RTLD_GLOBAL
11649#else
11650#  ifdef DL_GLOBAL
11651#    define LT_DLGLOBAL		DL_GLOBAL
11652#  else
11653#    define LT_DLGLOBAL		0
11654#  endif
11655#endif
11656
11657/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11658   find out it does not work in some platform. */
11659#ifndef LT_DLLAZY_OR_NOW
11660#  ifdef RTLD_LAZY
11661#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11662#  else
11663#    ifdef DL_LAZY
11664#      define LT_DLLAZY_OR_NOW		DL_LAZY
11665#    else
11666#      ifdef RTLD_NOW
11667#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11668#      else
11669#        ifdef DL_NOW
11670#          define LT_DLLAZY_OR_NOW	DL_NOW
11671#        else
11672#          define LT_DLLAZY_OR_NOW	0
11673#        endif
11674#      endif
11675#    endif
11676#  endif
11677#endif
11678
11679/* When -fvisbility=hidden is used, assume the code has been annotated
11680   correspondingly for the symbols needed.  */
11681#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11682void fnord () __attribute__((visibility("default")));
11683#endif
11684
11685void fnord () { int i=42; }
11686int main ()
11687{
11688  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11689  int status = $lt_dlunknown;
11690
11691  if (self)
11692    {
11693      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11694      else
11695        {
11696	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11697          else puts (dlerror ());
11698	}
11699      /* dlclose (self); */
11700    }
11701  else
11702    puts (dlerror ());
11703
11704  return status;
11705}
11706_LT_EOF
11707  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11708  (eval $ac_link) 2>&5
11709  ac_status=$?
11710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11711  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11712    (./conftest; exit; ) >&5 2>/dev/null
11713    lt_status=$?
11714    case x$lt_status in
11715      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11716      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11717      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11718    esac
11719  else :
11720    # compilation failed
11721    lt_cv_dlopen_self=no
11722  fi
11723fi
11724rm -fr conftest*
11725
11726
11727fi
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11729$as_echo "$lt_cv_dlopen_self" >&6; }
11730
11731    if test "x$lt_cv_dlopen_self" = xyes; then
11732      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11733      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11734$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11735if ${lt_cv_dlopen_self_static+:} false; then :
11736  $as_echo_n "(cached) " >&6
11737else
11738  	  if test "$cross_compiling" = yes; then :
11739  lt_cv_dlopen_self_static=cross
11740else
11741  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11742  lt_status=$lt_dlunknown
11743  cat > conftest.$ac_ext <<_LT_EOF
11744#line 11744 "configure"
11745#include "confdefs.h"
11746
11747#if HAVE_DLFCN_H
11748#include <dlfcn.h>
11749#endif
11750
11751#include <stdio.h>
11752
11753#ifdef RTLD_GLOBAL
11754#  define LT_DLGLOBAL		RTLD_GLOBAL
11755#else
11756#  ifdef DL_GLOBAL
11757#    define LT_DLGLOBAL		DL_GLOBAL
11758#  else
11759#    define LT_DLGLOBAL		0
11760#  endif
11761#endif
11762
11763/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764   find out it does not work in some platform. */
11765#ifndef LT_DLLAZY_OR_NOW
11766#  ifdef RTLD_LAZY
11767#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11768#  else
11769#    ifdef DL_LAZY
11770#      define LT_DLLAZY_OR_NOW		DL_LAZY
11771#    else
11772#      ifdef RTLD_NOW
11773#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11774#      else
11775#        ifdef DL_NOW
11776#          define LT_DLLAZY_OR_NOW	DL_NOW
11777#        else
11778#          define LT_DLLAZY_OR_NOW	0
11779#        endif
11780#      endif
11781#    endif
11782#  endif
11783#endif
11784
11785/* When -fvisbility=hidden is used, assume the code has been annotated
11786   correspondingly for the symbols needed.  */
11787#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11788void fnord () __attribute__((visibility("default")));
11789#endif
11790
11791void fnord () { int i=42; }
11792int main ()
11793{
11794  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11795  int status = $lt_dlunknown;
11796
11797  if (self)
11798    {
11799      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11800      else
11801        {
11802	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11803          else puts (dlerror ());
11804	}
11805      /* dlclose (self); */
11806    }
11807  else
11808    puts (dlerror ());
11809
11810  return status;
11811}
11812_LT_EOF
11813  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11814  (eval $ac_link) 2>&5
11815  ac_status=$?
11816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11818    (./conftest; exit; ) >&5 2>/dev/null
11819    lt_status=$?
11820    case x$lt_status in
11821      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11822      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11823      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11824    esac
11825  else :
11826    # compilation failed
11827    lt_cv_dlopen_self_static=no
11828  fi
11829fi
11830rm -fr conftest*
11831
11832
11833fi
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11835$as_echo "$lt_cv_dlopen_self_static" >&6; }
11836    fi
11837
11838    CPPFLAGS="$save_CPPFLAGS"
11839    LDFLAGS="$save_LDFLAGS"
11840    LIBS="$save_LIBS"
11841    ;;
11842  esac
11843
11844  case $lt_cv_dlopen_self in
11845  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11846  *) enable_dlopen_self=unknown ;;
11847  esac
11848
11849  case $lt_cv_dlopen_self_static in
11850  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11851  *) enable_dlopen_self_static=unknown ;;
11852  esac
11853fi
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871striplib=
11872old_striplib=
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11874$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11875if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11876  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11877  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879$as_echo "yes" >&6; }
11880else
11881# FIXME - insert some real tests, host_os isn't really good enough
11882  case $host_os in
11883  darwin*)
11884    if test -n "$STRIP" ; then
11885      striplib="$STRIP -x"
11886      old_striplib="$STRIP -S"
11887      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888$as_echo "yes" >&6; }
11889    else
11890      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
11892    fi
11893    ;;
11894  *)
11895    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896$as_echo "no" >&6; }
11897    ;;
11898  esac
11899fi
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912  # Report which library types will actually be built
11913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11914$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11916$as_echo "$can_build_shared" >&6; }
11917
11918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11919$as_echo_n "checking whether to build shared libraries... " >&6; }
11920  test "$can_build_shared" = "no" && enable_shared=no
11921
11922  # On AIX, shared libraries and static libraries use the same namespace, and
11923  # are all built from PIC.
11924  case $host_os in
11925  aix3*)
11926    test "$enable_shared" = yes && enable_static=no
11927    if test -n "$RANLIB"; then
11928      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11929      postinstall_cmds='$RANLIB $lib'
11930    fi
11931    ;;
11932
11933  aix[4-9]*)
11934    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11935      test "$enable_shared" = yes && enable_static=no
11936    fi
11937    ;;
11938  esac
11939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11940$as_echo "$enable_shared" >&6; }
11941
11942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11943$as_echo_n "checking whether to build static libraries... " >&6; }
11944  # Make sure either enable_shared or enable_static is yes.
11945  test "$enable_shared" = yes || enable_static=yes
11946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11947$as_echo "$enable_static" >&6; }
11948
11949
11950
11951
11952fi
11953ac_ext=c
11954ac_cpp='$CPP $CPPFLAGS'
11955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11957ac_compiler_gnu=$ac_cv_c_compiler_gnu
11958
11959CC="$lt_save_CC"
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973        ac_config_commands="$ac_config_commands libtool"
11974
11975
11976
11977
11978# Only expand once:
11979
11980
11981
11982
11983
11984  gdc_save_DFLAGS=$GDCFLAGS
11985  GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
11986
11987
11988# Source file extension for D test sources.
11989ac_ext=d
11990
11991# Object file extension for compiled D test sources.
11992objext=o
11993objext_D=$objext
11994
11995# Code to be used in simple compile tests
11996lt_simple_compile_test_code="\
11997  module object;
11998  shared int some_variable = 0;
11999"
12000
12001# Code to be used in simple link tests
12002lt_simple_link_test_code="\
12003  module object;
12004  extern(C) int main() { return 0; }
12005"
12006
12007# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12008
12009
12010
12011
12012
12013
12014# If no C compiler was specified, use CC.
12015LTCC=${LTCC-"$CC"}
12016
12017# If no C compiler flags were specified, use CFLAGS.
12018LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12019
12020# Allow CC to be a program name with arguments.
12021compiler=$CC
12022
12023
12024# save warnings/boilerplate of simple test code
12025ac_outfile=conftest.$ac_objext
12026echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12027eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12028_lt_compiler_boilerplate=`cat conftest.err`
12029$RM conftest*
12030
12031ac_outfile=conftest.$ac_objext
12032echo "$lt_simple_link_test_code" >conftest.$ac_ext
12033eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12034_lt_linker_boilerplate=`cat conftest.err`
12035$RM -r conftest*
12036
12037
12038# Allow CC to be a program name with arguments.
12039lt_save_CC=$CC
12040lt_save_CFLAGS=$CFLAGS
12041lt_save_GCC=$GCC
12042GCC=yes
12043CC=${GDC-"gdc"}
12044CFLAGS=$GDCFLAGS
12045compiler=$CC
12046compiler_D=$CC
12047LD_D=$CC
12048for cc_temp in $compiler""; do
12049  case $cc_temp in
12050    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12051    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12052    \-*) ;;
12053    *) break;;
12054  esac
12055done
12056cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12057
12058
12059# GDC did not exist at the time GCC didn't implicitly link libc in.
12060archive_cmds_need_lc_D=no
12061
12062old_archive_cmds_D=$old_archive_cmds
12063reload_flag_D=$reload_flag
12064reload_cmds_D=$reload_cmds
12065
12066## CAVEAT EMPTOR:
12067## There is no encapsulation within the following macros, do not change
12068## the running order or otherwise move them around unless you know exactly
12069## what you are doing...
12070if test -n "$compiler"; then
12071
12072lt_prog_compiler_no_builtin_flag_D=
12073
12074if test "$GCC" = yes; then
12075  case $cc_basename in
12076  nvcc*)
12077    lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12078  *)
12079    lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12080  esac
12081
12082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12083$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12084if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12085  $as_echo_n "(cached) " >&6
12086else
12087  lt_cv_prog_compiler_rtti_exceptions=no
12088   ac_outfile=conftest.$ac_objext
12089   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12090   lt_compiler_flag="-fno-rtti -fno-exceptions"
12091   # Insert the option either (1) after the last *FLAGS variable, or
12092   # (2) before a word containing "conftest.", or (3) at the end.
12093   # Note that $ac_compile itself does not contain backslashes and begins
12094   # with a dollar sign (not a hyphen), so the echo should work correctly.
12095   # The option is referenced via a variable to avoid confusing sed.
12096   lt_compile=`echo "$ac_compile" | $SED \
12097   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12098   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12099   -e 's:$: $lt_compiler_flag:'`
12100   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12101   (eval "$lt_compile" 2>conftest.err)
12102   ac_status=$?
12103   cat conftest.err >&5
12104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105   if (exit $ac_status) && test -s "$ac_outfile"; then
12106     # The compiler can only warn and ignore the option if not recognized
12107     # So say no if there are warnings other than the usual output.
12108     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12109     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12110     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12111       lt_cv_prog_compiler_rtti_exceptions=yes
12112     fi
12113   fi
12114   $RM conftest*
12115
12116fi
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12118$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12119
12120if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12121    lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12122else
12123    :
12124fi
12125
12126fi
12127
12128
12129
12130  lt_prog_compiler_wl_D=
12131lt_prog_compiler_pic_D=
12132lt_prog_compiler_static_D=
12133
12134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12135$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12136
12137  if test "$GCC" = yes; then
12138    lt_prog_compiler_wl_D='-Wl,'
12139    lt_prog_compiler_static_D='-static'
12140
12141    case $host_os in
12142      aix*)
12143      # All AIX code is PIC.
12144      if test "$host_cpu" = ia64; then
12145	# AIX 5 now supports IA64 processor
12146	lt_prog_compiler_static_D='-Bstatic'
12147      fi
12148      lt_prog_compiler_pic_D='-fPIC'
12149      ;;
12150
12151    amigaos*)
12152      case $host_cpu in
12153      powerpc)
12154            # see comment about AmigaOS4 .so support
12155            lt_prog_compiler_pic_D='-fPIC'
12156        ;;
12157      m68k)
12158            # FIXME: we need at least 68020 code to build shared libraries, but
12159            # adding the `-m68020' flag to GCC prevents building anything better,
12160            # like `-m68040'.
12161            lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12162        ;;
12163      esac
12164      ;;
12165
12166    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12167      # PIC is the default for these OSes.
12168      ;;
12169
12170    mingw* | cygwin* | pw32* | os2* | cegcc*)
12171      # This hack is so that the source file can tell whether it is being
12172      # built for inclusion in a dll (and should export symbols for example).
12173      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12174      # (--disable-auto-import) libraries
12175      lt_prog_compiler_pic_D='-DDLL_EXPORT'
12176      ;;
12177
12178    darwin* | rhapsody*)
12179      # PIC is the default on this platform
12180      # Common symbols not allowed in MH_DYLIB files
12181      lt_prog_compiler_pic_D='-fno-common'
12182      ;;
12183
12184    haiku*)
12185      # PIC is the default for Haiku.
12186      # The "-static" flag exists, but is broken.
12187      lt_prog_compiler_static_D=
12188      ;;
12189
12190    hpux*)
12191      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12192      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12193      # sets the default TLS model and affects inlining.
12194      case $host_cpu in
12195      hppa*64*)
12196	# +Z the default
12197	;;
12198      *)
12199	lt_prog_compiler_pic_D='-fPIC'
12200	;;
12201      esac
12202      ;;
12203
12204    interix[3-9]*)
12205      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12206      # Instead, we relocate shared libraries at runtime.
12207      ;;
12208
12209    msdosdjgpp*)
12210      # Just because we use GCC doesn't mean we suddenly get shared libraries
12211      # on systems that don't support them.
12212      lt_prog_compiler_can_build_shared_D=no
12213      enable_shared=no
12214      ;;
12215
12216    *nto* | *qnx*)
12217      # QNX uses GNU C++, but need to define -shared option too, otherwise
12218      # it will coredump.
12219      lt_prog_compiler_pic_D='-fPIC -shared'
12220      ;;
12221
12222    sysv4*MP*)
12223      if test -d /usr/nec; then
12224	lt_prog_compiler_pic_D=-Kconform_pic
12225      fi
12226      ;;
12227
12228    *)
12229      lt_prog_compiler_pic_D='-fPIC'
12230      ;;
12231    esac
12232
12233    case $cc_basename in
12234    nvcc*) # Cuda Compiler Driver 2.2
12235      lt_prog_compiler_wl_D='-Xlinker '
12236      lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12237      ;;
12238    esac
12239  else
12240    # PORTME Check for flag to pass linker flags through the system compiler.
12241    case $host_os in
12242    aix*)
12243      lt_prog_compiler_wl_D='-Wl,'
12244      if test "$host_cpu" = ia64; then
12245	# AIX 5 now supports IA64 processor
12246	lt_prog_compiler_static_D='-Bstatic'
12247      else
12248	lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12249      fi
12250      ;;
12251
12252    mingw* | cygwin* | pw32* | os2* | cegcc*)
12253      # This hack is so that the source file can tell whether it is being
12254      # built for inclusion in a dll (and should export symbols for example).
12255      lt_prog_compiler_pic_D='-DDLL_EXPORT'
12256      ;;
12257
12258    hpux9* | hpux10* | hpux11*)
12259      lt_prog_compiler_wl_D='-Wl,'
12260      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12261      # not for PA HP-UX.
12262      case $host_cpu in
12263      hppa*64*|ia64*)
12264	# +Z the default
12265	;;
12266      *)
12267	lt_prog_compiler_pic_D='+Z'
12268	;;
12269      esac
12270      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12271      lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12272      ;;
12273
12274    irix5* | irix6* | nonstopux*)
12275      lt_prog_compiler_wl_D='-Wl,'
12276      # PIC (with -KPIC) is the default.
12277      lt_prog_compiler_static_D='-non_shared'
12278      ;;
12279
12280    linux* | k*bsd*-gnu | kopensolaris*-gnu)
12281      case $cc_basename in
12282      # old Intel for x86_64 which still supported -KPIC.
12283      ecc*)
12284	lt_prog_compiler_wl_D='-Wl,'
12285	lt_prog_compiler_pic_D='-KPIC'
12286	lt_prog_compiler_static_D='-static'
12287        ;;
12288      # icc used to be incompatible with GCC.
12289      # ICC 10 doesn't accept -KPIC any more.
12290      icc* | ifort*)
12291	lt_prog_compiler_wl_D='-Wl,'
12292	lt_prog_compiler_pic_D='-fPIC'
12293	lt_prog_compiler_static_D='-static'
12294        ;;
12295      # Lahey Fortran 8.1.
12296      lf95*)
12297	lt_prog_compiler_wl_D='-Wl,'
12298	lt_prog_compiler_pic_D='--shared'
12299	lt_prog_compiler_static_D='--static'
12300	;;
12301      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12302        # Portland Group compilers (*not* the Pentium gcc compiler,
12303	# which looks to be a dead project)
12304	lt_prog_compiler_wl_D='-Wl,'
12305	lt_prog_compiler_pic_D='-fpic'
12306	lt_prog_compiler_static_D='-Bstatic'
12307        ;;
12308      ccc*)
12309        lt_prog_compiler_wl_D='-Wl,'
12310        # All Alpha code is PIC.
12311        lt_prog_compiler_static_D='-non_shared'
12312        ;;
12313      xl* | bgxl* | bgf* | mpixl*)
12314	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12315	lt_prog_compiler_wl_D='-Wl,'
12316	lt_prog_compiler_pic_D='-qpic'
12317	lt_prog_compiler_static_D='-qstaticlink'
12318	;;
12319      *)
12320	case `$CC -V 2>&1 | sed 5q` in
12321	*Sun\ F* | *Sun*Fortran*)
12322	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12323	  lt_prog_compiler_pic_D='-KPIC'
12324	  lt_prog_compiler_static_D='-Bstatic'
12325	  lt_prog_compiler_wl_D=''
12326	  ;;
12327	*Sun\ C*)
12328	  # Sun C 5.9
12329	  lt_prog_compiler_pic_D='-KPIC'
12330	  lt_prog_compiler_static_D='-Bstatic'
12331	  lt_prog_compiler_wl_D='-Wl,'
12332	  ;;
12333	esac
12334	;;
12335      esac
12336      ;;
12337
12338    newsos6)
12339      lt_prog_compiler_pic_D='-KPIC'
12340      lt_prog_compiler_static_D='-Bstatic'
12341      ;;
12342
12343    *nto* | *qnx*)
12344      # QNX uses GNU C++, but need to define -shared option too, otherwise
12345      # it will coredump.
12346      lt_prog_compiler_pic_D='-fPIC -shared'
12347      ;;
12348
12349    osf3* | osf4* | osf5*)
12350      lt_prog_compiler_wl_D='-Wl,'
12351      # All OSF/1 code is PIC.
12352      lt_prog_compiler_static_D='-non_shared'
12353      ;;
12354
12355    rdos*)
12356      lt_prog_compiler_static_D='-non_shared'
12357      ;;
12358
12359    solaris*)
12360      lt_prog_compiler_pic_D='-KPIC'
12361      lt_prog_compiler_static_D='-Bstatic'
12362      case $cc_basename in
12363      f77* | f90* | f95*)
12364	lt_prog_compiler_wl_D='-Qoption ld ';;
12365      *)
12366	lt_prog_compiler_wl_D='-Wl,';;
12367      esac
12368      ;;
12369
12370    sunos4*)
12371      lt_prog_compiler_wl_D='-Qoption ld '
12372      lt_prog_compiler_pic_D='-PIC'
12373      lt_prog_compiler_static_D='-Bstatic'
12374      ;;
12375
12376    sysv4 | sysv4.2uw2* | sysv4.3*)
12377      lt_prog_compiler_wl_D='-Wl,'
12378      lt_prog_compiler_pic_D='-KPIC'
12379      lt_prog_compiler_static_D='-Bstatic'
12380      ;;
12381
12382    sysv4*MP*)
12383      if test -d /usr/nec ;then
12384	lt_prog_compiler_pic_D='-Kconform_pic'
12385	lt_prog_compiler_static_D='-Bstatic'
12386      fi
12387      ;;
12388
12389    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12390      lt_prog_compiler_wl_D='-Wl,'
12391      lt_prog_compiler_pic_D='-KPIC'
12392      lt_prog_compiler_static_D='-Bstatic'
12393      ;;
12394
12395    unicos*)
12396      lt_prog_compiler_wl_D='-Wl,'
12397      lt_prog_compiler_can_build_shared_D=no
12398      ;;
12399
12400    uts4*)
12401      lt_prog_compiler_pic_D='-pic'
12402      lt_prog_compiler_static_D='-Bstatic'
12403      ;;
12404
12405    *)
12406      lt_prog_compiler_can_build_shared_D=no
12407      ;;
12408    esac
12409  fi
12410
12411case $host_os in
12412  # For platforms which do not support PIC, -DPIC is meaningless:
12413  *djgpp*)
12414    lt_prog_compiler_pic_D=
12415    ;;
12416  *)
12417    lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12418    ;;
12419esac
12420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12421$as_echo "$lt_prog_compiler_pic_D" >&6; }
12422
12423
12424
12425#
12426# Check to make sure the PIC flag actually works.
12427#
12428if test -n "$lt_prog_compiler_pic_D"; then
12429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12430$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12431if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12432  $as_echo_n "(cached) " >&6
12433else
12434  lt_cv_prog_compiler_pic_works_D=no
12435   ac_outfile=conftest.$ac_objext
12436   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12437   lt_compiler_flag="$lt_prog_compiler_pic_D"
12438   # Insert the option either (1) after the last *FLAGS variable, or
12439   # (2) before a word containing "conftest.", or (3) at the end.
12440   # Note that $ac_compile itself does not contain backslashes and begins
12441   # with a dollar sign (not a hyphen), so the echo should work correctly.
12442   # The option is referenced via a variable to avoid confusing sed.
12443   lt_compile=`echo "$ac_compile" | $SED \
12444   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12445   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12446   -e 's:$: $lt_compiler_flag:'`
12447   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12448   (eval "$lt_compile" 2>conftest.err)
12449   ac_status=$?
12450   cat conftest.err >&5
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   if (exit $ac_status) && test -s "$ac_outfile"; then
12453     # The compiler can only warn and ignore the option if not recognized
12454     # So say no if there are warnings other than the usual output.
12455     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12456     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12457     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12458       lt_cv_prog_compiler_pic_works_D=yes
12459     fi
12460   fi
12461   $RM conftest*
12462
12463fi
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12465$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12466
12467if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12468    case $lt_prog_compiler_pic_D in
12469     "" | " "*) ;;
12470     *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12471     esac
12472else
12473    lt_prog_compiler_pic_D=
12474     lt_prog_compiler_can_build_shared_D=no
12475fi
12476
12477fi
12478
12479
12480
12481#
12482# Check to make sure the static flag actually works.
12483#
12484wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12486$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12487if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12488  $as_echo_n "(cached) " >&6
12489else
12490  lt_cv_prog_compiler_static_works_D=no
12491   save_LDFLAGS="$LDFLAGS"
12492   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12493   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12494   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12495     # The linker can only warn and ignore the option if not recognized
12496     # So say no if there are warnings
12497     if test -s conftest.err; then
12498       # Append any errors to the config.log.
12499       cat conftest.err 1>&5
12500       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12501       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12502       if diff conftest.exp conftest.er2 >/dev/null; then
12503         lt_cv_prog_compiler_static_works_D=yes
12504       fi
12505     else
12506       lt_cv_prog_compiler_static_works_D=yes
12507     fi
12508   fi
12509   $RM -r conftest*
12510   LDFLAGS="$save_LDFLAGS"
12511
12512fi
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12514$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12515
12516if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12517    :
12518else
12519    lt_prog_compiler_static_D=
12520fi
12521
12522
12523
12524
12525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12526$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12527if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12528  $as_echo_n "(cached) " >&6
12529else
12530  lt_cv_prog_compiler_c_o_D=no
12531   $RM -r conftest 2>/dev/null
12532   mkdir conftest
12533   cd conftest
12534   mkdir out
12535   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12536
12537   lt_compiler_flag="-o out/conftest2.$ac_objext"
12538   # Insert the option either (1) after the last *FLAGS variable, or
12539   # (2) before a word containing "conftest.", or (3) at the end.
12540   # Note that $ac_compile itself does not contain backslashes and begins
12541   # with a dollar sign (not a hyphen), so the echo should work correctly.
12542   lt_compile=`echo "$ac_compile" | $SED \
12543   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12544   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12545   -e 's:$: $lt_compiler_flag:'`
12546   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12547   (eval "$lt_compile" 2>out/conftest.err)
12548   ac_status=$?
12549   cat out/conftest.err >&5
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12552   then
12553     # The compiler can only warn and ignore the option if not recognized
12554     # So say no if there are warnings
12555     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12556     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12557     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12558       lt_cv_prog_compiler_c_o_D=yes
12559     fi
12560   fi
12561   chmod u+w . 2>&5
12562   $RM conftest*
12563   # SGI C++ compiler will create directory out/ii_files/ for
12564   # template instantiation
12565   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12566   $RM out/* && rmdir out
12567   cd ..
12568   $RM -r conftest
12569   $RM conftest*
12570
12571fi
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12573$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12574
12575
12576
12577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12578$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12579if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12580  $as_echo_n "(cached) " >&6
12581else
12582  lt_cv_prog_compiler_c_o_D=no
12583   $RM -r conftest 2>/dev/null
12584   mkdir conftest
12585   cd conftest
12586   mkdir out
12587   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12588
12589   lt_compiler_flag="-o out/conftest2.$ac_objext"
12590   # Insert the option either (1) after the last *FLAGS variable, or
12591   # (2) before a word containing "conftest.", or (3) at the end.
12592   # Note that $ac_compile itself does not contain backslashes and begins
12593   # with a dollar sign (not a hyphen), so the echo should work correctly.
12594   lt_compile=`echo "$ac_compile" | $SED \
12595   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12596   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12597   -e 's:$: $lt_compiler_flag:'`
12598   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12599   (eval "$lt_compile" 2>out/conftest.err)
12600   ac_status=$?
12601   cat out/conftest.err >&5
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12604   then
12605     # The compiler can only warn and ignore the option if not recognized
12606     # So say no if there are warnings
12607     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12608     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12609     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12610       lt_cv_prog_compiler_c_o_D=yes
12611     fi
12612   fi
12613   chmod u+w . 2>&5
12614   $RM conftest*
12615   # SGI C++ compiler will create directory out/ii_files/ for
12616   # template instantiation
12617   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12618   $RM out/* && rmdir out
12619   cd ..
12620   $RM -r conftest
12621   $RM conftest*
12622
12623fi
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12625$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12626
12627
12628
12629
12630hard_links="nottested"
12631if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12632  # do not overwrite the value of need_locks provided by the user
12633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12634$as_echo_n "checking if we can lock with hard links... " >&6; }
12635  hard_links=yes
12636  $RM conftest*
12637  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12638  touch conftest.a
12639  ln conftest.a conftest.b 2>&5 || hard_links=no
12640  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12642$as_echo "$hard_links" >&6; }
12643  if test "$hard_links" = no; then
12644    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12645$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12646    need_locks=warn
12647  fi
12648else
12649  need_locks=no
12650fi
12651
12652
12653
12654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12655$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12656
12657  runpath_var=
12658  allow_undefined_flag_D=
12659  always_export_symbols_D=no
12660  archive_cmds_D=
12661  archive_expsym_cmds_D=
12662  compiler_needs_object_D=no
12663  enable_shared_with_static_runtimes_D=no
12664  export_dynamic_flag_spec_D=
12665  export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12666  hardcode_automatic_D=no
12667  hardcode_direct_D=no
12668  hardcode_direct_absolute_D=no
12669  hardcode_libdir_flag_spec_D=
12670  hardcode_libdir_flag_spec_ld_D=
12671  hardcode_libdir_separator_D=
12672  hardcode_minus_L_D=no
12673  hardcode_shlibpath_var_D=unsupported
12674  inherit_rpath_D=no
12675  link_all_deplibs_D=unknown
12676  module_cmds_D=
12677  module_expsym_cmds_D=
12678  old_archive_from_new_cmds_D=
12679  old_archive_from_expsyms_cmds_D=
12680  thread_safe_flag_spec_D=
12681  whole_archive_flag_spec_D=
12682  # include_expsyms should be a list of space-separated symbols to be *always*
12683  # included in the symbol list
12684  include_expsyms_D=
12685  # exclude_expsyms can be an extended regexp of symbols to exclude
12686  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12687  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12688  # as well as any symbol that contains `d'.
12689  exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12690  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12691  # platforms (ab)use it in PIC code, but their linkers get confused if
12692  # the symbol is explicitly referenced.  Since portable code cannot
12693  # rely on this symbol name, it's probably fine to never include it in
12694  # preloaded symbol tables.
12695  # Exclude shared library initialization/finalization symbols.
12696  extract_expsyms_cmds=
12697
12698  case $host_os in
12699  cygwin* | mingw* | pw32* | cegcc*)
12700    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12701    # When not using gcc, we currently assume that we are using
12702    # Microsoft Visual C++.
12703    if test "$GCC" != yes; then
12704      with_gnu_ld=no
12705    fi
12706    ;;
12707  interix*)
12708    # we just hope/assume this is gcc and not c89 (= MSVC++)
12709    with_gnu_ld=yes
12710    ;;
12711  openbsd*)
12712    with_gnu_ld=no
12713    ;;
12714  esac
12715
12716  ld_shlibs_D=yes
12717
12718  # On some targets, GNU ld is compatible enough with the native linker
12719  # that we're better off using the native interface for both.
12720  lt_use_gnu_ld_interface=no
12721  if test "$with_gnu_ld" = yes; then
12722    case $host_os in
12723      aix*)
12724	# The AIX port of GNU ld has always aspired to compatibility
12725	# with the native linker.  However, as the warning in the GNU ld
12726	# block says, versions before 2.19.5* couldn't really create working
12727	# shared libraries, regardless of the interface used.
12728	case `$LD -v 2>&1` in
12729	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12730	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12731	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12732	  *)
12733	    lt_use_gnu_ld_interface=yes
12734	    ;;
12735	esac
12736	;;
12737      *)
12738	lt_use_gnu_ld_interface=yes
12739	;;
12740    esac
12741  fi
12742
12743  if test "$lt_use_gnu_ld_interface" = yes; then
12744    # If archive_cmds runs LD, not CC, wlarc should be empty
12745    wlarc='${wl}'
12746
12747    # Set some defaults for GNU ld with shared library support. These
12748    # are reset later if shared libraries are not supported. Putting them
12749    # here allows them to be overridden if necessary.
12750    runpath_var=LD_RUN_PATH
12751    hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12752    export_dynamic_flag_spec_D='${wl}--export-dynamic'
12753    # ancient GNU ld didn't support --whole-archive et. al.
12754    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12755      whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12756    else
12757      whole_archive_flag_spec_D=
12758    fi
12759    supports_anon_versioning=no
12760    case `$LD -v 2>&1` in
12761      *GNU\ gold*) supports_anon_versioning=yes ;;
12762      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12763      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12764      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12765      *\ 2.11.*) ;; # other 2.11 versions
12766      *) supports_anon_versioning=yes ;;
12767    esac
12768
12769    # See if GNU ld supports shared libraries.
12770    case $host_os in
12771    aix[3-9]*)
12772      # On AIX/PPC, the GNU linker is very broken
12773      if test "$host_cpu" != ia64; then
12774	ld_shlibs_D=no
12775	cat <<_LT_EOF 1>&2
12776
12777*** Warning: the GNU linker, at least up to release 2.19, is reported
12778*** to be unable to reliably create shared libraries on AIX.
12779*** Therefore, libtool is disabling shared libraries support.  If you
12780*** really care for shared libraries, you may want to install binutils
12781*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12782*** You will then need to restart the configuration process.
12783
12784_LT_EOF
12785      fi
12786      ;;
12787
12788    amigaos*)
12789      case $host_cpu in
12790      powerpc)
12791            # see comment about AmigaOS4 .so support
12792            archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12793            archive_expsym_cmds_D=''
12794        ;;
12795      m68k)
12796            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)'
12797            hardcode_libdir_flag_spec_D='-L$libdir'
12798            hardcode_minus_L_D=yes
12799        ;;
12800      esac
12801      ;;
12802
12803    beos*)
12804      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12805	allow_undefined_flag_D=unsupported
12806	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12807	# support --undefined.  This deserves some investigation.  FIXME
12808	archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12809      else
12810	ld_shlibs_D=no
12811      fi
12812      ;;
12813
12814    cygwin* | mingw* | pw32* | cegcc*)
12815      # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12816      # as there is no search path for DLLs.
12817      hardcode_libdir_flag_spec_D='-L$libdir'
12818      export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12819      allow_undefined_flag_D=unsupported
12820      always_export_symbols_D=no
12821      enable_shared_with_static_runtimes_D=yes
12822      export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12823
12824      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12825        archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12826	# If the export-symbols file already is a .def file (1st line
12827	# is EXPORTS), use it as is; otherwise, prepend...
12828	archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12829	  cp $export_symbols $output_objdir/$soname.def;
12830	else
12831	  echo EXPORTS > $output_objdir/$soname.def;
12832	  cat $export_symbols >> $output_objdir/$soname.def;
12833	fi~
12834	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12835      else
12836	ld_shlibs_D=no
12837      fi
12838      ;;
12839
12840    haiku*)
12841      archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12842      link_all_deplibs_D=yes
12843      ;;
12844
12845    interix[3-9]*)
12846      hardcode_direct_D=no
12847      hardcode_shlibpath_var_D=no
12848      hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12849      export_dynamic_flag_spec_D='${wl}-E'
12850      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12851      # Instead, shared libraries are loaded at an image base (0x10000000 by
12852      # default) and relocated if they conflict, which is a slow very memory
12853      # consuming and fragmenting process.  To avoid this, we pick a random,
12854      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12855      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12856      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'
12857      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'
12858      ;;
12859
12860    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12861      tmp_diet=no
12862      if test "$host_os" = linux-dietlibc; then
12863	case $cc_basename in
12864	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12865	esac
12866      fi
12867      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12868	 && test "$tmp_diet" = no
12869      then
12870	tmp_addflag=' $pic_flag'
12871	tmp_sharedflag='-shared'
12872	case $cc_basename,$host_cpu in
12873        pgcc*)				# Portland Group C compiler
12874	  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'
12875	  tmp_addflag=' $pic_flag'
12876	  ;;
12877	pgf77* | pgf90* | pgf95* | pgfortran*)
12878					# Portland Group f77 and f90 compilers
12879	  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'
12880	  tmp_addflag=' $pic_flag -Mnomain' ;;
12881	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12882	  tmp_addflag=' -i_dynamic' ;;
12883	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12884	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12885	ifc* | ifort*)			# Intel Fortran compiler
12886	  tmp_addflag=' -nofor_main' ;;
12887	lf95*)				# Lahey Fortran 8.1
12888	  whole_archive_flag_spec_D=
12889	  tmp_sharedflag='--shared' ;;
12890	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12891	  tmp_sharedflag='-qmkshrobj'
12892	  tmp_addflag= ;;
12893	nvcc*)	# Cuda Compiler Driver 2.2
12894	  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'
12895	  compiler_needs_object_D=yes
12896	  ;;
12897	esac
12898	case `$CC -V 2>&1 | sed 5q` in
12899	*Sun\ C*)			# Sun C 5.9
12900	  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'
12901	  compiler_needs_object_D=yes
12902	  tmp_sharedflag='-G' ;;
12903	*Sun\ F*)			# Sun Fortran 8.3
12904	  tmp_sharedflag='-G' ;;
12905	esac
12906	archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12907
12908        if test "x$supports_anon_versioning" = xyes; then
12909          archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12910	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12911	    echo "local: *; };" >> $output_objdir/$libname.ver~
12912	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12913        fi
12914
12915	case $cc_basename in
12916	xlf* | bgf* | bgxlf* | mpixlf*)
12917	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12918	  whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12919	  hardcode_libdir_flag_spec_D=
12920	  hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12921	  archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12922	  if test "x$supports_anon_versioning" = xyes; then
12923	    archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12924	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12925	      echo "local: *; };" >> $output_objdir/$libname.ver~
12926	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12927	  fi
12928	  ;;
12929	esac
12930      else
12931        ld_shlibs_D=no
12932      fi
12933      ;;
12934
12935    netbsd*)
12936      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12937	archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12938	wlarc=
12939      else
12940	archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12941	archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12942      fi
12943      ;;
12944
12945    solaris*)
12946      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12947	ld_shlibs_D=no
12948	cat <<_LT_EOF 1>&2
12949
12950*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12951*** create shared libraries on Solaris systems.  Therefore, libtool
12952*** is disabling shared libraries support.  We urge you to upgrade GNU
12953*** binutils to release 2.9.1 or newer.  Another option is to modify
12954*** your PATH or compiler configuration so that the native linker is
12955*** used, and then restart.
12956
12957_LT_EOF
12958      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12959	archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12960	archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12961      else
12962	ld_shlibs_D=no
12963      fi
12964      ;;
12965
12966    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12967      case `$LD -v 2>&1` in
12968        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12969	ld_shlibs_D=no
12970	cat <<_LT_EOF 1>&2
12971
12972*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12973*** reliably create shared libraries on SCO systems.  Therefore, libtool
12974*** is disabling shared libraries support.  We urge you to upgrade GNU
12975*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12976*** your PATH or compiler configuration so that the native linker is
12977*** used, and then restart.
12978
12979_LT_EOF
12980	;;
12981	*)
12982	  # For security reasons, it is highly recommended that you always
12983	  # use absolute paths for naming shared libraries, and exclude the
12984	  # DT_RUNPATH tag from executables and libraries.  But doing so
12985	  # requires that you compile everything twice, which is a pain.
12986	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12987	    hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12988	    archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12989	    archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12990	  else
12991	    ld_shlibs_D=no
12992	  fi
12993	;;
12994      esac
12995      ;;
12996
12997    sunos4*)
12998      archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12999      wlarc=
13000      hardcode_direct_D=yes
13001      hardcode_shlibpath_var_D=no
13002      ;;
13003
13004    *)
13005      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13006	archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13007	archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13008      else
13009	ld_shlibs_D=no
13010      fi
13011      ;;
13012    esac
13013
13014    if test "$ld_shlibs_D" = no; then
13015      runpath_var=
13016      hardcode_libdir_flag_spec_D=
13017      export_dynamic_flag_spec_D=
13018      whole_archive_flag_spec_D=
13019    fi
13020  else
13021    # PORTME fill in a description of your system's linker (not GNU ld)
13022    case $host_os in
13023    aix3*)
13024      allow_undefined_flag_D=unsupported
13025      always_export_symbols_D=yes
13026      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'
13027      # Note: this linker hardcodes the directories in LIBPATH if there
13028      # are no directories specified by -L.
13029      hardcode_minus_L_D=yes
13030      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13031	# Neither direct hardcoding nor static linking is supported with a
13032	# broken collect2.
13033	hardcode_direct_D=unsupported
13034      fi
13035      ;;
13036
13037    aix[4-9]*)
13038      if test "$host_cpu" = ia64; then
13039	# On IA64, the linker does run time linking by default, so we don't
13040	# have to do anything special.
13041	aix_use_runtimelinking=no
13042	exp_sym_flag='-Bexport'
13043	no_entry_flag=""
13044      else
13045	# If we're using GNU nm, then we don't want the "-C" option.
13046	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13047	# Also, AIX nm treats weak defined symbols like other global
13048	# defined symbols, whereas GNU nm marks them as "W".
13049	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13050	  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'
13051	else
13052	  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'
13053	fi
13054	aix_use_runtimelinking=no
13055
13056	# Test if we are trying to use run time linking or normal
13057	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13058	# need to do runtime linking.
13059	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13060	  for ld_flag in $LDFLAGS; do
13061	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13062	    aix_use_runtimelinking=yes
13063	    break
13064	  fi
13065	  done
13066	  ;;
13067	esac
13068
13069	exp_sym_flag='-bexport'
13070	no_entry_flag='-bnoentry'
13071      fi
13072
13073      # When large executables or shared objects are built, AIX ld can
13074      # have problems creating the table of contents.  If linking a library
13075      # or program results in "error TOC overflow" add -mminimal-toc to
13076      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13077      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13078
13079      archive_cmds_D=''
13080      hardcode_direct_D=yes
13081      hardcode_direct_absolute_D=yes
13082      hardcode_libdir_separator_D=':'
13083      link_all_deplibs_D=yes
13084      file_list_spec_D='${wl}-f,'
13085
13086      if test "$GCC" = yes; then
13087	case $host_os in aix4.[012]|aix4.[012].*)
13088	# We only want to do this on AIX 4.2 and lower, the check
13089	# below for broken collect2 doesn't work under 4.3+
13090	  collect2name=`${CC} -print-prog-name=collect2`
13091	  if test -f "$collect2name" &&
13092	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13093	  then
13094	  # We have reworked collect2
13095	  :
13096	  else
13097	  # We have old collect2
13098	  hardcode_direct_D=unsupported
13099	  # It fails to find uninstalled libraries when the uninstalled
13100	  # path is not listed in the libpath.  Setting hardcode_minus_L
13101	  # to unsupported forces relinking
13102	  hardcode_minus_L_D=yes
13103	  hardcode_libdir_flag_spec_D='-L$libdir'
13104	  hardcode_libdir_separator_D=
13105	  fi
13106	  ;;
13107	esac
13108	shared_flag='-shared'
13109	if test "$aix_use_runtimelinking" = yes; then
13110	  shared_flag="$shared_flag "'${wl}-G'
13111	fi
13112      else
13113	# not using gcc
13114	if test "$host_cpu" = ia64; then
13115	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13116	# chokes on -Wl,-G. The following line is correct:
13117	  shared_flag='-G'
13118	else
13119	  if test "$aix_use_runtimelinking" = yes; then
13120	    shared_flag='${wl}-G'
13121	  else
13122	    shared_flag='${wl}-bM:SRE'
13123	  fi
13124	fi
13125      fi
13126
13127      export_dynamic_flag_spec_D='${wl}-bexpall'
13128      # It seems that -bexpall does not export symbols beginning with
13129      # underscore (_), so it is better to generate a list of symbols to export.
13130      always_export_symbols_D=yes
13131      if test "$aix_use_runtimelinking" = yes; then
13132	# Warning - without using the other runtime loading flags (-brtl),
13133	# -berok will link without error, but may produce a broken library.
13134	allow_undefined_flag_D='-berok'
13135        # Determine the default libpath from the value encoded in an
13136        # empty executable.
13137        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138/* end confdefs.h.  */
13139
13140int
13141main ()
13142{
13143
13144  ;
13145  return 0;
13146}
13147_ACEOF
13148if ac_fn_c_try_link "$LINENO"; then :
13149
13150lt_aix_libpath_sed='
13151    /Import File Strings/,/^$/ {
13152	/^0/ {
13153	    s/^0  *\(.*\)$/\1/
13154	    p
13155	}
13156    }'
13157aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13158# Check for a 64-bit object if we didn't find anything.
13159if test -z "$aix_libpath"; then
13160  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13161fi
13162fi
13163rm -f core conftest.err conftest.$ac_objext \
13164    conftest$ac_exeext conftest.$ac_ext
13165if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13166
13167        hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13168        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"
13169      else
13170	if test "$host_cpu" = ia64; then
13171	  hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13172	  allow_undefined_flag_D="-z nodefs"
13173	  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"
13174	else
13175	 # Determine the default libpath from the value encoded in an
13176	 # empty executable.
13177	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178/* end confdefs.h.  */
13179
13180int
13181main ()
13182{
13183
13184  ;
13185  return 0;
13186}
13187_ACEOF
13188if ac_fn_c_try_link "$LINENO"; then :
13189
13190lt_aix_libpath_sed='
13191    /Import File Strings/,/^$/ {
13192	/^0/ {
13193	    s/^0  *\(.*\)$/\1/
13194	    p
13195	}
13196    }'
13197aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13198# Check for a 64-bit object if we didn't find anything.
13199if test -z "$aix_libpath"; then
13200  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13201fi
13202fi
13203rm -f core conftest.err conftest.$ac_objext \
13204    conftest$ac_exeext conftest.$ac_ext
13205if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13206
13207	 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13208	  # Warning - without using the other run time loading flags,
13209	  # -berok will link without error, but may produce a broken library.
13210	  no_undefined_flag_D=' ${wl}-bernotok'
13211	  allow_undefined_flag_D=' ${wl}-berok'
13212	  if test "$with_gnu_ld" = yes; then
13213	    # We only use this code for GNU lds that support --whole-archive.
13214	    whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13215	  else
13216	    # Exported symbols can be pulled into shared objects from archives
13217	    whole_archive_flag_spec_D='$convenience'
13218	  fi
13219	  archive_cmds_need_lc_D=yes
13220	  # This is similar to how AIX traditionally builds its shared libraries.
13221	  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'
13222	fi
13223      fi
13224      ;;
13225
13226    amigaos*)
13227      case $host_cpu in
13228      powerpc)
13229            # see comment about AmigaOS4 .so support
13230            archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231            archive_expsym_cmds_D=''
13232        ;;
13233      m68k)
13234            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)'
13235            hardcode_libdir_flag_spec_D='-L$libdir'
13236            hardcode_minus_L_D=yes
13237        ;;
13238      esac
13239      ;;
13240
13241    bsdi[45]*)
13242      export_dynamic_flag_spec_D=-rdynamic
13243      ;;
13244
13245    cygwin* | mingw* | pw32* | cegcc*)
13246      # When not using gcc, we currently assume that we are using
13247      # Microsoft Visual C++.
13248      # hardcode_libdir_flag_spec is actually meaningless, as there is
13249      # no search path for DLLs.
13250      hardcode_libdir_flag_spec_D=' '
13251      allow_undefined_flag_D=unsupported
13252      # Tell ltmain to make .lib files, not .a files.
13253      libext=lib
13254      # Tell ltmain to make .dll files, not .so files.
13255      shrext_cmds=".dll"
13256      # FIXME: Setting linknames here is a bad hack.
13257      archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13258      # The linker will automatically build a .lib file if we build a DLL.
13259      old_archive_from_new_cmds_D='true'
13260      # FIXME: Should let the user specify the lib program.
13261      old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13262      fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13263      enable_shared_with_static_runtimes_D=yes
13264      ;;
13265
13266    darwin* | rhapsody*)
13267
13268
13269  archive_cmds_need_lc_D=no
13270  hardcode_direct_D=no
13271  hardcode_automatic_D=yes
13272  hardcode_shlibpath_var_D=unsupported
13273  if test "$lt_cv_ld_force_load" = "yes"; then
13274    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\"`'
13275  else
13276    whole_archive_flag_spec_D=''
13277  fi
13278  link_all_deplibs_D=yes
13279  allow_undefined_flag_D="$_lt_dar_allow_undefined"
13280  case $cc_basename in
13281     ifort*) _lt_dar_can_shared=yes ;;
13282     *) _lt_dar_can_shared=$GCC ;;
13283  esac
13284  if test "$_lt_dar_can_shared" = "yes"; then
13285    output_verbose_link_cmd=func_echo_all
13286    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}"
13287    module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13288    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}"
13289    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}"
13290
13291  else
13292  ld_shlibs_D=no
13293  fi
13294
13295      ;;
13296
13297    dgux*)
13298      archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13299      hardcode_libdir_flag_spec_D='-L$libdir'
13300      hardcode_shlibpath_var_D=no
13301      ;;
13302
13303    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13304    # support.  Future versions do this automatically, but an explicit c++rt0.o
13305    # does not break anything, and helps significantly (at the cost of a little
13306    # extra space).
13307    freebsd2.2*)
13308      archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13309      hardcode_libdir_flag_spec_D='-R$libdir'
13310      hardcode_direct_D=yes
13311      hardcode_shlibpath_var_D=no
13312      ;;
13313
13314    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13315    freebsd2.*)
13316      archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13317      hardcode_direct_D=yes
13318      hardcode_minus_L_D=yes
13319      hardcode_shlibpath_var_D=no
13320      ;;
13321
13322    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13323    freebsd* | dragonfly*)
13324      archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13325      hardcode_libdir_flag_spec_D='-R$libdir'
13326      hardcode_direct_D=yes
13327      hardcode_shlibpath_var_D=no
13328      ;;
13329
13330    hpux9*)
13331      if test "$GCC" = yes; then
13332	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'
13333      else
13334	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'
13335      fi
13336      hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13337      hardcode_libdir_separator_D=:
13338      hardcode_direct_D=yes
13339
13340      # hardcode_minus_L: Not really in the search PATH,
13341      # but as the default location of the library.
13342      hardcode_minus_L_D=yes
13343      export_dynamic_flag_spec_D='${wl}-E'
13344      ;;
13345
13346    hpux10*)
13347      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13348	archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13349      else
13350	archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13351      fi
13352      if test "$with_gnu_ld" = no; then
13353	hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13354	hardcode_libdir_flag_spec_ld_D='+b $libdir'
13355	hardcode_libdir_separator_D=:
13356	hardcode_direct_D=yes
13357	hardcode_direct_absolute_D=yes
13358	export_dynamic_flag_spec_D='${wl}-E'
13359	# hardcode_minus_L: Not really in the search PATH,
13360	# but as the default location of the library.
13361	hardcode_minus_L_D=yes
13362      fi
13363      ;;
13364
13365    hpux11*)
13366      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13367	case $host_cpu in
13368	hppa*64*)
13369	  archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13370	  ;;
13371	ia64*)
13372	  archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13373	  ;;
13374	*)
13375	  archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13376	  ;;
13377	esac
13378      else
13379	case $host_cpu in
13380	hppa*64*)
13381	  archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13382	  ;;
13383	ia64*)
13384	  archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13385	  ;;
13386	*)
13387	archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13388	  ;;
13389	esac
13390      fi
13391      if test "$with_gnu_ld" = no; then
13392	hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13393	hardcode_libdir_separator_D=:
13394
13395	case $host_cpu in
13396	hppa*64*|ia64*)
13397	  hardcode_direct_D=no
13398	  hardcode_shlibpath_var_D=no
13399	  ;;
13400	*)
13401	  hardcode_direct_D=yes
13402	  hardcode_direct_absolute_D=yes
13403	  export_dynamic_flag_spec_D='${wl}-E'
13404
13405	  # hardcode_minus_L: Not really in the search PATH,
13406	  # but as the default location of the library.
13407	  hardcode_minus_L_D=yes
13408	  ;;
13409	esac
13410      fi
13411      ;;
13412
13413    irix5* | irix6* | nonstopux*)
13414      if test "$GCC" = yes; then
13415	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'
13416	# Try to use the -exported_symbol ld option, if it does not
13417	# work, assume that -exports_file does not work either and
13418	# implicitly export all symbols.
13419        save_LDFLAGS="$LDFLAGS"
13420        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13421        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422/* end confdefs.h.  */
13423int foo(void) {}
13424_ACEOF
13425if ac_fn_c_try_link "$LINENO"; then :
13426  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'
13427
13428fi
13429rm -f core conftest.err conftest.$ac_objext \
13430    conftest$ac_exeext conftest.$ac_ext
13431        LDFLAGS="$save_LDFLAGS"
13432      else
13433	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'
13434	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'
13435      fi
13436      archive_cmds_need_lc_D='no'
13437      hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13438      hardcode_libdir_separator_D=:
13439      inherit_rpath_D=yes
13440      link_all_deplibs_D=yes
13441      ;;
13442
13443    netbsd*)
13444      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13445	archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13446      else
13447	archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13448      fi
13449      hardcode_libdir_flag_spec_D='-R$libdir'
13450      hardcode_direct_D=yes
13451      hardcode_shlibpath_var_D=no
13452      ;;
13453
13454    newsos6)
13455      archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13456      hardcode_direct_D=yes
13457      hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13458      hardcode_libdir_separator_D=:
13459      hardcode_shlibpath_var_D=no
13460      ;;
13461
13462    *nto* | *qnx*)
13463      ;;
13464
13465    openbsd*)
13466      if test -f /usr/libexec/ld.so; then
13467	hardcode_direct_D=yes
13468	hardcode_shlibpath_var_D=no
13469	hardcode_direct_absolute_D=yes
13470	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13471	  archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13472	  archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13473	  hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13474	  export_dynamic_flag_spec_D='${wl}-E'
13475	else
13476	  case $host_os in
13477	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13478	     archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13479	     hardcode_libdir_flag_spec_D='-R$libdir'
13480	     ;;
13481	   *)
13482	     archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13483	     hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13484	     ;;
13485	  esac
13486	fi
13487      else
13488	ld_shlibs_D=no
13489      fi
13490      ;;
13491
13492    os2*)
13493      hardcode_libdir_flag_spec_D='-L$libdir'
13494      hardcode_minus_L_D=yes
13495      allow_undefined_flag_D=unsupported
13496      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'
13497      old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13498      ;;
13499
13500    osf3*)
13501      if test "$GCC" = yes; then
13502	allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13503	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'
13504      else
13505	allow_undefined_flag_D=' -expect_unresolved \*'
13506	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'
13507      fi
13508      archive_cmds_need_lc_D='no'
13509      hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13510      hardcode_libdir_separator_D=:
13511      ;;
13512
13513    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13514      if test "$GCC" = yes; then
13515	allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13516	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'
13517	hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13518      else
13519	allow_undefined_flag_D=' -expect_unresolved \*'
13520	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'
13521	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~
13522	$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'
13523
13524	# Both c and cxx compiler support -rpath directly
13525	hardcode_libdir_flag_spec_D='-rpath $libdir'
13526      fi
13527      archive_cmds_need_lc_D='no'
13528      hardcode_libdir_separator_D=:
13529      ;;
13530
13531    solaris*)
13532      no_undefined_flag_D=' -z defs'
13533      if test "$GCC" = yes; then
13534	wlarc='${wl}'
13535	archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13536	archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13537	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13538      else
13539	case `$CC -V 2>&1` in
13540	*"Compilers 5.0"*)
13541	  wlarc=''
13542	  archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13543	  archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13544	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13545	  ;;
13546	*)
13547	  wlarc='${wl}'
13548	  archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13549	  archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13550	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13551	  ;;
13552	esac
13553      fi
13554      hardcode_libdir_flag_spec_D='-R$libdir'
13555      hardcode_shlibpath_var_D=no
13556      case $host_os in
13557      solaris2.[0-5] | solaris2.[0-5].*) ;;
13558      *)
13559	# The compiler driver will combine and reorder linker options,
13560	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13561	# but is careful enough not to reorder.
13562	# Supported since Solaris 2.6 (maybe 2.5.1?)
13563	if test "$GCC" = yes; then
13564	  whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13565	else
13566	  whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13567	fi
13568	;;
13569      esac
13570      link_all_deplibs_D=yes
13571      ;;
13572
13573    sunos4*)
13574      if test "x$host_vendor" = xsequent; then
13575	# Use $CC to link under sequent, because it throws in some extra .o
13576	# files that make .init and .fini sections work.
13577	archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13578      else
13579	archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13580      fi
13581      hardcode_libdir_flag_spec_D='-L$libdir'
13582      hardcode_direct_D=yes
13583      hardcode_minus_L_D=yes
13584      hardcode_shlibpath_var_D=no
13585      ;;
13586
13587    sysv4)
13588      case $host_vendor in
13589	sni)
13590	  archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13591	  hardcode_direct_D=yes # is this really true???
13592	;;
13593	siemens)
13594	  ## LD is ld it makes a PLAMLIB
13595	  ## CC just makes a GrossModule.
13596	  archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13597	  reload_cmds_D='$CC -r -o $output$reload_objs'
13598	  hardcode_direct_D=no
13599        ;;
13600	motorola)
13601	  archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13602	  hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13603	;;
13604      esac
13605      runpath_var='LD_RUN_PATH'
13606      hardcode_shlibpath_var_D=no
13607      ;;
13608
13609    sysv4.3*)
13610      archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13611      hardcode_shlibpath_var_D=no
13612      export_dynamic_flag_spec_D='-Bexport'
13613      ;;
13614
13615    sysv4*MP*)
13616      if test -d /usr/nec; then
13617	archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13618	hardcode_shlibpath_var_D=no
13619	runpath_var=LD_RUN_PATH
13620	hardcode_runpath_var=yes
13621	ld_shlibs_D=yes
13622      fi
13623      ;;
13624
13625    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13626      no_undefined_flag_D='${wl}-z,text'
13627      archive_cmds_need_lc_D=no
13628      hardcode_shlibpath_var_D=no
13629      runpath_var='LD_RUN_PATH'
13630
13631      if test "$GCC" = yes; then
13632	archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13633	archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13634      else
13635	archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13636	archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13637      fi
13638      ;;
13639
13640    sysv5* | sco3.2v5* | sco5v6*)
13641      # Note: We can NOT use -z defs as we might desire, because we do not
13642      # link with -lc, and that would cause any symbols used from libc to
13643      # always be unresolved, which means just about no library would
13644      # ever link correctly.  If we're not using GNU ld we use -z text
13645      # though, which does catch some bad symbols but isn't as heavy-handed
13646      # as -z defs.
13647      no_undefined_flag_D='${wl}-z,text'
13648      allow_undefined_flag_D='${wl}-z,nodefs'
13649      archive_cmds_need_lc_D=no
13650      hardcode_shlibpath_var_D=no
13651      hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13652      hardcode_libdir_separator_D=':'
13653      link_all_deplibs_D=yes
13654      export_dynamic_flag_spec_D='${wl}-Bexport'
13655      runpath_var='LD_RUN_PATH'
13656
13657      if test "$GCC" = yes; then
13658	archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13659	archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13660      else
13661	archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13662	archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13663      fi
13664      ;;
13665
13666    uts4*)
13667      archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13668      hardcode_libdir_flag_spec_D='-L$libdir'
13669      hardcode_shlibpath_var_D=no
13670      ;;
13671
13672    *)
13673      ld_shlibs_D=no
13674      ;;
13675    esac
13676
13677    if test x$host_vendor = xsni; then
13678      case $host in
13679      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13680	export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13681	;;
13682      esac
13683    fi
13684  fi
13685
13686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13687$as_echo "$ld_shlibs_D" >&6; }
13688test "$ld_shlibs_D" = no && can_build_shared=no
13689
13690with_gnu_ld_D=$with_gnu_ld
13691
13692
13693
13694
13695
13696
13697#
13698# Do we need to explicitly link libc?
13699#
13700case "x$archive_cmds_need_lc_D" in
13701x|xyes)
13702  # Assume -lc should be added
13703  archive_cmds_need_lc_D=yes
13704
13705  if test "$enable_shared" = yes && test "$GCC" = yes; then
13706    case $archive_cmds_D in
13707    *'~'*)
13708      # FIXME: we may have to deal with multi-command sequences.
13709      ;;
13710    '$CC '*)
13711      # Test whether the compiler implicitly links with -lc since on some
13712      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13713      # to ld, don't add -lc before -lgcc.
13714      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13715$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13716if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13717  $as_echo_n "(cached) " >&6
13718else
13719  $RM conftest*
13720	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13721
13722	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13723  (eval $ac_compile) 2>&5
13724  ac_status=$?
13725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13726  test $ac_status = 0; } 2>conftest.err; then
13727	  soname=conftest
13728	  lib=conftest
13729	  libobjs=conftest.$ac_objext
13730	  deplibs=
13731	  wl=$lt_prog_compiler_wl_D
13732	  pic_flag=$lt_prog_compiler_pic_D
13733	  compiler_flags=-v
13734	  linker_flags=-v
13735	  verstring=
13736	  output_objdir=.
13737	  libname=conftest
13738	  lt_save_allow_undefined_flag=$allow_undefined_flag_D
13739	  allow_undefined_flag_D=
13740	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13741  (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13742  ac_status=$?
13743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13744  test $ac_status = 0; }
13745	  then
13746	    lt_cv_archive_cmds_need_lc_D=no
13747	  else
13748	    lt_cv_archive_cmds_need_lc_D=yes
13749	  fi
13750	  allow_undefined_flag_D=$lt_save_allow_undefined_flag
13751	else
13752	  cat conftest.err 1>&5
13753	fi
13754	$RM conftest*
13755
13756fi
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13758$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13759      archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13760      ;;
13761    esac
13762  fi
13763  ;;
13764esac
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13830$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13831hardcode_action_D=
13832if test -n "$hardcode_libdir_flag_spec_D" ||
13833   test -n "$runpath_var_D" ||
13834   test "X$hardcode_automatic_D" = "Xyes" ; then
13835
13836  # We can hardcode non-existent directories.
13837  if test "$hardcode_direct_D" != no &&
13838     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13839     # have to relink, otherwise we might link with an installed library
13840     # when we should be linking with a yet-to-be-installed one
13841     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13842     test "$hardcode_minus_L_D" != no; then
13843    # Linking always hardcodes the temporary library directory.
13844    hardcode_action_D=relink
13845  else
13846    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13847    hardcode_action_D=immediate
13848  fi
13849else
13850  # We cannot hardcode anything, or else we can only hardcode existing
13851  # directories.
13852  hardcode_action_D=unsupported
13853fi
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13855$as_echo "$hardcode_action_D" >&6; }
13856
13857if test "$hardcode_action_D" = relink ||
13858   test "$inherit_rpath_D" = yes; then
13859  # Fast installation is not supported
13860  enable_fast_install=no
13861elif test "$shlibpath_overrides_runpath" = yes ||
13862     test "$enable_shared" = no; then
13863  # Fast installation is not necessary
13864  enable_fast_install=needless
13865fi
13866
13867
13868
13869
13870
13871
13872
13873fi
13874
13875ac_ext=c
13876ac_cpp='$CPP $CPPFLAGS'
13877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13879ac_compiler_gnu=$ac_cv_c_compiler_gnu
13880
13881
13882GCC=$lt_save_GCC
13883CC=$lt_save_CC
13884CFLAGS=$lt_save_CFLAGS
13885
13886  GDCFLAGS=$gdc_save_DFLAGS
13887
13888
13889# libtool variables for Phobos shared and position-independent compiles.
13890#
13891# Use phobos_compiler_shared_flag to designate the compile-time flags for
13892# creating shared objects. Default: -fversion=Shared.
13893#
13894# Use phobos_compiler_pic_flag to designate the compile-time flags for
13895# creating position-independent objects. This varies with the target
13896# hardware and operating system, but is often: -fPIC.
13897#
13898# The distinction between pic and shared compilation flags is not present in
13899# libtool, and so we make it here.  How it is handled is that in shared
13900# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13901# ensure that conditional compilation of shared runtime code is compiled in.
13902# The original PIC flags are then used in the compilation of every object.
13903#
13904# Why are objects destined for libgphobos.a compiled with -fPIC?
13905# Because -fPIC is not harmful to use for objects destined for static
13906# libraries. In addition, using -fPIC will allow the use of static
13907# libgphobos.a in the creation of other D shared libraries.
13908if test "$enable_shared" = yes; then
13909  phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13910  phobos_compiler_shared_flag="-fversion=Shared"
13911else
13912  phobos_compiler_pic_flag=
13913  phobos_compiler_shared_flag=
13914fi
13915
13916
13917
13918# Override the libtool's pic_flag and pic_mode.
13919# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13920# NB: this impacts --with-pic and --without-pic.
13921lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13922pic_mode='default'
13923
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
13925$as_echo_n "checking for --enable-libphobos... " >&6; }
13926# Check whether --enable-libphobos was given.
13927if test "${enable_libphobos+set}" = set; then :
13928  enableval=$enable_libphobos;
13929fi
13930
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
13932$as_echo "$enable_libphobos" >&6; }
13933
13934# See if supported.
13935unset LIBPHOBOS_SUPPORTED
13936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
13937$as_echo_n "checking for host support for libphobos... " >&6; }
13938. ${srcdir}/configure.tgt
13939case ${host} in
13940  x86_64-*-solaris2.* | i?86-*-solaris2.*)
13941    # libphobos doesn't compile with the Solaris/x86 assembler due to a
13942    # relatively low linelength limit.
13943    as_prog=`$CC -print-prog-name=as`
13944    if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
13945      druntime_cv_use_gas=yes;
13946    else
13947      druntime_cv_use_gas=no;
13948    fi
13949    rm -f a.out
13950    if test x$druntime_cv_use_gas = xno; then
13951      LIBPHOBOS_SUPPORTED=no
13952    fi
13953    ;;
13954esac
13955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
13956$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
13957
13958# Decide if it's usable.
13959case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
13960*:no)  use_libphobos=no  ;;
13961*:yes) use_libphobos=yes ;;
13962yes:*) use_libphobos=yes ;;
13963*:*)   use_libphobos=no  ;;
13964esac
13965 if test x$use_libphobos = xyes; then
13966  ENABLE_LIBPHOBOS_TRUE=
13967  ENABLE_LIBPHOBOS_FALSE='#'
13968else
13969  ENABLE_LIBPHOBOS_TRUE='#'
13970  ENABLE_LIBPHOBOS_FALSE=
13971fi
13972
13973
13974# Determine what GCC version number to use in filesystem paths.
13975
13976  get_gcc_base_ver="cat"
13977
13978# Check whether --with-gcc-major-version-only was given.
13979if test "${with_gcc_major_version_only+set}" = set; then :
13980  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13981        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13982      fi
13983
13984fi
13985
13986
13987
13988
13989# libphobos/libdruntime specific options and feature detection
13990
13991  # These need to be absolute paths, yet at the same time need to
13992  # canonicalize only relative paths, because then amd will not unmount
13993  # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13994  libphobos_builddir=`${PWDCMD-pwd}`
13995  case $srcdir in
13996    \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13997    *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13998  esac
13999
14000
14001
14002
14003  if test ${multilib} = yes; then
14004    multilib_arg="--enable-multilib"
14005  else
14006    multilib_arg=
14007  fi
14008
14009
14010  # Check whether --enable-werror was given.
14011if test "${enable_werror+set}" = set; then :
14012  enableval=$enable_werror;
14013fi
14014
14015  WERROR_FLAG=""
14016  if test "x$enable_werror" = "xyes"; then
14017      WERROR_FLAG="-Werror"
14018  fi
14019
14020
14021    # Check whether --enable-druntime-gc was given.
14022if test "${enable_druntime_gc+set}" = set; then :
14023  enableval=$enable_druntime_gc; enable_druntime_gc=no
14024else
14025  enable_druntime_gc=yes
14026fi
14027
14028
14029   if test "$enable_druntime_gc" = "yes"; then
14030  DRUNTIME_GC_ENABLE_TRUE=
14031  DRUNTIME_GC_ENABLE_FALSE='#'
14032else
14033  DRUNTIME_GC_ENABLE_TRUE='#'
14034  DRUNTIME_GC_ENABLE_FALSE=
14035fi
14036
14037
14038
14039  druntime_target_cpu_parsed=""
14040  case "$target_cpu" in
14041      aarch64*)
14042               druntime_target_cpu_parsed="aarch64"
14043               ;;
14044      arm*)    druntime_target_cpu_parsed="arm"
14045               ;;
14046      mips*)   druntime_target_cpu_parsed="mips"
14047               ;;
14048      powerpc) druntime_target_cpu_parsed="powerpc"
14049               ;;
14050      powerpc64)
14051               druntime_target_cpu_parsed="powerpc64"
14052               ;;
14053      i[34567]86|x86_64)
14054               druntime_target_cpu_parsed="x86"
14055               ;;
14056  esac
14057   if test "$druntime_target_cpu_parsed" = "aarch64"; then
14058  DRUNTIME_CPU_AARCH64_TRUE=
14059  DRUNTIME_CPU_AARCH64_FALSE='#'
14060else
14061  DRUNTIME_CPU_AARCH64_TRUE='#'
14062  DRUNTIME_CPU_AARCH64_FALSE=
14063fi
14064
14065   if test "$druntime_target_cpu_parsed" = "arm"; then
14066  DRUNTIME_CPU_ARM_TRUE=
14067  DRUNTIME_CPU_ARM_FALSE='#'
14068else
14069  DRUNTIME_CPU_ARM_TRUE='#'
14070  DRUNTIME_CPU_ARM_FALSE=
14071fi
14072
14073   if test "$druntime_target_cpu_parsed" = "mips"; then
14074  DRUNTIME_CPU_MIPS_TRUE=
14075  DRUNTIME_CPU_MIPS_FALSE='#'
14076else
14077  DRUNTIME_CPU_MIPS_TRUE='#'
14078  DRUNTIME_CPU_MIPS_FALSE=
14079fi
14080
14081   if test "$druntime_target_cpu_parsed" = "powerpc"; then
14082  DRUNTIME_CPU_POWERPC_TRUE=
14083  DRUNTIME_CPU_POWERPC_FALSE='#'
14084else
14085  DRUNTIME_CPU_POWERPC_TRUE='#'
14086  DRUNTIME_CPU_POWERPC_FALSE=
14087fi
14088
14089   if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14090  DRUNTIME_CPU_POWERPC64_TRUE=
14091  DRUNTIME_CPU_POWERPC64_FALSE='#'
14092else
14093  DRUNTIME_CPU_POWERPC64_TRUE='#'
14094  DRUNTIME_CPU_POWERPC64_FALSE=
14095fi
14096
14097   if test "$druntime_target_cpu_parsed" = "x86"; then
14098  DRUNTIME_CPU_X86_TRUE=
14099  DRUNTIME_CPU_X86_FALSE='#'
14100else
14101  DRUNTIME_CPU_X86_TRUE='#'
14102  DRUNTIME_CPU_X86_FALSE=
14103fi
14104
14105
14106
14107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14108$as_echo_n "checking for target OS... " >&6; }
14109if ${druntime_cv_target_os+:} false; then :
14110  $as_echo_n "(cached) " >&6
14111else
14112  druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14113fi
14114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14115$as_echo "$druntime_cv_target_os" >&6; }
14116    if test -z "$druntime_cv_target_os"; then :
14117  as_fn_error $? "can't detect target OS" "$LINENO" 5
14118fi
14119
14120
14121
14122  # Check whether --enable-unix was given.
14123if test "${enable_unix+set}" = set; then :
14124  enableval=$enable_unix; :
14125else
14126  enable_unix=auto
14127fi
14128
14129
14130  case "$druntime_cv_target_os" in
14131    aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
14132  esac
14133  if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
14134    enable_unix=yes
14135  fi
14136   if test "$enable_unix" = "yes"; then
14137  DRUNTIME_OS_UNIX_TRUE=
14138  DRUNTIME_OS_UNIX_FALSE='#'
14139else
14140  DRUNTIME_OS_UNIX_TRUE='#'
14141  DRUNTIME_OS_UNIX_FALSE=
14142fi
14143
14144
14145
14146
14147
14148  druntime_target_os_parsed=""
14149  case "$druntime_cv_target_os" in
14150      aix*)    druntime_target_os_parsed="aix"
14151               ;;
14152      *android*)
14153               druntime_target_os_parsed="android"
14154               ;;
14155      darwin*) druntime_target_os_parsed="darwin"
14156               ;;
14157      dragonfly*)
14158               druntime_target_os_parsed="dragonflybsd"
14159               ;;
14160      freebsd*|k*bsd*-gnu)
14161               druntime_target_os_parsed="freebsd"
14162               ;;
14163      openbsd*)
14164               druntime_target_os_parsed="openbsd"
14165               ;;
14166      netbsd*)
14167               druntime_target_os_parsed="netbsd"
14168               ;;
14169      linux*)  druntime_target_os_parsed="linux"
14170               ;;
14171      mingw*)  druntime_target_os_parsed="mingw"
14172             ;;
14173      *solaris*) druntime_target_os_parsed="solaris"
14174  esac
14175   if test "$druntime_target_os_parsed" = "aix"; then
14176  DRUNTIME_OS_AIX_TRUE=
14177  DRUNTIME_OS_AIX_FALSE='#'
14178else
14179  DRUNTIME_OS_AIX_TRUE='#'
14180  DRUNTIME_OS_AIX_FALSE=
14181fi
14182
14183   if test "$druntime_target_os_parsed" = "android"; then
14184  DRUNTIME_OS_ANDROID_TRUE=
14185  DRUNTIME_OS_ANDROID_FALSE='#'
14186else
14187  DRUNTIME_OS_ANDROID_TRUE='#'
14188  DRUNTIME_OS_ANDROID_FALSE=
14189fi
14190
14191   if test "$druntime_target_os_parsed" = "darwin"; then
14192  DRUNTIME_OS_DARWIN_TRUE=
14193  DRUNTIME_OS_DARWIN_FALSE='#'
14194else
14195  DRUNTIME_OS_DARWIN_TRUE='#'
14196  DRUNTIME_OS_DARWIN_FALSE=
14197fi
14198
14199   if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14200  DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14201  DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14202else
14203  DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14204  DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14205fi
14206
14207   if test "$druntime_target_os_parsed" = "freebsd"; then
14208  DRUNTIME_OS_FREEBSD_TRUE=
14209  DRUNTIME_OS_FREEBSD_FALSE='#'
14210else
14211  DRUNTIME_OS_FREEBSD_TRUE='#'
14212  DRUNTIME_OS_FREEBSD_FALSE=
14213fi
14214
14215   if test "$druntime_target_os_parsed" = "netbsd"; then
14216  DRUNTIME_OS_NETBSD_TRUE=
14217  DRUNTIME_OS_NETBSD_FALSE='#'
14218else
14219  DRUNTIME_OS_NETBSD_TRUE='#'
14220  DRUNTIME_OS_NETBSD_FALSE=
14221fi
14222
14223   if test "$druntime_target_os_parsed" = "openbsd"; then
14224  DRUNTIME_OS_OPENBSD_TRUE=
14225  DRUNTIME_OS_OPENBSD_FALSE='#'
14226else
14227  DRUNTIME_OS_OPENBSD_TRUE='#'
14228  DRUNTIME_OS_OPENBSD_FALSE=
14229fi
14230
14231   if test "$druntime_target_os_parsed" = "linux"; then
14232  DRUNTIME_OS_LINUX_TRUE=
14233  DRUNTIME_OS_LINUX_FALSE='#'
14234else
14235  DRUNTIME_OS_LINUX_TRUE='#'
14236  DRUNTIME_OS_LINUX_FALSE=
14237fi
14238
14239   if test "$druntime_target_os_parsed" = "mingw"; then
14240  DRUNTIME_OS_MINGW_TRUE=
14241  DRUNTIME_OS_MINGW_FALSE='#'
14242else
14243  DRUNTIME_OS_MINGW_TRUE='#'
14244  DRUNTIME_OS_MINGW_FALSE=
14245fi
14246
14247   if test "$druntime_target_os_parsed" = "solaris"; then
14248  DRUNTIME_OS_SOLARIS_TRUE=
14249  DRUNTIME_OS_SOLARIS_FALSE='#'
14250else
14251  DRUNTIME_OS_SOLARIS_TRUE='#'
14252  DRUNTIME_OS_SOLARIS_FALSE=
14253fi
14254
14255
14256
14257
14258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14259$as_echo_n "checking for thread model used by GDC... " >&6; }
14260  d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14262$as_echo "$d_thread_model" >&6; }
14263
14264  # Map from thread model to thread interface.
14265
14266case $d_thread_model in
14267    aix)    DCFG_THREAD_MODEL="Posix" ;;
14268    lynx)   DCFG_THREAD_MODEL="Posix" ;;
14269    posix)  DCFG_THREAD_MODEL="Posix" ;;
14270    single) DCFG_THREAD_MODEL="Single" ;;
14271    win32)  DCFG_THREAD_MODEL="Win32" ;;
14272    # TODO: These targets need porting.
14273    dce|mipssde|rtems|tpf|vxworks)
14274	    DCFG_THREAD_MODEL="Single" ;;
14275    *)	    as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14276esac
14277
14278
14279
14280
14281  ac_ext=c
14282ac_cpp='$CPP $CPPFLAGS'
14283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14285ac_compiler_gnu=$ac_cv_c_compiler_gnu
14286
14287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14288$as_echo_n "checking for ARM unwinder... " >&6; }
14289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290/* end confdefs.h.  */
14291#include <unwind.h>
14292int
14293main ()
14294{
14295
14296  #if __ARM_EABI_UNWINDER__
14297  #error Yes, it is.
14298  #endif
14299
14300  ;
14301  return 0;
14302}
14303_ACEOF
14304if ac_fn_c_try_compile "$LINENO"; then :
14305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306$as_echo "no" >&6; }
14307     DCFG_ARM_EABI_UNWINDER=false
14308else
14309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14310$as_echo "yes" >&6; }
14311     DCFG_ARM_EABI_UNWINDER=true
14312fi
14313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14314
14315   if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14316  DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14317  DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14318else
14319  DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14320  DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14321fi
14322
14323  ac_ext=c
14324ac_cpp='$CPP $CPPFLAGS'
14325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14327ac_compiler_gnu=$ac_cv_c_compiler_gnu
14328
14329
14330
14331  ac_ext=c
14332ac_cpp='$CPP $CPPFLAGS'
14333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14335ac_compiler_gnu=$ac_cv_c_compiler_gnu
14336
14337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14338$as_echo_n "checking for minfo section bracketing... " >&6; }
14339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340/* end confdefs.h.  */
14341
14342    void* module_info_ptr __attribute__((section ("minfo")));
14343    extern void* __start_minfo __attribute__((visibility ("hidden")));
14344    extern void* __stop_minfo __attribute__((visibility ("hidden")));
14345
14346    int main()
14347    {
14348        // Never run, just to prevent compiler from optimizing access
14349        return &__start_minfo == &__stop_minfo;
14350    }
14351
14352_ACEOF
14353if ac_fn_c_try_link "$LINENO"; then :
14354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14355$as_echo "yes" >&6; }
14356     DCFG_MINFO_BRACKETING=true
14357else
14358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359$as_echo "no" >&6; }
14360     DCFG_MINFO_BRACKETING=false
14361fi
14362rm -f core conftest.err conftest.$ac_objext \
14363    conftest$ac_exeext conftest.$ac_ext
14364
14365   if test "$DCFG_MINFO_BRACKETING" = "true"; then
14366  DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14367  DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14368else
14369  DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14370  DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14371fi
14372
14373  ac_ext=c
14374ac_cpp='$CPP $CPPFLAGS'
14375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377ac_compiler_gnu=$ac_cv_c_compiler_gnu
14378
14379
14380
14381  ac_ext=c
14382ac_cpp='$CPP $CPPFLAGS'
14383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14385ac_compiler_gnu=$ac_cv_c_compiler_gnu
14386
14387  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>
14388"
14389if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14390  DCFG_DLPI_TLS_MODID=true
14391else
14392  DCFG_DLPI_TLS_MODID=false
14393fi
14394
14395
14396  ac_ext=c
14397ac_cpp='$CPP $CPPFLAGS'
14398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14400ac_compiler_gnu=$ac_cv_c_compiler_gnu
14401
14402
14403
14404  case $target in
14405    i?86-*-solaris2.* | x86_64-*-solaris2.*)
14406      # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14407      # relocs.  Work around by disabling TLS transitions.  Not necessary
14408      # on 32-bit x86, but cannot be distinguished reliably in specs.
14409      druntime_ld_prog=`$CC -print-prog-name=ld`
14410      if test -n "$druntime_ld_prog" \
14411         && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14412        :
14413      else
14414        OS_LINK_SPEC='-z relax=transtls'
14415      fi
14416      ;;
14417  esac
14418
14419
14420
14421  ac_ext=c
14422ac_cpp='$CPP $CPPFLAGS'
14423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14425ac_compiler_gnu=$ac_cv_c_compiler_gnu
14426
14427  DCFG_HAVE_QSORT_R=false
14428  ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14429if test "x$ac_cv_func_qsort_r" = xyes; then :
14430  DCFG_HAVE_QSORT_R=true
14431fi
14432
14433
14434  ac_ext=c
14435ac_cpp='$CPP $CPPFLAGS'
14436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14438ac_compiler_gnu=$ac_cv_c_compiler_gnu
14439
14440
14441
14442
14443
14444  gdc_save_DFLAGS=$GDCFLAGS
14445  GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14446
14447  ac_ext=d
14448ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14449ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14450ac_compiler_gnu=yes
14451
14452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14453$as_echo_n "checking for library containing malloc... " >&6; }
14454if ${ac_cv_search_malloc+:} false; then :
14455  $as_echo_n "(cached) " >&6
14456else
14457  ac_func_search_save_LIBS=$LIBS
14458cat > conftest.$ac_ext <<_ACEOF
14459module mod;
14460 extern(C) int malloc();
14461
14462extern(C) int main() {
14463  malloc(); return 0;
14464}
14465_ACEOF
14466for ac_lib in '' c; do
14467  if test -z "$ac_lib"; then
14468    ac_res="none required"
14469  else
14470    ac_res=-l$ac_lib
14471    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14472  fi
14473  if ac_fn_d_try_link "$LINENO"; then :
14474  ac_cv_search_malloc=$ac_res
14475fi
14476rm -f core conftest.err conftest.$ac_objext \
14477    conftest$ac_exeext
14478  if ${ac_cv_search_malloc+:} false; then :
14479  break
14480fi
14481done
14482if ${ac_cv_search_malloc+:} false; then :
14483
14484else
14485  ac_cv_search_malloc=no
14486fi
14487rm conftest.$ac_ext
14488LIBS=$ac_func_search_save_LIBS
14489fi
14490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14491$as_echo "$ac_cv_search_malloc" >&6; }
14492ac_res=$ac_cv_search_malloc
14493if test "$ac_res" != no; then :
14494  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14495
14496fi
14497
14498
14499  enable_thread_lib=yes
14500  # Check whether --enable-thread-lib was given.
14501if test "${enable_thread_lib+set}" = set; then :
14502  enableval=$enable_thread_lib;
14503fi
14504
14505
14506  if test "x$enable_thread_lib" = "xyes"; then :
14507
14508    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14509$as_echo_n "checking for library containing pthread_create... " >&6; }
14510if ${ac_cv_search_pthread_create+:} false; then :
14511  $as_echo_n "(cached) " >&6
14512else
14513  ac_func_search_save_LIBS=$LIBS
14514cat > conftest.$ac_ext <<_ACEOF
14515module mod;
14516 extern(C) int pthread_create();
14517
14518extern(C) int main() {
14519  pthread_create(); return 0;
14520}
14521_ACEOF
14522for ac_lib in '' pthread; do
14523  if test -z "$ac_lib"; then
14524    ac_res="none required"
14525  else
14526    ac_res=-l$ac_lib
14527    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14528  fi
14529  if ac_fn_d_try_link "$LINENO"; then :
14530  ac_cv_search_pthread_create=$ac_res
14531fi
14532rm -f core conftest.err conftest.$ac_objext \
14533    conftest$ac_exeext
14534  if ${ac_cv_search_pthread_create+:} false; then :
14535  break
14536fi
14537done
14538if ${ac_cv_search_pthread_create+:} false; then :
14539
14540else
14541  ac_cv_search_pthread_create=no
14542fi
14543rm conftest.$ac_ext
14544LIBS=$ac_func_search_save_LIBS
14545fi
14546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14547$as_echo "$ac_cv_search_pthread_create" >&6; }
14548ac_res=$ac_cv_search_pthread_create
14549if test "$ac_res" != no; then :
14550  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14551
14552fi
14553
14554
14555else
14556
14557    if test "x$enable_thread_lib" = "xno"; then :
14558
14559      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14560$as_echo_n "checking for thread library... " >&6; }
14561      { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14562$as_echo "disabled" >&6; }
14563
14564else
14565
14566      as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14568$as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14569if eval \${$as_ac_Lib+:} false; then :
14570  $as_echo_n "(cached) " >&6
14571else
14572  ac_check_lib_save_LIBS=$LIBS
14573LIBS="-l$enable_thread_lib  $LIBS"
14574cat > conftest.$ac_ext <<_ACEOF
14575module mod;
14576 extern(C) int pthread_create();
14577
14578extern(C) int main() {
14579  pthread_create(); return 0;
14580}
14581_ACEOF
14582if ac_fn_d_try_link "$LINENO"; then :
14583  eval "$as_ac_Lib=yes"
14584else
14585  eval "$as_ac_Lib=no"
14586fi
14587rm -f core conftest.err conftest.$ac_objext \
14588    conftest$ac_exeext conftest.$ac_ext
14589LIBS=$ac_check_lib_save_LIBS
14590fi
14591eval ac_res=\$$as_ac_Lib
14592	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14593$as_echo "$ac_res" >&6; }
14594if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14595  cat >>confdefs.h <<_ACEOF
14596#define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14597_ACEOF
14598
14599  LIBS="-l$enable_thread_lib $LIBS"
14600
14601else
14602
14603        as_fn_error $? "Thread library not found" "$LINENO" 5
14604
14605fi
14606
14607
14608fi
14609
14610fi
14611
14612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14613$as_echo_n "checking for library containing cosf... " >&6; }
14614if ${ac_cv_search_cosf+:} false; then :
14615  $as_echo_n "(cached) " >&6
14616else
14617  ac_func_search_save_LIBS=$LIBS
14618cat > conftest.$ac_ext <<_ACEOF
14619module mod;
14620 extern(C) int cosf();
14621
14622extern(C) int main() {
14623  cosf(); return 0;
14624}
14625_ACEOF
14626for ac_lib in '' m; do
14627  if test -z "$ac_lib"; then
14628    ac_res="none required"
14629  else
14630    ac_res=-l$ac_lib
14631    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14632  fi
14633  if ac_fn_d_try_link "$LINENO"; then :
14634  ac_cv_search_cosf=$ac_res
14635fi
14636rm -f core conftest.err conftest.$ac_objext \
14637    conftest$ac_exeext
14638  if ${ac_cv_search_cosf+:} false; then :
14639  break
14640fi
14641done
14642if ${ac_cv_search_cosf+:} false; then :
14643
14644else
14645  ac_cv_search_cosf=no
14646fi
14647rm conftest.$ac_ext
14648LIBS=$ac_func_search_save_LIBS
14649fi
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14651$as_echo "$ac_cv_search_cosf" >&6; }
14652ac_res=$ac_cv_search_cosf
14653if test "$ac_res" != no; then :
14654  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14655
14656fi
14657
14658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14659$as_echo_n "checking for library containing clock_gettime... " >&6; }
14660if ${ac_cv_search_clock_gettime+:} false; then :
14661  $as_echo_n "(cached) " >&6
14662else
14663  ac_func_search_save_LIBS=$LIBS
14664cat > conftest.$ac_ext <<_ACEOF
14665module mod;
14666 extern(C) int clock_gettime();
14667
14668extern(C) int main() {
14669  clock_gettime(); return 0;
14670}
14671_ACEOF
14672for ac_lib in '' rt; do
14673  if test -z "$ac_lib"; then
14674    ac_res="none required"
14675  else
14676    ac_res=-l$ac_lib
14677    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14678  fi
14679  if ac_fn_d_try_link "$LINENO"; then :
14680  ac_cv_search_clock_gettime=$ac_res
14681fi
14682rm -f core conftest.err conftest.$ac_objext \
14683    conftest$ac_exeext
14684  if ${ac_cv_search_clock_gettime+:} false; then :
14685  break
14686fi
14687done
14688if ${ac_cv_search_clock_gettime+:} false; then :
14689
14690else
14691  ac_cv_search_clock_gettime=no
14692fi
14693rm conftest.$ac_ext
14694LIBS=$ac_func_search_save_LIBS
14695fi
14696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14697$as_echo "$ac_cv_search_clock_gettime" >&6; }
14698ac_res=$ac_cv_search_clock_gettime
14699if test "$ac_res" != no; then :
14700  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14701
14702fi
14703
14704
14705  # This checks to see if the host supports the compiler-generated builtins
14706  # for atomic operations for various integral sizes. Note, this is intended
14707  # to be an all-or-nothing switch, so all the atomic operations that are
14708  # used should be checked.
14709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14710$as_echo_n "checking for atomic builtins for byte... " >&6; }
14711  if ${druntime_cv_atomic_byte+:} false; then :
14712  $as_echo_n "(cached) " >&6
14713else
14714
14715    cat > conftest.$ac_ext <<_ACEOF
14716module mod;
14717import gcc.builtins;
14718
14719extern(C) int main() {
14720
14721      shared(byte) c1;
14722       byte c2, c3;
14723       __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14724       __atomic_load_1(&c1, 5);
14725       __atomic_store_1(&c1, c2, 5);
14726       return 0;
14727
14728}
14729_ACEOF
14730if ac_fn_d_try_link "$LINENO"; then :
14731  druntime_cv_atomic_byte=yes
14732else
14733  druntime_cv_atomic_byte=no
14734fi
14735rm -f core conftest.err conftest.$ac_objext \
14736    conftest$ac_exeext conftest.$ac_ext
14737
14738fi
14739
14740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14741$as_echo "$druntime_cv_atomic_byte" >&6; }
14742
14743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14744$as_echo_n "checking for atomic builtins for short... " >&6; }
14745  if ${druntime_cv_atomic_short+:} false; then :
14746  $as_echo_n "(cached) " >&6
14747else
14748
14749    cat > conftest.$ac_ext <<_ACEOF
14750module mod;
14751import gcc.builtins;
14752
14753extern(C) int main() {
14754
14755      shared(short) c1;
14756       short c2, c3;
14757       __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14758       __atomic_load_2(&c1, 5);
14759       __atomic_store_2(&c1, c2, 5);
14760       return 0;
14761
14762}
14763_ACEOF
14764if ac_fn_d_try_link "$LINENO"; then :
14765  druntime_cv_atomic_short=yes
14766else
14767  druntime_cv_atomic_short=no
14768fi
14769rm -f core conftest.err conftest.$ac_objext \
14770    conftest$ac_exeext conftest.$ac_ext
14771
14772fi
14773
14774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14775$as_echo "$druntime_cv_atomic_short" >&6; }
14776
14777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14778$as_echo_n "checking for atomic builtins for int... " >&6; }
14779  if ${druntime_cv_atomic_int+:} false; then :
14780  $as_echo_n "(cached) " >&6
14781else
14782
14783    cat > conftest.$ac_ext <<_ACEOF
14784module mod;
14785import gcc.builtins;
14786
14787extern(C) int main() {
14788
14789      shared(int) c1;
14790       int c2, c3;
14791       __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14792       __atomic_load_4(&c1, 5);
14793       __atomic_store_4(&c1, c2, 5);
14794       return 0;
14795
14796}
14797_ACEOF
14798if ac_fn_d_try_link "$LINENO"; then :
14799  druntime_cv_atomic_int=yes
14800else
14801  druntime_cv_atomic_int=no
14802fi
14803rm -f core conftest.err conftest.$ac_objext \
14804    conftest$ac_exeext conftest.$ac_ext
14805
14806fi
14807
14808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14809$as_echo "$druntime_cv_atomic_int" >&6; }
14810
14811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14812$as_echo_n "checking for atomic builtins for long... " >&6; }
14813  if ${druntime_cv_atomic_long+:} false; then :
14814  $as_echo_n "(cached) " >&6
14815else
14816
14817    cat > conftest.$ac_ext <<_ACEOF
14818module mod;
14819import gcc.builtins;
14820
14821extern(C) int main() {
14822
14823       shared(long) c1;
14824       long c2, c3;
14825       __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14826       __atomic_load_8(&c1, 5);
14827       __atomic_store_8(&c1, c2, 5);
14828       return 0;
14829
14830}
14831_ACEOF
14832if ac_fn_d_try_link "$LINENO"; then :
14833  druntime_cv_atomic_long=yes
14834else
14835  druntime_cv_atomic_long=no
14836fi
14837rm -f core conftest.err conftest.$ac_objext \
14838    conftest$ac_exeext conftest.$ac_ext
14839
14840fi
14841
14842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14843$as_echo "$druntime_cv_atomic_long" >&6; }
14844
14845  # Have atomic builtin support if all but the long test above passes.
14846  DCFG_HAVE_ATOMIC_BUILTINS=false
14847  if test "$druntime_cv_atomic_byte" = yes \
14848     && test "$druntime_cv_atomic_short" = yes \
14849     && test "$druntime_cv_atomic_int" = yes; then \
14850    DCFG_HAVE_ATOMIC_BUILTINS=true
14851  fi
14852
14853  # Have 64-bit atomic support if the long test above passes.
14854  DCFG_HAVE_64BIT_ATOMICS=false
14855  if test "$druntime_cv_atomic_long" = yes; then
14856    DCFG_HAVE_64BIT_ATOMICS=true
14857  fi
14858
14859
14860
14861
14862  ac_ext=c
14863ac_cpp='$CPP $CPPFLAGS'
14864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14866ac_compiler_gnu=$ac_cv_c_compiler_gnu
14867
14868
14869  GDCFLAGS=$gdc_save_DFLAGS
14870
14871
14872
14873
14874# Check whether --with-libatomic was given.
14875if test "${with_libatomic+set}" = set; then :
14876  withval=$with_libatomic;
14877fi
14878
14879
14880  DCFG_HAVE_LIBATOMIC=false
14881  LIBATOMIC=
14882  if test "x$with_libatomic" != "xno"; then :
14883
14884    DCFG_HAVE_LIBATOMIC=true
14885    LIBATOMIC=../../libatomic/libatomic_convenience.la
14886
14887else
14888
14889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14890$as_echo_n "checking for libatomic... " >&6; }
14891    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14892$as_echo "disabled" >&6; }
14893
14894fi
14895
14896
14897
14898
14899
14900  ac_ext=c
14901ac_cpp='$CPP $CPPFLAGS'
14902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14904ac_compiler_gnu=$ac_cv_c_compiler_gnu
14905
14906  BACKTRACE_SUPPORTED=false
14907  BACKTRACE_USES_MALLOC=false
14908  BACKTRACE_SUPPORTS_THREADS=false
14909  LIBBACKTRACE=""
14910
14911
14912# Check whether --with-libbacktrace was given.
14913if test "${with_libbacktrace+set}" = set; then :
14914  withval=$with_libbacktrace;
14915fi
14916
14917
14918  if test "x$with_libbacktrace" != "xno"; then :
14919
14920    LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14921
14922    gdc_save_CPPFLAGS=$CPPFLAGS
14923    CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14924
14925    ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14926if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14927  have_libbacktrace_h=true
14928else
14929  have_libbacktrace_h=false
14930fi
14931
14932
14933
14934    if $have_libbacktrace_h; then
14935      { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14936$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14937      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938/* end confdefs.h.  */
14939
14940      #include <backtrace-supported.h>
14941      #if BACKTRACE_SUPPORTED
14942        FOUND_LIBBACKTRACE_RESULT_GDC
14943      #endif
14944
14945_ACEOF
14946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14947  $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14948  BACKTRACE_SUPPORTED=true
14949else
14950  BACKTRACE_SUPPORTED=false
14951fi
14952rm -f conftest*
14953
14954      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14955$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14956
14957      { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14958$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14959      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960/* end confdefs.h.  */
14961
14962      #include <backtrace-supported.h>
14963      #if BACKTRACE_USES_MALLOC
14964        FOUND_LIBBACKTRACE_RESULT_GDC
14965      #endif
14966
14967_ACEOF
14968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14969  $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14970  BACKTRACE_USES_MALLOC=true
14971else
14972  BACKTRACE_USES_MALLOC=false
14973fi
14974rm -f conftest*
14975
14976      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14977$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14978
14979      { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14980$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14981      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14982/* end confdefs.h.  */
14983
14984      #include <backtrace-supported.h>
14985      #if BACKTRACE_SUPPORTS_THREADS
14986        FOUND_LIBBACKTRACE_RESULT_GDC
14987      #endif
14988
14989_ACEOF
14990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14991  $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14992  BACKTRACE_SUPPORTS_THREADS=true
14993else
14994  BACKTRACE_SUPPORTS_THREADS=false
14995fi
14996rm -f conftest*
14997
14998      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14999$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
15000    fi
15001    CPPFLAGS=$gdc_save_CPPFLAGS
15002
15003else
15004
15005    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
15006$as_echo_n "checking for libbacktrace... " >&6; }
15007    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15008$as_echo "disabled" >&6; }
15009
15010fi
15011
15012
15013
15014
15015
15016  ac_ext=c
15017ac_cpp='$CPP $CPPFLAGS'
15018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15020ac_compiler_gnu=$ac_cv_c_compiler_gnu
15021
15022
15023
15024  # Libtool has already checked this, so re-use the inferred dlopen lib.
15025  if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15026
15027    LIBS="$LIBS $lt_cv_dlopen_libs"
15028
15029fi
15030
15031
15032    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
15033$as_echo_n "checking for socket libraries... " >&6; }
15034if ${druntime_cv_lib_sockets+:} false; then :
15035  $as_echo_n "(cached) " >&6
15036else
15037  druntime_cv_lib_sockets=
15038     druntime_check_both=no
15039     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15040if test "x$ac_cv_func_connect" = xyes; then :
15041  druntime_check_socket=no
15042else
15043  druntime_check_socket=yes
15044fi
15045
15046     if test "$druntime_check_socket" = "yes"; then
15047       unset ac_cv_func_connect
15048       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
15049$as_echo_n "checking for main in -lsocket... " >&6; }
15050if ${ac_cv_lib_socket_main+:} false; then :
15051  $as_echo_n "(cached) " >&6
15052else
15053  ac_check_lib_save_LIBS=$LIBS
15054LIBS="-lsocket  $LIBS"
15055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056/* end confdefs.h.  */
15057
15058
15059int
15060main ()
15061{
15062return main ();
15063  ;
15064  return 0;
15065}
15066_ACEOF
15067if ac_fn_c_try_link "$LINENO"; then :
15068  ac_cv_lib_socket_main=yes
15069else
15070  ac_cv_lib_socket_main=no
15071fi
15072rm -f core conftest.err conftest.$ac_objext \
15073    conftest$ac_exeext conftest.$ac_ext
15074LIBS=$ac_check_lib_save_LIBS
15075fi
15076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
15077$as_echo "$ac_cv_lib_socket_main" >&6; }
15078if test "x$ac_cv_lib_socket_main" = xyes; then :
15079  druntime_cv_lib_sockets="-lsocket"
15080else
15081  druntime_check_both=yes
15082fi
15083
15084     fi
15085     if test "$druntime_check_both" = "yes"; then
15086       druntime_old_libs=$LIBS
15087       LIBS="$LIBS -lsocket -lnsl"
15088       unset ac_cv_func_accept
15089       ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15090if test "x$ac_cv_func_accept" = xyes; then :
15091  druntime_check_nsl=no
15092		      druntime_cv_lib_sockets="-lsocket -lnsl"
15093fi
15094
15095       unset ac_cv_func_accept
15096       LIBS=$druntime_old_libs
15097     fi
15098     unset ac_cv_func_gethostbyname
15099     druntime_old_libs="$LIBS"
15100     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15101if test "x$ac_cv_func_gethostbyname" = xyes; then :
15102
15103else
15104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15105$as_echo_n "checking for main in -lnsl... " >&6; }
15106if ${ac_cv_lib_nsl_main+:} false; then :
15107  $as_echo_n "(cached) " >&6
15108else
15109  ac_check_lib_save_LIBS=$LIBS
15110LIBS="-lnsl  $LIBS"
15111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112/* end confdefs.h.  */
15113
15114
15115int
15116main ()
15117{
15118return main ();
15119  ;
15120  return 0;
15121}
15122_ACEOF
15123if ac_fn_c_try_link "$LINENO"; then :
15124  ac_cv_lib_nsl_main=yes
15125else
15126  ac_cv_lib_nsl_main=no
15127fi
15128rm -f core conftest.err conftest.$ac_objext \
15129    conftest$ac_exeext conftest.$ac_ext
15130LIBS=$ac_check_lib_save_LIBS
15131fi
15132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15133$as_echo "$ac_cv_lib_nsl_main" >&6; }
15134if test "x$ac_cv_lib_nsl_main" = xyes; then :
15135  druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15136fi
15137
15138fi
15139
15140
15141fi
15142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15143$as_echo "$druntime_cv_lib_sockets" >&6; }
15144  LIBS="$LIBS $druntime_cv_lib_sockets"
15145
15146
15147  ac_ext=c
15148ac_cpp='$CPP $CPPFLAGS'
15149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15151ac_compiler_gnu=$ac_cv_c_compiler_gnu
15152
15153  LIBZ=""
15154
15155
15156# Check whether --with-target-system-zlib was given.
15157if test "${with_target_system_zlib+set}" = set; then :
15158  withval=$with_target_system_zlib;
15159else
15160  with_target_system_zlib=no
15161fi
15162
15163
15164  case "$with_target_system_zlib" in
15165    yes|no|auto) ;;
15166    *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15167  esac
15168
15169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15170$as_echo_n "checking for system zlib... " >&6; }
15171  save_LIBS=$LIBS
15172  LIBS="$LIBS -lz"
15173      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174/* end confdefs.h.  */
15175#include <zlib.h>
15176int
15177main ()
15178{
15179gzopen("none", "rb")
15180  ;
15181  return 0;
15182}
15183_ACEOF
15184if ac_fn_c_try_link "$LINENO"; then :
15185
15186      if test "$cross_compiling" = yes; then :
15187          system_zlib_found=no
15188
15189else
15190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191/* end confdefs.h.  */
15192
15193        #include <zlib.h>
15194        int main() {
15195          gzFile file = gzopen("none", "rb");
15196          return 0;
15197        }
15198
15199_ACEOF
15200if ac_fn_c_try_run "$LINENO"; then :
15201  system_zlib_found=yes
15202else
15203  system_zlib_found=no
15204fi
15205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15206  conftest.$ac_objext conftest.beam conftest.$ac_ext
15207fi
15208
15209
15210else
15211  system_zlib_found=no
15212fi
15213rm -f core conftest.err conftest.$ac_objext \
15214    conftest$ac_exeext conftest.$ac_ext
15215  LIBS=$save_LIBS
15216
15217  if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15218    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15219$as_echo "found" >&6; }
15220    LIBS="$LIBS -lz"
15221  elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15222    as_fn_error $? "system zlib required but not found" "$LINENO" 5
15223  else
15224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15225$as_echo "just compiled" >&6; }
15226    LIBZ=../../zlib/libz_convenience.la
15227  fi
15228
15229
15230  ac_ext=c
15231ac_cpp='$CPP $CPPFLAGS'
15232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15234ac_compiler_gnu=$ac_cv_c_compiler_gnu
15235
15236
15237
15238
15239
15240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15241$as_echo_n "checking D GCC version... " >&6; }
15242  gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15244$as_echo "$gcc_version" >&6; }
15245
15246
15247
15248# Check whether --with-cross-host was given.
15249if test "${with_cross_host+set}" = set; then :
15250  withval=$with_cross_host;
15251fi
15252
15253
15254  libphobos_toolexecdir=no
15255  libphobos_toolexeclibdir=no
15256
15257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15258$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15259  # Check whether --enable-version-specific-runtime-libs was given.
15260if test "${enable_version_specific_runtime_libs+set}" = set; then :
15261  enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15262      yes) version_specific_libs=yes ;;
15263      no)  version_specific_libs=no ;;
15264      *)   as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15265     esac
15266else
15267  version_specific_libs=no
15268fi
15269
15270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15271$as_echo "$version_specific_libs" >&6; }
15272
15273  # Version-specific runtime libs processing.
15274  if test $version_specific_libs = yes; then
15275    libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15276    libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15277  else
15278    # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15279    # Install a library built with a cross compiler in tooldir, not libdir.
15280    if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15281      libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15282      libphobos_toolexeclibdir='${toolexecdir}/lib'
15283    else
15284      libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15285      libphobos_toolexeclibdir='${libdir}'
15286    fi
15287    multi_os_directory=`$GDC -print-multi-os-directory`
15288    case $multi_os_directory in
15289      .) ;; # Avoid trailing /.
15290      *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15291    esac
15292  fi
15293
15294
15295
15296  # Default case for install directory for D sources files.
15297  gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15298
15299
15300
15301# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15302if test "$DCFG_MINFO_BRACKETING" = "false"; then
15303    DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15304else
15305    DRTSTUFF_SPEC=/dev/null
15306fi
15307
15308
15309# Add dependencies for libgphobos.spec file
15310SPEC_PHOBOS_DEPS="$LIBS"
15311
15312
15313# Libdruntime / phobos soname version
15314libtool_VERSION=76:3:0
15315
15316
15317# Set default flags (after DRUNTIME_WERROR!)
15318if test -z "$GDCFLAGS"; then
15319    GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15320fi
15321
15322
15323if test -z "$GDCFLAGSX"; then
15324    GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15325fi
15326
15327
15328# Sanity check for the cross-compilation case:
15329ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15330if test "x$ac_cv_header_stdio_h" = xyes; then :
15331  :
15332else
15333  as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15334fi
15335
15336
15337
15338ac_config_files="$ac_config_files Makefile"
15339
15340
15341ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15342
15343ac_config_files="$ac_config_files src/libgphobos.spec"
15344
15345ac_config_files="$ac_config_files testsuite/testsuite_flags"
15346
15347
15348# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15349# that multilib installs will end up installed in the correct place.
15350# The testsuite needs it for multilib-aware ABI baseline files.
15351# To work around this not being passed down from config-ml.in ->
15352# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15353# append it here.  Only modify Makefiles that have just been created.
15354#
15355# Also, get rid of this simulated-VPATH thing that automake does.
15356ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15357
15358
15359cat >confcache <<\_ACEOF
15360# This file is a shell script that caches the results of configure
15361# tests run on this system so they can be shared between configure
15362# scripts and configure runs, see configure's option --config-cache.
15363# It is not useful on other systems.  If it contains results you don't
15364# want to keep, you may remove or edit it.
15365#
15366# config.status only pays attention to the cache file if you give it
15367# the --recheck option to rerun configure.
15368#
15369# `ac_cv_env_foo' variables (set or unset) will be overridden when
15370# loading this file, other *unset* `ac_cv_foo' will be assigned the
15371# following values.
15372
15373_ACEOF
15374
15375# The following way of writing the cache mishandles newlines in values,
15376# but we know of no workaround that is simple, portable, and efficient.
15377# So, we kill variables containing newlines.
15378# Ultrix sh set writes to stderr and can't be redirected directly,
15379# and sets the high bit in the cache file unless we assign to the vars.
15380(
15381  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15382    eval ac_val=\$$ac_var
15383    case $ac_val in #(
15384    *${as_nl}*)
15385      case $ac_var in #(
15386      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15387$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15388      esac
15389      case $ac_var in #(
15390      _ | IFS | as_nl) ;; #(
15391      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15392      *) { eval $ac_var=; unset $ac_var;} ;;
15393      esac ;;
15394    esac
15395  done
15396
15397  (set) 2>&1 |
15398    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15399    *${as_nl}ac_space=\ *)
15400      # `set' does not quote correctly, so add quotes: double-quote
15401      # substitution turns \\\\ into \\, and sed turns \\ into \.
15402      sed -n \
15403	"s/'/'\\\\''/g;
15404	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15405      ;; #(
15406    *)
15407      # `set' quotes correctly as required by POSIX, so do not add quotes.
15408      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15409      ;;
15410    esac |
15411    sort
15412) |
15413  sed '
15414     /^ac_cv_env_/b end
15415     t clear
15416     :clear
15417     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15418     t end
15419     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15420     :end' >>confcache
15421if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15422  if test -w "$cache_file"; then
15423    if test "x$cache_file" != "x/dev/null"; then
15424      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15425$as_echo "$as_me: updating cache $cache_file" >&6;}
15426      if test ! -f "$cache_file" || test -h "$cache_file"; then
15427	cat confcache >"$cache_file"
15428      else
15429        case $cache_file in #(
15430        */* | ?:*)
15431	  mv -f confcache "$cache_file"$$ &&
15432	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15433        *)
15434	  mv -f confcache "$cache_file" ;;
15435	esac
15436      fi
15437    fi
15438  else
15439    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15440$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15441  fi
15442fi
15443rm -f confcache
15444
15445test "x$prefix" = xNONE && prefix=$ac_default_prefix
15446# Let make expand exec_prefix.
15447test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15448
15449DEFS=-DHAVE_CONFIG_H
15450
15451ac_libobjs=
15452ac_ltlibobjs=
15453U=
15454for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15455  # 1. Remove the extension, and $U if already installed.
15456  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15457  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15458  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15459  #    will be set to the directory where LIBOBJS objects are built.
15460  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15461  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15462done
15463LIBOBJS=$ac_libobjs
15464
15465LTLIBOBJS=$ac_ltlibobjs
15466
15467
15468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15469$as_echo_n "checking that generated files are newer than configure... " >&6; }
15470   if test -n "$am_sleep_pid"; then
15471     # Hide warnings about reused PIDs.
15472     wait $am_sleep_pid 2>/dev/null
15473   fi
15474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15475$as_echo "done" >&6; }
15476 if test -n "$EXEEXT"; then
15477  am__EXEEXT_TRUE=
15478  am__EXEEXT_FALSE='#'
15479else
15480  am__EXEEXT_TRUE='#'
15481  am__EXEEXT_FALSE=
15482fi
15483
15484if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15485  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15486Usually this means the macro was only invoked conditionally." "$LINENO" 5
15487fi
15488if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15489  as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15490Usually this means the macro was only invoked conditionally." "$LINENO" 5
15491fi
15492if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15493  as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15494Usually this means the macro was only invoked conditionally." "$LINENO" 5
15495fi
15496if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15497  as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15498Usually this means the macro was only invoked conditionally." "$LINENO" 5
15499fi
15500if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15501  as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15502Usually this means the macro was only invoked conditionally." "$LINENO" 5
15503fi
15504if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15505  as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15506Usually this means the macro was only invoked conditionally." "$LINENO" 5
15507fi
15508if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15509  as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15510Usually this means the macro was only invoked conditionally." "$LINENO" 5
15511fi
15512if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15513  as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15514Usually this means the macro was only invoked conditionally." "$LINENO" 5
15515fi
15516if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15517  as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15518Usually this means the macro was only invoked conditionally." "$LINENO" 5
15519fi
15520if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15521  as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
15522Usually this means the macro was only invoked conditionally." "$LINENO" 5
15523fi
15524if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15525  as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15526Usually this means the macro was only invoked conditionally." "$LINENO" 5
15527fi
15528if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15529  as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15530Usually this means the macro was only invoked conditionally." "$LINENO" 5
15531fi
15532if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15533  as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15534Usually this means the macro was only invoked conditionally." "$LINENO" 5
15535fi
15536if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15537  as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15538Usually this means the macro was only invoked conditionally." "$LINENO" 5
15539fi
15540if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15541  as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15542Usually this means the macro was only invoked conditionally." "$LINENO" 5
15543fi
15544if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15545  as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15546Usually this means the macro was only invoked conditionally." "$LINENO" 5
15547fi
15548if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15549  as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15550Usually this means the macro was only invoked conditionally." "$LINENO" 5
15551fi
15552if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15553  as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15554Usually this means the macro was only invoked conditionally." "$LINENO" 5
15555fi
15556if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15557  as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15558Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559fi
15560if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15561  as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15562Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563fi
15564if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15565  as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15566Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567fi
15568if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15569  as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15570Usually this means the macro was only invoked conditionally." "$LINENO" 5
15571fi
15572
15573: "${CONFIG_STATUS=./config.status}"
15574ac_write_fail=0
15575ac_clean_files_save=$ac_clean_files
15576ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15577{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15578$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15579as_write_fail=0
15580cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15581#! $SHELL
15582# Generated by $as_me.
15583# Run this file to recreate the current configuration.
15584# Compiler output produced by configure, useful for debugging
15585# configure, is in config.log if it exists.
15586
15587debug=false
15588ac_cs_recheck=false
15589ac_cs_silent=false
15590
15591SHELL=\${CONFIG_SHELL-$SHELL}
15592export SHELL
15593_ASEOF
15594cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15595## -------------------- ##
15596## M4sh Initialization. ##
15597## -------------------- ##
15598
15599# Be more Bourne compatible
15600DUALCASE=1; export DUALCASE # for MKS sh
15601if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15602  emulate sh
15603  NULLCMD=:
15604  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15605  # is contrary to our usage.  Disable this feature.
15606  alias -g '${1+"$@"}'='"$@"'
15607  setopt NO_GLOB_SUBST
15608else
15609  case `(set -o) 2>/dev/null` in #(
15610  *posix*) :
15611    set -o posix ;; #(
15612  *) :
15613     ;;
15614esac
15615fi
15616
15617
15618as_nl='
15619'
15620export as_nl
15621# Printing a long string crashes Solaris 7 /usr/bin/printf.
15622as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15623as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15624as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15625# Prefer a ksh shell builtin over an external printf program on Solaris,
15626# but without wasting forks for bash or zsh.
15627if test -z "$BASH_VERSION$ZSH_VERSION" \
15628    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15629  as_echo='print -r --'
15630  as_echo_n='print -rn --'
15631elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15632  as_echo='printf %s\n'
15633  as_echo_n='printf %s'
15634else
15635  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15636    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15637    as_echo_n='/usr/ucb/echo -n'
15638  else
15639    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15640    as_echo_n_body='eval
15641      arg=$1;
15642      case $arg in #(
15643      *"$as_nl"*)
15644	expr "X$arg" : "X\\(.*\\)$as_nl";
15645	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15646      esac;
15647      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15648    '
15649    export as_echo_n_body
15650    as_echo_n='sh -c $as_echo_n_body as_echo'
15651  fi
15652  export as_echo_body
15653  as_echo='sh -c $as_echo_body as_echo'
15654fi
15655
15656# The user is always right.
15657if test "${PATH_SEPARATOR+set}" != set; then
15658  PATH_SEPARATOR=:
15659  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15660    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15661      PATH_SEPARATOR=';'
15662  }
15663fi
15664
15665
15666# IFS
15667# We need space, tab and new line, in precisely that order.  Quoting is
15668# there to prevent editors from complaining about space-tab.
15669# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15670# splitting by setting IFS to empty value.)
15671IFS=" ""	$as_nl"
15672
15673# Find who we are.  Look in the path if we contain no directory separator.
15674as_myself=
15675case $0 in #((
15676  *[\\/]* ) as_myself=$0 ;;
15677  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15678for as_dir in $PATH
15679do
15680  IFS=$as_save_IFS
15681  test -z "$as_dir" && as_dir=.
15682    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15683  done
15684IFS=$as_save_IFS
15685
15686     ;;
15687esac
15688# We did not find ourselves, most probably we were run as `sh COMMAND'
15689# in which case we are not to be found in the path.
15690if test "x$as_myself" = x; then
15691  as_myself=$0
15692fi
15693if test ! -f "$as_myself"; then
15694  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15695  exit 1
15696fi
15697
15698# Unset variables that we do not need and which cause bugs (e.g. in
15699# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15700# suppresses any "Segmentation fault" message there.  '((' could
15701# trigger a bug in pdksh 5.2.14.
15702for as_var in BASH_ENV ENV MAIL MAILPATH
15703do eval test x\${$as_var+set} = xset \
15704  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15705done
15706PS1='$ '
15707PS2='> '
15708PS4='+ '
15709
15710# NLS nuisances.
15711LC_ALL=C
15712export LC_ALL
15713LANGUAGE=C
15714export LANGUAGE
15715
15716# CDPATH.
15717(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15718
15719
15720# as_fn_error STATUS ERROR [LINENO LOG_FD]
15721# ----------------------------------------
15722# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15723# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15724# script with STATUS, using 1 if that was 0.
15725as_fn_error ()
15726{
15727  as_status=$1; test $as_status -eq 0 && as_status=1
15728  if test "$4"; then
15729    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15730    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15731  fi
15732  $as_echo "$as_me: error: $2" >&2
15733  as_fn_exit $as_status
15734} # as_fn_error
15735
15736
15737# as_fn_set_status STATUS
15738# -----------------------
15739# Set $? to STATUS, without forking.
15740as_fn_set_status ()
15741{
15742  return $1
15743} # as_fn_set_status
15744
15745# as_fn_exit STATUS
15746# -----------------
15747# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15748as_fn_exit ()
15749{
15750  set +e
15751  as_fn_set_status $1
15752  exit $1
15753} # as_fn_exit
15754
15755# as_fn_unset VAR
15756# ---------------
15757# Portably unset VAR.
15758as_fn_unset ()
15759{
15760  { eval $1=; unset $1;}
15761}
15762as_unset=as_fn_unset
15763# as_fn_append VAR VALUE
15764# ----------------------
15765# Append the text in VALUE to the end of the definition contained in VAR. Take
15766# advantage of any shell optimizations that allow amortized linear growth over
15767# repeated appends, instead of the typical quadratic growth present in naive
15768# implementations.
15769if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15770  eval 'as_fn_append ()
15771  {
15772    eval $1+=\$2
15773  }'
15774else
15775  as_fn_append ()
15776  {
15777    eval $1=\$$1\$2
15778  }
15779fi # as_fn_append
15780
15781# as_fn_arith ARG...
15782# ------------------
15783# Perform arithmetic evaluation on the ARGs, and store the result in the
15784# global $as_val. Take advantage of shells that can avoid forks. The arguments
15785# must be portable across $(()) and expr.
15786if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15787  eval 'as_fn_arith ()
15788  {
15789    as_val=$(( $* ))
15790  }'
15791else
15792  as_fn_arith ()
15793  {
15794    as_val=`expr "$@" || test $? -eq 1`
15795  }
15796fi # as_fn_arith
15797
15798
15799if expr a : '\(a\)' >/dev/null 2>&1 &&
15800   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15801  as_expr=expr
15802else
15803  as_expr=false
15804fi
15805
15806if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15807  as_basename=basename
15808else
15809  as_basename=false
15810fi
15811
15812if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15813  as_dirname=dirname
15814else
15815  as_dirname=false
15816fi
15817
15818as_me=`$as_basename -- "$0" ||
15819$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15820	 X"$0" : 'X\(//\)$' \| \
15821	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15822$as_echo X/"$0" |
15823    sed '/^.*\/\([^/][^/]*\)\/*$/{
15824	    s//\1/
15825	    q
15826	  }
15827	  /^X\/\(\/\/\)$/{
15828	    s//\1/
15829	    q
15830	  }
15831	  /^X\/\(\/\).*/{
15832	    s//\1/
15833	    q
15834	  }
15835	  s/.*/./; q'`
15836
15837# Avoid depending upon Character Ranges.
15838as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15839as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15840as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15841as_cr_digits='0123456789'
15842as_cr_alnum=$as_cr_Letters$as_cr_digits
15843
15844ECHO_C= ECHO_N= ECHO_T=
15845case `echo -n x` in #(((((
15846-n*)
15847  case `echo 'xy\c'` in
15848  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15849  xy)  ECHO_C='\c';;
15850  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15851       ECHO_T='	';;
15852  esac;;
15853*)
15854  ECHO_N='-n';;
15855esac
15856
15857rm -f conf$$ conf$$.exe conf$$.file
15858if test -d conf$$.dir; then
15859  rm -f conf$$.dir/conf$$.file
15860else
15861  rm -f conf$$.dir
15862  mkdir conf$$.dir 2>/dev/null
15863fi
15864if (echo >conf$$.file) 2>/dev/null; then
15865  if ln -s conf$$.file conf$$ 2>/dev/null; then
15866    as_ln_s='ln -s'
15867    # ... but there are two gotchas:
15868    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15869    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15870    # In both cases, we have to default to `cp -pR'.
15871    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15872      as_ln_s='cp -pR'
15873  elif ln conf$$.file conf$$ 2>/dev/null; then
15874    as_ln_s=ln
15875  else
15876    as_ln_s='cp -pR'
15877  fi
15878else
15879  as_ln_s='cp -pR'
15880fi
15881rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15882rmdir conf$$.dir 2>/dev/null
15883
15884
15885# as_fn_mkdir_p
15886# -------------
15887# Create "$as_dir" as a directory, including parents if necessary.
15888as_fn_mkdir_p ()
15889{
15890
15891  case $as_dir in #(
15892  -*) as_dir=./$as_dir;;
15893  esac
15894  test -d "$as_dir" || eval $as_mkdir_p || {
15895    as_dirs=
15896    while :; do
15897      case $as_dir in #(
15898      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15899      *) as_qdir=$as_dir;;
15900      esac
15901      as_dirs="'$as_qdir' $as_dirs"
15902      as_dir=`$as_dirname -- "$as_dir" ||
15903$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15904	 X"$as_dir" : 'X\(//\)[^/]' \| \
15905	 X"$as_dir" : 'X\(//\)$' \| \
15906	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15907$as_echo X"$as_dir" |
15908    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15909	    s//\1/
15910	    q
15911	  }
15912	  /^X\(\/\/\)[^/].*/{
15913	    s//\1/
15914	    q
15915	  }
15916	  /^X\(\/\/\)$/{
15917	    s//\1/
15918	    q
15919	  }
15920	  /^X\(\/\).*/{
15921	    s//\1/
15922	    q
15923	  }
15924	  s/.*/./; q'`
15925      test -d "$as_dir" && break
15926    done
15927    test -z "$as_dirs" || eval "mkdir $as_dirs"
15928  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15929
15930
15931} # as_fn_mkdir_p
15932if mkdir -p . 2>/dev/null; then
15933  as_mkdir_p='mkdir -p "$as_dir"'
15934else
15935  test -d ./-p && rmdir ./-p
15936  as_mkdir_p=false
15937fi
15938
15939
15940# as_fn_executable_p FILE
15941# -----------------------
15942# Test if FILE is an executable regular file.
15943as_fn_executable_p ()
15944{
15945  test -f "$1" && test -x "$1"
15946} # as_fn_executable_p
15947as_test_x='test -x'
15948as_executable_p=as_fn_executable_p
15949
15950# Sed expression to map a string onto a valid CPP name.
15951as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15952
15953# Sed expression to map a string onto a valid variable name.
15954as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15955
15956
15957exec 6>&1
15958## ----------------------------------- ##
15959## Main body of $CONFIG_STATUS script. ##
15960## ----------------------------------- ##
15961_ASEOF
15962test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15963
15964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15965# Save the log message, to keep $0 and so on meaningful, and to
15966# report actual input values of CONFIG_FILES etc. instead of their
15967# values after options handling.
15968ac_log="
15969This file was extended by package-unused $as_me version-unused, which was
15970generated by GNU Autoconf 2.69.  Invocation command line was
15971
15972  CONFIG_FILES    = $CONFIG_FILES
15973  CONFIG_HEADERS  = $CONFIG_HEADERS
15974  CONFIG_LINKS    = $CONFIG_LINKS
15975  CONFIG_COMMANDS = $CONFIG_COMMANDS
15976  $ $0 $@
15977
15978on `(hostname || uname -n) 2>/dev/null | sed 1q`
15979"
15980
15981_ACEOF
15982
15983case $ac_config_files in *"
15984"*) set x $ac_config_files; shift; ac_config_files=$*;;
15985esac
15986
15987case $ac_config_headers in *"
15988"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15989esac
15990
15991
15992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15993# Files that config.status was made for.
15994config_files="$ac_config_files"
15995config_headers="$ac_config_headers"
15996config_commands="$ac_config_commands"
15997
15998_ACEOF
15999
16000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16001ac_cs_usage="\
16002\`$as_me' instantiates files and other configuration actions
16003from templates according to the current configuration.  Unless the files
16004and actions are specified as TAGs, all are instantiated by default.
16005
16006Usage: $0 [OPTION]... [TAG]...
16007
16008  -h, --help       print this help, then exit
16009  -V, --version    print version number and configuration settings, then exit
16010      --config     print configuration, then exit
16011  -q, --quiet, --silent
16012                   do not print progress messages
16013  -d, --debug      don't remove temporary files
16014      --recheck    update $as_me by reconfiguring in the same conditions
16015      --file=FILE[:TEMPLATE]
16016                   instantiate the configuration file FILE
16017      --header=FILE[:TEMPLATE]
16018                   instantiate the configuration header FILE
16019
16020Configuration files:
16021$config_files
16022
16023Configuration headers:
16024$config_headers
16025
16026Configuration commands:
16027$config_commands
16028
16029Report bugs to the package provider."
16030
16031_ACEOF
16032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16033ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16034ac_cs_version="\\
16035package-unused config.status version-unused
16036configured by $0, generated by GNU Autoconf 2.69,
16037  with options \\"\$ac_cs_config\\"
16038
16039Copyright (C) 2012 Free Software Foundation, Inc.
16040This config.status script is free software; the Free Software Foundation
16041gives unlimited permission to copy, distribute and modify it."
16042
16043ac_pwd='$ac_pwd'
16044srcdir='$srcdir'
16045INSTALL='$INSTALL'
16046MKDIR_P='$MKDIR_P'
16047AWK='$AWK'
16048test -n "\$AWK" || AWK=awk
16049_ACEOF
16050
16051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16052# The default lists apply if the user does not specify any file.
16053ac_need_defaults=:
16054while test $# != 0
16055do
16056  case $1 in
16057  --*=?*)
16058    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16059    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16060    ac_shift=:
16061    ;;
16062  --*=)
16063    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16064    ac_optarg=
16065    ac_shift=:
16066    ;;
16067  *)
16068    ac_option=$1
16069    ac_optarg=$2
16070    ac_shift=shift
16071    ;;
16072  esac
16073
16074  case $ac_option in
16075  # Handling of the options.
16076  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16077    ac_cs_recheck=: ;;
16078  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16079    $as_echo "$ac_cs_version"; exit ;;
16080  --config | --confi | --conf | --con | --co | --c )
16081    $as_echo "$ac_cs_config"; exit ;;
16082  --debug | --debu | --deb | --de | --d | -d )
16083    debug=: ;;
16084  --file | --fil | --fi | --f )
16085    $ac_shift
16086    case $ac_optarg in
16087    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16088    '') as_fn_error $? "missing file argument" ;;
16089    esac
16090    as_fn_append CONFIG_FILES " '$ac_optarg'"
16091    ac_need_defaults=false;;
16092  --header | --heade | --head | --hea )
16093    $ac_shift
16094    case $ac_optarg in
16095    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16096    esac
16097    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16098    ac_need_defaults=false;;
16099  --he | --h)
16100    # Conflict between --help and --header
16101    as_fn_error $? "ambiguous option: \`$1'
16102Try \`$0 --help' for more information.";;
16103  --help | --hel | -h )
16104    $as_echo "$ac_cs_usage"; exit ;;
16105  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16106  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16107    ac_cs_silent=: ;;
16108
16109  # This is an error.
16110  -*) as_fn_error $? "unrecognized option: \`$1'
16111Try \`$0 --help' for more information." ;;
16112
16113  *) as_fn_append ac_config_targets " $1"
16114     ac_need_defaults=false ;;
16115
16116  esac
16117  shift
16118done
16119
16120ac_configure_extra_args=
16121
16122if $ac_cs_silent; then
16123  exec 6>/dev/null
16124  ac_configure_extra_args="$ac_configure_extra_args --silent"
16125fi
16126
16127_ACEOF
16128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16129if \$ac_cs_recheck; then
16130  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16131  shift
16132  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16133  CONFIG_SHELL='$SHELL'
16134  export CONFIG_SHELL
16135  exec "\$@"
16136fi
16137
16138_ACEOF
16139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16140exec 5>>config.log
16141{
16142  echo
16143  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16144## Running $as_me. ##
16145_ASBOX
16146  $as_echo "$ac_log"
16147} >&5
16148
16149_ACEOF
16150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16151#
16152# INIT-COMMANDS
16153#
16154
16155srcdir="$srcdir"
16156host="$host"
16157target="$target"
16158with_multisubdir="$with_multisubdir"
16159with_multisrctop="$with_multisrctop"
16160with_target_subdir="$with_target_subdir"
16161ac_configure_args="${multilib_arg} ${ac_configure_args}"
16162multi_basedir="$multi_basedir"
16163CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16164CC="$CC"
16165CXX="$CXX"
16166GFORTRAN="$GFORTRAN"
16167GDC="$GDC"
16168
16169
16170# The HP-UX ksh and POSIX shell print the target directory to stdout
16171# if CDPATH is set.
16172(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16173
16174sed_quote_subst='$sed_quote_subst'
16175double_quote_subst='$double_quote_subst'
16176delay_variable_subst='$delay_variable_subst'
16177macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16178macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16179enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16180enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16181pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16182enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16183SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16184ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16185host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16186host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16187host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16188build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16189build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16190build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16191SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16192Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16193GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16194EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16195FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16196LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16197NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16198LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16199max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16200ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16201exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16202lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16203lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16204lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16205reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16206reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16207OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16208deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16209file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16210AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16211AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16212STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16213RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16214old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16215old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16216old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16217lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16218CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16219CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16220compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16221GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16222lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16223lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16224lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16225lt_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"`'
16226objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16227MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16228lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16229lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16230lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16231lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16232lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16233need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16234DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16235NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16236LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16237OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16238OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16239libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16240shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16241extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16242archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16243enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16244export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16245whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16246compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16247old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16248old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16249archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16250archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16251module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16252module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16253with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16254allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16255no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16256hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16257hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16258hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16259hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16260hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16261hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16262hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16263hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16264inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16265link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16266fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16267always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16268export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16269exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16270include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16271prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16272file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16273variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16274need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16275need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16276version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16277runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16278shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16279shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16280libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16281library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16282soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16283install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16284postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16285postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16286finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16287finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16288hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16289sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16290sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16291hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16292enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16293enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16294enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16295old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16296striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16297LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16298reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16299reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16300old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16301compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16302GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16303lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16304lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16305lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16306lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16307lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16308archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16309enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16310export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16311whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16312compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16313old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16314old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16315archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16316archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16317module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16318module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16319with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16320allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16321no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16322hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16323hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16324hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16325hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16326hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16327hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16328hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16329hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16330inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16331link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16332fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16333always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16334export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16335exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16336include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16337prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16338file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16339hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16340
16341LTCC='$LTCC'
16342LTCFLAGS='$LTCFLAGS'
16343compiler='$compiler_DEFAULT'
16344
16345# A function that is used when there is no print builtin or printf.
16346func_fallback_echo ()
16347{
16348  eval 'cat <<_LTECHO_EOF
16349\$1
16350_LTECHO_EOF'
16351}
16352
16353# Quote evaled strings.
16354for var in SHELL \
16355ECHO \
16356SED \
16357GREP \
16358EGREP \
16359FGREP \
16360LD \
16361NM \
16362LN_S \
16363lt_SP2NL \
16364lt_NL2SP \
16365reload_flag \
16366OBJDUMP \
16367deplibs_check_method \
16368file_magic_cmd \
16369AR \
16370AR_FLAGS \
16371STRIP \
16372RANLIB \
16373CC \
16374CFLAGS \
16375compiler \
16376lt_cv_sys_global_symbol_pipe \
16377lt_cv_sys_global_symbol_to_cdecl \
16378lt_cv_sys_global_symbol_to_c_name_address \
16379lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16380lt_prog_compiler_no_builtin_flag \
16381lt_prog_compiler_wl \
16382lt_prog_compiler_pic \
16383lt_prog_compiler_static \
16384lt_cv_prog_compiler_c_o \
16385need_locks \
16386DSYMUTIL \
16387NMEDIT \
16388LIPO \
16389OTOOL \
16390OTOOL64 \
16391shrext_cmds \
16392export_dynamic_flag_spec \
16393whole_archive_flag_spec \
16394compiler_needs_object \
16395with_gnu_ld \
16396allow_undefined_flag \
16397no_undefined_flag \
16398hardcode_libdir_flag_spec \
16399hardcode_libdir_flag_spec_ld \
16400hardcode_libdir_separator \
16401fix_srcfile_path \
16402exclude_expsyms \
16403include_expsyms \
16404file_list_spec \
16405variables_saved_for_relink \
16406libname_spec \
16407library_names_spec \
16408soname_spec \
16409install_override_mode \
16410finish_eval \
16411old_striplib \
16412striplib \
16413LD_D \
16414reload_flag_D \
16415compiler_D \
16416lt_prog_compiler_no_builtin_flag_D \
16417lt_prog_compiler_wl_D \
16418lt_prog_compiler_pic_D \
16419lt_prog_compiler_static_D \
16420lt_cv_prog_compiler_c_o_D \
16421export_dynamic_flag_spec_D \
16422whole_archive_flag_spec_D \
16423compiler_needs_object_D \
16424with_gnu_ld_D \
16425allow_undefined_flag_D \
16426no_undefined_flag_D \
16427hardcode_libdir_flag_spec_D \
16428hardcode_libdir_flag_spec_ld_D \
16429hardcode_libdir_separator_D \
16430fix_srcfile_path_D \
16431exclude_expsyms_D \
16432include_expsyms_D \
16433file_list_spec_D; do
16434    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16435    *[\\\\\\\`\\"\\\$]*)
16436      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16437      ;;
16438    *)
16439      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16440      ;;
16441    esac
16442done
16443
16444# Double-quote double-evaled strings.
16445for var in reload_cmds \
16446old_postinstall_cmds \
16447old_postuninstall_cmds \
16448old_archive_cmds \
16449extract_expsyms_cmds \
16450old_archive_from_new_cmds \
16451old_archive_from_expsyms_cmds \
16452archive_cmds \
16453archive_expsym_cmds \
16454module_cmds \
16455module_expsym_cmds \
16456export_symbols_cmds \
16457prelink_cmds \
16458postinstall_cmds \
16459postuninstall_cmds \
16460finish_cmds \
16461sys_lib_search_path_spec \
16462sys_lib_dlsearch_path_spec \
16463reload_cmds_D \
16464old_archive_cmds_D \
16465old_archive_from_new_cmds_D \
16466old_archive_from_expsyms_cmds_D \
16467archive_cmds_D \
16468archive_expsym_cmds_D \
16469module_cmds_D \
16470module_expsym_cmds_D \
16471export_symbols_cmds_D \
16472prelink_cmds_D; do
16473    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16474    *[\\\\\\\`\\"\\\$]*)
16475      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16476      ;;
16477    *)
16478      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16479      ;;
16480    esac
16481done
16482
16483ac_aux_dir='$ac_aux_dir'
16484xsi_shell='$xsi_shell'
16485lt_shell_append='$lt_shell_append'
16486
16487# See if we are running on zsh, and set the options which allow our
16488# commands through without removal of \ escapes INIT.
16489if test -n "\${ZSH_VERSION+set}" ; then
16490   setopt NO_GLOB_SUBST
16491fi
16492
16493
16494    PACKAGE='$PACKAGE'
16495    VERSION='$VERSION'
16496    TIMESTAMP='$TIMESTAMP'
16497    RM='$RM'
16498    ofile='$ofile'
16499
16500
16501
16502
16503
16504
16505_ACEOF
16506
16507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16508
16509# Handling of arguments.
16510for ac_config_target in $ac_config_targets
16511do
16512  case $ac_config_target in
16513    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16514    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16515    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16516    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16517    "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16518    "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16519    "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16520    "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16521    "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16522    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16523    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16524
16525  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16526  esac
16527done
16528
16529
16530# If the user did not use the arguments to specify the items to instantiate,
16531# then the envvar interface is used.  Set only those that are not.
16532# We use the long form for the default assignment because of an extremely
16533# bizarre bug on SunOS 4.1.3.
16534if $ac_need_defaults; then
16535  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16536  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16537  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16538fi
16539
16540# Have a temporary directory for convenience.  Make it in the build tree
16541# simply because there is no reason against having it here, and in addition,
16542# creating and moving files from /tmp can sometimes cause problems.
16543# Hook for its removal unless debugging.
16544# Note that there is a small window in which the directory will not be cleaned:
16545# after its creation but before its name has been assigned to `$tmp'.
16546$debug ||
16547{
16548  tmp= ac_tmp=
16549  trap 'exit_status=$?
16550  : "${ac_tmp:=$tmp}"
16551  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16552' 0
16553  trap 'as_fn_exit 1' 1 2 13 15
16554}
16555# Create a (secure) tmp directory for tmp files.
16556
16557{
16558  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16559  test -d "$tmp"
16560}  ||
16561{
16562  tmp=./conf$$-$RANDOM
16563  (umask 077 && mkdir "$tmp")
16564} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16565ac_tmp=$tmp
16566
16567# Set up the scripts for CONFIG_FILES section.
16568# No need to generate them if there are no CONFIG_FILES.
16569# This happens for instance with `./config.status config.h'.
16570if test -n "$CONFIG_FILES"; then
16571
16572if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16573  ac_cs_awk_getline=:
16574  ac_cs_awk_pipe_init=
16575  ac_cs_awk_read_file='
16576      while ((getline aline < (F[key])) > 0)
16577	print(aline)
16578      close(F[key])'
16579  ac_cs_awk_pipe_fini=
16580else
16581  ac_cs_awk_getline=false
16582  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16583  ac_cs_awk_read_file='
16584      print "|#_!!_#|"
16585      print "cat " F[key] " &&"
16586      '$ac_cs_awk_pipe_init
16587  # The final `:' finishes the AND list.
16588  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16589fi
16590ac_cr=`echo X | tr X '\015'`
16591# On cygwin, bash can eat \r inside `` if the user requested igncr.
16592# But we know of no other shell where ac_cr would be empty at this
16593# point, so we can use a bashism as a fallback.
16594if test "x$ac_cr" = x; then
16595  eval ac_cr=\$\'\\r\'
16596fi
16597ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16598if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16599  ac_cs_awk_cr='\\r'
16600else
16601  ac_cs_awk_cr=$ac_cr
16602fi
16603
16604echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16605_ACEOF
16606
16607# Create commands to substitute file output variables.
16608{
16609  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16610  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16611  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16612  echo "_ACAWK" &&
16613  echo "_ACEOF"
16614} >conf$$files.sh &&
16615. ./conf$$files.sh ||
16616  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16617rm -f conf$$files.sh
16618
16619{
16620  echo "cat >conf$$subs.awk <<_ACEOF" &&
16621  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16622  echo "_ACEOF"
16623} >conf$$subs.sh ||
16624  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16625ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16626ac_delim='%!_!# '
16627for ac_last_try in false false false false false :; do
16628  . ./conf$$subs.sh ||
16629    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16630
16631  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16632  if test $ac_delim_n = $ac_delim_num; then
16633    break
16634  elif $ac_last_try; then
16635    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16636  else
16637    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16638  fi
16639done
16640rm -f conf$$subs.sh
16641
16642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16643cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16644_ACEOF
16645sed -n '
16646h
16647s/^/S["/; s/!.*/"]=/
16648p
16649g
16650s/^[^!]*!//
16651:repl
16652t repl
16653s/'"$ac_delim"'$//
16654t delim
16655:nl
16656h
16657s/\(.\{148\}\)..*/\1/
16658t more1
16659s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16660p
16661n
16662b repl
16663:more1
16664s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16665p
16666g
16667s/.\{148\}//
16668t nl
16669:delim
16670h
16671s/\(.\{148\}\)..*/\1/
16672t more2
16673s/["\\]/\\&/g; s/^/"/; s/$/"/
16674p
16675b
16676:more2
16677s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16678p
16679g
16680s/.\{148\}//
16681t delim
16682' <conf$$subs.awk | sed '
16683/^[^""]/{
16684  N
16685  s/\n//
16686}
16687' >>$CONFIG_STATUS || ac_write_fail=1
16688rm -f conf$$subs.awk
16689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16690_ACAWK
16691cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16692  for (key in S) S_is_set[key] = 1
16693  FS = ""
16694  \$ac_cs_awk_pipe_init
16695}
16696{
16697  line = $ 0
16698  nfields = split(line, field, "@")
16699  substed = 0
16700  len = length(field[1])
16701  for (i = 2; i < nfields; i++) {
16702    key = field[i]
16703    keylen = length(key)
16704    if (S_is_set[key]) {
16705      value = S[key]
16706      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16707      len += length(value) + length(field[++i])
16708      substed = 1
16709    } else
16710      len += 1 + keylen
16711  }
16712  if (nfields == 3 && !substed) {
16713    key = field[2]
16714    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
16715      \$ac_cs_awk_read_file
16716      next
16717    }
16718  }
16719  print line
16720}
16721\$ac_cs_awk_pipe_fini
16722_ACAWK
16723_ACEOF
16724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16725if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16726  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16727else
16728  cat
16729fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16730  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16731_ACEOF
16732
16733# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16734# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16735# trailing colons and then remove the whole line if VPATH becomes empty
16736# (actually we leave an empty line to preserve line numbers).
16737if test "x$srcdir" = x.; then
16738  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16739h
16740s///
16741s/^/:/
16742s/[	 ]*$/:/
16743s/:\$(srcdir):/:/g
16744s/:\${srcdir}:/:/g
16745s/:@srcdir@:/:/g
16746s/^:*//
16747s/:*$//
16748x
16749s/\(=[	 ]*\).*/\1/
16750G
16751s/\n//
16752s/^[^=]*=[	 ]*$//
16753}'
16754fi
16755
16756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16757fi # test -n "$CONFIG_FILES"
16758
16759# Set up the scripts for CONFIG_HEADERS section.
16760# No need to generate them if there are no CONFIG_HEADERS.
16761# This happens for instance with `./config.status Makefile'.
16762if test -n "$CONFIG_HEADERS"; then
16763cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16764BEGIN {
16765_ACEOF
16766
16767# Transform confdefs.h into an awk script `defines.awk', embedded as
16768# here-document in config.status, that substitutes the proper values into
16769# config.h.in to produce config.h.
16770
16771# Create a delimiter string that does not exist in confdefs.h, to ease
16772# handling of long lines.
16773ac_delim='%!_!# '
16774for ac_last_try in false false :; do
16775  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16776  if test -z "$ac_tt"; then
16777    break
16778  elif $ac_last_try; then
16779    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16780  else
16781    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16782  fi
16783done
16784
16785# For the awk script, D is an array of macro values keyed by name,
16786# likewise P contains macro parameters if any.  Preserve backslash
16787# newline sequences.
16788
16789ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16790sed -n '
16791s/.\{148\}/&'"$ac_delim"'/g
16792t rset
16793:rset
16794s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16795t def
16796d
16797:def
16798s/\\$//
16799t bsnl
16800s/["\\]/\\&/g
16801s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16802D["\1"]=" \3"/p
16803s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16804d
16805:bsnl
16806s/["\\]/\\&/g
16807s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16808D["\1"]=" \3\\\\\\n"\\/p
16809t cont
16810s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16811t cont
16812d
16813:cont
16814n
16815s/.\{148\}/&'"$ac_delim"'/g
16816t clear
16817:clear
16818s/\\$//
16819t bsnlc
16820s/["\\]/\\&/g; s/^/"/; s/$/"/p
16821d
16822:bsnlc
16823s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16824b cont
16825' <confdefs.h | sed '
16826s/'"$ac_delim"'/"\\\
16827"/g' >>$CONFIG_STATUS || ac_write_fail=1
16828
16829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16830  for (key in D) D_is_set[key] = 1
16831  FS = ""
16832}
16833/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16834  line = \$ 0
16835  split(line, arg, " ")
16836  if (arg[1] == "#") {
16837    defundef = arg[2]
16838    mac1 = arg[3]
16839  } else {
16840    defundef = substr(arg[1], 2)
16841    mac1 = arg[2]
16842  }
16843  split(mac1, mac2, "(") #)
16844  macro = mac2[1]
16845  prefix = substr(line, 1, index(line, defundef) - 1)
16846  if (D_is_set[macro]) {
16847    # Preserve the white space surrounding the "#".
16848    print prefix "define", macro P[macro] D[macro]
16849    next
16850  } else {
16851    # Replace #undef with comments.  This is necessary, for example,
16852    # in the case of _POSIX_SOURCE, which is predefined and required
16853    # on some systems where configure will not decide to define it.
16854    if (defundef == "undef") {
16855      print "/*", prefix defundef, macro, "*/"
16856      next
16857    }
16858  }
16859}
16860{ print }
16861_ACAWK
16862_ACEOF
16863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16864  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16865fi # test -n "$CONFIG_HEADERS"
16866
16867
16868eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16869shift
16870for ac_tag
16871do
16872  case $ac_tag in
16873  :[FHLC]) ac_mode=$ac_tag; continue;;
16874  esac
16875  case $ac_mode$ac_tag in
16876  :[FHL]*:*);;
16877  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16878  :[FH]-) ac_tag=-:-;;
16879  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16880  esac
16881  ac_save_IFS=$IFS
16882  IFS=:
16883  set x $ac_tag
16884  IFS=$ac_save_IFS
16885  shift
16886  ac_file=$1
16887  shift
16888
16889  case $ac_mode in
16890  :L) ac_source=$1;;
16891  :[FH])
16892    ac_file_inputs=
16893    for ac_f
16894    do
16895      case $ac_f in
16896      -) ac_f="$ac_tmp/stdin";;
16897      *) # Look for the file first in the build tree, then in the source tree
16898	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16899	 # because $ac_f cannot contain `:'.
16900	 test -f "$ac_f" ||
16901	   case $ac_f in
16902	   [\\/$]*) false;;
16903	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16904	   esac ||
16905	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16906      esac
16907      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16908      as_fn_append ac_file_inputs " '$ac_f'"
16909    done
16910
16911    # Let's still pretend it is `configure' which instantiates (i.e., don't
16912    # use $as_me), people would be surprised to read:
16913    #    /* config.h.  Generated by config.status.  */
16914    configure_input='Generated from '`
16915	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16916	`' by configure.'
16917    if test x"$ac_file" != x-; then
16918      configure_input="$ac_file.  $configure_input"
16919      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16920$as_echo "$as_me: creating $ac_file" >&6;}
16921    fi
16922    # Neutralize special characters interpreted by sed in replacement strings.
16923    case $configure_input in #(
16924    *\&* | *\|* | *\\* )
16925       ac_sed_conf_input=`$as_echo "$configure_input" |
16926       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16927    *) ac_sed_conf_input=$configure_input;;
16928    esac
16929
16930    case $ac_tag in
16931    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16932      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16933    esac
16934    ;;
16935  esac
16936
16937  ac_dir=`$as_dirname -- "$ac_file" ||
16938$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16939	 X"$ac_file" : 'X\(//\)[^/]' \| \
16940	 X"$ac_file" : 'X\(//\)$' \| \
16941	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16942$as_echo X"$ac_file" |
16943    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16944	    s//\1/
16945	    q
16946	  }
16947	  /^X\(\/\/\)[^/].*/{
16948	    s//\1/
16949	    q
16950	  }
16951	  /^X\(\/\/\)$/{
16952	    s//\1/
16953	    q
16954	  }
16955	  /^X\(\/\).*/{
16956	    s//\1/
16957	    q
16958	  }
16959	  s/.*/./; q'`
16960  as_dir="$ac_dir"; as_fn_mkdir_p
16961  ac_builddir=.
16962
16963case "$ac_dir" in
16964.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16965*)
16966  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16967  # A ".." for each directory in $ac_dir_suffix.
16968  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16969  case $ac_top_builddir_sub in
16970  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16971  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16972  esac ;;
16973esac
16974ac_abs_top_builddir=$ac_pwd
16975ac_abs_builddir=$ac_pwd$ac_dir_suffix
16976# for backward compatibility:
16977ac_top_builddir=$ac_top_build_prefix
16978
16979case $srcdir in
16980  .)  # We are building in place.
16981    ac_srcdir=.
16982    ac_top_srcdir=$ac_top_builddir_sub
16983    ac_abs_top_srcdir=$ac_pwd ;;
16984  [\\/]* | ?:[\\/]* )  # Absolute name.
16985    ac_srcdir=$srcdir$ac_dir_suffix;
16986    ac_top_srcdir=$srcdir
16987    ac_abs_top_srcdir=$srcdir ;;
16988  *) # Relative name.
16989    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16990    ac_top_srcdir=$ac_top_build_prefix$srcdir
16991    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16992esac
16993ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16994
16995
16996  case $ac_mode in
16997  :F)
16998  #
16999  # CONFIG_FILE
17000  #
17001
17002  case $INSTALL in
17003  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17004  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17005  esac
17006  ac_MKDIR_P=$MKDIR_P
17007  case $MKDIR_P in
17008  [\\/$]* | ?:[\\/]* ) ;;
17009  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17010  esac
17011_ACEOF
17012
17013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17014# If the template does not know about datarootdir, expand it.
17015# FIXME: This hack should be removed a few years after 2.60.
17016ac_datarootdir_hack=; ac_datarootdir_seen=
17017ac_sed_dataroot='
17018/datarootdir/ {
17019  p
17020  q
17021}
17022/@datadir@/p
17023/@docdir@/p
17024/@infodir@/p
17025/@localedir@/p
17026/@mandir@/p'
17027case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17028*datarootdir*) ac_datarootdir_seen=yes;;
17029*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17030  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17031$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17032_ACEOF
17033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17034  ac_datarootdir_hack='
17035  s&@datadir@&$datadir&g
17036  s&@docdir@&$docdir&g
17037  s&@infodir@&$infodir&g
17038  s&@localedir@&$localedir&g
17039  s&@mandir@&$mandir&g
17040  s&\\\${datarootdir}&$datarootdir&g' ;;
17041esac
17042_ACEOF
17043
17044# Neutralize VPATH when `$srcdir' = `.'.
17045# Shell code in configure.ac might set extrasub.
17046# FIXME: do we really want to maintain this feature?
17047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17048ac_sed_extra="$ac_vpsub
17049$extrasub
17050_ACEOF
17051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17052:t
17053/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17054s|@configure_input@|$ac_sed_conf_input|;t t
17055s&@top_builddir@&$ac_top_builddir_sub&;t t
17056s&@top_build_prefix@&$ac_top_build_prefix&;t t
17057s&@srcdir@&$ac_srcdir&;t t
17058s&@abs_srcdir@&$ac_abs_srcdir&;t t
17059s&@top_srcdir@&$ac_top_srcdir&;t t
17060s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17061s&@builddir@&$ac_builddir&;t t
17062s&@abs_builddir@&$ac_abs_builddir&;t t
17063s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17064s&@INSTALL@&$ac_INSTALL&;t t
17065s&@MKDIR_P@&$ac_MKDIR_P&;t t
17066$ac_datarootdir_hack
17067"
17068eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17069if $ac_cs_awk_getline; then
17070  $AWK -f "$ac_tmp/subs.awk"
17071else
17072  $AWK -f "$ac_tmp/subs.awk" | $SHELL
17073fi \
17074  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17075
17076test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17077  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17078  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17079      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17080  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17081which seems to be undefined.  Please make sure it is defined" >&5
17082$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17083which seems to be undefined.  Please make sure it is defined" >&2;}
17084
17085  rm -f "$ac_tmp/stdin"
17086  case $ac_file in
17087  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17088  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17089  esac \
17090  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17091 ;;
17092  :H)
17093  #
17094  # CONFIG_HEADER
17095  #
17096  if test x"$ac_file" != x-; then
17097    {
17098      $as_echo "/* $configure_input  */" \
17099      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17100    } >"$ac_tmp/config.h" \
17101      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17102    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17103      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17104$as_echo "$as_me: $ac_file is unchanged" >&6;}
17105    else
17106      rm -f "$ac_file"
17107      mv "$ac_tmp/config.h" "$ac_file" \
17108	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17109    fi
17110  else
17111    $as_echo "/* $configure_input  */" \
17112      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17113      || as_fn_error $? "could not create -" "$LINENO" 5
17114  fi
17115# Compute "$ac_file"'s index in $config_headers.
17116_am_arg="$ac_file"
17117_am_stamp_count=1
17118for _am_header in $config_headers :; do
17119  case $_am_header in
17120    $_am_arg | $_am_arg:* )
17121      break ;;
17122    * )
17123      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17124  esac
17125done
17126echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17127$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17128	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17129	 X"$_am_arg" : 'X\(//\)$' \| \
17130	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17131$as_echo X"$_am_arg" |
17132    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17133	    s//\1/
17134	    q
17135	  }
17136	  /^X\(\/\/\)[^/].*/{
17137	    s//\1/
17138	    q
17139	  }
17140	  /^X\(\/\/\)$/{
17141	    s//\1/
17142	    q
17143	  }
17144	  /^X\(\/\).*/{
17145	    s//\1/
17146	    q
17147	  }
17148	  s/.*/./; q'`/stamp-h$_am_stamp_count
17149 ;;
17150
17151  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17152$as_echo "$as_me: executing $ac_file commands" >&6;}
17153 ;;
17154  esac
17155
17156
17157  case $ac_file$ac_mode in
17158    "default-1":C)
17159# Only add multilib support code if we just rebuilt the top-level
17160# Makefile.
17161case " $CONFIG_FILES " in
17162 *" Makefile "*)
17163   ac_file=Makefile . ${multi_basedir}/config-ml.in
17164   ;;
17165esac ;;
17166    "libtool":C)
17167
17168    # See if we are running on zsh, and set the options which allow our
17169    # commands through without removal of \ escapes.
17170    if test -n "${ZSH_VERSION+set}" ; then
17171      setopt NO_GLOB_SUBST
17172    fi
17173
17174    cfgfile="${ofile}T"
17175    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17176    $RM "$cfgfile"
17177
17178    cat <<_LT_EOF >> "$cfgfile"
17179#! $SHELL
17180
17181# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17182# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17183# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17184# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17185#
17186#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17187#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17188#   Written by Gordon Matzigkeit, 1996
17189#
17190#   This file is part of GNU Libtool.
17191#
17192# GNU Libtool is free software; you can redistribute it and/or
17193# modify it under the terms of the GNU General Public License as
17194# published by the Free Software Foundation; either version 2 of
17195# the License, or (at your option) any later version.
17196#
17197# As a special exception to the GNU General Public License,
17198# if you distribute this file as part of a program or library that
17199# is built using GNU Libtool, you may include this file under the
17200# same distribution terms that you use for the rest of that program.
17201#
17202# GNU Libtool is distributed in the hope that it will be useful,
17203# but WITHOUT ANY WARRANTY; without even the implied warranty of
17204# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17205# GNU General Public License for more details.
17206#
17207# You should have received a copy of the GNU General Public License
17208# along with GNU Libtool; see the file COPYING.  If not, a copy
17209# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17210# obtained by writing to the Free Software Foundation, Inc.,
17211# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17212
17213
17214# The names of the tagged configurations supported by this script.
17215available_tags="D "
17216
17217# ### BEGIN LIBTOOL CONFIG
17218
17219# Which release of libtool.m4 was used?
17220macro_version=$macro_version
17221macro_revision=$macro_revision
17222
17223# Whether or not to build shared libraries.
17224build_libtool_libs=$enable_shared
17225
17226# Whether or not to build static libraries.
17227build_old_libs=$enable_static
17228
17229# What type of objects to build.
17230pic_mode=$pic_mode
17231
17232# Whether or not to optimize for fast installation.
17233fast_install=$enable_fast_install
17234
17235# Shell to use when invoking shell scripts.
17236SHELL=$lt_SHELL
17237
17238# An echo program that protects backslashes.
17239ECHO=$lt_ECHO
17240
17241# The host system.
17242host_alias=$host_alias
17243host=$host
17244host_os=$host_os
17245
17246# The build system.
17247build_alias=$build_alias
17248build=$build
17249build_os=$build_os
17250
17251# A sed program that does not truncate output.
17252SED=$lt_SED
17253
17254# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17255Xsed="\$SED -e 1s/^X//"
17256
17257# A grep program that handles long lines.
17258GREP=$lt_GREP
17259
17260# An ERE matcher.
17261EGREP=$lt_EGREP
17262
17263# A literal string matcher.
17264FGREP=$lt_FGREP
17265
17266# A BSD- or MS-compatible name lister.
17267NM=$lt_NM
17268
17269# Whether we need soft or hard links.
17270LN_S=$lt_LN_S
17271
17272# What is the maximum length of a command?
17273max_cmd_len=$max_cmd_len
17274
17275# Object file suffix (normally "o").
17276objext=$ac_objext
17277
17278# Executable file suffix (normally "").
17279exeext=$exeext
17280
17281# whether the shell understands "unset".
17282lt_unset=$lt_unset
17283
17284# turn spaces into newlines.
17285SP2NL=$lt_lt_SP2NL
17286
17287# turn newlines into spaces.
17288NL2SP=$lt_lt_NL2SP
17289
17290# An object symbol dumper.
17291OBJDUMP=$lt_OBJDUMP
17292
17293# Method to check whether dependent libraries are shared objects.
17294deplibs_check_method=$lt_deplibs_check_method
17295
17296# Command to use when deplibs_check_method == "file_magic".
17297file_magic_cmd=$lt_file_magic_cmd
17298
17299# The archiver.
17300AR=$lt_AR
17301AR_FLAGS=$lt_AR_FLAGS
17302
17303# A symbol stripping program.
17304STRIP=$lt_STRIP
17305
17306# Commands used to install an old-style archive.
17307RANLIB=$lt_RANLIB
17308old_postinstall_cmds=$lt_old_postinstall_cmds
17309old_postuninstall_cmds=$lt_old_postuninstall_cmds
17310
17311# Whether to use a lock for old archive extraction.
17312lock_old_archive_extraction=$lock_old_archive_extraction
17313
17314# A C compiler.
17315LTCC=$lt_CC
17316
17317# LTCC compiler flags.
17318LTCFLAGS=$lt_CFLAGS
17319
17320# Take the output of nm and produce a listing of raw symbols and C names.
17321global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17322
17323# Transform the output of nm in a proper C declaration.
17324global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17325
17326# Transform the output of nm in a C name address pair.
17327global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17328
17329# Transform the output of nm in a C name address pair when lib prefix is needed.
17330global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17331
17332# The name of the directory that contains temporary libtool files.
17333objdir=$objdir
17334
17335# Used to examine libraries when file_magic_cmd begins with "file".
17336MAGIC_CMD=$MAGIC_CMD
17337
17338# Must we lock files when doing compilation?
17339need_locks=$lt_need_locks
17340
17341# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17342DSYMUTIL=$lt_DSYMUTIL
17343
17344# Tool to change global to local symbols on Mac OS X.
17345NMEDIT=$lt_NMEDIT
17346
17347# Tool to manipulate fat objects and archives on Mac OS X.
17348LIPO=$lt_LIPO
17349
17350# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17351OTOOL=$lt_OTOOL
17352
17353# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17354OTOOL64=$lt_OTOOL64
17355
17356# Old archive suffix (normally "a").
17357libext=$libext
17358
17359# Shared library suffix (normally ".so").
17360shrext_cmds=$lt_shrext_cmds
17361
17362# The commands to extract the exported symbol list from a shared archive.
17363extract_expsyms_cmds=$lt_extract_expsyms_cmds
17364
17365# Variables whose values should be saved in libtool wrapper scripts and
17366# restored at link time.
17367variables_saved_for_relink=$lt_variables_saved_for_relink
17368
17369# Do we need the "lib" prefix for modules?
17370need_lib_prefix=$need_lib_prefix
17371
17372# Do we need a version for libraries?
17373need_version=$need_version
17374
17375# Library versioning type.
17376version_type=$version_type
17377
17378# Shared library runtime path variable.
17379runpath_var=$runpath_var
17380
17381# Shared library path variable.
17382shlibpath_var=$shlibpath_var
17383
17384# Is shlibpath searched before the hard-coded library search path?
17385shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17386
17387# Format of library name prefix.
17388libname_spec=$lt_libname_spec
17389
17390# List of archive names.  First name is the real one, the rest are links.
17391# The last name is the one that the linker finds with -lNAME
17392library_names_spec=$lt_library_names_spec
17393
17394# The coded name of the library, if different from the real name.
17395soname_spec=$lt_soname_spec
17396
17397# Permission mode override for installation of shared libraries.
17398install_override_mode=$lt_install_override_mode
17399
17400# Command to use after installation of a shared archive.
17401postinstall_cmds=$lt_postinstall_cmds
17402
17403# Command to use after uninstallation of a shared archive.
17404postuninstall_cmds=$lt_postuninstall_cmds
17405
17406# Commands used to finish a libtool library installation in a directory.
17407finish_cmds=$lt_finish_cmds
17408
17409# As "finish_cmds", except a single script fragment to be evaled but
17410# not shown.
17411finish_eval=$lt_finish_eval
17412
17413# Whether we should hardcode library paths into libraries.
17414hardcode_into_libs=$hardcode_into_libs
17415
17416# Compile-time system search path for libraries.
17417sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17418
17419# Run-time system search path for libraries.
17420sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17421
17422# Whether dlopen is supported.
17423dlopen_support=$enable_dlopen
17424
17425# Whether dlopen of programs is supported.
17426dlopen_self=$enable_dlopen_self
17427
17428# Whether dlopen of statically linked programs is supported.
17429dlopen_self_static=$enable_dlopen_self_static
17430
17431# Commands to strip libraries.
17432old_striplib=$lt_old_striplib
17433striplib=$lt_striplib
17434
17435
17436# The linker used to build libraries.
17437LD=$lt_LD
17438
17439# How to create reloadable object files.
17440reload_flag=$lt_reload_flag
17441reload_cmds=$lt_reload_cmds
17442
17443# Commands used to build an old-style archive.
17444old_archive_cmds=$lt_old_archive_cmds
17445
17446# A language specific compiler.
17447CC=$lt_compiler
17448
17449# Is the compiler the GNU compiler?
17450with_gcc=$GCC
17451
17452# Compiler flag to turn off builtin functions.
17453no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17454
17455# How to pass a linker flag through the compiler.
17456wl=$lt_lt_prog_compiler_wl
17457
17458# Additional compiler flags for building library objects.
17459pic_flag=$lt_lt_prog_compiler_pic
17460
17461# Compiler flag to prevent dynamic linking.
17462link_static_flag=$lt_lt_prog_compiler_static
17463
17464# Does compiler simultaneously support -c and -o options?
17465compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17466
17467# Whether or not to add -lc for building shared libraries.
17468build_libtool_need_lc=$archive_cmds_need_lc
17469
17470# Whether or not to disallow shared libs when runtime libs are static.
17471allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17472
17473# Compiler flag to allow reflexive dlopens.
17474export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17475
17476# Compiler flag to generate shared objects directly from archives.
17477whole_archive_flag_spec=$lt_whole_archive_flag_spec
17478
17479# Whether the compiler copes with passing no objects directly.
17480compiler_needs_object=$lt_compiler_needs_object
17481
17482# Create an old-style archive from a shared archive.
17483old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17484
17485# Create a temporary old-style archive to link instead of a shared archive.
17486old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17487
17488# Commands used to build a shared archive.
17489archive_cmds=$lt_archive_cmds
17490archive_expsym_cmds=$lt_archive_expsym_cmds
17491
17492# Commands used to build a loadable module if different from building
17493# a shared archive.
17494module_cmds=$lt_module_cmds
17495module_expsym_cmds=$lt_module_expsym_cmds
17496
17497# Whether we are building with GNU ld or not.
17498with_gnu_ld=$lt_with_gnu_ld
17499
17500# Flag that allows shared libraries with undefined symbols to be built.
17501allow_undefined_flag=$lt_allow_undefined_flag
17502
17503# Flag that enforces no undefined symbols.
17504no_undefined_flag=$lt_no_undefined_flag
17505
17506# Flag to hardcode \$libdir into a binary during linking.
17507# This must work even if \$libdir does not exist
17508hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17509
17510# If ld is used when linking, flag to hardcode \$libdir into a binary
17511# during linking.  This must work even if \$libdir does not exist.
17512hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17513
17514# Whether we need a single "-rpath" flag with a separated argument.
17515hardcode_libdir_separator=$lt_hardcode_libdir_separator
17516
17517# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17518# DIR into the resulting binary.
17519hardcode_direct=$hardcode_direct
17520
17521# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17522# DIR into the resulting binary and the resulting library dependency is
17523# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17524# library is relocated.
17525hardcode_direct_absolute=$hardcode_direct_absolute
17526
17527# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17528# into the resulting binary.
17529hardcode_minus_L=$hardcode_minus_L
17530
17531# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17532# into the resulting binary.
17533hardcode_shlibpath_var=$hardcode_shlibpath_var
17534
17535# Set to "yes" if building a shared library automatically hardcodes DIR
17536# into the library and all subsequent libraries and executables linked
17537# against it.
17538hardcode_automatic=$hardcode_automatic
17539
17540# Set to yes if linker adds runtime paths of dependent libraries
17541# to runtime path list.
17542inherit_rpath=$inherit_rpath
17543
17544# Whether libtool must link a program against all its dependency libraries.
17545link_all_deplibs=$link_all_deplibs
17546
17547# Fix the shell variable \$srcfile for the compiler.
17548fix_srcfile_path=$lt_fix_srcfile_path
17549
17550# Set to "yes" if exported symbols are required.
17551always_export_symbols=$always_export_symbols
17552
17553# The commands to list exported symbols.
17554export_symbols_cmds=$lt_export_symbols_cmds
17555
17556# Symbols that should not be listed in the preloaded symbols.
17557exclude_expsyms=$lt_exclude_expsyms
17558
17559# Symbols that must always be exported.
17560include_expsyms=$lt_include_expsyms
17561
17562# Commands necessary for linking programs (against libraries) with templates.
17563prelink_cmds=$lt_prelink_cmds
17564
17565# Specify filename containing input files.
17566file_list_spec=$lt_file_list_spec
17567
17568# How to hardcode a shared library path into an executable.
17569hardcode_action=$hardcode_action
17570
17571# ### END LIBTOOL CONFIG
17572
17573_LT_EOF
17574
17575  case $host_os in
17576  aix3*)
17577    cat <<\_LT_EOF >> "$cfgfile"
17578# AIX sometimes has problems with the GCC collect2 program.  For some
17579# reason, if we set the COLLECT_NAMES environment variable, the problems
17580# vanish in a puff of smoke.
17581if test "X${COLLECT_NAMES+set}" != Xset; then
17582  COLLECT_NAMES=
17583  export COLLECT_NAMES
17584fi
17585_LT_EOF
17586    ;;
17587  esac
17588
17589
17590ltmain="$ac_aux_dir/ltmain.sh"
17591
17592
17593  # We use sed instead of cat because bash on DJGPP gets confused if
17594  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17595  # text mode, it properly converts lines to CR/LF.  This bash problem
17596  # is reportedly fixed, but why not run on old versions too?
17597  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17598    || (rm -f "$cfgfile"; exit 1)
17599
17600  case $xsi_shell in
17601  yes)
17602    cat << \_LT_EOF >> "$cfgfile"
17603
17604# func_dirname file append nondir_replacement
17605# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17606# otherwise set result to NONDIR_REPLACEMENT.
17607func_dirname ()
17608{
17609  case ${1} in
17610    */*) func_dirname_result="${1%/*}${2}" ;;
17611    *  ) func_dirname_result="${3}" ;;
17612  esac
17613}
17614
17615# func_basename file
17616func_basename ()
17617{
17618  func_basename_result="${1##*/}"
17619}
17620
17621# func_dirname_and_basename file append nondir_replacement
17622# perform func_basename and func_dirname in a single function
17623# call:
17624#   dirname:  Compute the dirname of FILE.  If nonempty,
17625#             add APPEND to the result, otherwise set result
17626#             to NONDIR_REPLACEMENT.
17627#             value returned in "$func_dirname_result"
17628#   basename: Compute filename of FILE.
17629#             value retuned in "$func_basename_result"
17630# Implementation must be kept synchronized with func_dirname
17631# and func_basename. For efficiency, we do not delegate to
17632# those functions but instead duplicate the functionality here.
17633func_dirname_and_basename ()
17634{
17635  case ${1} in
17636    */*) func_dirname_result="${1%/*}${2}" ;;
17637    *  ) func_dirname_result="${3}" ;;
17638  esac
17639  func_basename_result="${1##*/}"
17640}
17641
17642# func_stripname prefix suffix name
17643# strip PREFIX and SUFFIX off of NAME.
17644# PREFIX and SUFFIX must not contain globbing or regex special
17645# characters, hashes, percent signs, but SUFFIX may contain a leading
17646# dot (in which case that matches only a dot).
17647func_stripname ()
17648{
17649  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17650  # positional parameters, so assign one to ordinary parameter first.
17651  func_stripname_result=${3}
17652  func_stripname_result=${func_stripname_result#"${1}"}
17653  func_stripname_result=${func_stripname_result%"${2}"}
17654}
17655
17656# func_opt_split
17657func_opt_split ()
17658{
17659  func_opt_split_opt=${1%%=*}
17660  func_opt_split_arg=${1#*=}
17661}
17662
17663# func_lo2o object
17664func_lo2o ()
17665{
17666  case ${1} in
17667    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17668    *)    func_lo2o_result=${1} ;;
17669  esac
17670}
17671
17672# func_xform libobj-or-source
17673func_xform ()
17674{
17675  func_xform_result=${1%.*}.lo
17676}
17677
17678# func_arith arithmetic-term...
17679func_arith ()
17680{
17681  func_arith_result=$(( $* ))
17682}
17683
17684# func_len string
17685# STRING may not start with a hyphen.
17686func_len ()
17687{
17688  func_len_result=${#1}
17689}
17690
17691_LT_EOF
17692    ;;
17693  *) # Bourne compatible functions.
17694    cat << \_LT_EOF >> "$cfgfile"
17695
17696# func_dirname file append nondir_replacement
17697# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17698# otherwise set result to NONDIR_REPLACEMENT.
17699func_dirname ()
17700{
17701  # Extract subdirectory from the argument.
17702  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17703  if test "X$func_dirname_result" = "X${1}"; then
17704    func_dirname_result="${3}"
17705  else
17706    func_dirname_result="$func_dirname_result${2}"
17707  fi
17708}
17709
17710# func_basename file
17711func_basename ()
17712{
17713  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17714}
17715
17716
17717# func_stripname prefix suffix name
17718# strip PREFIX and SUFFIX off of NAME.
17719# PREFIX and SUFFIX must not contain globbing or regex special
17720# characters, hashes, percent signs, but SUFFIX may contain a leading
17721# dot (in which case that matches only a dot).
17722# func_strip_suffix prefix name
17723func_stripname ()
17724{
17725  case ${2} in
17726    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17727    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17728  esac
17729}
17730
17731# sed scripts:
17732my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17733my_sed_long_arg='1s/^-[^=]*=//'
17734
17735# func_opt_split
17736func_opt_split ()
17737{
17738  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17739  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17740}
17741
17742# func_lo2o object
17743func_lo2o ()
17744{
17745  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17746}
17747
17748# func_xform libobj-or-source
17749func_xform ()
17750{
17751  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17752}
17753
17754# func_arith arithmetic-term...
17755func_arith ()
17756{
17757  func_arith_result=`expr "$@"`
17758}
17759
17760# func_len string
17761# STRING may not start with a hyphen.
17762func_len ()
17763{
17764  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17765}
17766
17767_LT_EOF
17768esac
17769
17770case $lt_shell_append in
17771  yes)
17772    cat << \_LT_EOF >> "$cfgfile"
17773
17774# func_append var value
17775# Append VALUE to the end of shell variable VAR.
17776func_append ()
17777{
17778  eval "$1+=\$2"
17779}
17780_LT_EOF
17781    ;;
17782  *)
17783    cat << \_LT_EOF >> "$cfgfile"
17784
17785# func_append var value
17786# Append VALUE to the end of shell variable VAR.
17787func_append ()
17788{
17789  eval "$1=\$$1\$2"
17790}
17791
17792_LT_EOF
17793    ;;
17794  esac
17795
17796
17797  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17798    || (rm -f "$cfgfile"; exit 1)
17799
17800  mv -f "$cfgfile" "$ofile" ||
17801    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17802  chmod +x "$ofile"
17803
17804
17805    cat <<_LT_EOF >> "$ofile"
17806
17807# ### BEGIN LIBTOOL TAG CONFIG: D
17808
17809# The linker used to build libraries.
17810LD=$lt_LD_D
17811
17812# How to create reloadable object files.
17813reload_flag=$lt_reload_flag_D
17814reload_cmds=$lt_reload_cmds_D
17815
17816# Commands used to build an old-style archive.
17817old_archive_cmds=$lt_old_archive_cmds_D
17818
17819# A language specific compiler.
17820CC=$lt_compiler_D
17821
17822# Is the compiler the GNU compiler?
17823with_gcc=$GCC_D
17824
17825# Compiler flag to turn off builtin functions.
17826no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17827
17828# How to pass a linker flag through the compiler.
17829wl=$lt_lt_prog_compiler_wl_D
17830
17831# Additional compiler flags for building library objects.
17832pic_flag=$lt_lt_prog_compiler_pic_D
17833
17834# Compiler flag to prevent dynamic linking.
17835link_static_flag=$lt_lt_prog_compiler_static_D
17836
17837# Does compiler simultaneously support -c and -o options?
17838compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17839
17840# Whether or not to add -lc for building shared libraries.
17841build_libtool_need_lc=$archive_cmds_need_lc_D
17842
17843# Whether or not to disallow shared libs when runtime libs are static.
17844allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17845
17846# Compiler flag to allow reflexive dlopens.
17847export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17848
17849# Compiler flag to generate shared objects directly from archives.
17850whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17851
17852# Whether the compiler copes with passing no objects directly.
17853compiler_needs_object=$lt_compiler_needs_object_D
17854
17855# Create an old-style archive from a shared archive.
17856old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17857
17858# Create a temporary old-style archive to link instead of a shared archive.
17859old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17860
17861# Commands used to build a shared archive.
17862archive_cmds=$lt_archive_cmds_D
17863archive_expsym_cmds=$lt_archive_expsym_cmds_D
17864
17865# Commands used to build a loadable module if different from building
17866# a shared archive.
17867module_cmds=$lt_module_cmds_D
17868module_expsym_cmds=$lt_module_expsym_cmds_D
17869
17870# Whether we are building with GNU ld or not.
17871with_gnu_ld=$lt_with_gnu_ld_D
17872
17873# Flag that allows shared libraries with undefined symbols to be built.
17874allow_undefined_flag=$lt_allow_undefined_flag_D
17875
17876# Flag that enforces no undefined symbols.
17877no_undefined_flag=$lt_no_undefined_flag_D
17878
17879# Flag to hardcode \$libdir into a binary during linking.
17880# This must work even if \$libdir does not exist
17881hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17882
17883# If ld is used when linking, flag to hardcode \$libdir into a binary
17884# during linking.  This must work even if \$libdir does not exist.
17885hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17886
17887# Whether we need a single "-rpath" flag with a separated argument.
17888hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17889
17890# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17891# DIR into the resulting binary.
17892hardcode_direct=$hardcode_direct_D
17893
17894# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17895# DIR into the resulting binary and the resulting library dependency is
17896# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17897# library is relocated.
17898hardcode_direct_absolute=$hardcode_direct_absolute_D
17899
17900# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17901# into the resulting binary.
17902hardcode_minus_L=$hardcode_minus_L_D
17903
17904# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17905# into the resulting binary.
17906hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17907
17908# Set to "yes" if building a shared library automatically hardcodes DIR
17909# into the library and all subsequent libraries and executables linked
17910# against it.
17911hardcode_automatic=$hardcode_automatic_D
17912
17913# Set to yes if linker adds runtime paths of dependent libraries
17914# to runtime path list.
17915inherit_rpath=$inherit_rpath_D
17916
17917# Whether libtool must link a program against all its dependency libraries.
17918link_all_deplibs=$link_all_deplibs_D
17919
17920# Fix the shell variable \$srcfile for the compiler.
17921fix_srcfile_path=$lt_fix_srcfile_path_D
17922
17923# Set to "yes" if exported symbols are required.
17924always_export_symbols=$always_export_symbols_D
17925
17926# The commands to list exported symbols.
17927export_symbols_cmds=$lt_export_symbols_cmds_D
17928
17929# Symbols that should not be listed in the preloaded symbols.
17930exclude_expsyms=$lt_exclude_expsyms_D
17931
17932# Symbols that must always be exported.
17933include_expsyms=$lt_include_expsyms_D
17934
17935# Commands necessary for linking programs (against libraries) with templates.
17936prelink_cmds=$lt_prelink_cmds_D
17937
17938# Specify filename containing input files.
17939file_list_spec=$lt_file_list_spec_D
17940
17941# How to hardcode a shared library path into an executable.
17942hardcode_action=$hardcode_action_D
17943
17944# ### END LIBTOOL TAG CONFIG: D
17945_LT_EOF
17946
17947 ;;
17948    "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17949    "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17950s!`test -f '$<' || echo '$(srcdir)/'`!!
17951_EOF
17952   sed -f vpsed$$ $ac_file > tmp$$
17953   mv tmp$$ $ac_file
17954   rm vpsed$$
17955   echo 'MULTISUBDIR =' >> $ac_file
17956   ml_norecursion=yes
17957   . ${multi_basedir}/config-ml.in
17958   { ml_norecursion=; unset ml_norecursion;}
17959 ;;
17960    "src/Makefile":F) cat > vpsed$$ << \_EOF
17961s!`test -f '$<' || echo '$(srcdir)/'`!!
17962_EOF
17963   sed -f vpsed$$ $ac_file > tmp$$
17964   mv tmp$$ $ac_file
17965   rm vpsed$$
17966   echo 'MULTISUBDIR =' >> $ac_file
17967   ml_norecursion=yes
17968   . ${multi_basedir}/config-ml.in
17969   { ml_norecursion=; unset ml_norecursion;}
17970 ;;
17971    "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17972s!`test -f '$<' || echo '$(srcdir)/'`!!
17973_EOF
17974   sed -f vpsed$$ $ac_file > tmp$$
17975   mv tmp$$ $ac_file
17976   rm vpsed$$
17977   echo 'MULTISUBDIR =' >> $ac_file
17978   ml_norecursion=yes
17979   . ${multi_basedir}/config-ml.in
17980   { ml_norecursion=; unset ml_norecursion;}
17981 ;;
17982
17983  esac
17984done # for ac_tag
17985
17986
17987as_fn_exit 0
17988_ACEOF
17989ac_clean_files=$ac_clean_files_save
17990
17991test $ac_write_fail = 0 ||
17992  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17993
17994
17995# configure is writing to config.log, and then calls config.status.
17996# config.status does its own redirection, appending to config.log.
17997# Unfortunately, on DOS this fails, as config.log is still kept open
17998# by configure, so config.status won't be able to write to it; its
17999# output is simply discarded.  So we exec the FD to /dev/null,
18000# effectively closing config.log, so it can be properly (re)opened and
18001# appended to by config.status.  When coming back to configure, we
18002# need to make the FD available again.
18003if test "$no_create" != yes; then
18004  ac_cs_success=:
18005  ac_config_status_args=
18006  test "$silent" = yes &&
18007    ac_config_status_args="$ac_config_status_args --quiet"
18008  exec 5>/dev/null
18009  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18010  exec 5>>config.log
18011  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18012  # would make configure fail if this is the last instruction.
18013  $ac_cs_success || as_fn_exit 1
18014fi
18015if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18016  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18017$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18018fi
18019
18020