Work around lack of dlpi_tls_modid before Solaris 11.5
[platform/upstream/gcc.git] / libphobos / configure
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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   }
79 fi
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.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
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
100 IFS=$as_save_IFS
101
102      ;;
103 esac
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.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
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.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export 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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $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
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if 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
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -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
199 test \$(( 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
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
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
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
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
242 fi; }
243 IFS=$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.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $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
265 exit 255
266 fi
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
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_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.
313 as_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.
323 as_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.
371 as_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.
381 if (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   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # 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.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # 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.
416 as_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
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_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.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_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
508 ECHO_C= ECHO_N= ECHO_T=
509 case `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';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (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
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_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.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 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.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libphobos'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="libdruntime/gcc/attribute.d"
596 # Factoring default headers for most tests.
597 ac_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
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 GDCFLAGSX
637 libtool_VERSION
638 SPEC_PHOBOS_DEPS
639 gdc_include_dir
640 libphobos_toolexeclibdir
641 libphobos_toolexecdir
642 gcc_version
643 LIBZ
644 BACKTRACE_SUPPORTS_THREADS
645 BACKTRACE_USES_MALLOC
646 BACKTRACE_SUPPORTED
647 LIBBACKTRACE
648 LIBATOMIC
649 DCFG_HAVE_LIBATOMIC
650 DCFG_HAVE_64BIT_ATOMICS
651 DCFG_HAVE_ATOMIC_BUILTINS
652 DCFG_HAVE_QSORT_R
653 OS_LINK_SPEC
654 DCFG_DLPI_TLS_MODID
655 DRUNTIME_OS_MINFO_BRACKETING_FALSE
656 DRUNTIME_OS_MINFO_BRACKETING_TRUE
657 DCFG_MINFO_BRACKETING
658 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
659 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
660 DCFG_ARM_EABI_UNWINDER
661 DCFG_THREAD_MODEL
662 DRUNTIME_OS_SOLARIS_FALSE
663 DRUNTIME_OS_SOLARIS_TRUE
664 DRUNTIME_OS_MINGW_FALSE
665 DRUNTIME_OS_MINGW_TRUE
666 DRUNTIME_OS_LINUX_FALSE
667 DRUNTIME_OS_LINUX_TRUE
668 DRUNTIME_OS_OPENBSD_FALSE
669 DRUNTIME_OS_OPENBSD_TRUE
670 DRUNTIME_OS_NETBSD_FALSE
671 DRUNTIME_OS_NETBSD_TRUE
672 DRUNTIME_OS_FREEBSD_FALSE
673 DRUNTIME_OS_FREEBSD_TRUE
674 DRUNTIME_OS_DRAGONFLYBSD_FALSE
675 DRUNTIME_OS_DRAGONFLYBSD_TRUE
676 DRUNTIME_OS_DARWIN_FALSE
677 DRUNTIME_OS_DARWIN_TRUE
678 DRUNTIME_OS_ANDROID_FALSE
679 DRUNTIME_OS_ANDROID_TRUE
680 DRUNTIME_OS_AIX_FALSE
681 DRUNTIME_OS_AIX_TRUE
682 DRUNTIME_OS_UNIX_FALSE
683 DRUNTIME_OS_UNIX_TRUE
684 DRUNTIME_GC_ENABLE_FALSE
685 DRUNTIME_GC_ENABLE_TRUE
686 libphobos_srcdir
687 libphobos_builddir
688 get_gcc_base_ver
689 phobos_compiler_shared_flag
690 phobos_compiler_pic_flag
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 OBJDUMP
697 LN_S
698 NM
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 SED
704 LIBTOOL
705 CFLAGS_FOR_BUILD
706 CC_FOR_BUILD
707 AR
708 RANLIB
709 MAINT
710 MAINTAINER_MODE_FALSE
711 MAINTAINER_MODE_TRUE
712 GDCFLAGS
713 GDC
714 CCASFLAGS
715 CCAS
716 AM_BACKSLASH
717 AM_DEFAULT_VERBOSITY
718 AM_DEFAULT_V
719 AM_V
720 am__untar
721 am__tar
722 AMTAR
723 am__leading_dot
724 SET_MAKE
725 AWK
726 mkdir_p
727 MKDIR_P
728 INSTALL_STRIP_PROGRAM
729 STRIP
730 install_sh
731 MAKEINFO
732 AUTOHEADER
733 AUTOMAKE
734 AUTOCONF
735 ACLOCAL
736 VERSION
737 PACKAGE
738 CYGPATH_W
739 am__isrc
740 INSTALL_DATA
741 INSTALL_SCRIPT
742 INSTALL_PROGRAM
743 EGREP
744 GREP
745 CPP
746 OBJEXT
747 EXEEXT
748 ac_ct_CC
749 CPPFLAGS
750 LDFLAGS
751 CFLAGS
752 CC
753 target_os
754 target_vendor
755 target_cpu
756 target
757 host_os
758 host_vendor
759 host_cpu
760 host
761 build_os
762 build_vendor
763 build_cpu
764 build
765 multi_basedir
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_URL
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL'
804 ac_subst_files='DRTSTUFF_SPEC'
805 ac_user_opts='
806 enable_option_checking
807 enable_multilib
808 enable_silent_rules
809 enable_maintainer_mode
810 enable_shared
811 enable_static
812 with_pic
813 enable_fast_install
814 with_gnu_ld
815 enable_libtool_lock
816 with_gcc_major_version_only
817 enable_werror
818 enable_druntime_gc
819 enable_unix
820 enable_thread_lib
821 with_libatomic
822 with_libbacktrace
823 with_target_system_zlib
824 with_cross_host
825 enable_version_specific_runtime_libs
826 '
827       ac_precious_vars='build_alias
828 host_alias
829 target_alias
830 CC
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
835 CPP'
836
837
838 # Initialize some variables set by options.
839 ac_init_help=
840 ac_init_version=false
841 ac_unrecognized_opts=
842 ac_unrecognized_sep=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
859
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
885
886 ac_prev=
887 ac_dashdash=
888 for ac_option
889 do
890   # If the previous option needs an argument, assign it.
891   if test -n "$ac_prev"; then
892     eval $ac_prev=\$ac_option
893     ac_prev=
894     continue
895   fi
896
897   case $ac_option in
898   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899   *=)   ac_optarg= ;;
900   *)    ac_optarg=yes ;;
901   esac
902
903   # Accept the important Cygnus configure options, so we can diagnose typos.
904
905   case $ac_dashdash$ac_option in
906   --)
907     ac_dashdash=yes ;;
908
909   -bindir | --bindir | --bindi | --bind | --bin | --bi)
910     ac_prev=bindir ;;
911   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912     bindir=$ac_optarg ;;
913
914   -build | --build | --buil | --bui | --bu)
915     ac_prev=build_alias ;;
916   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917     build_alias=$ac_optarg ;;
918
919   -cache-file | --cache-file | --cache-fil | --cache-fi \
920   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921     ac_prev=cache_file ;;
922   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924     cache_file=$ac_optarg ;;
925
926   --config-cache | -C)
927     cache_file=config.cache ;;
928
929   -datadir | --datadir | --datadi | --datad)
930     ac_prev=datadir ;;
931   -datadir=* | --datadir=* | --datadi=* | --datad=*)
932     datadir=$ac_optarg ;;
933
934   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935   | --dataroo | --dataro | --datar)
936     ac_prev=datarootdir ;;
937   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939     datarootdir=$ac_optarg ;;
940
941   -disable-* | --disable-*)
942     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945       as_fn_error $? "invalid feature name: $ac_useropt"
946     ac_useropt_orig=$ac_useropt
947     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948     case $ac_user_opts in
949       *"
950 "enable_$ac_useropt"
951 "*) ;;
952       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953          ac_unrecognized_sep=', ';;
954     esac
955     eval enable_$ac_useropt=no ;;
956
957   -docdir | --docdir | --docdi | --doc | --do)
958     ac_prev=docdir ;;
959   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960     docdir=$ac_optarg ;;
961
962   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963     ac_prev=dvidir ;;
964   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965     dvidir=$ac_optarg ;;
966
967   -enable-* | --enable-*)
968     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969     # Reject names that are not valid shell variable names.
970     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971       as_fn_error $? "invalid feature name: $ac_useropt"
972     ac_useropt_orig=$ac_useropt
973     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974     case $ac_user_opts in
975       *"
976 "enable_$ac_useropt"
977 "*) ;;
978       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979          ac_unrecognized_sep=', ';;
980     esac
981     eval enable_$ac_useropt=\$ac_optarg ;;
982
983   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985   | --exec | --exe | --ex)
986     ac_prev=exec_prefix ;;
987   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989   | --exec=* | --exe=* | --ex=*)
990     exec_prefix=$ac_optarg ;;
991
992   -gas | --gas | --ga | --g)
993     # Obsolete; use --with-gas.
994     with_gas=yes ;;
995
996   -help | --help | --hel | --he | -h)
997     ac_init_help=long ;;
998   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999     ac_init_help=recursive ;;
1000   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001     ac_init_help=short ;;
1002
1003   -host | --host | --hos | --ho)
1004     ac_prev=host_alias ;;
1005   -host=* | --host=* | --hos=* | --ho=*)
1006     host_alias=$ac_optarg ;;
1007
1008   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009     ac_prev=htmldir ;;
1010   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011   | --ht=*)
1012     htmldir=$ac_optarg ;;
1013
1014   -includedir | --includedir | --includedi | --included | --include \
1015   | --includ | --inclu | --incl | --inc)
1016     ac_prev=includedir ;;
1017   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018   | --includ=* | --inclu=* | --incl=* | --inc=*)
1019     includedir=$ac_optarg ;;
1020
1021   -infodir | --infodir | --infodi | --infod | --info | --inf)
1022     ac_prev=infodir ;;
1023   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024     infodir=$ac_optarg ;;
1025
1026   -libdir | --libdir | --libdi | --libd)
1027     ac_prev=libdir ;;
1028   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029     libdir=$ac_optarg ;;
1030
1031   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032   | --libexe | --libex | --libe)
1033     ac_prev=libexecdir ;;
1034   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035   | --libexe=* | --libex=* | --libe=*)
1036     libexecdir=$ac_optarg ;;
1037
1038   -localedir | --localedir | --localedi | --localed | --locale)
1039     ac_prev=localedir ;;
1040   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041     localedir=$ac_optarg ;;
1042
1043   -localstatedir | --localstatedir | --localstatedi | --localstated \
1044   | --localstate | --localstat | --localsta | --localst | --locals)
1045     ac_prev=localstatedir ;;
1046   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048     localstatedir=$ac_optarg ;;
1049
1050   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051     ac_prev=mandir ;;
1052   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053     mandir=$ac_optarg ;;
1054
1055   -nfp | --nfp | --nf)
1056     # Obsolete; use --without-fp.
1057     with_fp=no ;;
1058
1059   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060   | --no-cr | --no-c | -n)
1061     no_create=yes ;;
1062
1063   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065     no_recursion=yes ;;
1066
1067   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069   | --oldin | --oldi | --old | --ol | --o)
1070     ac_prev=oldincludedir ;;
1071   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074     oldincludedir=$ac_optarg ;;
1075
1076   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077     ac_prev=prefix ;;
1078   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079     prefix=$ac_optarg ;;
1080
1081   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082   | --program-pre | --program-pr | --program-p)
1083     ac_prev=program_prefix ;;
1084   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086     program_prefix=$ac_optarg ;;
1087
1088   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089   | --program-suf | --program-su | --program-s)
1090     ac_prev=program_suffix ;;
1091   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093     program_suffix=$ac_optarg ;;
1094
1095   -program-transform-name | --program-transform-name \
1096   | --program-transform-nam | --program-transform-na \
1097   | --program-transform-n | --program-transform- \
1098   | --program-transform | --program-transfor \
1099   | --program-transfo | --program-transf \
1100   | --program-trans | --program-tran \
1101   | --progr-tra | --program-tr | --program-t)
1102     ac_prev=program_transform_name ;;
1103   -program-transform-name=* | --program-transform-name=* \
1104   | --program-transform-nam=* | --program-transform-na=* \
1105   | --program-transform-n=* | --program-transform-=* \
1106   | --program-transform=* | --program-transfor=* \
1107   | --program-transfo=* | --program-transf=* \
1108   | --program-trans=* | --program-tran=* \
1109   | --progr-tra=* | --program-tr=* | --program-t=*)
1110     program_transform_name=$ac_optarg ;;
1111
1112   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113     ac_prev=pdfdir ;;
1114   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115     pdfdir=$ac_optarg ;;
1116
1117   -psdir | --psdir | --psdi | --psd | --ps)
1118     ac_prev=psdir ;;
1119   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120     psdir=$ac_optarg ;;
1121
1122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123   | -silent | --silent | --silen | --sile | --sil)
1124     silent=yes ;;
1125
1126   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127     ac_prev=sbindir ;;
1128   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129   | --sbi=* | --sb=*)
1130     sbindir=$ac_optarg ;;
1131
1132   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134   | --sharedst | --shareds | --shared | --share | --shar \
1135   | --sha | --sh)
1136     ac_prev=sharedstatedir ;;
1137   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140   | --sha=* | --sh=*)
1141     sharedstatedir=$ac_optarg ;;
1142
1143   -site | --site | --sit)
1144     ac_prev=site ;;
1145   -site=* | --site=* | --sit=*)
1146     site=$ac_optarg ;;
1147
1148   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149     ac_prev=srcdir ;;
1150   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151     srcdir=$ac_optarg ;;
1152
1153   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154   | --syscon | --sysco | --sysc | --sys | --sy)
1155     ac_prev=sysconfdir ;;
1156   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158     sysconfdir=$ac_optarg ;;
1159
1160   -target | --target | --targe | --targ | --tar | --ta | --t)
1161     ac_prev=target_alias ;;
1162   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163     target_alias=$ac_optarg ;;
1164
1165   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166     verbose=yes ;;
1167
1168   -version | --version | --versio | --versi | --vers | -V)
1169     ac_init_version=: ;;
1170
1171   -with-* | --with-*)
1172     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175       as_fn_error $? "invalid package name: $ac_useropt"
1176     ac_useropt_orig=$ac_useropt
1177     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178     case $ac_user_opts in
1179       *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183          ac_unrecognized_sep=', ';;
1184     esac
1185     eval with_$ac_useropt=\$ac_optarg ;;
1186
1187   -without-* | --without-*)
1188     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191       as_fn_error $? "invalid package name: $ac_useropt"
1192     ac_useropt_orig=$ac_useropt
1193     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194     case $ac_user_opts in
1195       *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199          ac_unrecognized_sep=', ';;
1200     esac
1201     eval with_$ac_useropt=no ;;
1202
1203   --x)
1204     # Obsolete; use --with-x.
1205     with_x=yes ;;
1206
1207   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208   | --x-incl | --x-inc | --x-in | --x-i)
1209     ac_prev=x_includes ;;
1210   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212     x_includes=$ac_optarg ;;
1213
1214   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216     ac_prev=x_libraries ;;
1217   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219     x_libraries=$ac_optarg ;;
1220
1221   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1223     ;;
1224
1225   *=*)
1226     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227     # Reject names that are not valid shell variable names.
1228     case $ac_envvar in #(
1229       '' | [0-9]* | *[!_$as_cr_alnum]* )
1230       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231     esac
1232     eval $ac_envvar=\$ac_optarg
1233     export $ac_envvar ;;
1234
1235   *)
1236     # FIXME: should be removed in autoconf 3.0.
1237     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1241     ;;
1242
1243   esac
1244 done
1245
1246 if test -n "$ac_prev"; then
1247   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248   as_fn_error $? "missing argument to $ac_option"
1249 fi
1250
1251 if test -n "$ac_unrecognized_opts"; then
1252   case $enable_option_checking in
1253     no) ;;
1254     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256   esac
1257 fi
1258
1259 # Check all directory arguments for consistency.
1260 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261                 datadir sysconfdir sharedstatedir localstatedir includedir \
1262                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263                 libdir localedir mandir
1264 do
1265   eval ac_val=\$$ac_var
1266   # Remove trailing slashes.
1267   case $ac_val in
1268     */ )
1269       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270       eval $ac_var=\$ac_val;;
1271   esac
1272   # Be sure to have absolute directory names.
1273   case $ac_val in
1274     [\\/$]* | ?:[\\/]* )  continue;;
1275     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276   esac
1277   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1279
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1286
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289   if test "x$build_alias" = x; then
1290     cross_compiling=maybe
1291   elif test "x$build_alias" != "x$host_alias"; then
1292     cross_compiling=yes
1293   fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305   as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307   as_fn_error $? "pwd does not report name of working directory"
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$as_myself" : 'X\(//\)[^/]' \| \
1317          X"$as_myself" : 'X\(//\)$' \| \
1318          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351         pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354   srcdir=.
1355 fi
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364   eval ac_env_${ac_var}_value=\$${ac_var}
1365   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1368
1369 #
1370 # Report the --help message.
1371 #
1372 if test "$ac_init_help" = "long"; then
1373   # Omit some internal or obsolete options to make the list less imposing.
1374   # This message is too long to be a string in the A/UX 3.1 sh.
1375   cat <<_ACEOF
1376 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1377
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE.  See below for descriptions of some of the useful variables.
1382
1383 Defaults for the options are specified in brackets.
1384
1385 Configuration:
1386   -h, --help              display this help and exit
1387       --help=short        display options specific to this package
1388       --help=recursive    display the short help of all the included packages
1389   -V, --version           display version information and exit
1390   -q, --quiet, --silent   do not print \`checking ...' messages
1391       --cache-file=FILE   cache test results in FILE [disabled]
1392   -C, --config-cache      alias for \`--cache-file=config.cache'
1393   -n, --no-create         do not create output files
1394       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1395
1396 Installation directories:
1397   --prefix=PREFIX         install architecture-independent files in PREFIX
1398                           [$ac_default_prefix]
1399   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1400                           [PREFIX]
1401
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1406
1407 For better control, use the options below.
1408
1409 Fine tuning of the installation directories:
1410   --bindir=DIR            user executables [EPREFIX/bin]
1411   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1412   --libexecdir=DIR        program executables [EPREFIX/libexec]
1413   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1414   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1415   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1416   --libdir=DIR            object code libraries [EPREFIX/lib]
1417   --includedir=DIR        C header files [PREFIX/include]
1418   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1419   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1420   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1421   --infodir=DIR           info documentation [DATAROOTDIR/info]
1422   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1423   --mandir=DIR            man documentation [DATAROOTDIR/man]
1424   --docdir=DIR            documentation root [DATAROOTDIR/doc/libphobos]
1425   --htmldir=DIR           html documentation [DOCDIR]
1426   --dvidir=DIR            dvi documentation [DOCDIR]
1427   --pdfdir=DIR            pdf documentation [DOCDIR]
1428   --psdir=DIR             ps documentation [DOCDIR]
1429 _ACEOF
1430
1431   cat <<\_ACEOF
1432
1433 Program names:
1434   --program-prefix=PREFIX            prepend PREFIX to installed program names
1435   --program-suffix=SUFFIX            append SUFFIX to installed program names
1436   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1437
1438 System types:
1439   --build=BUILD     configure for building on BUILD [guessed]
1440   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1441   --target=TARGET   configure for building compilers for TARGET [HOST]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446   case $ac_init_help in
1447      short | recursive ) echo "Configuration of package-unused version-unused:";;
1448    esac
1449   cat <<\_ACEOF
1450
1451 Optional Features:
1452   --disable-option-checking  ignore unrecognized --enable/--with options
1453   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455   --enable-multilib       build many library versions (default)
1456   --enable-silent-rules   less verbose build output (undo: "make V=1")
1457   --disable-silent-rules  verbose build output (undo: "make V=0")
1458   --enable-maintainer-mode
1459                           enable make rules and dependencies not useful (and
1460                           sometimes confusing) to the casual installer
1461   --enable-shared[=PKGS]  build shared libraries [default=yes]
1462   --enable-static[=PKGS]  build static libraries [default=yes]
1463   --enable-fast-install[=PKGS]
1464                           optimize for fast installation [default=yes]
1465   --disable-libtool-lock  avoid locking (might break parallel builds)
1466   --enable-werror         turns on -Werror [default=no]
1467   --enable-druntime-gc    enable D runtime garbage collector (default: yes)
1468   --enable-unix           enables Unix runtime (default: yes, for Unix
1469                           targets)
1470   --enable-thread-lib=<arg>
1471                           specify linker option for the system thread library
1472                           (default: autodetect)
1473   --enable-version-specific-runtime-libs
1474                           Specify that runtime libraries should be installed
1475                           in a compiler-specific directory
1476
1477 Optional Packages:
1478   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480   --with-pic              try to use only PIC/non-PIC objects [default=use
1481                           both]
1482   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1483   --with-gcc-major-version-only
1484                           use only GCC major number in filesystem paths
1485   --without-libatomic     Do not use libatomic in core.atomic (default: auto)
1486   --without-libbacktrace  Do not use libbacktrace in core.runtime (default:
1487                           auto)
1488   --with-target-system-zlib={yes,no,auto}
1489                           use installed libz (default: no)
1490   --with-cross-host=HOST  configuring with a cross compiler
1491
1492 Some influential environment variables:
1493   CC          C compiler command
1494   CFLAGS      C compiler flags
1495   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496               nonstandard directory <lib dir>
1497   LIBS        libraries to pass to the linker, e.g. -l<library>
1498   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499               you have headers in a nonstandard directory <include dir>
1500   CPP         C preprocessor
1501   CCAS        assembler compiler command (defaults to CC)
1502   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1503   GDC         D compiler command
1504   GDCFLAGS    D compiler flags
1505
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1508
1509 Report bugs to the package provider.
1510 _ACEOF
1511 ac_status=$?
1512 fi
1513
1514 if test "$ac_init_help" = "recursive"; then
1515   # If there are subdirs, report their specific --help.
1516   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517     test -d "$ac_dir" ||
1518       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519       continue
1520     ac_builddir=.
1521
1522 case "$ac_dir" in
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *)
1525   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526   # A ".." for each directory in $ac_dir_suffix.
1527   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528   case $ac_top_builddir_sub in
1529   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531   esac ;;
1532 esac
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1537
1538 case $srcdir in
1539   .)  # We are building in place.
1540     ac_srcdir=.
1541     ac_top_srcdir=$ac_top_builddir_sub
1542     ac_abs_top_srcdir=$ac_pwd ;;
1543   [\\/]* | ?:[\\/]* )  # Absolute name.
1544     ac_srcdir=$srcdir$ac_dir_suffix;
1545     ac_top_srcdir=$srcdir
1546     ac_abs_top_srcdir=$srcdir ;;
1547   *) # Relative name.
1548     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549     ac_top_srcdir=$ac_top_build_prefix$srcdir
1550     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 esac
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554     cd "$ac_dir" || { ac_status=$?; continue; }
1555     # Check for guested configure.
1556     if test -f "$ac_srcdir/configure.gnu"; then
1557       echo &&
1558       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559     elif test -f "$ac_srcdir/configure"; then
1560       echo &&
1561       $SHELL "$ac_srcdir/configure" --help=recursive
1562     else
1563       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564     fi || ac_status=$?
1565     cd "$ac_pwd" || { ac_status=$?; break; }
1566   done
1567 fi
1568
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1571   cat <<\_ACEOF
1572 package-unused configure version-unused
1573 generated by GNU Autoconf 2.69
1574
1575 Copyright (C) 2012 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1578 _ACEOF
1579   exit
1580 fi
1581
1582 ## ------------------------ ##
1583 ## Autoconf initialization. ##
1584 ## ------------------------ ##
1585
1586 # ac_fn_c_try_compile LINENO
1587 # --------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_compile ()
1590 {
1591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592   rm -f conftest.$ac_objext
1593   if { { ac_try="$ac_compile"
1594 case "(($ac_try" in
1595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596   *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600   (eval "$ac_compile") 2>conftest.err
1601   ac_status=$?
1602   if test -s conftest.err; then
1603     grep -v '^ *+' conftest.err >conftest.er1
1604     cat conftest.er1 >&5
1605     mv -f conftest.er1 conftest.err
1606   fi
1607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608   test $ac_status = 0; } && {
1609          test -z "$ac_c_werror_flag" ||
1610          test ! -s conftest.err
1611        } && test -s conftest.$ac_objext; then :
1612   ac_retval=0
1613 else
1614   $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1616
1617         ac_retval=1
1618 fi
1619   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620   as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_compile
1623
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_cpp ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   if { { ac_try="$ac_cpp conftest.$ac_ext"
1631 case "(($ac_try" in
1632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633   *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638   ac_status=$?
1639   if test -s conftest.err; then
1640     grep -v '^ *+' conftest.err >conftest.er1
1641     cat conftest.er1 >&5
1642     mv -f conftest.er1 conftest.err
1643   fi
1644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645   test $ac_status = 0; } > conftest.i && {
1646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647          test ! -s conftest.err
1648        }; then :
1649   ac_retval=0
1650 else
1651   $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654     ac_retval=1
1655 fi
1656   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657   as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_cpp
1660
1661 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1664 # the include files in INCLUDES and setting the cache variable VAR
1665 # accordingly.
1666 ac_fn_c_check_header_mongrel ()
1667 {
1668   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669   if eval \${$3+:} false; then :
1670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673   $as_echo_n "(cached) " >&6
1674 fi
1675 eval ac_res=\$$3
1676                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678 else
1679   # Is the header compilable?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1681 $as_echo_n "checking $2 usability... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h.  */
1684 $4
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_compile "$LINENO"; then :
1688   ac_header_compiler=yes
1689 else
1690   ac_header_compiler=no
1691 fi
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1694 $as_echo "$ac_header_compiler" >&6; }
1695
1696 # Is the header present?
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1698 $as_echo_n "checking $2 presence... " >&6; }
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h.  */
1701 #include <$2>
1702 _ACEOF
1703 if ac_fn_c_try_cpp "$LINENO"; then :
1704   ac_header_preproc=yes
1705 else
1706   ac_header_preproc=no
1707 fi
1708 rm -f conftest.err conftest.i conftest.$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1710 $as_echo "$ac_header_preproc" >&6; }
1711
1712 # So?  What about this header?
1713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1714   yes:no: )
1715     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1716 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1717     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1719     ;;
1720   no:yes:* )
1721     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1722 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1723     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1724 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1725     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1726 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1728 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1730 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1731     ;;
1732 esac
1733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736   $as_echo_n "(cached) " >&6
1737 else
1738   eval "$3=\$ac_header_compiler"
1739 fi
1740 eval ac_res=\$$3
1741                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1743 fi
1744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746 } # ac_fn_c_check_header_mongrel
1747
1748 # ac_fn_c_try_run LINENO
1749 # ----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751 # that executables *can* be run.
1752 ac_fn_c_try_run ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   if { { ac_try="$ac_link"
1756 case "(($ac_try" in
1757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758   *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762   (eval "$ac_link") 2>&5
1763   ac_status=$?
1764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766   { { case "(($ac_try" in
1767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768   *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772   (eval "$ac_try") 2>&5
1773   ac_status=$?
1774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775   test $ac_status = 0; }; }; then :
1776   ac_retval=0
1777 else
1778   $as_echo "$as_me: program exited with status $ac_status" >&5
1779        $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782        ac_retval=$ac_status
1783 fi
1784   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786   as_fn_set_status $ac_retval
1787
1788 } # ac_fn_c_try_run
1789
1790 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791 # -------------------------------------------------------
1792 # Tests whether HEADER exists and can be compiled using the include files in
1793 # INCLUDES, setting the cache variable VAR accordingly.
1794 ac_fn_c_check_header_compile ()
1795 {
1796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800   $as_echo_n "(cached) " >&6
1801 else
1802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h.  */
1804 $4
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808   eval "$3=yes"
1809 else
1810   eval "$3=no"
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 fi
1814 eval ac_res=\$$3
1815                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818
1819 } # ac_fn_c_check_header_compile
1820
1821 # ac_fn_d_try_compile LINENO
1822 # --------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_d_try_compile ()
1825 {
1826   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827   rm -f conftest.$ac_objext
1828   if { { ac_try="$ac_compile"
1829 case "(($ac_try" in
1830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831   *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835   (eval "$ac_compile") 2>conftest.err
1836   ac_status=$?
1837   if test -s conftest.err; then
1838     grep -v '^ *+' conftest.err >conftest.er1
1839     cat conftest.er1 >&5
1840     mv -f conftest.er1 conftest.err
1841   fi
1842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843   test $ac_status = 0; } && {
1844          test -z "$ac_d_werror_flag" ||
1845          test ! -s conftest.err
1846        } && test -s conftest.$ac_objext; then :
1847   ac_retval=0
1848 else
1849   $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852         ac_retval=1
1853 fi
1854   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855   as_fn_set_status $ac_retval
1856
1857 } # ac_fn_d_try_compile
1858
1859 # ac_fn_c_try_link LINENO
1860 # -----------------------
1861 # Try to link conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_c_try_link ()
1863 {
1864   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865   rm -f conftest.$ac_objext conftest$ac_exeext
1866   if { { ac_try="$ac_link"
1867 case "(($ac_try" in
1868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869   *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873   (eval "$ac_link") 2>conftest.err
1874   ac_status=$?
1875   if test -s conftest.err; then
1876     grep -v '^ *+' conftest.err >conftest.er1
1877     cat conftest.er1 >&5
1878     mv -f conftest.er1 conftest.err
1879   fi
1880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; } && {
1882          test -z "$ac_c_werror_flag" ||
1883          test ! -s conftest.err
1884        } && test -s conftest$ac_exeext && {
1885          test "$cross_compiling" = yes ||
1886          test -x conftest$ac_exeext
1887        }; then :
1888   ac_retval=0
1889 else
1890   $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1892
1893         ac_retval=1
1894 fi
1895   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1896   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1897   # interfere with the next link command; also delete a directory that is
1898   # left behind by Apple's compiler.  We do this before executing the actions.
1899   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901   as_fn_set_status $ac_retval
1902
1903 } # ac_fn_c_try_link
1904
1905 # ac_fn_c_check_func LINENO FUNC VAR
1906 # ----------------------------------
1907 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1908 ac_fn_c_check_func ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914   $as_echo_n "(cached) " >&6
1915 else
1916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h.  */
1918 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1920 #define $2 innocuous_$2
1921
1922 /* System header to define __stub macros and hopefully few prototypes,
1923     which can conflict with char $2 (); below.
1924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1925     <limits.h> exists even on freestanding compilers.  */
1926
1927 #ifdef __STDC__
1928 # include <limits.h>
1929 #else
1930 # include <assert.h>
1931 #endif
1932
1933 #undef $2
1934
1935 /* Override any GCC internal prototype to avoid an error.
1936    Use char because int might match the return type of a GCC
1937    builtin and then its argument prototype would still apply.  */
1938 #ifdef __cplusplus
1939 extern "C"
1940 #endif
1941 char $2 ();
1942 /* The GNU C library defines this for functions which it implements
1943     to always fail with ENOSYS.  Some functions are actually named
1944     something starting with __ and the normal name is an alias.  */
1945 #if defined __stub_$2 || defined __stub___$2
1946 choke me
1947 #endif
1948
1949 int
1950 main ()
1951 {
1952 return $2 ();
1953   ;
1954   return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_link "$LINENO"; then :
1958   eval "$3=yes"
1959 else
1960   eval "$3=no"
1961 fi
1962 rm -f core conftest.err conftest.$ac_objext \
1963     conftest$ac_exeext conftest.$ac_ext
1964 fi
1965 eval ac_res=\$$3
1966                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970 } # ac_fn_c_check_func
1971
1972 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1973 # ----------------------------------------------------
1974 # Tries to find if the field MEMBER exists in type AGGR, after including
1975 # INCLUDES, setting cache variable VAR accordingly.
1976 ac_fn_c_check_member ()
1977 {
1978   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1980 $as_echo_n "checking for $2.$3... " >&6; }
1981 if eval \${$4+:} false; then :
1982   $as_echo_n "(cached) " >&6
1983 else
1984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 $5
1987 int
1988 main ()
1989 {
1990 static $2 ac_aggr;
1991 if (ac_aggr.$3)
1992 return 0;
1993   ;
1994   return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998   eval "$4=yes"
1999 else
2000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 $5
2003 int
2004 main ()
2005 {
2006 static $2 ac_aggr;
2007 if (sizeof ac_aggr.$3)
2008 return 0;
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014   eval "$4=yes"
2015 else
2016   eval "$4=no"
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 fi
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 fi
2022 eval ac_res=\$$4
2023                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027 } # ac_fn_c_check_member
2028
2029 # ac_fn_d_try_link LINENO
2030 # -----------------------
2031 # Try to link conftest.$ac_ext, and return whether this succeeded.
2032 ac_fn_d_try_link ()
2033 {
2034   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035   rm -f conftest.$ac_objext conftest$ac_exeext
2036   if { { ac_try="$ac_link"
2037 case "(($ac_try" in
2038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039   *) ac_try_echo=$ac_try;;
2040 esac
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043   (eval "$ac_link") 2>conftest.err
2044   ac_status=$?
2045   if test -s conftest.err; then
2046     grep -v '^ *+' conftest.err >conftest.er1
2047     cat conftest.er1 >&5
2048     mv -f conftest.er1 conftest.err
2049   fi
2050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051   test $ac_status = 0; } && {
2052          test -z "$ac_d_werror_flag" ||
2053          test ! -s conftest.err
2054        } && test -s conftest$ac_exeext && {
2055          test "$cross_compiling" = yes ||
2056          test -x conftest$ac_exeext
2057        }; then :
2058   ac_retval=0
2059 else
2060   $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2062
2063         ac_retval=1
2064 fi
2065   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2066   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2067   # interfere with the next link command; also delete a directory that is
2068   # left behind by Apple's compiler.  We do this before executing the actions.
2069   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2070   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071   as_fn_set_status $ac_retval
2072
2073 } # ac_fn_d_try_link
2074 cat >config.log <<_ACEOF
2075 This file contains any messages produced by compilers while
2076 running configure, to aid debugging if configure makes a mistake.
2077
2078 It was created by package-unused $as_me version-unused, which was
2079 generated by GNU Autoconf 2.69.  Invocation command line was
2080
2081   $ $0 $@
2082
2083 _ACEOF
2084 exec 5>>config.log
2085 {
2086 cat <<_ASUNAME
2087 ## --------- ##
2088 ## Platform. ##
2089 ## --------- ##
2090
2091 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2092 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2093 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2094 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2095 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2096
2097 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2098 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2099
2100 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2101 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2102 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2103 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2104 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2105 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2106 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2107
2108 _ASUNAME
2109
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 for as_dir in $PATH
2112 do
2113   IFS=$as_save_IFS
2114   test -z "$as_dir" && as_dir=.
2115     $as_echo "PATH: $as_dir"
2116   done
2117 IFS=$as_save_IFS
2118
2119 } >&5
2120
2121 cat >&5 <<_ACEOF
2122
2123
2124 ## ----------- ##
2125 ## Core tests. ##
2126 ## ----------- ##
2127
2128 _ACEOF
2129
2130
2131 # Keep a trace of the command line.
2132 # Strip out --no-create and --no-recursion so they do not pile up.
2133 # Strip out --silent because we don't want to record it for future runs.
2134 # Also quote any args containing shell meta-characters.
2135 # Make two passes to allow for proper duplicate-argument suppression.
2136 ac_configure_args=
2137 ac_configure_args0=
2138 ac_configure_args1=
2139 ac_must_keep_next=false
2140 for ac_pass in 1 2
2141 do
2142   for ac_arg
2143   do
2144     case $ac_arg in
2145     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2146     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2147     | -silent | --silent | --silen | --sile | --sil)
2148       continue ;;
2149     *\'*)
2150       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2151     esac
2152     case $ac_pass in
2153     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2154     2)
2155       as_fn_append ac_configure_args1 " '$ac_arg'"
2156       if test $ac_must_keep_next = true; then
2157         ac_must_keep_next=false # Got value, back to normal.
2158       else
2159         case $ac_arg in
2160           *=* | --config-cache | -C | -disable-* | --disable-* \
2161           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2162           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2163           | -with-* | --with-* | -without-* | --without-* | --x)
2164             case "$ac_configure_args0 " in
2165               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2166             esac
2167             ;;
2168           -* ) ac_must_keep_next=true ;;
2169         esac
2170       fi
2171       as_fn_append ac_configure_args " '$ac_arg'"
2172       ;;
2173     esac
2174   done
2175 done
2176 { ac_configure_args0=; unset ac_configure_args0;}
2177 { ac_configure_args1=; unset ac_configure_args1;}
2178
2179 # When interrupted or exit'd, cleanup temporary files, and complete
2180 # config.log.  We remove comments because anyway the quotes in there
2181 # would cause problems or look ugly.
2182 # WARNING: Use '\'' to represent an apostrophe within the trap.
2183 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2184 trap 'exit_status=$?
2185   # Save into config.log some information that might help in debugging.
2186   {
2187     echo
2188
2189     $as_echo "## ---------------- ##
2190 ## Cache variables. ##
2191 ## ---------------- ##"
2192     echo
2193     # The following way of writing the cache mishandles newlines in values,
2194 (
2195   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2196     eval ac_val=\$$ac_var
2197     case $ac_val in #(
2198     *${as_nl}*)
2199       case $ac_var in #(
2200       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2201 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2202       esac
2203       case $ac_var in #(
2204       _ | IFS | as_nl) ;; #(
2205       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2206       *) { eval $ac_var=; unset $ac_var;} ;;
2207       esac ;;
2208     esac
2209   done
2210   (set) 2>&1 |
2211     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2212     *${as_nl}ac_space=\ *)
2213       sed -n \
2214         "s/'\''/'\''\\\\'\'''\''/g;
2215           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2216       ;; #(
2217     *)
2218       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2219       ;;
2220     esac |
2221     sort
2222 )
2223     echo
2224
2225     $as_echo "## ----------------- ##
2226 ## Output variables. ##
2227 ## ----------------- ##"
2228     echo
2229     for ac_var in $ac_subst_vars
2230     do
2231       eval ac_val=\$$ac_var
2232       case $ac_val in
2233       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234       esac
2235       $as_echo "$ac_var='\''$ac_val'\''"
2236     done | sort
2237     echo
2238
2239     if test -n "$ac_subst_files"; then
2240       $as_echo "## ------------------- ##
2241 ## File substitutions. ##
2242 ## ------------------- ##"
2243       echo
2244       for ac_var in $ac_subst_files
2245       do
2246         eval ac_val=\$$ac_var
2247         case $ac_val in
2248         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2249         esac
2250         $as_echo "$ac_var='\''$ac_val'\''"
2251       done | sort
2252       echo
2253     fi
2254
2255     if test -s confdefs.h; then
2256       $as_echo "## ----------- ##
2257 ## confdefs.h. ##
2258 ## ----------- ##"
2259       echo
2260       cat confdefs.h
2261       echo
2262     fi
2263     test "$ac_signal" != 0 &&
2264       $as_echo "$as_me: caught signal $ac_signal"
2265     $as_echo "$as_me: exit $exit_status"
2266   } >&5
2267   rm -f core *.core core.conftest.* &&
2268     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2269     exit $exit_status
2270 ' 0
2271 for ac_signal in 1 2 13 15; do
2272   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2273 done
2274 ac_signal=0
2275
2276 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2277 rm -f -r conftest* confdefs.h
2278
2279 $as_echo "/* confdefs.h */" > confdefs.h
2280
2281 # Predefined preprocessor variables.
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_NAME "$PACKAGE_NAME"
2285 _ACEOF
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2293 _ACEOF
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_STRING "$PACKAGE_STRING"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_URL "$PACKAGE_URL"
2305 _ACEOF
2306
2307
2308 # Let the site file select an alternate cache file if it wants to.
2309 # Prefer an explicitly selected file to automatically selected ones.
2310 ac_site_file1=NONE
2311 ac_site_file2=NONE
2312 if test -n "$CONFIG_SITE"; then
2313   # We do not want a PATH search for config.site.
2314   case $CONFIG_SITE in #((
2315     -*)  ac_site_file1=./$CONFIG_SITE;;
2316     */*) ac_site_file1=$CONFIG_SITE;;
2317     *)   ac_site_file1=./$CONFIG_SITE;;
2318   esac
2319 elif test "x$prefix" != xNONE; then
2320   ac_site_file1=$prefix/share/config.site
2321   ac_site_file2=$prefix/etc/config.site
2322 else
2323   ac_site_file1=$ac_default_prefix/share/config.site
2324   ac_site_file2=$ac_default_prefix/etc/config.site
2325 fi
2326 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2327 do
2328   test "x$ac_site_file" = xNONE && continue
2329   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2330     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2331 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2332     sed 's/^/| /' "$ac_site_file" >&5
2333     . "$ac_site_file" \
2334       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 as_fn_error $? "failed to load site script $ac_site_file
2337 See \`config.log' for more details" "$LINENO" 5; }
2338   fi
2339 done
2340
2341 if test -r "$cache_file"; then
2342   # Some versions of bash will fail to source /dev/null (special files
2343   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2344   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2345     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2346 $as_echo "$as_me: loading cache $cache_file" >&6;}
2347     case $cache_file in
2348       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2349       *)                      . "./$cache_file";;
2350     esac
2351   fi
2352 else
2353   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2354 $as_echo "$as_me: creating cache $cache_file" >&6;}
2355   >$cache_file
2356 fi
2357
2358 # Check that the precious variables saved in the cache have kept the same
2359 # value.
2360 ac_cache_corrupted=false
2361 for ac_var in $ac_precious_vars; do
2362   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2363   eval ac_new_set=\$ac_env_${ac_var}_set
2364   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2365   eval ac_new_val=\$ac_env_${ac_var}_value
2366   case $ac_old_set,$ac_new_set in
2367     set,)
2368       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2369 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2370       ac_cache_corrupted=: ;;
2371     ,set)
2372       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2373 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2374       ac_cache_corrupted=: ;;
2375     ,);;
2376     *)
2377       if test "x$ac_old_val" != "x$ac_new_val"; then
2378         # differences in whitespace do not lead to failure.
2379         ac_old_val_w=`echo x $ac_old_val`
2380         ac_new_val_w=`echo x $ac_new_val`
2381         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2382           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2383 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2384           ac_cache_corrupted=:
2385         else
2386           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2387 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2388           eval $ac_var=\$ac_old_val
2389         fi
2390         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2391 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2392         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2393 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2394       fi;;
2395   esac
2396   # Pass precious variables to config.status.
2397   if test "$ac_new_set" = set; then
2398     case $ac_new_val in
2399     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2400     *) ac_arg=$ac_var=$ac_new_val ;;
2401     esac
2402     case " $ac_configure_args " in
2403       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2404       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2405     esac
2406   fi
2407 done
2408 if $ac_cache_corrupted; then
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2412 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2413   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2414 fi
2415 ## -------------------- ##
2416 ## Main body of script. ##
2417 ## -------------------- ##
2418
2419 ac_ext=c
2420 ac_cpp='$CPP $CPPFLAGS'
2421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424
2425
2426
2427
2428
2429
2430 ac_config_headers="$ac_config_headers config.h"
2431
2432
2433 # Default to --enable-multilib
2434 # Check whether --enable-multilib was given.
2435 if test "${enable_multilib+set}" = set; then :
2436   enableval=$enable_multilib; case "$enableval" in
2437   yes) multilib=yes ;;
2438   no)  multilib=no ;;
2439   *)   as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2440  esac
2441 else
2442   multilib=yes
2443 fi
2444
2445
2446 # We may get other options which we leave undocumented:
2447 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2448 # See config-ml.in if you want the gory details.
2449
2450 if test "$srcdir" = "."; then
2451   if test "$with_target_subdir" != "."; then
2452     multi_basedir="$srcdir/$with_multisrctop../.."
2453   else
2454     multi_basedir="$srcdir/$with_multisrctop.."
2455   fi
2456 else
2457   multi_basedir="$srcdir/.."
2458 fi
2459
2460
2461 # Even if the default multilib is not a cross compilation,
2462 # it may be that some of the other multilibs are.
2463 if test $cross_compiling = no && test $multilib = yes \
2464    && test "x${with_multisubdir}" != x ; then
2465    cross_compiling=maybe
2466 fi
2467
2468 ac_config_commands="$ac_config_commands default-1"
2469
2470 ac_aux_dir=
2471 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2472   if test -f "$ac_dir/install-sh"; then
2473     ac_aux_dir=$ac_dir
2474     ac_install_sh="$ac_aux_dir/install-sh -c"
2475     break
2476   elif test -f "$ac_dir/install.sh"; then
2477     ac_aux_dir=$ac_dir
2478     ac_install_sh="$ac_aux_dir/install.sh -c"
2479     break
2480   elif test -f "$ac_dir/shtool"; then
2481     ac_aux_dir=$ac_dir
2482     ac_install_sh="$ac_aux_dir/shtool install -c"
2483     break
2484   fi
2485 done
2486 if test -z "$ac_aux_dir"; then
2487   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2488 fi
2489
2490 # These three variables are undocumented and unsupported,
2491 # and are intended to be withdrawn in a future Autoconf release.
2492 # They can cause serious problems if a builder's source tree is in a directory
2493 # whose full name contains unusual characters.
2494 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2495 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2496 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2497
2498
2499 # Make sure we can run config.sub.
2500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2501   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2502
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2504 $as_echo_n "checking build system type... " >&6; }
2505 if ${ac_cv_build+:} false; then :
2506   $as_echo_n "(cached) " >&6
2507 else
2508   ac_build_alias=$build_alias
2509 test "x$ac_build_alias" = x &&
2510   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2511 test "x$ac_build_alias" = x &&
2512   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2514   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2515
2516 fi
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2518 $as_echo "$ac_cv_build" >&6; }
2519 case $ac_cv_build in
2520 *-*-*) ;;
2521 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2522 esac
2523 build=$ac_cv_build
2524 ac_save_IFS=$IFS; IFS='-'
2525 set x $ac_cv_build
2526 shift
2527 build_cpu=$1
2528 build_vendor=$2
2529 shift; shift
2530 # Remember, the first character of IFS is used to create $*,
2531 # except with old shells:
2532 build_os=$*
2533 IFS=$ac_save_IFS
2534 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2535
2536
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2538 $as_echo_n "checking host system type... " >&6; }
2539 if ${ac_cv_host+:} false; then :
2540   $as_echo_n "(cached) " >&6
2541 else
2542   if test "x$host_alias" = x; then
2543   ac_cv_host=$ac_cv_build
2544 else
2545   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2546     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2547 fi
2548
2549 fi
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2551 $as_echo "$ac_cv_host" >&6; }
2552 case $ac_cv_host in
2553 *-*-*) ;;
2554 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2555 esac
2556 host=$ac_cv_host
2557 ac_save_IFS=$IFS; IFS='-'
2558 set x $ac_cv_host
2559 shift
2560 host_cpu=$1
2561 host_vendor=$2
2562 shift; shift
2563 # Remember, the first character of IFS is used to create $*,
2564 # except with old shells:
2565 host_os=$*
2566 IFS=$ac_save_IFS
2567 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2568
2569
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2571 $as_echo_n "checking target system type... " >&6; }
2572 if ${ac_cv_target+:} false; then :
2573   $as_echo_n "(cached) " >&6
2574 else
2575   if test "x$target_alias" = x; then
2576   ac_cv_target=$ac_cv_host
2577 else
2578   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2579     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2580 fi
2581
2582 fi
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2584 $as_echo "$ac_cv_target" >&6; }
2585 case $ac_cv_target in
2586 *-*-*) ;;
2587 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2588 esac
2589 target=$ac_cv_target
2590 ac_save_IFS=$IFS; IFS='-'
2591 set x $ac_cv_target
2592 shift
2593 target_cpu=$1
2594 target_vendor=$2
2595 shift; shift
2596 # Remember, the first character of IFS is used to create $*,
2597 # except with old shells:
2598 target_os=$*
2599 IFS=$ac_save_IFS
2600 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2601
2602
2603 # The aliases save the names the user supplied, while $host etc.
2604 # will get canonicalized.
2605 test -n "$target_alias" &&
2606   test "$program_prefix$program_suffix$program_transform_name" = \
2607     NONENONEs,x,x, &&
2608   program_prefix=${target_alias}-
2609
2610 # Expand $ac_aux_dir to an absolute path.
2611 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2612
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 if test -n "$ac_tool_prefix"; then
2619   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_CC+:} false; then :
2624   $as_echo_n "(cached) " >&6
2625 else
2626   if test -n "$CC"; then
2627   ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634     for ac_exec_ext in '' $ac_executable_extensions; do
2635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639   fi
2640 done
2641   done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649 $as_echo "$CC" >&6; }
2650 else
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2653 fi
2654
2655
2656 fi
2657 if test -z "$ac_cv_prog_CC"; then
2658   ac_ct_CC=$CC
2659   # Extract the first word of "gcc", so it can be a program name with args.
2660 set dummy gcc; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2664   $as_echo_n "(cached) " >&6
2665 else
2666   if test -n "$ac_ct_CC"; then
2667   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674     for ac_exec_ext in '' $ac_executable_extensions; do
2675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676     ac_cv_prog_ac_ct_CC="gcc"
2677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678     break 2
2679   fi
2680 done
2681   done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689 $as_echo "$ac_ct_CC" >&6; }
2690 else
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695   if test "x$ac_ct_CC" = x; then
2696     CC=""
2697   else
2698     case $cross_compiling:$ac_tool_warned in
2699 yes:)
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2702 ac_tool_warned=yes ;;
2703 esac
2704     CC=$ac_ct_CC
2705   fi
2706 else
2707   CC="$ac_cv_prog_CC"
2708 fi
2709
2710 if test -z "$CC"; then
2711           if test -n "$ac_tool_prefix"; then
2712     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}cc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717   $as_echo_n "(cached) " >&6
2718 else
2719   if test -n "$CC"; then
2720   ac_cv_prog_CC="$CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725   IFS=$as_save_IFS
2726   test -z "$as_dir" && as_dir=.
2727     for ac_exec_ext in '' $ac_executable_extensions; do
2728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729     ac_cv_prog_CC="${ac_tool_prefix}cc"
2730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731     break 2
2732   fi
2733 done
2734   done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2743 else
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749   fi
2750 fi
2751 if test -z "$CC"; then
2752   # Extract the first word of "cc", so it can be a program name with args.
2753 set dummy cc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_CC+:} false; then :
2757   $as_echo_n "(cached) " >&6
2758 else
2759   if test -n "$CC"; then
2760   ac_cv_prog_CC="$CC" # Let the user override the test.
2761 else
2762   ac_prog_rejected=no
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766   IFS=$as_save_IFS
2767   test -z "$as_dir" && as_dir=.
2768     for ac_exec_ext in '' $ac_executable_extensions; do
2769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2771        ac_prog_rejected=yes
2772        continue
2773      fi
2774     ac_cv_prog_CC="cc"
2775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776     break 2
2777   fi
2778 done
2779   done
2780 IFS=$as_save_IFS
2781
2782 if test $ac_prog_rejected = yes; then
2783   # We found a bogon in the path, so make sure we never use it.
2784   set dummy $ac_cv_prog_CC
2785   shift
2786   if test $# != 0; then
2787     # We chose a different compiler from the bogus one.
2788     # However, it has the same basename, so the bogon will be chosen
2789     # first if we set CC to just the basename; use the full file name.
2790     shift
2791     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2792   fi
2793 fi
2794 fi
2795 fi
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2800 else
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805
2806 fi
2807 if test -z "$CC"; then
2808   if test -n "$ac_tool_prefix"; then
2809   for ac_prog in cl.exe
2810   do
2811     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_CC+:} false; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   if test -n "$CC"; then
2819   ac_cv_prog_CC="$CC" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826     for ac_exec_ext in '' $ac_executable_extensions; do
2827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833   done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 CC=$ac_cv_prog_CC
2839 if test -n "$CC"; then
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2842 else
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847
2848     test -n "$CC" && break
2849   done
2850 fi
2851 if test -z "$CC"; then
2852   ac_ct_CC=$CC
2853   for ac_prog in cl.exe
2854 do
2855   # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   if test -n "$ac_ct_CC"; then
2863   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870     for ac_exec_ext in '' $ac_executable_extensions; do
2871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872     ac_cv_prog_ac_ct_CC="$ac_prog"
2873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877   done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883 if test -n "$ac_ct_CC"; then
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885 $as_echo "$ac_ct_CC" >&6; }
2886 else
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892   test -n "$ac_ct_CC" && break
2893 done
2894
2895   if test "x$ac_ct_CC" = x; then
2896     CC=""
2897   else
2898     case $cross_compiling:$ac_tool_warned in
2899 yes:)
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902 ac_tool_warned=yes ;;
2903 esac
2904     CC=$ac_ct_CC
2905   fi
2906 fi
2907
2908 fi
2909
2910
2911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913 as_fn_error $? "no acceptable C compiler found in \$PATH
2914 See \`config.log' for more details" "$LINENO" 5; }
2915
2916 # Provide some information about the compiler.
2917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2918 set X $ac_compile
2919 ac_compiler=$2
2920 for ac_option in --version -v -V -qversion; do
2921   { { ac_try="$ac_compiler $ac_option >&5"
2922 case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2929   ac_status=$?
2930   if test -s conftest.err; then
2931     sed '10a\
2932 ... rest of stderr output deleted ...
2933          10q' conftest.err >conftest.er1
2934     cat conftest.er1 >&5
2935   fi
2936   rm -f conftest.er1 conftest.err
2937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938   test $ac_status = 0; }
2939 done
2940
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h.  */
2943
2944 int
2945 main ()
2946 {
2947
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 ac_clean_files_save=$ac_clean_files
2953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2954 # Try to create an executable without -o first, disregard a.out.
2955 # It will help us diagnose broken compilers, and finding out an intuition
2956 # of exeext.
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2958 $as_echo_n "checking whether the C compiler works... " >&6; }
2959 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2960
2961 # The possible output files:
2962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2963
2964 ac_rmfiles=
2965 for ac_file in $ac_files
2966 do
2967   case $ac_file in
2968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2970   esac
2971 done
2972 rm -f $ac_rmfiles
2973
2974 if { { ac_try="$ac_link_default"
2975 case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981   (eval "$ac_link_default") 2>&5
2982   ac_status=$?
2983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984   test $ac_status = 0; }; then :
2985   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2987 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2988 # so that the user can short-circuit this test for compilers unknown to
2989 # Autoconf.
2990 for ac_file in $ac_files ''
2991 do
2992   test -f "$ac_file" || continue
2993   case $ac_file in
2994     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2995         ;;
2996     [ab].out )
2997         # We found the default executable, but exeext='' is most
2998         # certainly right.
2999         break;;
3000     *.* )
3001         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3002         then :; else
3003            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004         fi
3005         # We set ac_cv_exeext here because the later test for it is not
3006         # safe: cross compilers may not add the suffix if given an `-o'
3007         # argument, so we may need to know it at that point already.
3008         # Even if this section looks crufty: it has the advantage of
3009         # actually working.
3010         break;;
3011     * )
3012         break;;
3013   esac
3014 done
3015 test "$ac_cv_exeext" = no && ac_cv_exeext=
3016
3017 else
3018   ac_file=''
3019 fi
3020 if test -z "$ac_file"; then :
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error 77 "C compiler cannot create executables
3029 See \`config.log' for more details" "$LINENO" 5; }
3030 else
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032 $as_echo "yes" >&6; }
3033 fi
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3035 $as_echo_n "checking for C compiler default output file name... " >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3037 $as_echo "$ac_file" >&6; }
3038 ac_exeext=$ac_cv_exeext
3039
3040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3041 ac_clean_files=$ac_clean_files_save
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3043 $as_echo_n "checking for suffix of executables... " >&6; }
3044 if { { ac_try="$ac_link"
3045 case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051   (eval "$ac_link") 2>&5
3052   ac_status=$?
3053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054   test $ac_status = 0; }; then :
3055   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3056 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3057 # work properly (i.e., refer to `conftest.exe'), while it won't with
3058 # `rm'.
3059 for ac_file in conftest.exe conftest conftest.*; do
3060   test -f "$ac_file" || continue
3061   case $ac_file in
3062     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064           break;;
3065     * ) break;;
3066   esac
3067 done
3068 else
3069   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3072 See \`config.log' for more details" "$LINENO" 5; }
3073 fi
3074 rm -f conftest conftest$ac_cv_exeext
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3076 $as_echo "$ac_cv_exeext" >&6; }
3077
3078 rm -f conftest.$ac_ext
3079 EXEEXT=$ac_cv_exeext
3080 ac_exeext=$EXEEXT
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h.  */
3083 #include <stdio.h>
3084 int
3085 main ()
3086 {
3087 FILE *f = fopen ("conftest.out", "w");
3088  return ferror (f) || fclose (f) != 0;
3089
3090   ;
3091   return 0;
3092 }
3093 _ACEOF
3094 ac_clean_files="$ac_clean_files conftest.out"
3095 # Check that the compiler produces executables we can run.  If not, either
3096 # the compiler is broken, or we cross compile.
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3098 $as_echo_n "checking whether we are cross compiling... " >&6; }
3099 if test "$cross_compiling" != yes; then
3100   { { ac_try="$ac_link"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107   (eval "$ac_link") 2>&5
3108   ac_status=$?
3109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110   test $ac_status = 0; }
3111   if { ac_try='./conftest$ac_cv_exeext'
3112   { { case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118   (eval "$ac_try") 2>&5
3119   ac_status=$?
3120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121   test $ac_status = 0; }; }; then
3122     cross_compiling=no
3123   else
3124     if test "$cross_compiling" = maybe; then
3125         cross_compiling=yes
3126     else
3127         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "cannot run C compiled programs.
3130 If you meant to cross compile, use \`--host'.
3131 See \`config.log' for more details" "$LINENO" 5; }
3132     fi
3133   fi
3134 fi
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3136 $as_echo "$cross_compiling" >&6; }
3137
3138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3139 ac_clean_files=$ac_clean_files_save
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141 $as_echo_n "checking for suffix of object files... " >&6; }
3142 if ${ac_cv_objext+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h.  */
3147
3148 int
3149 main ()
3150 {
3151
3152   ;
3153   return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.o conftest.obj
3157 if { { ac_try="$ac_compile"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164   (eval "$ac_compile") 2>&5
3165   ac_status=$?
3166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167   test $ac_status = 0; }; then :
3168   for ac_file in conftest.o conftest.obj conftest.*; do
3169   test -f "$ac_file" || continue;
3170   case $ac_file in
3171     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173        break;;
3174   esac
3175 done
3176 else
3177   $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details" "$LINENO" 5; }
3184 fi
3185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3186 fi
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188 $as_echo "$ac_cv_objext" >&6; }
3189 OBJEXT=$ac_cv_objext
3190 ac_objext=$OBJEXT
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3193 if ${ac_cv_c_compiler_gnu+:} false; then :
3194   $as_echo_n "(cached) " >&6
3195 else
3196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h.  */
3198
3199 int
3200 main ()
3201 {
3202 #ifndef __GNUC__
3203        choke me
3204 #endif
3205
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 if ac_fn_c_try_compile "$LINENO"; then :
3211   ac_compiler_gnu=yes
3212 else
3213   ac_compiler_gnu=no
3214 fi
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3217
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221 if test $ac_compiler_gnu = yes; then
3222   GCC=yes
3223 else
3224   GCC=
3225 fi
3226 ac_test_CFLAGS=${CFLAGS+set}
3227 ac_save_CFLAGS=$CFLAGS
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3230 if ${ac_cv_prog_cc_g+:} false; then :
3231   $as_echo_n "(cached) " >&6
3232 else
3233   ac_save_c_werror_flag=$ac_c_werror_flag
3234    ac_c_werror_flag=yes
3235    ac_cv_prog_cc_g=no
3236    CFLAGS="-g"
3237    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h.  */
3239
3240 int
3241 main ()
3242 {
3243
3244   ;
3245   return 0;
3246 }
3247 _ACEOF
3248 if ac_fn_c_try_compile "$LINENO"; then :
3249   ac_cv_prog_cc_g=yes
3250 else
3251   CFLAGS=""
3252       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h.  */
3254
3255 int
3256 main ()
3257 {
3258
3259   ;
3260   return 0;
3261 }
3262 _ACEOF
3263 if ac_fn_c_try_compile "$LINENO"; then :
3264
3265 else
3266   ac_c_werror_flag=$ac_save_c_werror_flag
3267          CFLAGS="-g"
3268          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h.  */
3270
3271 int
3272 main ()
3273 {
3274
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 if ac_fn_c_try_compile "$LINENO"; then :
3280   ac_cv_prog_cc_g=yes
3281 fi
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 fi
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287    ac_c_werror_flag=$ac_save_c_werror_flag
3288 fi
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290 $as_echo "$ac_cv_prog_cc_g" >&6; }
3291 if test "$ac_test_CFLAGS" = set; then
3292   CFLAGS=$ac_save_CFLAGS
3293 elif test $ac_cv_prog_cc_g = yes; then
3294   if test "$GCC" = yes; then
3295     CFLAGS="-g -O2"
3296   else
3297     CFLAGS="-g"
3298   fi
3299 else
3300   if test "$GCC" = yes; then
3301     CFLAGS="-O2"
3302   else
3303     CFLAGS=
3304   fi
3305 fi
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3308 if ${ac_cv_prog_cc_c89+:} false; then :
3309   $as_echo_n "(cached) " >&6
3310 else
3311   ac_cv_prog_cc_c89=no
3312 ac_save_CC=$CC
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h.  */
3315 #include <stdarg.h>
3316 #include <stdio.h>
3317 struct stat;
3318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3319 struct buf { int x; };
3320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3321 static char *e (p, i)
3322      char **p;
3323      int i;
3324 {
3325   return p[i];
3326 }
3327 static char *f (char * (*g) (char **, int), char **p, ...)
3328 {
3329   char *s;
3330   va_list v;
3331   va_start (v,p);
3332   s = g (p, va_arg (v,int));
3333   va_end (v);
3334   return s;
3335 }
3336
3337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3338    function prototypes and stuff, but not '\xHH' hex character constants.
3339    These don't provoke an error unfortunately, instead are silently treated
3340    as 'x'.  The following induces an error, until -std is added to get
3341    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3342    array size at least.  It's necessary to write '\x00'==0 to get something
3343    that's true only with -std.  */
3344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3345
3346 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3347    inside strings and character constants.  */
3348 #define FOO(x) 'x'
3349 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3350
3351 int test (int i, double x);
3352 struct s1 {int (*f) (int a);};
3353 struct s2 {int (*f) (double a);};
3354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3355 int argc;
3356 char **argv;
3357 int
3358 main ()
3359 {
3360 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3361   ;
3362   return 0;
3363 }
3364 _ACEOF
3365 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3366         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3367 do
3368   CC="$ac_save_CC $ac_arg"
3369   if ac_fn_c_try_compile "$LINENO"; then :
3370   ac_cv_prog_cc_c89=$ac_arg
3371 fi
3372 rm -f core conftest.err conftest.$ac_objext
3373   test "x$ac_cv_prog_cc_c89" != "xno" && break
3374 done
3375 rm -f conftest.$ac_ext
3376 CC=$ac_save_CC
3377
3378 fi
3379 # AC_CACHE_VAL
3380 case "x$ac_cv_prog_cc_c89" in
3381   x)
3382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3383 $as_echo "none needed" >&6; } ;;
3384   xno)
3385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3386 $as_echo "unsupported" >&6; } ;;
3387   *)
3388     CC="$CC $ac_cv_prog_cc_c89"
3389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3390 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3391 esac
3392 if test "x$ac_cv_prog_cc_c89" != xno; then :
3393
3394 fi
3395
3396 ac_ext=c
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3408 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3409 if ${am_cv_prog_cc_c_o+:} false; then :
3410   $as_echo_n "(cached) " >&6
3411 else
3412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h.  */
3414
3415 int
3416 main ()
3417 {
3418
3419   ;
3420   return 0;
3421 }
3422 _ACEOF
3423   # Make sure it works both with $CC and with simple cc.
3424   # Following AC_PROG_CC_C_O, we do the test twice because some
3425   # compilers refuse to overwrite an existing .o file with -o,
3426   # though they will create one.
3427   am_cv_prog_cc_c_o=yes
3428   for am_i in 1 2; do
3429     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3430    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3431    ac_status=$?
3432    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433    (exit $ac_status); } \
3434          && test -f conftest2.$ac_objext; then
3435       : OK
3436     else
3437       am_cv_prog_cc_c_o=no
3438       break
3439     fi
3440   done
3441   rm -f core conftest*
3442   unset am_i
3443 fi
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3445 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3446 if test "$am_cv_prog_cc_c_o" != yes; then
3447    # Losing compiler, so override with the script.
3448    # FIXME: It is wrong to rewrite CC.
3449    # But if we don't then we get into trouble of one sort or another.
3450    # A longer-term fix would be to have automake use am__CC in this case,
3451    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3452    CC="$am_aux_dir/compile $CC"
3453 fi
3454 ac_ext=c
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460
3461
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3468 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3469 # On Suns, sometimes $CPP names a directory.
3470 if test -n "$CPP" && test -d "$CPP"; then
3471   CPP=
3472 fi
3473 if test -z "$CPP"; then
3474   if ${ac_cv_prog_CPP+:} false; then :
3475   $as_echo_n "(cached) " >&6
3476 else
3477       # Double quotes because CPP needs to be expanded
3478     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3479     do
3480       ac_preproc_ok=false
3481 for ac_c_preproc_warn_flag in '' yes
3482 do
3483   # Use a header file that comes with gcc, so configuring glibc
3484   # with a fresh cross-compiler works.
3485   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486   # <limits.h> exists even on freestanding compilers.
3487   # On the NeXT, cc -E runs the code through the compiler's parser,
3488   # not just through cpp. "Syntax error" is here to catch this case.
3489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h.  */
3491 #ifdef __STDC__
3492 # include <limits.h>
3493 #else
3494 # include <assert.h>
3495 #endif
3496                      Syntax error
3497 _ACEOF
3498 if ac_fn_c_try_cpp "$LINENO"; then :
3499
3500 else
3501   # Broken: fails on valid input.
3502 continue
3503 fi
3504 rm -f conftest.err conftest.i conftest.$ac_ext
3505
3506   # OK, works on sane cases.  Now check whether nonexistent headers
3507   # can be detected and how.
3508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h.  */
3510 #include <ac_nonexistent.h>
3511 _ACEOF
3512 if ac_fn_c_try_cpp "$LINENO"; then :
3513   # Broken: success on invalid input.
3514 continue
3515 else
3516   # Passes both tests.
3517 ac_preproc_ok=:
3518 break
3519 fi
3520 rm -f conftest.err conftest.i conftest.$ac_ext
3521
3522 done
3523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524 rm -f conftest.i conftest.err conftest.$ac_ext
3525 if $ac_preproc_ok; then :
3526   break
3527 fi
3528
3529     done
3530     ac_cv_prog_CPP=$CPP
3531
3532 fi
3533   CPP=$ac_cv_prog_CPP
3534 else
3535   ac_cv_prog_CPP=$CPP
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3538 $as_echo "$CPP" >&6; }
3539 ac_preproc_ok=false
3540 for ac_c_preproc_warn_flag in '' yes
3541 do
3542   # Use a header file that comes with gcc, so configuring glibc
3543   # with a fresh cross-compiler works.
3544   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545   # <limits.h> exists even on freestanding compilers.
3546   # On the NeXT, cc -E runs the code through the compiler's parser,
3547   # not just through cpp. "Syntax error" is here to catch this case.
3548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h.  */
3550 #ifdef __STDC__
3551 # include <limits.h>
3552 #else
3553 # include <assert.h>
3554 #endif
3555                      Syntax error
3556 _ACEOF
3557 if ac_fn_c_try_cpp "$LINENO"; then :
3558
3559 else
3560   # Broken: fails on valid input.
3561 continue
3562 fi
3563 rm -f conftest.err conftest.i conftest.$ac_ext
3564
3565   # OK, works on sane cases.  Now check whether nonexistent headers
3566   # can be detected and how.
3567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h.  */
3569 #include <ac_nonexistent.h>
3570 _ACEOF
3571 if ac_fn_c_try_cpp "$LINENO"; then :
3572   # Broken: success on invalid input.
3573 continue
3574 else
3575   # Passes both tests.
3576 ac_preproc_ok=:
3577 break
3578 fi
3579 rm -f conftest.err conftest.i conftest.$ac_ext
3580
3581 done
3582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.i conftest.err conftest.$ac_ext
3584 if $ac_preproc_ok; then :
3585
3586 else
3587   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3590 See \`config.log' for more details" "$LINENO" 5; }
3591 fi
3592
3593 ac_ext=c
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598
3599
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3601 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3602 if ${ac_cv_path_GREP+:} false; then :
3603   $as_echo_n "(cached) " >&6
3604 else
3605   if test -z "$GREP"; then
3606   ac_path_GREP_found=false
3607   # Loop through the user's path and test for each of PROGNAME-LIST
3608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3610 do
3611   IFS=$as_save_IFS
3612   test -z "$as_dir" && as_dir=.
3613     for ac_prog in grep ggrep; do
3614     for ac_exec_ext in '' $ac_executable_extensions; do
3615       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3616       as_fn_executable_p "$ac_path_GREP" || continue
3617 # Check for GNU ac_path_GREP and select it if it is found.
3618   # Check for GNU $ac_path_GREP
3619 case `"$ac_path_GREP" --version 2>&1` in
3620 *GNU*)
3621   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3622 *)
3623   ac_count=0
3624   $as_echo_n 0123456789 >"conftest.in"
3625   while :
3626   do
3627     cat "conftest.in" "conftest.in" >"conftest.tmp"
3628     mv "conftest.tmp" "conftest.in"
3629     cp "conftest.in" "conftest.nl"
3630     $as_echo 'GREP' >> "conftest.nl"
3631     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3632     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3633     as_fn_arith $ac_count + 1 && ac_count=$as_val
3634     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3635       # Best one so far, save it but keep looking for a better one
3636       ac_cv_path_GREP="$ac_path_GREP"
3637       ac_path_GREP_max=$ac_count
3638     fi
3639     # 10*(2^10) chars as input seems more than enough
3640     test $ac_count -gt 10 && break
3641   done
3642   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3643 esac
3644
3645       $ac_path_GREP_found && break 3
3646     done
3647   done
3648   done
3649 IFS=$as_save_IFS
3650   if test -z "$ac_cv_path_GREP"; then
3651     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3652   fi
3653 else
3654   ac_cv_path_GREP=$GREP
3655 fi
3656
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3659 $as_echo "$ac_cv_path_GREP" >&6; }
3660  GREP="$ac_cv_path_GREP"
3661
3662
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3664 $as_echo_n "checking for egrep... " >&6; }
3665 if ${ac_cv_path_EGREP+:} false; then :
3666   $as_echo_n "(cached) " >&6
3667 else
3668   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3669    then ac_cv_path_EGREP="$GREP -E"
3670    else
3671      if test -z "$EGREP"; then
3672   ac_path_EGREP_found=false
3673   # Loop through the user's path and test for each of PROGNAME-LIST
3674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3676 do
3677   IFS=$as_save_IFS
3678   test -z "$as_dir" && as_dir=.
3679     for ac_prog in egrep; do
3680     for ac_exec_ext in '' $ac_executable_extensions; do
3681       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3682       as_fn_executable_p "$ac_path_EGREP" || continue
3683 # Check for GNU ac_path_EGREP and select it if it is found.
3684   # Check for GNU $ac_path_EGREP
3685 case `"$ac_path_EGREP" --version 2>&1` in
3686 *GNU*)
3687   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3688 *)
3689   ac_count=0
3690   $as_echo_n 0123456789 >"conftest.in"
3691   while :
3692   do
3693     cat "conftest.in" "conftest.in" >"conftest.tmp"
3694     mv "conftest.tmp" "conftest.in"
3695     cp "conftest.in" "conftest.nl"
3696     $as_echo 'EGREP' >> "conftest.nl"
3697     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3698     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3699     as_fn_arith $ac_count + 1 && ac_count=$as_val
3700     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3701       # Best one so far, save it but keep looking for a better one
3702       ac_cv_path_EGREP="$ac_path_EGREP"
3703       ac_path_EGREP_max=$ac_count
3704     fi
3705     # 10*(2^10) chars as input seems more than enough
3706     test $ac_count -gt 10 && break
3707   done
3708   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3709 esac
3710
3711       $ac_path_EGREP_found && break 3
3712     done
3713   done
3714   done
3715 IFS=$as_save_IFS
3716   if test -z "$ac_cv_path_EGREP"; then
3717     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3718   fi
3719 else
3720   ac_cv_path_EGREP=$EGREP
3721 fi
3722
3723    fi
3724 fi
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3726 $as_echo "$ac_cv_path_EGREP" >&6; }
3727  EGREP="$ac_cv_path_EGREP"
3728
3729
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3731 $as_echo_n "checking for ANSI C header files... " >&6; }
3732 if ${ac_cv_header_stdc+:} false; then :
3733   $as_echo_n "(cached) " >&6
3734 else
3735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h.  */
3737 #include <stdlib.h>
3738 #include <stdarg.h>
3739 #include <string.h>
3740 #include <float.h>
3741
3742 int
3743 main ()
3744 {
3745
3746   ;
3747   return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751   ac_cv_header_stdc=yes
3752 else
3753   ac_cv_header_stdc=no
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756
3757 if test $ac_cv_header_stdc = yes; then
3758   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h.  */
3761 #include <string.h>
3762
3763 _ACEOF
3764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765   $EGREP "memchr" >/dev/null 2>&1; then :
3766
3767 else
3768   ac_cv_header_stdc=no
3769 fi
3770 rm -f conftest*
3771
3772 fi
3773
3774 if test $ac_cv_header_stdc = yes; then
3775   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h.  */
3778 #include <stdlib.h>
3779
3780 _ACEOF
3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782   $EGREP "free" >/dev/null 2>&1; then :
3783
3784 else
3785   ac_cv_header_stdc=no
3786 fi
3787 rm -f conftest*
3788
3789 fi
3790
3791 if test $ac_cv_header_stdc = yes; then
3792   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3793   if test "$cross_compiling" = yes; then :
3794   :
3795 else
3796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h.  */
3798 #include <ctype.h>
3799 #include <stdlib.h>
3800 #if ((' ' & 0x0FF) == 0x020)
3801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3803 #else
3804 # define ISLOWER(c) \
3805                    (('a' <= (c) && (c) <= 'i') \
3806                      || ('j' <= (c) && (c) <= 'r') \
3807                      || ('s' <= (c) && (c) <= 'z'))
3808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3809 #endif
3810
3811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3812 int
3813 main ()
3814 {
3815   int i;
3816   for (i = 0; i < 256; i++)
3817     if (XOR (islower (i), ISLOWER (i))
3818         || toupper (i) != TOUPPER (i))
3819       return 2;
3820   return 0;
3821 }
3822 _ACEOF
3823 if ac_fn_c_try_run "$LINENO"; then :
3824
3825 else
3826   ac_cv_header_stdc=no
3827 fi
3828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3829   conftest.$ac_objext conftest.beam conftest.$ac_ext
3830 fi
3831
3832 fi
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3835 $as_echo "$ac_cv_header_stdc" >&6; }
3836 if test $ac_cv_header_stdc = yes; then
3837
3838 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3839
3840 fi
3841
3842 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3844                   inttypes.h stdint.h unistd.h
3845 do :
3846   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3847 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3848 "
3849 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3850   cat >>confdefs.h <<_ACEOF
3851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3852 _ACEOF
3853
3854 fi
3855
3856 done
3857
3858
3859
3860   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3861 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3862   MINIX=yes
3863 else
3864   MINIX=
3865 fi
3866
3867
3868   if test "$MINIX" = yes; then
3869
3870 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3871
3872
3873 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3874
3875
3876 $as_echo "#define _MINIX 1" >>confdefs.h
3877
3878   fi
3879
3880
3881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3882 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3883 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3884   $as_echo_n "(cached) " >&6
3885 else
3886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h.  */
3888
3889 #         define __EXTENSIONS__ 1
3890           $ac_includes_default
3891 int
3892 main ()
3893 {
3894
3895   ;
3896   return 0;
3897 }
3898 _ACEOF
3899 if ac_fn_c_try_compile "$LINENO"; then :
3900   ac_cv_safe_to_define___extensions__=yes
3901 else
3902   ac_cv_safe_to_define___extensions__=no
3903 fi
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3907 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3908   test $ac_cv_safe_to_define___extensions__ = yes &&
3909     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3910
3911   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3912
3913   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3914
3915   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3916
3917   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3918
3919
3920
3921 target_alias=${target_alias-$target}
3922
3923
3924 # 1.11.1: Require that version of automake.
3925 # foreign: Don't require README, INSTALL, NEWS, etc.
3926 # no-define: Don't define PACKAGE and VERSION.
3927 # no-dependencies: Don't generate automatic dependencies.
3928 #    (because it breaks when using bootstrap-lean, since some of the
3929 #    headers are gone at "make install" time).
3930 # subdir-objects: Build objects in sub-directories.
3931 # -Wall: Issue all automake warnings.
3932 # -Wno-portability: Don't warn about constructs supported by GNU make.
3933 #    (because GCC requires GNU make anyhow).
3934 #  -Wno-override: Overrides used in testsuite.
3935 am__api_version='1.15'
3936
3937 # Find a good install program.  We prefer a C program (faster),
3938 # so one script is as good as another.  But avoid the broken or
3939 # incompatible versions:
3940 # SysV /etc/install, /usr/sbin/install
3941 # SunOS /usr/etc/install
3942 # IRIX /sbin/install
3943 # AIX /bin/install
3944 # AmigaOS /C/install, which installs bootblocks on floppy discs
3945 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3946 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3947 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3948 # OS/2's system install, which has a completely different semantic
3949 # ./install, which can be erroneously created by make from ./install.sh.
3950 # Reject install programs that cannot install multiple files.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3952 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3953 if test -z "$INSTALL"; then
3954 if ${ac_cv_path_install+:} false; then :
3955   $as_echo_n "(cached) " >&6
3956 else
3957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960   IFS=$as_save_IFS
3961   test -z "$as_dir" && as_dir=.
3962     # Account for people who put trailing slashes in PATH elements.
3963 case $as_dir/ in #((
3964   ./ | .// | /[cC]/* | \
3965   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3966   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3967   /usr/ucb/* ) ;;
3968   *)
3969     # OSF1 and SCO ODT 3.0 have their own names for install.
3970     # Don't use installbsd from OSF since it installs stuff as root
3971     # by default.
3972     for ac_prog in ginstall scoinst install; do
3973       for ac_exec_ext in '' $ac_executable_extensions; do
3974         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3975           if test $ac_prog = install &&
3976             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3977             # AIX install.  It has an incompatible calling convention.
3978             :
3979           elif test $ac_prog = install &&
3980             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3981             # program-specific install script used by HP pwplus--don't use.
3982             :
3983           else
3984             rm -rf conftest.one conftest.two conftest.dir
3985             echo one > conftest.one
3986             echo two > conftest.two
3987             mkdir conftest.dir
3988             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3989               test -s conftest.one && test -s conftest.two &&
3990               test -s conftest.dir/conftest.one &&
3991               test -s conftest.dir/conftest.two
3992             then
3993               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3994               break 3
3995             fi
3996           fi
3997         fi
3998       done
3999     done
4000     ;;
4001 esac
4002
4003   done
4004 IFS=$as_save_IFS
4005
4006 rm -rf conftest.one conftest.two conftest.dir
4007
4008 fi
4009   if test "${ac_cv_path_install+set}" = set; then
4010     INSTALL=$ac_cv_path_install
4011   else
4012     # As a last resort, use the slow shell script.  Don't cache a
4013     # value for INSTALL within a source directory, because that will
4014     # break other packages using the cache if that directory is
4015     # removed, or if the value is a relative name.
4016     INSTALL=$ac_install_sh
4017   fi
4018 fi
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4020 $as_echo "$INSTALL" >&6; }
4021
4022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4023 # It thinks the first close brace ends the variable substitution.
4024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4025
4026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4027
4028 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4029
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4031 $as_echo_n "checking whether build environment is sane... " >&6; }
4032 # Reject unsafe characters in $srcdir or the absolute working directory
4033 # name.  Accept space and tab only in the latter.
4034 am_lf='
4035 '
4036 case `pwd` in
4037   *[\\\"\#\$\&\'\`$am_lf]*)
4038     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4039 esac
4040 case $srcdir in
4041   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4042     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4043 esac
4044
4045 # Do 'set' in a subshell so we don't clobber the current shell's
4046 # arguments.  Must try -L first in case configure is actually a
4047 # symlink; some systems play weird games with the mod time of symlinks
4048 # (eg FreeBSD returns the mod time of the symlink's containing
4049 # directory).
4050 if (
4051    am_has_slept=no
4052    for am_try in 1 2; do
4053      echo "timestamp, slept: $am_has_slept" > conftest.file
4054      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4055      if test "$*" = "X"; then
4056         # -L didn't work.
4057         set X `ls -t "$srcdir/configure" conftest.file`
4058      fi
4059      if test "$*" != "X $srcdir/configure conftest.file" \
4060         && test "$*" != "X conftest.file $srcdir/configure"; then
4061
4062         # If neither matched, then we have a broken ls.  This can happen
4063         # if, for instance, CONFIG_SHELL is bash and it inherits a
4064         # broken ls alias from the environment.  This has actually
4065         # happened.  Such a system could not be considered "sane".
4066         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4067   alias in your environment" "$LINENO" 5
4068      fi
4069      if test "$2" = conftest.file || test $am_try -eq 2; then
4070        break
4071      fi
4072      # Just in case.
4073      sleep 1
4074      am_has_slept=yes
4075    done
4076    test "$2" = conftest.file
4077    )
4078 then
4079    # Ok.
4080    :
4081 else
4082    as_fn_error $? "newly created file is older than distributed files!
4083 Check your system clock" "$LINENO" 5
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4086 $as_echo "yes" >&6; }
4087 # If we didn't sleep, we still need to ensure time stamps of config.status and
4088 # generated files are strictly newer.
4089 am_sleep_pid=
4090 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4091   ( sleep 1 ) &
4092   am_sleep_pid=$!
4093 fi
4094
4095 rm -f conftest.file
4096
4097 test "$program_prefix" != NONE &&
4098   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4099 # Use a double $ so make ignores it.
4100 test "$program_suffix" != NONE &&
4101   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4102 # Double any \ or $.
4103 # By default was `s,x,x', remove it if useless.
4104 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4105 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4106
4107 if test x"${MISSING+set}" != xset; then
4108   case $am_aux_dir in
4109   *\ * | *\     *)
4110     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4111   *)
4112     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4113   esac
4114 fi
4115 # Use eval to expand $SHELL
4116 if eval "$MISSING --is-lightweight"; then
4117   am_missing_run="$MISSING "
4118 else
4119   am_missing_run=
4120   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4121 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4122 fi
4123
4124 if test x"${install_sh+set}" != xset; then
4125   case $am_aux_dir in
4126   *\ * | *\     *)
4127     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4128   *)
4129     install_sh="\${SHELL} $am_aux_dir/install-sh"
4130   esac
4131 fi
4132
4133 # Installed binaries are usually stripped using 'strip' when the user
4134 # run "make install-strip".  However 'strip' might not be the right
4135 # tool to use in cross-compilation environments, therefore Automake
4136 # will honor the 'STRIP' environment variable to overrule this program.
4137 if test "$cross_compiling" != no; then
4138   if test -n "$ac_tool_prefix"; then
4139   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4140 set dummy ${ac_tool_prefix}strip; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_STRIP+:} false; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   if test -n "$STRIP"; then
4147   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154     for ac_exec_ext in '' $ac_executable_extensions; do
4155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158     break 2
4159   fi
4160 done
4161   done
4162 IFS=$as_save_IFS
4163
4164 fi
4165 fi
4166 STRIP=$ac_cv_prog_STRIP
4167 if test -n "$STRIP"; then
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4169 $as_echo "$STRIP" >&6; }
4170 else
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 fi
4174
4175
4176 fi
4177 if test -z "$ac_cv_prog_STRIP"; then
4178   ac_ct_STRIP=$STRIP
4179   # Extract the first word of "strip", so it can be a program name with args.
4180 set dummy strip; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4184   $as_echo_n "(cached) " >&6
4185 else
4186   if test -n "$ac_ct_STRIP"; then
4187   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192   IFS=$as_save_IFS
4193   test -z "$as_dir" && as_dir=.
4194     for ac_exec_ext in '' $ac_executable_extensions; do
4195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196     ac_cv_prog_ac_ct_STRIP="strip"
4197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198     break 2
4199   fi
4200 done
4201   done
4202 IFS=$as_save_IFS
4203
4204 fi
4205 fi
4206 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4207 if test -n "$ac_ct_STRIP"; then
4208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4209 $as_echo "$ac_ct_STRIP" >&6; }
4210 else
4211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4213 fi
4214
4215   if test "x$ac_ct_STRIP" = x; then
4216     STRIP=":"
4217   else
4218     case $cross_compiling:$ac_tool_warned in
4219 yes:)
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4222 ac_tool_warned=yes ;;
4223 esac
4224     STRIP=$ac_ct_STRIP
4225   fi
4226 else
4227   STRIP="$ac_cv_prog_STRIP"
4228 fi
4229
4230 fi
4231 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4234 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4235 if test -z "$MKDIR_P"; then
4236   if ${ac_cv_path_mkdir+:} false; then :
4237   $as_echo_n "(cached) " >&6
4238 else
4239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4241 do
4242   IFS=$as_save_IFS
4243   test -z "$as_dir" && as_dir=.
4244     for ac_prog in mkdir gmkdir; do
4245          for ac_exec_ext in '' $ac_executable_extensions; do
4246            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4247            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4248              'mkdir (GNU coreutils) '* | \
4249              'mkdir (coreutils) '* | \
4250              'mkdir (fileutils) '4.1*)
4251                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4252                break 3;;
4253            esac
4254          done
4255        done
4256   done
4257 IFS=$as_save_IFS
4258
4259 fi
4260
4261   test -d ./--version && rmdir ./--version
4262   if test "${ac_cv_path_mkdir+set}" = set; then
4263     MKDIR_P="$ac_cv_path_mkdir -p"
4264   else
4265     # As a last resort, use the slow shell script.  Don't cache a
4266     # value for MKDIR_P within a source directory, because that will
4267     # break other packages using the cache if that directory is
4268     # removed, or if the value is a relative name.
4269     MKDIR_P="$ac_install_sh -d"
4270   fi
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4273 $as_echo "$MKDIR_P" >&6; }
4274
4275 for ac_prog in gawk mawk nawk awk
4276 do
4277   # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_AWK+:} false; then :
4282   $as_echo_n "(cached) " >&6
4283 else
4284   if test -n "$AWK"; then
4285   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292     for ac_exec_ext in '' $ac_executable_extensions; do
4293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294     ac_cv_prog_AWK="$ac_prog"
4295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299   done
4300 IFS=$as_save_IFS
4301
4302 fi
4303 fi
4304 AWK=$ac_cv_prog_AWK
4305 if test -n "$AWK"; then
4306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4307 $as_echo "$AWK" >&6; }
4308 else
4309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312
4313
4314   test -n "$AWK" && break
4315 done
4316
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4318 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4319 set x ${MAKE-make}
4320 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4321 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4322   $as_echo_n "(cached) " >&6
4323 else
4324   cat >conftest.make <<\_ACEOF
4325 SHELL = /bin/sh
4326 all:
4327         @echo '@@@%%%=$(MAKE)=@@@%%%'
4328 _ACEOF
4329 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4330 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4331   *@@@%%%=?*=@@@%%%*)
4332     eval ac_cv_prog_make_${ac_make}_set=yes;;
4333   *)
4334     eval ac_cv_prog_make_${ac_make}_set=no;;
4335 esac
4336 rm -f conftest.make
4337 fi
4338 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4340 $as_echo "yes" >&6; }
4341   SET_MAKE=
4342 else
4343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4345   SET_MAKE="MAKE=${MAKE-make}"
4346 fi
4347
4348 rm -rf .tst 2>/dev/null
4349 mkdir .tst 2>/dev/null
4350 if test -d .tst; then
4351   am__leading_dot=.
4352 else
4353   am__leading_dot=_
4354 fi
4355 rmdir .tst 2>/dev/null
4356
4357 # Check whether --enable-silent-rules was given.
4358 if test "${enable_silent_rules+set}" = set; then :
4359   enableval=$enable_silent_rules;
4360 fi
4361
4362 case $enable_silent_rules in # (((
4363   yes) AM_DEFAULT_VERBOSITY=0;;
4364    no) AM_DEFAULT_VERBOSITY=1;;
4365     *) AM_DEFAULT_VERBOSITY=1;;
4366 esac
4367 am_make=${MAKE-make}
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4369 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4370 if ${am_cv_make_support_nested_variables+:} false; then :
4371   $as_echo_n "(cached) " >&6
4372 else
4373   if $as_echo 'TRUE=$(BAR$(V))
4374 BAR0=false
4375 BAR1=true
4376 V=1
4377 am__doit:
4378         @$(TRUE)
4379 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4380   am_cv_make_support_nested_variables=yes
4381 else
4382   am_cv_make_support_nested_variables=no
4383 fi
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4386 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4387 if test $am_cv_make_support_nested_variables = yes; then
4388     AM_V='$(V)'
4389   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4390 else
4391   AM_V=$AM_DEFAULT_VERBOSITY
4392   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4393 fi
4394 AM_BACKSLASH='\'
4395
4396 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4397   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4398   # is not polluted with repeated "-I."
4399   am__isrc=' -I$(srcdir)'
4400   # test to see if srcdir already configured
4401   if test -f $srcdir/config.status; then
4402     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4403   fi
4404 fi
4405
4406 # test whether we have cygpath
4407 if test -z "$CYGPATH_W"; then
4408   if (cygpath --version) >/dev/null 2>/dev/null; then
4409     CYGPATH_W='cygpath -w'
4410   else
4411     CYGPATH_W=echo
4412   fi
4413 fi
4414
4415
4416 # Define the identity of the package.
4417  PACKAGE='libphobos'
4418  VERSION='version-unused'
4419
4420
4421 # Some tools Automake needs.
4422
4423 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4424
4425
4426 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4427
4428
4429 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4430
4431
4432 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4433
4434
4435 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4436
4437 # For better backward compatibility.  To be removed once Automake 1.9.x
4438 # dies out for good.  For more background, see:
4439 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4440 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4441 mkdir_p='$(MKDIR_P)'
4442
4443 # We need awk for the "check" target (and possibly the TAP driver).  The
4444 # system "awk" is bad on some platforms.
4445 # Always define AMTAR for backward compatibility.  Yes, it's still used
4446 # in the wild :-(  We should find a proper way to deprecate it ...
4447 AMTAR='$${TAR-tar}'
4448
4449
4450 # We'll loop over all known methods to create a tar archive until one works.
4451 _am_tools='gnutar  pax cpio none'
4452
4453 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4454
4455
4456
4457
4458
4459
4460 # POSIX will say in a future version that running "rm -f" with no argument
4461 # is OK; and we want to be able to make that assumption in our Makefile
4462 # recipes.  So use an aggressive probe to check that the usage we want is
4463 # actually supported "in the wild" to an acceptable degree.
4464 # See automake bug#10828.
4465 # To make any issue more visible, cause the running configure to be aborted
4466 # by default if the 'rm' program in use doesn't match our expectations; the
4467 # user can still override this though.
4468 if rm -f && rm -fr && rm -rf; then : OK; else
4469   cat >&2 <<'END'
4470 Oops!
4471
4472 Your 'rm' program seems unable to run without file operands specified
4473 on the command line, even when the '-f' option is present.  This is contrary
4474 to the behaviour of most rm programs out there, and not conforming with
4475 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4476
4477 Please tell bug-automake@gnu.org about your system, including the value
4478 of your $PATH and any error possibly output before this message.  This
4479 can help us improve future automake versions.
4480
4481 END
4482   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4483     echo 'Configuration will proceed anyway, since you have set the' >&2
4484     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4485     echo >&2
4486   else
4487     cat >&2 <<'END'
4488 Aborting the configuration process, to ensure you take notice of the issue.
4489
4490 You can download and install GNU coreutils to get an 'rm' implementation
4491 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4492
4493 If you want to complete the configuration process using your problematic
4494 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4495 to "yes", and re-run configure.
4496
4497 END
4498     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4499   fi
4500 fi
4501
4502
4503
4504
4505 # By default we simply use the C compiler to build assembly code.
4506
4507 test "${CCAS+set}" = set || CCAS=$CC
4508 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4509
4510
4511
4512 ac_ext=c
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517 if test -n "$ac_tool_prefix"; then
4518   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if ${ac_cv_prog_CC+:} false; then :
4523   $as_echo_n "(cached) " >&6
4524 else
4525   if test -n "$CC"; then
4526   ac_cv_prog_CC="$CC" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533     for ac_exec_ext in '' $ac_executable_extensions; do
4534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537     break 2
4538   fi
4539 done
4540   done
4541 IFS=$as_save_IFS
4542
4543 fi
4544 fi
4545 CC=$ac_cv_prog_CC
4546 if test -n "$CC"; then
4547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4548 $as_echo "$CC" >&6; }
4549 else
4550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4552 fi
4553
4554
4555 fi
4556 if test -z "$ac_cv_prog_CC"; then
4557   ac_ct_CC=$CC
4558   # Extract the first word of "gcc", so it can be a program name with args.
4559 set dummy gcc; ac_word=$2
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4563   $as_echo_n "(cached) " >&6
4564 else
4565   if test -n "$ac_ct_CC"; then
4566   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571   IFS=$as_save_IFS
4572   test -z "$as_dir" && as_dir=.
4573     for ac_exec_ext in '' $ac_executable_extensions; do
4574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575     ac_cv_prog_ac_ct_CC="gcc"
4576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577     break 2
4578   fi
4579 done
4580   done
4581 IFS=$as_save_IFS
4582
4583 fi
4584 fi
4585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4586 if test -n "$ac_ct_CC"; then
4587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4588 $as_echo "$ac_ct_CC" >&6; }
4589 else
4590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592 fi
4593
4594   if test "x$ac_ct_CC" = x; then
4595     CC=""
4596   else
4597     case $cross_compiling:$ac_tool_warned in
4598 yes:)
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601 ac_tool_warned=yes ;;
4602 esac
4603     CC=$ac_ct_CC
4604   fi
4605 else
4606   CC="$ac_cv_prog_CC"
4607 fi
4608
4609 if test -z "$CC"; then
4610           if test -n "$ac_tool_prefix"; then
4611     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4612 set dummy ${ac_tool_prefix}cc; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if ${ac_cv_prog_CC+:} false; then :
4616   $as_echo_n "(cached) " >&6
4617 else
4618   if test -n "$CC"; then
4619   ac_cv_prog_CC="$CC" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626     for ac_exec_ext in '' $ac_executable_extensions; do
4627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628     ac_cv_prog_CC="${ac_tool_prefix}cc"
4629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630     break 2
4631   fi
4632 done
4633   done
4634 IFS=$as_save_IFS
4635
4636 fi
4637 fi
4638 CC=$ac_cv_prog_CC
4639 if test -n "$CC"; then
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4641 $as_echo "$CC" >&6; }
4642 else
4643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4645 fi
4646
4647
4648   fi
4649 fi
4650 if test -z "$CC"; then
4651   # Extract the first word of "cc", so it can be a program name with args.
4652 set dummy cc; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_prog_CC+:} false; then :
4656   $as_echo_n "(cached) " >&6
4657 else
4658   if test -n "$CC"; then
4659   ac_cv_prog_CC="$CC" # Let the user override the test.
4660 else
4661   ac_prog_rejected=no
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4664 do
4665   IFS=$as_save_IFS
4666   test -z "$as_dir" && as_dir=.
4667     for ac_exec_ext in '' $ac_executable_extensions; do
4668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4670        ac_prog_rejected=yes
4671        continue
4672      fi
4673     ac_cv_prog_CC="cc"
4674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678   done
4679 IFS=$as_save_IFS
4680
4681 if test $ac_prog_rejected = yes; then
4682   # We found a bogon in the path, so make sure we never use it.
4683   set dummy $ac_cv_prog_CC
4684   shift
4685   if test $# != 0; then
4686     # We chose a different compiler from the bogus one.
4687     # However, it has the same basename, so the bogon will be chosen
4688     # first if we set CC to just the basename; use the full file name.
4689     shift
4690     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4691   fi
4692 fi
4693 fi
4694 fi
4695 CC=$ac_cv_prog_CC
4696 if test -n "$CC"; then
4697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4698 $as_echo "$CC" >&6; }
4699 else
4700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4702 fi
4703
4704
4705 fi
4706 if test -z "$CC"; then
4707   if test -n "$ac_tool_prefix"; then
4708   for ac_prog in cl.exe
4709   do
4710     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if ${ac_cv_prog_CC+:} false; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717   if test -n "$CC"; then
4718   ac_cv_prog_CC="$CC" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723   IFS=$as_save_IFS
4724   test -z "$as_dir" && as_dir=.
4725     for ac_exec_ext in '' $ac_executable_extensions; do
4726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729     break 2
4730   fi
4731 done
4732   done
4733 IFS=$as_save_IFS
4734
4735 fi
4736 fi
4737 CC=$ac_cv_prog_CC
4738 if test -n "$CC"; then
4739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4740 $as_echo "$CC" >&6; }
4741 else
4742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4744 fi
4745
4746
4747     test -n "$CC" && break
4748   done
4749 fi
4750 if test -z "$CC"; then
4751   ac_ct_CC=$CC
4752   for ac_prog in cl.exe
4753 do
4754   # Extract the first word of "$ac_prog", so it can be a program name with args.
4755 set dummy $ac_prog; ac_word=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4759   $as_echo_n "(cached) " >&6
4760 else
4761   if test -n "$ac_ct_CC"; then
4762   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767   IFS=$as_save_IFS
4768   test -z "$as_dir" && as_dir=.
4769     for ac_exec_ext in '' $ac_executable_extensions; do
4770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771     ac_cv_prog_ac_ct_CC="$ac_prog"
4772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776   done
4777 IFS=$as_save_IFS
4778
4779 fi
4780 fi
4781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4782 if test -n "$ac_ct_CC"; then
4783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4784 $as_echo "$ac_ct_CC" >&6; }
4785 else
4786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787 $as_echo "no" >&6; }
4788 fi
4789
4790
4791   test -n "$ac_ct_CC" && break
4792 done
4793
4794   if test "x$ac_ct_CC" = x; then
4795     CC=""
4796   else
4797     case $cross_compiling:$ac_tool_warned in
4798 yes:)
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4801 ac_tool_warned=yes ;;
4802 esac
4803     CC=$ac_ct_CC
4804   fi
4805 fi
4806
4807 fi
4808
4809
4810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4812 as_fn_error $? "no acceptable C compiler found in \$PATH
4813 See \`config.log' for more details" "$LINENO" 5; }
4814
4815 # Provide some information about the compiler.
4816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4817 set X $ac_compile
4818 ac_compiler=$2
4819 for ac_option in --version -v -V -qversion; do
4820   { { ac_try="$ac_compiler $ac_option >&5"
4821 case "(($ac_try" in
4822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823   *) ac_try_echo=$ac_try;;
4824 esac
4825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4826 $as_echo "$ac_try_echo"; } >&5
4827   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4828   ac_status=$?
4829   if test -s conftest.err; then
4830     sed '10a\
4831 ... rest of stderr output deleted ...
4832          10q' conftest.err >conftest.er1
4833     cat conftest.er1 >&5
4834   fi
4835   rm -f conftest.er1 conftest.err
4836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4837   test $ac_status = 0; }
4838 done
4839
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4841 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4842 if ${ac_cv_c_compiler_gnu+:} false; then :
4843   $as_echo_n "(cached) " >&6
4844 else
4845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h.  */
4847
4848 int
4849 main ()
4850 {
4851 #ifndef __GNUC__
4852        choke me
4853 #endif
4854
4855   ;
4856   return 0;
4857 }
4858 _ACEOF
4859 if ac_fn_c_try_compile "$LINENO"; then :
4860   ac_compiler_gnu=yes
4861 else
4862   ac_compiler_gnu=no
4863 fi
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4866
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4869 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4870 if test $ac_compiler_gnu = yes; then
4871   GCC=yes
4872 else
4873   GCC=
4874 fi
4875 ac_test_CFLAGS=${CFLAGS+set}
4876 ac_save_CFLAGS=$CFLAGS
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4878 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4879 if ${ac_cv_prog_cc_g+:} false; then :
4880   $as_echo_n "(cached) " >&6
4881 else
4882   ac_save_c_werror_flag=$ac_c_werror_flag
4883    ac_c_werror_flag=yes
4884    ac_cv_prog_cc_g=no
4885    CFLAGS="-g"
4886    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h.  */
4888
4889 int
4890 main ()
4891 {
4892
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 if ac_fn_c_try_compile "$LINENO"; then :
4898   ac_cv_prog_cc_g=yes
4899 else
4900   CFLAGS=""
4901       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h.  */
4903
4904 int
4905 main ()
4906 {
4907
4908   ;
4909   return 0;
4910 }
4911 _ACEOF
4912 if ac_fn_c_try_compile "$LINENO"; then :
4913
4914 else
4915   ac_c_werror_flag=$ac_save_c_werror_flag
4916          CFLAGS="-g"
4917          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h.  */
4919
4920 int
4921 main ()
4922 {
4923
4924   ;
4925   return 0;
4926 }
4927 _ACEOF
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929   ac_cv_prog_cc_g=yes
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 fi
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934 fi
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936    ac_c_werror_flag=$ac_save_c_werror_flag
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4939 $as_echo "$ac_cv_prog_cc_g" >&6; }
4940 if test "$ac_test_CFLAGS" = set; then
4941   CFLAGS=$ac_save_CFLAGS
4942 elif test $ac_cv_prog_cc_g = yes; then
4943   if test "$GCC" = yes; then
4944     CFLAGS="-g -O2"
4945   else
4946     CFLAGS="-g"
4947   fi
4948 else
4949   if test "$GCC" = yes; then
4950     CFLAGS="-O2"
4951   else
4952     CFLAGS=
4953   fi
4954 fi
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4956 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4957 if ${ac_cv_prog_cc_c89+:} false; then :
4958   $as_echo_n "(cached) " >&6
4959 else
4960   ac_cv_prog_cc_c89=no
4961 ac_save_CC=$CC
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h.  */
4964 #include <stdarg.h>
4965 #include <stdio.h>
4966 struct stat;
4967 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4968 struct buf { int x; };
4969 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4970 static char *e (p, i)
4971      char **p;
4972      int i;
4973 {
4974   return p[i];
4975 }
4976 static char *f (char * (*g) (char **, int), char **p, ...)
4977 {
4978   char *s;
4979   va_list v;
4980   va_start (v,p);
4981   s = g (p, va_arg (v,int));
4982   va_end (v);
4983   return s;
4984 }
4985
4986 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4987    function prototypes and stuff, but not '\xHH' hex character constants.
4988    These don't provoke an error unfortunately, instead are silently treated
4989    as 'x'.  The following induces an error, until -std is added to get
4990    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4991    array size at least.  It's necessary to write '\x00'==0 to get something
4992    that's true only with -std.  */
4993 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4994
4995 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4996    inside strings and character constants.  */
4997 #define FOO(x) 'x'
4998 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4999
5000 int test (int i, double x);
5001 struct s1 {int (*f) (int a);};
5002 struct s2 {int (*f) (double a);};
5003 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5004 int argc;
5005 char **argv;
5006 int
5007 main ()
5008 {
5009 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5010   ;
5011   return 0;
5012 }
5013 _ACEOF
5014 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5015         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5016 do
5017   CC="$ac_save_CC $ac_arg"
5018   if ac_fn_c_try_compile "$LINENO"; then :
5019   ac_cv_prog_cc_c89=$ac_arg
5020 fi
5021 rm -f core conftest.err conftest.$ac_objext
5022   test "x$ac_cv_prog_cc_c89" != "xno" && break
5023 done
5024 rm -f conftest.$ac_ext
5025 CC=$ac_save_CC
5026
5027 fi
5028 # AC_CACHE_VAL
5029 case "x$ac_cv_prog_cc_c89" in
5030   x)
5031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5032 $as_echo "none needed" >&6; } ;;
5033   xno)
5034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5035 $as_echo "unsupported" >&6; } ;;
5036   *)
5037     CC="$CC $ac_cv_prog_cc_c89"
5038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5039 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5040 esac
5041 if test "x$ac_cv_prog_cc_c89" != xno; then :
5042
5043 fi
5044
5045 ac_ext=c
5046 ac_cpp='$CPP $CPPFLAGS'
5047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050
5051 ac_ext=c
5052 ac_cpp='$CPP $CPPFLAGS'
5053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5057 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5058 if ${am_cv_prog_cc_c_o+:} false; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h.  */
5063
5064 int
5065 main ()
5066 {
5067
5068   ;
5069   return 0;
5070 }
5071 _ACEOF
5072   # Make sure it works both with $CC and with simple cc.
5073   # Following AC_PROG_CC_C_O, we do the test twice because some
5074   # compilers refuse to overwrite an existing .o file with -o,
5075   # though they will create one.
5076   am_cv_prog_cc_c_o=yes
5077   for am_i in 1 2; do
5078     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5079    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5080    ac_status=$?
5081    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082    (exit $ac_status); } \
5083          && test -f conftest2.$ac_objext; then
5084       : OK
5085     else
5086       am_cv_prog_cc_c_o=no
5087       break
5088     fi
5089   done
5090   rm -f core conftest*
5091   unset am_i
5092 fi
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5094 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5095 if test "$am_cv_prog_cc_c_o" != yes; then
5096    # Losing compiler, so override with the script.
5097    # FIXME: It is wrong to rewrite CC.
5098    # But if we don't then we get into trouble of one sort or another.
5099    # A longer-term fix would be to have automake use am__CC in this case,
5100    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5101    CC="$am_aux_dir/compile $CC"
5102 fi
5103 ac_ext=c
5104 ac_cpp='$CPP $CPPFLAGS'
5105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108
5109
5110 ac_ext=d
5111 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5112 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113 ac_compiler_gnu=yes
5114 if test -n "$ac_tool_prefix"; then
5115   # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5116 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_GDC+:} false; then :
5120   $as_echo_n "(cached) " >&6
5121 else
5122   if test -n "$GDC"; then
5123   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128   IFS=$as_save_IFS
5129   test -z "$as_dir" && as_dir=.
5130     for ac_exec_ext in '' $ac_executable_extensions; do
5131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132     ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134     break 2
5135   fi
5136 done
5137   done
5138 IFS=$as_save_IFS
5139
5140 fi
5141 fi
5142 GDC=$ac_cv_prog_GDC
5143 if test -n "$GDC"; then
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5145 $as_echo "$GDC" >&6; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152 fi
5153 if test -z "$ac_cv_prog_GDC"; then
5154   ac_ct_GDC=$GDC
5155   # Extract the first word of "gdc", so it can be a program name with args.
5156 set dummy gdc; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5160   $as_echo_n "(cached) " >&6
5161 else
5162   if test -n "$ac_ct_GDC"; then
5163   ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168   IFS=$as_save_IFS
5169   test -z "$as_dir" && as_dir=.
5170     for ac_exec_ext in '' $ac_executable_extensions; do
5171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172     ac_cv_prog_ac_ct_GDC="gdc"
5173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174     break 2
5175   fi
5176 done
5177   done
5178 IFS=$as_save_IFS
5179
5180 fi
5181 fi
5182 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5183 if test -n "$ac_ct_GDC"; then
5184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5185 $as_echo "$ac_ct_GDC" >&6; }
5186 else
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5189 fi
5190
5191   if test "x$ac_ct_GDC" = x; then
5192     GDC=""
5193   else
5194     case $cross_compiling:$ac_tool_warned in
5195 yes:)
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198 ac_tool_warned=yes ;;
5199 esac
5200     GDC=$ac_ct_GDC
5201   fi
5202 else
5203   GDC="$ac_cv_prog_GDC"
5204 fi
5205
5206 if test -z "$GDC"; then
5207   if test -n "$ac_tool_prefix"; then
5208     # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5209 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_GDC+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   if test -n "$GDC"; then
5216   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223     for ac_exec_ext in '' $ac_executable_extensions; do
5224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225     ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230   done
5231 IFS=$as_save_IFS
5232
5233 fi
5234 fi
5235 GDC=$ac_cv_prog_GDC
5236 if test -n "$GDC"; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5238 $as_echo "$GDC" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244
5245   fi
5246 fi
5247 if test -z "$GDC"; then
5248   # Extract the first word of "gdc", so it can be a program name with args.
5249 set dummy gdc; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if ${ac_cv_prog_GDC+:} false; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   if test -n "$GDC"; then
5256   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5257 else
5258   ac_prog_rejected=no
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264     for ac_exec_ext in '' $ac_executable_extensions; do
5265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266     if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5267        ac_prog_rejected=yes
5268        continue
5269      fi
5270     ac_cv_prog_GDC="gdc"
5271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272     break 2
5273   fi
5274 done
5275   done
5276 IFS=$as_save_IFS
5277
5278 if test $ac_prog_rejected = yes; then
5279   # We found a bogon in the path, so make sure we never use it.
5280   set dummy $ac_cv_prog_GDC
5281   shift
5282   if test $# != 0; then
5283     # We chose a different compiler from the bogus one.
5284     # However, it has the same basename, so the bogon will be chosen
5285     # first if we set GDC to just the basename; use the full file name.
5286     shift
5287     ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5288   fi
5289 fi
5290 fi
5291 fi
5292 GDC=$ac_cv_prog_GDC
5293 if test -n "$GDC"; then
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5295 $as_echo "$GDC" >&6; }
5296 else
5297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301
5302 fi
5303
5304
5305 # Provide some information about the compiler.
5306 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5307 set X $ac_compile
5308 ac_compiler=$2
5309 { { ac_try="$ac_compiler --version >&5"
5310 case "(($ac_try" in
5311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312   *) ac_try_echo=$ac_try;;
5313 esac
5314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5315 $as_echo "$ac_try_echo"; } >&5
5316   (eval "$ac_compiler --version >&5") 2>conftest.err
5317   ac_status=$?
5318   if test -s conftest.err; then
5319     sed '10a\
5320 ... rest of stderr output deleted ...
5321          10q' conftest.err >conftest.er1
5322     cat conftest.er1 >&5
5323   fi
5324   rm -f conftest.er1 conftest.err
5325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5326   test $ac_status = 0; }
5327 ac_ext=c
5328 ac_cpp='$CPP $CPPFLAGS'
5329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5332
5333
5334       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5335 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5336 if ${phobos_cv_abs_srcdir+:} false; then :
5337   $as_echo_n "(cached) " >&6
5338 else
5339   phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5340 fi
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5342 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5343     if test -d "$phobos_cv_abs_srcdir"; then :
5344
5345 else
5346   as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5347 fi
5348
5349
5350
5351
5352   gdc_save_DFLAGS=$GDCFLAGS
5353   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
5354
5355   ac_ext=d
5356 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5357 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=yes
5359
5360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5361 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5362     cat > conftest.$ac_ext <<_ACEOF
5363 module mod;
5364
5365
5366 extern(C) int main() {
5367   return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_d_try_compile "$LINENO"; then :
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5372 $as_echo "yes" >&6; }
5373 else
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376        as_fn_error $? "can't compile D sources!" "$LINENO" 5
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379   ac_ext=c
5380 ac_cpp='$CPP $CPPFLAGS'
5381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5384
5385
5386   GDCFLAGS=$gdc_save_DFLAGS
5387
5388
5389
5390
5391
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5394 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5395     # Check whether --enable-maintainer-mode was given.
5396 if test "${enable_maintainer_mode+set}" = set; then :
5397   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5398 else
5399   USE_MAINTAINER_MODE=no
5400 fi
5401
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5403 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5404    if test $USE_MAINTAINER_MODE = yes; then
5405   MAINTAINER_MODE_TRUE=
5406   MAINTAINER_MODE_FALSE='#'
5407 else
5408   MAINTAINER_MODE_TRUE='#'
5409   MAINTAINER_MODE_FALSE=
5410 fi
5411
5412   MAINT=$MAINTAINER_MODE_TRUE
5413
5414
5415 if test -n "$ac_tool_prefix"; then
5416   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_RANLIB+:} false; then :
5421   $as_echo_n "(cached) " >&6
5422 else
5423   if test -n "$RANLIB"; then
5424   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429   IFS=$as_save_IFS
5430   test -z "$as_dir" && as_dir=.
5431     for ac_exec_ext in '' $ac_executable_extensions; do
5432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435     break 2
5436   fi
5437 done
5438   done
5439 IFS=$as_save_IFS
5440
5441 fi
5442 fi
5443 RANLIB=$ac_cv_prog_RANLIB
5444 if test -n "$RANLIB"; then
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5446 $as_echo "$RANLIB" >&6; }
5447 else
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5450 fi
5451
5452
5453 fi
5454 if test -z "$ac_cv_prog_RANLIB"; then
5455   ac_ct_RANLIB=$RANLIB
5456   # Extract the first word of "ranlib", so it can be a program name with args.
5457 set dummy ranlib; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5461   $as_echo_n "(cached) " >&6
5462 else
5463   if test -n "$ac_ct_RANLIB"; then
5464   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469   IFS=$as_save_IFS
5470   test -z "$as_dir" && as_dir=.
5471     for ac_exec_ext in '' $ac_executable_extensions; do
5472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473     ac_cv_prog_ac_ct_RANLIB="ranlib"
5474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475     break 2
5476   fi
5477 done
5478   done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5484 if test -n "$ac_ct_RANLIB"; then
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5486 $as_echo "$ac_ct_RANLIB" >&6; }
5487 else
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492   if test "x$ac_ct_RANLIB" = x; then
5493     RANLIB=":"
5494   else
5495     case $cross_compiling:$ac_tool_warned in
5496 yes:)
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned=yes ;;
5500 esac
5501     RANLIB=$ac_ct_RANLIB
5502   fi
5503 else
5504   RANLIB="$ac_cv_prog_RANLIB"
5505 fi
5506
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5509 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5510 set x ${MAKE-make}
5511 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5512 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5513   $as_echo_n "(cached) " >&6
5514 else
5515   cat >conftest.make <<\_ACEOF
5516 SHELL = /bin/sh
5517 all:
5518         @echo '@@@%%%=$(MAKE)=@@@%%%'
5519 _ACEOF
5520 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5521 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5522   *@@@%%%=?*=@@@%%%*)
5523     eval ac_cv_prog_make_${ac_make}_set=yes;;
5524   *)
5525     eval ac_cv_prog_make_${ac_make}_set=no;;
5526 esac
5527 rm -f conftest.make
5528 fi
5529 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5531 $as_echo "yes" >&6; }
5532   SET_MAKE=
5533 else
5534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5536   SET_MAKE="MAKE=${MAKE-make}"
5537 fi
5538
5539
5540 # This should be inherited in the recursive make, but ensure it is defined.
5541 test "$AR" || AR=ar
5542
5543
5544 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5545
5546
5547
5548 # Enable libtool
5549 case `pwd` in
5550   *\ * | *\     *)
5551     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5552 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5553 esac
5554
5555
5556
5557 macro_version='2.2.7a'
5558 macro_revision='1.3134'
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572 ltmain="$ac_aux_dir/ltmain.sh"
5573
5574 # Backslashify metacharacters that are still active within
5575 # double-quoted strings.
5576 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5577
5578 # Same as above, but do not quote variable references.
5579 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5580
5581 # Sed substitution to delay expansion of an escaped shell variable in a
5582 # double_quote_subst'ed string.
5583 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5584
5585 # Sed substitution to delay expansion of an escaped single quote.
5586 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5587
5588 # Sed substitution to avoid accidental globbing in evaled expressions
5589 no_glob_subst='s/\*/\\\*/g'
5590
5591 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5592 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5594
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5596 $as_echo_n "checking how to print strings... " >&6; }
5597 # Test print first, because it will be a builtin if present.
5598 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5599    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5600   ECHO='print -r --'
5601 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5602   ECHO='printf %s\n'
5603 else
5604   # Use this function as a fallback that always works.
5605   func_fallback_echo ()
5606   {
5607     eval 'cat <<_LTECHO_EOF
5608 $1
5609 _LTECHO_EOF'
5610   }
5611   ECHO='func_fallback_echo'
5612 fi
5613
5614 # func_echo_all arg...
5615 # Invoke $ECHO with all args, space-separated.
5616 func_echo_all ()
5617 {
5618     $ECHO ""
5619 }
5620
5621 case "$ECHO" in
5622   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5623 $as_echo "printf" >&6; } ;;
5624   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5625 $as_echo "print -r" >&6; } ;;
5626   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5627 $as_echo "cat" >&6; } ;;
5628 esac
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5644 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5645 if ${ac_cv_path_SED+:} false; then :
5646   $as_echo_n "(cached) " >&6
5647 else
5648             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5649      for ac_i in 1 2 3 4 5 6 7; do
5650        ac_script="$ac_script$as_nl$ac_script"
5651      done
5652      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5653      { ac_script=; unset ac_script;}
5654      if test -z "$SED"; then
5655   ac_path_SED_found=false
5656   # Loop through the user's path and test for each of PROGNAME-LIST
5657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660   IFS=$as_save_IFS
5661   test -z "$as_dir" && as_dir=.
5662     for ac_prog in sed gsed; do
5663     for ac_exec_ext in '' $ac_executable_extensions; do
5664       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5665       as_fn_executable_p "$ac_path_SED" || continue
5666 # Check for GNU ac_path_SED and select it if it is found.
5667   # Check for GNU $ac_path_SED
5668 case `"$ac_path_SED" --version 2>&1` in
5669 *GNU*)
5670   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5671 *)
5672   ac_count=0
5673   $as_echo_n 0123456789 >"conftest.in"
5674   while :
5675   do
5676     cat "conftest.in" "conftest.in" >"conftest.tmp"
5677     mv "conftest.tmp" "conftest.in"
5678     cp "conftest.in" "conftest.nl"
5679     $as_echo '' >> "conftest.nl"
5680     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5681     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5682     as_fn_arith $ac_count + 1 && ac_count=$as_val
5683     if test $ac_count -gt ${ac_path_SED_max-0}; then
5684       # Best one so far, save it but keep looking for a better one
5685       ac_cv_path_SED="$ac_path_SED"
5686       ac_path_SED_max=$ac_count
5687     fi
5688     # 10*(2^10) chars as input seems more than enough
5689     test $ac_count -gt 10 && break
5690   done
5691   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5692 esac
5693
5694       $ac_path_SED_found && break 3
5695     done
5696   done
5697   done
5698 IFS=$as_save_IFS
5699   if test -z "$ac_cv_path_SED"; then
5700     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5701   fi
5702 else
5703   ac_cv_path_SED=$SED
5704 fi
5705
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5708 $as_echo "$ac_cv_path_SED" >&6; }
5709  SED="$ac_cv_path_SED"
5710   rm -f conftest.sed
5711
5712 test -z "$SED" && SED=sed
5713 Xsed="$SED -e 1s/^X//"
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5726 $as_echo_n "checking for fgrep... " >&6; }
5727 if ${ac_cv_path_FGREP+:} false; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5731    then ac_cv_path_FGREP="$GREP -F"
5732    else
5733      if test -z "$FGREP"; then
5734   ac_path_FGREP_found=false
5735   # Loop through the user's path and test for each of PROGNAME-LIST
5736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741     for ac_prog in fgrep; do
5742     for ac_exec_ext in '' $ac_executable_extensions; do
5743       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5744       as_fn_executable_p "$ac_path_FGREP" || continue
5745 # Check for GNU ac_path_FGREP and select it if it is found.
5746   # Check for GNU $ac_path_FGREP
5747 case `"$ac_path_FGREP" --version 2>&1` in
5748 *GNU*)
5749   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5750 *)
5751   ac_count=0
5752   $as_echo_n 0123456789 >"conftest.in"
5753   while :
5754   do
5755     cat "conftest.in" "conftest.in" >"conftest.tmp"
5756     mv "conftest.tmp" "conftest.in"
5757     cp "conftest.in" "conftest.nl"
5758     $as_echo 'FGREP' >> "conftest.nl"
5759     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5760     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5761     as_fn_arith $ac_count + 1 && ac_count=$as_val
5762     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5763       # Best one so far, save it but keep looking for a better one
5764       ac_cv_path_FGREP="$ac_path_FGREP"
5765       ac_path_FGREP_max=$ac_count
5766     fi
5767     # 10*(2^10) chars as input seems more than enough
5768     test $ac_count -gt 10 && break
5769   done
5770   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5771 esac
5772
5773       $ac_path_FGREP_found && break 3
5774     done
5775   done
5776   done
5777 IFS=$as_save_IFS
5778   if test -z "$ac_cv_path_FGREP"; then
5779     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5780   fi
5781 else
5782   ac_cv_path_FGREP=$FGREP
5783 fi
5784
5785    fi
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5788 $as_echo "$ac_cv_path_FGREP" >&6; }
5789  FGREP="$ac_cv_path_FGREP"
5790
5791
5792 test -z "$GREP" && GREP=grep
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812 # Check whether --with-gnu-ld was given.
5813 if test "${with_gnu_ld+set}" = set; then :
5814   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5815 else
5816   with_gnu_ld=no
5817 fi
5818
5819 ac_prog=ld
5820 if test "$GCC" = yes; then
5821   # Check if gcc -print-prog-name=ld gives a path.
5822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5823 $as_echo_n "checking for ld used by $CC... " >&6; }
5824   case $host in
5825   *-*-mingw*)
5826     # gcc leaves a trailing carriage return which upsets mingw
5827     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5828   *)
5829     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5830   esac
5831   case $ac_prog in
5832     # Accept absolute paths.
5833     [\\/]* | ?:[\\/]*)
5834       re_direlt='/[^/][^/]*/\.\./'
5835       # Canonicalize the pathname of ld
5836       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5837       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5838         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5839       done
5840       test -z "$LD" && LD="$ac_prog"
5841       ;;
5842   "")
5843     # If it fails, then pretend we aren't using GCC.
5844     ac_prog=ld
5845     ;;
5846   *)
5847     # If it is relative, then search for the first ld in PATH.
5848     with_gnu_ld=unknown
5849     ;;
5850   esac
5851 elif test "$with_gnu_ld" = yes; then
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5853 $as_echo_n "checking for GNU ld... " >&6; }
5854 else
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5856 $as_echo_n "checking for non-GNU ld... " >&6; }
5857 fi
5858 if ${lt_cv_path_LD+:} false; then :
5859   $as_echo_n "(cached) " >&6
5860 else
5861   if test -z "$LD"; then
5862   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5863   for ac_dir in $PATH; do
5864     IFS="$lt_save_ifs"
5865     test -z "$ac_dir" && ac_dir=.
5866     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5867       lt_cv_path_LD="$ac_dir/$ac_prog"
5868       # Check to see if the program is GNU ld.  I'd rather use --version,
5869       # but apparently some variants of GNU ld only accept -v.
5870       # Break only if it was the GNU/non-GNU ld that we prefer.
5871       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5872       *GNU* | *'with BFD'*)
5873         test "$with_gnu_ld" != no && break
5874         ;;
5875       *)
5876         test "$with_gnu_ld" != yes && break
5877         ;;
5878       esac
5879     fi
5880   done
5881   IFS="$lt_save_ifs"
5882 else
5883   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5884 fi
5885 fi
5886
5887 LD="$lt_cv_path_LD"
5888 if test -n "$LD"; then
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5890 $as_echo "$LD" >&6; }
5891 else
5892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5894 fi
5895 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5897 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5898 if ${lt_cv_prog_gnu_ld+:} false; then :
5899   $as_echo_n "(cached) " >&6
5900 else
5901   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5902 case `$LD -v 2>&1 </dev/null` in
5903 *GNU* | *'with BFD'*)
5904   lt_cv_prog_gnu_ld=yes
5905   ;;
5906 *)
5907   lt_cv_prog_gnu_ld=no
5908   ;;
5909 esac
5910 fi
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5912 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5913 with_gnu_ld=$lt_cv_prog_gnu_ld
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5924 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5925 if ${lt_cv_path_NM+:} false; then :
5926   $as_echo_n "(cached) " >&6
5927 else
5928   if test -n "$NM"; then
5929   # Let the user override the test.
5930   lt_cv_path_NM="$NM"
5931 else
5932   lt_nm_to_check="${ac_tool_prefix}nm"
5933   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5934     lt_nm_to_check="$lt_nm_to_check nm"
5935   fi
5936   for lt_tmp_nm in $lt_nm_to_check; do
5937     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5938     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5939       IFS="$lt_save_ifs"
5940       test -z "$ac_dir" && ac_dir=.
5941       tmp_nm="$ac_dir/$lt_tmp_nm"
5942       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5943         # Check to see if the nm accepts a BSD-compat flag.
5944         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5945         #   nm: unknown option "B" ignored
5946         # Tru64's nm complains that /dev/null is an invalid object file
5947         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5948         */dev/null* | *'Invalid file or object type'*)
5949           lt_cv_path_NM="$tmp_nm -B"
5950           break
5951           ;;
5952         *)
5953           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5954           */dev/null*)
5955             lt_cv_path_NM="$tmp_nm -p"
5956             break
5957             ;;
5958           *)
5959             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5960             continue # so that we can try to find one that supports BSD flags
5961             ;;
5962           esac
5963           ;;
5964         esac
5965       fi
5966     done
5967     IFS="$lt_save_ifs"
5968   done
5969   : ${lt_cv_path_NM=no}
5970 fi
5971 fi
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5973 $as_echo "$lt_cv_path_NM" >&6; }
5974 if test "$lt_cv_path_NM" != "no"; then
5975   NM="$lt_cv_path_NM"
5976 else
5977   # Didn't find any BSD compatible name lister, look for dumpbin.
5978   if test -n "$DUMPBIN"; then :
5979     # Let the user override the test.
5980   else
5981     if test -n "$ac_tool_prefix"; then
5982   for ac_prog in dumpbin "link -dump"
5983   do
5984     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if ${ac_cv_prog_DUMPBIN+:} false; then :
5989   $as_echo_n "(cached) " >&6
5990 else
5991   if test -n "$DUMPBIN"; then
5992   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999     for ac_exec_ext in '' $ac_executable_extensions; do
6000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6001     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006   done
6007 IFS=$as_save_IFS
6008
6009 fi
6010 fi
6011 DUMPBIN=$ac_cv_prog_DUMPBIN
6012 if test -n "$DUMPBIN"; then
6013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6014 $as_echo "$DUMPBIN" >&6; }
6015 else
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6018 fi
6019
6020
6021     test -n "$DUMPBIN" && break
6022   done
6023 fi
6024 if test -z "$DUMPBIN"; then
6025   ac_ct_DUMPBIN=$DUMPBIN
6026   for ac_prog in dumpbin "link -dump"
6027 do
6028   # Extract the first word of "$ac_prog", so it can be a program name with args.
6029 set dummy $ac_prog; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6033   $as_echo_n "(cached) " >&6
6034 else
6035   if test -n "$ac_ct_DUMPBIN"; then
6036   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041   IFS=$as_save_IFS
6042   test -z "$as_dir" && as_dir=.
6043     for ac_exec_ext in '' $ac_executable_extensions; do
6044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047     break 2
6048   fi
6049 done
6050   done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6056 if test -n "$ac_ct_DUMPBIN"; then
6057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6058 $as_echo "$ac_ct_DUMPBIN" >&6; }
6059 else
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 fi
6063
6064
6065   test -n "$ac_ct_DUMPBIN" && break
6066 done
6067
6068   if test "x$ac_ct_DUMPBIN" = x; then
6069     DUMPBIN=":"
6070   else
6071     case $cross_compiling:$ac_tool_warned in
6072 yes:)
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6075 ac_tool_warned=yes ;;
6076 esac
6077     DUMPBIN=$ac_ct_DUMPBIN
6078   fi
6079 fi
6080
6081     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6082     *COFF*)
6083       DUMPBIN="$DUMPBIN -symbols"
6084       ;;
6085     *)
6086       DUMPBIN=:
6087       ;;
6088     esac
6089   fi
6090
6091   if test "$DUMPBIN" != ":"; then
6092     NM="$DUMPBIN"
6093   fi
6094 fi
6095 test -z "$NM" && NM=nm
6096
6097
6098
6099
6100
6101
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6103 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6104 if ${lt_cv_nm_interface+:} false; then :
6105   $as_echo_n "(cached) " >&6
6106 else
6107   lt_cv_nm_interface="BSD nm"
6108   echo "int some_variable = 0;" > conftest.$ac_ext
6109   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6110   (eval "$ac_compile" 2>conftest.err)
6111   cat conftest.err >&5
6112   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6113   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6114   cat conftest.err >&5
6115   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6116   cat conftest.out >&5
6117   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6118     lt_cv_nm_interface="MS dumpbin"
6119   fi
6120   rm -f conftest*
6121 fi
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6123 $as_echo "$lt_cv_nm_interface" >&6; }
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6126 $as_echo_n "checking whether ln -s works... " >&6; }
6127 LN_S=$as_ln_s
6128 if test "$LN_S" = "ln -s"; then
6129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6130 $as_echo "yes" >&6; }
6131 else
6132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6133 $as_echo "no, using $LN_S" >&6; }
6134 fi
6135
6136 # find the maximum length of command line arguments
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6138 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6139 if ${lt_cv_sys_max_cmd_len+:} false; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142     i=0
6143   teststring="ABCD"
6144
6145   case $build_os in
6146   msdosdjgpp*)
6147     # On DJGPP, this test can blow up pretty badly due to problems in libc
6148     # (any single argument exceeding 2000 bytes causes a buffer overrun
6149     # during glob expansion).  Even if it were fixed, the result of this
6150     # check would be larger than it should be.
6151     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6152     ;;
6153
6154   gnu*)
6155     # Under GNU Hurd, this test is not required because there is
6156     # no limit to the length of command line arguments.
6157     # Libtool will interpret -1 as no limit whatsoever
6158     lt_cv_sys_max_cmd_len=-1;
6159     ;;
6160
6161   cygwin* | mingw* | cegcc*)
6162     # On Win9x/ME, this test blows up -- it succeeds, but takes
6163     # about 5 minutes as the teststring grows exponentially.
6164     # Worse, since 9x/ME are not pre-emptively multitasking,
6165     # you end up with a "frozen" computer, even though with patience
6166     # the test eventually succeeds (with a max line length of 256k).
6167     # Instead, let's just punt: use the minimum linelength reported by
6168     # all of the supported platforms: 8192 (on NT/2K/XP).
6169     lt_cv_sys_max_cmd_len=8192;
6170     ;;
6171
6172   mint*)
6173     # On MiNT this can take a long time and run out of memory.
6174     lt_cv_sys_max_cmd_len=8192;
6175     ;;
6176
6177   amigaos*)
6178     # On AmigaOS with pdksh, this test takes hours, literally.
6179     # So we just punt and use a minimum line length of 8192.
6180     lt_cv_sys_max_cmd_len=8192;
6181     ;;
6182
6183   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6184     # This has been around since 386BSD, at least.  Likely further.
6185     if test -x /sbin/sysctl; then
6186       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6187     elif test -x /usr/sbin/sysctl; then
6188       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6189     else
6190       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6191     fi
6192     # And add a safety zone
6193     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6194     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6195     ;;
6196
6197   interix*)
6198     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6199     lt_cv_sys_max_cmd_len=196608
6200     ;;
6201
6202   osf*)
6203     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6204     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6205     # nice to cause kernel panics so lets avoid the loop below.
6206     # First set a reasonable default.
6207     lt_cv_sys_max_cmd_len=16384
6208     #
6209     if test -x /sbin/sysconfig; then
6210       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6211         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6212       esac
6213     fi
6214     ;;
6215   sco3.2v5*)
6216     lt_cv_sys_max_cmd_len=102400
6217     ;;
6218   sysv5* | sco5v6* | sysv4.2uw2*)
6219     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6220     if test -n "$kargmax"; then
6221       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6222     else
6223       lt_cv_sys_max_cmd_len=32768
6224     fi
6225     ;;
6226   *)
6227     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6228     if test -n "$lt_cv_sys_max_cmd_len"; then
6229       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6230       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6231     else
6232       # Make teststring a little bigger before we do anything with it.
6233       # a 1K string should be a reasonable start.
6234       for i in 1 2 3 4 5 6 7 8 ; do
6235         teststring=$teststring$teststring
6236       done
6237       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6238       # If test is not a shell built-in, we'll probably end up computing a
6239       # maximum length that is only half of the actual maximum length, but
6240       # we can't tell.
6241       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6242                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6243               test $i != 17 # 1/2 MB should be enough
6244       do
6245         i=`expr $i + 1`
6246         teststring=$teststring$teststring
6247       done
6248       # Only check the string length outside the loop.
6249       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6250       teststring=
6251       # Add a significant safety factor because C++ compilers can tack on
6252       # massive amounts of additional arguments before passing them to the
6253       # linker.  It appears as though 1/2 is a usable value.
6254       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6255     fi
6256     ;;
6257   esac
6258
6259 fi
6260
6261 if test -n $lt_cv_sys_max_cmd_len ; then
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6263 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6264 else
6265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6266 $as_echo "none" >&6; }
6267 fi
6268 max_cmd_len=$lt_cv_sys_max_cmd_len
6269
6270
6271
6272
6273
6274
6275 : ${CP="cp -f"}
6276 : ${MV="mv -f"}
6277 : ${RM="rm -f"}
6278
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6280 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6281 # Try some XSI features
6282 xsi_shell=no
6283 ( _lt_dummy="a/b/c"
6284   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6285       = c,a/b,, \
6286     && eval 'test $(( 1 + 1 )) -eq 2 \
6287     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6288   && xsi_shell=yes
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6290 $as_echo "$xsi_shell" >&6; }
6291
6292
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6294 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6295 lt_shell_append=no
6296 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6297     >/dev/null 2>&1 \
6298   && lt_shell_append=yes
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6300 $as_echo "$lt_shell_append" >&6; }
6301
6302
6303 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6304   lt_unset=unset
6305 else
6306   lt_unset=false
6307 fi
6308
6309
6310
6311
6312
6313 # test EBCDIC or ASCII
6314 case `echo X|tr X '\101'` in
6315  A) # ASCII based system
6316     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6317   lt_SP2NL='tr \040 \012'
6318   lt_NL2SP='tr \015\012 \040\040'
6319   ;;
6320  *) # EBCDIC based system
6321   lt_SP2NL='tr \100 \n'
6322   lt_NL2SP='tr \r\n \100\100'
6323   ;;
6324 esac
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6335 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6336 if ${lt_cv_ld_reload_flag+:} false; then :
6337   $as_echo_n "(cached) " >&6
6338 else
6339   lt_cv_ld_reload_flag='-r'
6340 fi
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6342 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6343 reload_flag=$lt_cv_ld_reload_flag
6344 case $reload_flag in
6345 "" | " "*) ;;
6346 *) reload_flag=" $reload_flag" ;;
6347 esac
6348 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6349 case $host_os in
6350   darwin*)
6351     if test "$GCC" = yes; then
6352       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6353     else
6354       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6355     fi
6356     ;;
6357 esac
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367 if test -n "$ac_tool_prefix"; then
6368   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6369 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_prog_OBJDUMP+:} false; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   if test -n "$OBJDUMP"; then
6376   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381   IFS=$as_save_IFS
6382   test -z "$as_dir" && as_dir=.
6383     for ac_exec_ext in '' $ac_executable_extensions; do
6384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387     break 2
6388   fi
6389 done
6390   done
6391 IFS=$as_save_IFS
6392
6393 fi
6394 fi
6395 OBJDUMP=$ac_cv_prog_OBJDUMP
6396 if test -n "$OBJDUMP"; then
6397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6398 $as_echo "$OBJDUMP" >&6; }
6399 else
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6402 fi
6403
6404
6405 fi
6406 if test -z "$ac_cv_prog_OBJDUMP"; then
6407   ac_ct_OBJDUMP=$OBJDUMP
6408   # Extract the first word of "objdump", so it can be a program name with args.
6409 set dummy objdump; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6413   $as_echo_n "(cached) " >&6
6414 else
6415   if test -n "$ac_ct_OBJDUMP"; then
6416   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
6421   IFS=$as_save_IFS
6422   test -z "$as_dir" && as_dir=.
6423     for ac_exec_ext in '' $ac_executable_extensions; do
6424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427     break 2
6428   fi
6429 done
6430   done
6431 IFS=$as_save_IFS
6432
6433 fi
6434 fi
6435 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6436 if test -n "$ac_ct_OBJDUMP"; then
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6438 $as_echo "$ac_ct_OBJDUMP" >&6; }
6439 else
6440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6442 fi
6443
6444   if test "x$ac_ct_OBJDUMP" = x; then
6445     OBJDUMP="false"
6446   else
6447     case $cross_compiling:$ac_tool_warned in
6448 yes:)
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451 ac_tool_warned=yes ;;
6452 esac
6453     OBJDUMP=$ac_ct_OBJDUMP
6454   fi
6455 else
6456   OBJDUMP="$ac_cv_prog_OBJDUMP"
6457 fi
6458
6459 test -z "$OBJDUMP" && OBJDUMP=objdump
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6470 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6471 if ${lt_cv_deplibs_check_method+:} false; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   lt_cv_file_magic_cmd='$MAGIC_CMD'
6475 lt_cv_file_magic_test_file=
6476 lt_cv_deplibs_check_method='unknown'
6477 # Need to set the preceding variable on all platforms that support
6478 # interlibrary dependencies.
6479 # 'none' -- dependencies not supported.
6480 # `unknown' -- same as none, but documents that we really don't know.
6481 # 'pass_all' -- all dependencies passed with no checks.
6482 # 'test_compile' -- check by making test program.
6483 # 'file_magic [[regex]]' -- check by looking for files in library path
6484 # which responds to the $file_magic_cmd with a given extended regex.
6485 # If you have `file' or equivalent on your system and you're not sure
6486 # whether `pass_all' will *always* work, you probably want this one.
6487
6488 case $host_os in
6489 aix[4-9]*)
6490   lt_cv_deplibs_check_method=pass_all
6491   ;;
6492
6493 beos*)
6494   lt_cv_deplibs_check_method=pass_all
6495   ;;
6496
6497 bsdi[45]*)
6498   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6499   lt_cv_file_magic_cmd='/usr/bin/file -L'
6500   lt_cv_file_magic_test_file=/shlib/libc.so
6501   ;;
6502
6503 cygwin*)
6504   # func_win32_libid is a shell function defined in ltmain.sh
6505   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6506   lt_cv_file_magic_cmd='func_win32_libid'
6507   ;;
6508
6509 mingw* | pw32*)
6510   # Base MSYS/MinGW do not provide the 'file' command needed by
6511   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6512   # unless we find 'file', for example because we are cross-compiling.
6513   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6514   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6515     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6516     lt_cv_file_magic_cmd='func_win32_libid'
6517   else
6518     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6519     lt_cv_file_magic_cmd='$OBJDUMP -f'
6520   fi
6521   ;;
6522
6523 cegcc*)
6524   # use the weaker test based on 'objdump'. See mingw*.
6525   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6526   lt_cv_file_magic_cmd='$OBJDUMP -f'
6527   ;;
6528
6529 darwin* | rhapsody*)
6530   lt_cv_deplibs_check_method=pass_all
6531   ;;
6532
6533 freebsd* | dragonfly*)
6534   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6535     case $host_cpu in
6536     i*86 )
6537       # Not sure whether the presence of OpenBSD here was a mistake.
6538       # Let's accept both of them until this is cleared up.
6539       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6540       lt_cv_file_magic_cmd=/usr/bin/file
6541       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6542       ;;
6543     esac
6544   else
6545     lt_cv_deplibs_check_method=pass_all
6546   fi
6547   ;;
6548
6549 gnu*)
6550   lt_cv_deplibs_check_method=pass_all
6551   ;;
6552
6553 haiku*)
6554   lt_cv_deplibs_check_method=pass_all
6555   ;;
6556
6557 hpux10.20* | hpux11*)
6558   lt_cv_file_magic_cmd=/usr/bin/file
6559   case $host_cpu in
6560   ia64*)
6561     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6562     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6563     ;;
6564   hppa*64*)
6565     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]'
6566     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6567     ;;
6568   *)
6569     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6570     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6571     ;;
6572   esac
6573   ;;
6574
6575 interix[3-9]*)
6576   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6577   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6578   ;;
6579
6580 irix5* | irix6* | nonstopux*)
6581   case $LD in
6582   *-32|*"-32 ") libmagic=32-bit;;
6583   *-n32|*"-n32 ") libmagic=N32;;
6584   *-64|*"-64 ") libmagic=64-bit;;
6585   *) libmagic=never-match;;
6586   esac
6587   lt_cv_deplibs_check_method=pass_all
6588   ;;
6589
6590 # This must be Linux ELF.
6591 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6592   lt_cv_deplibs_check_method=pass_all
6593   ;;
6594
6595 netbsd*)
6596   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6597     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6598   else
6599     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6600   fi
6601   ;;
6602
6603 newos6*)
6604   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6605   lt_cv_file_magic_cmd=/usr/bin/file
6606   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6607   ;;
6608
6609 *nto* | *qnx*)
6610   lt_cv_deplibs_check_method=pass_all
6611   ;;
6612
6613 openbsd*)
6614   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6615     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6616   else
6617     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6618   fi
6619   ;;
6620
6621 osf3* | osf4* | osf5*)
6622   lt_cv_deplibs_check_method=pass_all
6623   ;;
6624
6625 rdos*)
6626   lt_cv_deplibs_check_method=pass_all
6627   ;;
6628
6629 solaris*)
6630   lt_cv_deplibs_check_method=pass_all
6631   ;;
6632
6633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6634   lt_cv_deplibs_check_method=pass_all
6635   ;;
6636
6637 sysv4 | sysv4.3*)
6638   case $host_vendor in
6639   motorola)
6640     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]'
6641     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6642     ;;
6643   ncr)
6644     lt_cv_deplibs_check_method=pass_all
6645     ;;
6646   sequent)
6647     lt_cv_file_magic_cmd='/bin/file'
6648     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6649     ;;
6650   sni)
6651     lt_cv_file_magic_cmd='/bin/file'
6652     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6653     lt_cv_file_magic_test_file=/lib/libc.so
6654     ;;
6655   siemens)
6656     lt_cv_deplibs_check_method=pass_all
6657     ;;
6658   pc)
6659     lt_cv_deplibs_check_method=pass_all
6660     ;;
6661   esac
6662   ;;
6663
6664 tpf*)
6665   lt_cv_deplibs_check_method=pass_all
6666   ;;
6667 esac
6668
6669 fi
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6671 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6672 file_magic_cmd=$lt_cv_file_magic_cmd
6673 deplibs_check_method=$lt_cv_deplibs_check_method
6674 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687 if test -n "$ac_tool_prefix"; then
6688   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}ar; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if ${ac_cv_prog_AR+:} false; then :
6693   $as_echo_n "(cached) " >&6
6694 else
6695   if test -n "$AR"; then
6696   ac_cv_prog_AR="$AR" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701   IFS=$as_save_IFS
6702   test -z "$as_dir" && as_dir=.
6703     for ac_exec_ext in '' $ac_executable_extensions; do
6704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705     ac_cv_prog_AR="${ac_tool_prefix}ar"
6706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710   done
6711 IFS=$as_save_IFS
6712
6713 fi
6714 fi
6715 AR=$ac_cv_prog_AR
6716 if test -n "$AR"; then
6717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6718 $as_echo "$AR" >&6; }
6719 else
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6722 fi
6723
6724
6725 fi
6726 if test -z "$ac_cv_prog_AR"; then
6727   ac_ct_AR=$AR
6728   # Extract the first word of "ar", so it can be a program name with args.
6729 set dummy ar; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6733   $as_echo_n "(cached) " >&6
6734 else
6735   if test -n "$ac_ct_AR"; then
6736   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743     for ac_exec_ext in '' $ac_executable_extensions; do
6744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745     ac_cv_prog_ac_ct_AR="ar"
6746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750   done
6751 IFS=$as_save_IFS
6752
6753 fi
6754 fi
6755 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6756 if test -n "$ac_ct_AR"; then
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6758 $as_echo "$ac_ct_AR" >&6; }
6759 else
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763
6764   if test "x$ac_ct_AR" = x; then
6765     AR="false"
6766   else
6767     case $cross_compiling:$ac_tool_warned in
6768 yes:)
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771 ac_tool_warned=yes ;;
6772 esac
6773     AR=$ac_ct_AR
6774   fi
6775 else
6776   AR="$ac_cv_prog_AR"
6777 fi
6778
6779 test -z "$AR" && AR=ar
6780 test -z "$AR_FLAGS" && AR_FLAGS=cru
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792 if test -n "$ac_tool_prefix"; then
6793   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}strip; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_STRIP+:} false; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   if test -n "$STRIP"; then
6801   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808     for ac_exec_ext in '' $ac_executable_extensions; do
6809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815   done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 STRIP=$ac_cv_prog_STRIP
6821 if test -n "$STRIP"; then
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6823 $as_echo "$STRIP" >&6; }
6824 else
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828
6829
6830 fi
6831 if test -z "$ac_cv_prog_STRIP"; then
6832   ac_ct_STRIP=$STRIP
6833   # Extract the first word of "strip", so it can be a program name with args.
6834 set dummy strip; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   if test -n "$ac_ct_STRIP"; then
6841   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848     for ac_exec_ext in '' $ac_executable_extensions; do
6849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850     ac_cv_prog_ac_ct_STRIP="strip"
6851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855   done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6861 if test -n "$ac_ct_STRIP"; then
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6863 $as_echo "$ac_ct_STRIP" >&6; }
6864 else
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868
6869   if test "x$ac_ct_STRIP" = x; then
6870     STRIP=":"
6871   else
6872     case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6877 esac
6878     STRIP=$ac_ct_STRIP
6879   fi
6880 else
6881   STRIP="$ac_cv_prog_STRIP"
6882 fi
6883
6884 test -z "$STRIP" && STRIP=:
6885
6886
6887
6888
6889
6890
6891 if test -n "$ac_tool_prefix"; then
6892   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_RANLIB+:} false; then :
6897   $as_echo_n "(cached) " >&6
6898 else
6899   if test -n "$RANLIB"; then
6900   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905   IFS=$as_save_IFS
6906   test -z "$as_dir" && as_dir=.
6907     for ac_exec_ext in '' $ac_executable_extensions; do
6908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911     break 2
6912   fi
6913 done
6914   done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 RANLIB=$ac_cv_prog_RANLIB
6920 if test -n "$RANLIB"; then
6921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6922 $as_echo "$RANLIB" >&6; }
6923 else
6924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_RANLIB"; then
6931   ac_ct_RANLIB=$RANLIB
6932   # Extract the first word of "ranlib", so it can be a program name with args.
6933 set dummy ranlib; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6937   $as_echo_n "(cached) " >&6
6938 else
6939   if test -n "$ac_ct_RANLIB"; then
6940   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945   IFS=$as_save_IFS
6946   test -z "$as_dir" && as_dir=.
6947     for ac_exec_ext in '' $ac_executable_extensions; do
6948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949     ac_cv_prog_ac_ct_RANLIB="ranlib"
6950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951     break 2
6952   fi
6953 done
6954   done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6960 if test -n "$ac_ct_RANLIB"; then
6961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6962 $as_echo "$ac_ct_RANLIB" >&6; }
6963 else
6964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968   if test "x$ac_ct_RANLIB" = x; then
6969     RANLIB=":"
6970   else
6971     case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977     RANLIB=$ac_ct_RANLIB
6978   fi
6979 else
6980   RANLIB="$ac_cv_prog_RANLIB"
6981 fi
6982
6983 test -z "$RANLIB" && RANLIB=:
6984
6985
6986
6987
6988
6989
6990 # Determine commands to create old-style static archives.
6991 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6992 old_postinstall_cmds='chmod 644 $oldlib'
6993 old_postuninstall_cmds=
6994
6995 if test -n "$RANLIB"; then
6996   case $host_os in
6997   openbsd*)
6998     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6999     ;;
7000   *)
7001     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7002     ;;
7003   esac
7004   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7005 fi
7006
7007 case $host_os in
7008   darwin*)
7009     lock_old_archive_extraction=yes ;;
7010   *)
7011     lock_old_archive_extraction=no ;;
7012 esac
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052 # If no C compiler was specified, use CC.
7053 LTCC=${LTCC-"$CC"}
7054
7055 # If no C compiler flags were specified, use CFLAGS.
7056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7057
7058 # Allow CC to be a program name with arguments.
7059 compiler=$CC
7060
7061
7062 # Check for command to grab the raw symbol name followed by C symbol from nm.
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7064 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7065 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7066   $as_echo_n "(cached) " >&6
7067 else
7068
7069 # These are sane defaults that work on at least a few old systems.
7070 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7071
7072 # Character class describing NM global symbol codes.
7073 symcode='[BCDEGRST]'
7074
7075 # Regexp to match symbols that can be accessed directly from C.
7076 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7077
7078 # Define system-specific variables.
7079 case $host_os in
7080 aix*)
7081   symcode='[BCDT]'
7082   ;;
7083 cygwin* | mingw* | pw32* | cegcc*)
7084   symcode='[ABCDGISTW]'
7085   ;;
7086 hpux*)
7087   if test "$host_cpu" = ia64; then
7088     symcode='[ABCDEGRST]'
7089   fi
7090   ;;
7091 irix* | nonstopux*)
7092   symcode='[BCDEGRST]'
7093   ;;
7094 osf*)
7095   symcode='[BCDEGQRST]'
7096   ;;
7097 solaris*)
7098   symcode='[BDRT]'
7099   ;;
7100 sco3.2v5*)
7101   symcode='[DT]'
7102   ;;
7103 sysv4.2uw2*)
7104   symcode='[DT]'
7105   ;;
7106 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7107   symcode='[ABDT]'
7108   ;;
7109 sysv4)
7110   symcode='[DFNSTU]'
7111   ;;
7112 esac
7113
7114 # If we're using GNU nm, then use its standard symbol codes.
7115 case `$NM -V 2>&1` in
7116 *GNU* | *'with BFD'*)
7117   symcode='[ABCDGIRSTW]' ;;
7118 esac
7119
7120 # Transform an extracted symbol line into a proper C declaration.
7121 # Some systems (esp. on ia64) link data and code symbols differently,
7122 # so use this general approach.
7123 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7124
7125 # Transform an extracted symbol line into symbol name and symbol address
7126 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7127 lt_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'"
7128
7129 # Handle CRLF in mingw tool chain
7130 opt_cr=
7131 case $build_os in
7132 mingw*)
7133   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7134   ;;
7135 esac
7136
7137 # Try without a prefix underscore, then with it.
7138 for ac_symprfx in "" "_"; do
7139
7140   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7141   symxfrm="\\1 $ac_symprfx\\2 \\2"
7142
7143   # Write the raw and C identifiers.
7144   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7145     # Fake it for dumpbin and say T for any non-static function
7146     # and D for any global variable.
7147     # Also find C++ and __fastcall symbols from MSVC++,
7148     # which start with @ or ?.
7149     lt_cv_sys_global_symbol_pipe="$AWK '"\
7150 "     {last_section=section; section=\$ 3};"\
7151 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7152 "     \$ 0!~/External *\|/{next};"\
7153 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7154 "     {if(hide[section]) next};"\
7155 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7156 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7157 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7158 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7159 "     ' prfx=^$ac_symprfx"
7160   else
7161     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7162   fi
7163
7164   # Check to see that the pipe works correctly.
7165   pipe_works=no
7166
7167   rm -f conftest*
7168   cat > conftest.$ac_ext <<_LT_EOF
7169 #ifdef __cplusplus
7170 extern "C" {
7171 #endif
7172 char nm_test_var;
7173 void nm_test_func(void);
7174 void nm_test_func(void){}
7175 #ifdef __cplusplus
7176 }
7177 #endif
7178 int main(){nm_test_var='a';nm_test_func();return(0);}
7179 _LT_EOF
7180
7181   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7182   (eval $ac_compile) 2>&5
7183   ac_status=$?
7184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7185   test $ac_status = 0; }; then
7186     # Now try to grab the symbols.
7187     nlist=conftest.nm
7188     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7189   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7190   ac_status=$?
7191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192   test $ac_status = 0; } && test -s "$nlist"; then
7193       # Try sorting and uniquifying the output.
7194       if sort "$nlist" | uniq > "$nlist"T; then
7195         mv -f "$nlist"T "$nlist"
7196       else
7197         rm -f "$nlist"T
7198       fi
7199
7200       # Make sure that we snagged all the symbols we need.
7201       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7202         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7203           cat <<_LT_EOF > conftest.$ac_ext
7204 #ifdef __cplusplus
7205 extern "C" {
7206 #endif
7207
7208 _LT_EOF
7209           # Now generate the symbol file.
7210           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7211
7212           cat <<_LT_EOF >> conftest.$ac_ext
7213
7214 /* The mapping between symbol names and symbols.  */
7215 const struct {
7216   const char *name;
7217   void       *address;
7218 }
7219 lt__PROGRAM__LTX_preloaded_symbols[] =
7220 {
7221   { "@PROGRAM@", (void *) 0 },
7222 _LT_EOF
7223           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7224           cat <<\_LT_EOF >> conftest.$ac_ext
7225   {0, (void *) 0}
7226 };
7227
7228 /* This works around a problem in FreeBSD linker */
7229 #ifdef FREEBSD_WORKAROUND
7230 static const void *lt_preloaded_setup() {
7231   return lt__PROGRAM__LTX_preloaded_symbols;
7232 }
7233 #endif
7234
7235 #ifdef __cplusplus
7236 }
7237 #endif
7238 _LT_EOF
7239           # Now try linking the two files.
7240           mv conftest.$ac_objext conftstm.$ac_objext
7241           lt_save_LIBS="$LIBS"
7242           lt_save_CFLAGS="$CFLAGS"
7243           LIBS="conftstm.$ac_objext"
7244           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7245           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7246   (eval $ac_link) 2>&5
7247   ac_status=$?
7248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7249   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7250             pipe_works=yes
7251           fi
7252           LIBS="$lt_save_LIBS"
7253           CFLAGS="$lt_save_CFLAGS"
7254         else
7255           echo "cannot find nm_test_func in $nlist" >&5
7256         fi
7257       else
7258         echo "cannot find nm_test_var in $nlist" >&5
7259       fi
7260     else
7261       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7262     fi
7263   else
7264     echo "$progname: failed program was:" >&5
7265     cat conftest.$ac_ext >&5
7266   fi
7267   rm -rf conftest* conftst*
7268
7269   # Do not use the global_symbol_pipe unless it works.
7270   if test "$pipe_works" = yes; then
7271     break
7272   else
7273     lt_cv_sys_global_symbol_pipe=
7274   fi
7275 done
7276
7277 fi
7278
7279 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7280   lt_cv_sys_global_symbol_to_cdecl=
7281 fi
7282 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7284 $as_echo "failed" >&6; }
7285 else
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7287 $as_echo "ok" >&6; }
7288 fi
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311 # Check whether --enable-libtool-lock was given.
7312 if test "${enable_libtool_lock+set}" = set; then :
7313   enableval=$enable_libtool_lock;
7314 fi
7315
7316 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7317
7318 # Some flags need to be propagated to the compiler or linker for good
7319 # libtool support.
7320 case $host in
7321 ia64-*-hpux*)
7322   # Find out which ABI we are using.
7323   echo 'int i;' > conftest.$ac_ext
7324   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7325   (eval $ac_compile) 2>&5
7326   ac_status=$?
7327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7328   test $ac_status = 0; }; then
7329     case `/usr/bin/file conftest.$ac_objext` in
7330       *ELF-32*)
7331         HPUX_IA64_MODE="32"
7332         ;;
7333       *ELF-64*)
7334         HPUX_IA64_MODE="64"
7335         ;;
7336     esac
7337   fi
7338   rm -rf conftest*
7339   ;;
7340 *-*-irix6*)
7341   # Find out which ABI we are using.
7342   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7343   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7344   (eval $ac_compile) 2>&5
7345   ac_status=$?
7346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7347   test $ac_status = 0; }; then
7348     if test "$lt_cv_prog_gnu_ld" = yes; then
7349       case `/usr/bin/file conftest.$ac_objext` in
7350         *32-bit*)
7351           LD="${LD-ld} -melf32bsmip"
7352           ;;
7353         *N32*)
7354           LD="${LD-ld} -melf32bmipn32"
7355           ;;
7356         *64-bit*)
7357           LD="${LD-ld} -melf64bmip"
7358         ;;
7359       esac
7360     else
7361       case `/usr/bin/file conftest.$ac_objext` in
7362         *32-bit*)
7363           LD="${LD-ld} -32"
7364           ;;
7365         *N32*)
7366           LD="${LD-ld} -n32"
7367           ;;
7368         *64-bit*)
7369           LD="${LD-ld} -64"
7370           ;;
7371       esac
7372     fi
7373   fi
7374   rm -rf conftest*
7375   ;;
7376
7377 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7378 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7379   # Find out which ABI we are using.
7380   echo 'int i;' > conftest.$ac_ext
7381   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7382   (eval $ac_compile) 2>&5
7383   ac_status=$?
7384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7385   test $ac_status = 0; }; then
7386     case `/usr/bin/file conftest.o` in
7387       *32-bit*)
7388         case $host in
7389           x86_64-*kfreebsd*-gnu)
7390             LD="${LD-ld} -m elf_i386_fbsd"
7391             ;;
7392           x86_64-*linux*)
7393             case `/usr/bin/file conftest.o` in
7394               *x86-64*)
7395                 LD="${LD-ld} -m elf32_x86_64"
7396                 ;;
7397               *)
7398                 LD="${LD-ld} -m elf_i386"
7399                 ;;
7400             esac
7401             ;;
7402           powerpc64le-*linux*)
7403             LD="${LD-ld} -m elf32lppclinux"
7404             ;;
7405           powerpc64-*linux*)
7406             LD="${LD-ld} -m elf32ppclinux"
7407             ;;
7408           s390x-*linux*)
7409             LD="${LD-ld} -m elf_s390"
7410             ;;
7411           sparc64-*linux*)
7412             LD="${LD-ld} -m elf32_sparc"
7413             ;;
7414         esac
7415         ;;
7416       *64-bit*)
7417         case $host in
7418           x86_64-*kfreebsd*-gnu)
7419             LD="${LD-ld} -m elf_x86_64_fbsd"
7420             ;;
7421           x86_64-*linux*)
7422             LD="${LD-ld} -m elf_x86_64"
7423             ;;
7424           powerpcle-*linux*)
7425             LD="${LD-ld} -m elf64lppc"
7426             ;;
7427           powerpc-*linux*)
7428             LD="${LD-ld} -m elf64ppc"
7429             ;;
7430           s390*-*linux*|s390*-*tpf*)
7431             LD="${LD-ld} -m elf64_s390"
7432             ;;
7433           sparc*-*linux*)
7434             LD="${LD-ld} -m elf64_sparc"
7435             ;;
7436         esac
7437         ;;
7438     esac
7439   fi
7440   rm -rf conftest*
7441   ;;
7442
7443 *-*-sco3.2v5*)
7444   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7445   SAVE_CFLAGS="$CFLAGS"
7446   CFLAGS="$CFLAGS -belf"
7447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7448 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7449 if ${lt_cv_cc_needs_belf+:} false; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   ac_ext=c
7453 ac_cpp='$CPP $CPPFLAGS'
7454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457
7458      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h.  */
7460
7461 int
7462 main ()
7463 {
7464
7465   ;
7466   return 0;
7467 }
7468 _ACEOF
7469 if ac_fn_c_try_link "$LINENO"; then :
7470   lt_cv_cc_needs_belf=yes
7471 else
7472   lt_cv_cc_needs_belf=no
7473 fi
7474 rm -f core conftest.err conftest.$ac_objext \
7475     conftest$ac_exeext conftest.$ac_ext
7476      ac_ext=c
7477 ac_cpp='$CPP $CPPFLAGS'
7478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7481
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7484 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7485   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7486     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7487     CFLAGS="$SAVE_CFLAGS"
7488   fi
7489   ;;
7490 sparc*-*solaris*)
7491   # Find out which ABI we are using.
7492   echo 'int i;' > conftest.$ac_ext
7493   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7494   (eval $ac_compile) 2>&5
7495   ac_status=$?
7496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497   test $ac_status = 0; }; then
7498     case `/usr/bin/file conftest.o` in
7499     *64-bit*)
7500       case $lt_cv_prog_gnu_ld in
7501       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7502       *)
7503         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7504           LD="${LD-ld} -64"
7505         fi
7506         ;;
7507       esac
7508       ;;
7509     esac
7510   fi
7511   rm -rf conftest*
7512   ;;
7513 esac
7514
7515 need_locks="$enable_libtool_lock"
7516
7517
7518   case $host_os in
7519     rhapsody* | darwin*)
7520     if test -n "$ac_tool_prefix"; then
7521   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7522 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7526   $as_echo_n "(cached) " >&6
7527 else
7528   if test -n "$DSYMUTIL"; then
7529   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7530 else
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534   IFS=$as_save_IFS
7535   test -z "$as_dir" && as_dir=.
7536     for ac_exec_ext in '' $ac_executable_extensions; do
7537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540     break 2
7541   fi
7542 done
7543   done
7544 IFS=$as_save_IFS
7545
7546 fi
7547 fi
7548 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7549 if test -n "$DSYMUTIL"; then
7550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7551 $as_echo "$DSYMUTIL" >&6; }
7552 else
7553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7555 fi
7556
7557
7558 fi
7559 if test -z "$ac_cv_prog_DSYMUTIL"; then
7560   ac_ct_DSYMUTIL=$DSYMUTIL
7561   # Extract the first word of "dsymutil", so it can be a program name with args.
7562 set dummy dsymutil; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7566   $as_echo_n "(cached) " >&6
7567 else
7568   if test -n "$ac_ct_DSYMUTIL"; then
7569   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7573 do
7574   IFS=$as_save_IFS
7575   test -z "$as_dir" && as_dir=.
7576     for ac_exec_ext in '' $ac_executable_extensions; do
7577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7578     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580     break 2
7581   fi
7582 done
7583   done
7584 IFS=$as_save_IFS
7585
7586 fi
7587 fi
7588 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7589 if test -n "$ac_ct_DSYMUTIL"; then
7590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7591 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7592 else
7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7595 fi
7596
7597   if test "x$ac_ct_DSYMUTIL" = x; then
7598     DSYMUTIL=":"
7599   else
7600     case $cross_compiling:$ac_tool_warned in
7601 yes:)
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604 ac_tool_warned=yes ;;
7605 esac
7606     DSYMUTIL=$ac_ct_DSYMUTIL
7607   fi
7608 else
7609   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7610 fi
7611
7612     if test -n "$ac_tool_prefix"; then
7613   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_NMEDIT+:} false; then :
7618   $as_echo_n "(cached) " >&6
7619 else
7620   if test -n "$NMEDIT"; then
7621   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626   IFS=$as_save_IFS
7627   test -z "$as_dir" && as_dir=.
7628     for ac_exec_ext in '' $ac_executable_extensions; do
7629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632     break 2
7633   fi
7634 done
7635   done
7636 IFS=$as_save_IFS
7637
7638 fi
7639 fi
7640 NMEDIT=$ac_cv_prog_NMEDIT
7641 if test -n "$NMEDIT"; then
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7643 $as_echo "$NMEDIT" >&6; }
7644 else
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649
7650 fi
7651 if test -z "$ac_cv_prog_NMEDIT"; then
7652   ac_ct_NMEDIT=$NMEDIT
7653   # Extract the first word of "nmedit", so it can be a program name with args.
7654 set dummy nmedit; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660   if test -n "$ac_ct_NMEDIT"; then
7661   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666   IFS=$as_save_IFS
7667   test -z "$as_dir" && as_dir=.
7668     for ac_exec_ext in '' $ac_executable_extensions; do
7669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672     break 2
7673   fi
7674 done
7675   done
7676 IFS=$as_save_IFS
7677
7678 fi
7679 fi
7680 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7681 if test -n "$ac_ct_NMEDIT"; then
7682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7683 $as_echo "$ac_ct_NMEDIT" >&6; }
7684 else
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7687 fi
7688
7689   if test "x$ac_ct_NMEDIT" = x; then
7690     NMEDIT=":"
7691   else
7692     case $cross_compiling:$ac_tool_warned in
7693 yes:)
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned=yes ;;
7697 esac
7698     NMEDIT=$ac_ct_NMEDIT
7699   fi
7700 else
7701   NMEDIT="$ac_cv_prog_NMEDIT"
7702 fi
7703
7704     if test -n "$ac_tool_prefix"; then
7705   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_LIPO+:} false; then :
7710   $as_echo_n "(cached) " >&6
7711 else
7712   if test -n "$LIPO"; then
7713   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718   IFS=$as_save_IFS
7719   test -z "$as_dir" && as_dir=.
7720     for ac_exec_ext in '' $ac_executable_extensions; do
7721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724     break 2
7725   fi
7726 done
7727   done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 LIPO=$ac_cv_prog_LIPO
7733 if test -n "$LIPO"; then
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7735 $as_echo "$LIPO" >&6; }
7736 else
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741
7742 fi
7743 if test -z "$ac_cv_prog_LIPO"; then
7744   ac_ct_LIPO=$LIPO
7745   # Extract the first word of "lipo", so it can be a program name with args.
7746 set dummy lipo; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7750   $as_echo_n "(cached) " >&6
7751 else
7752   if test -n "$ac_ct_LIPO"; then
7753   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7754 else
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7757 do
7758   IFS=$as_save_IFS
7759   test -z "$as_dir" && as_dir=.
7760     for ac_exec_ext in '' $ac_executable_extensions; do
7761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762     ac_cv_prog_ac_ct_LIPO="lipo"
7763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764     break 2
7765   fi
7766 done
7767   done
7768 IFS=$as_save_IFS
7769
7770 fi
7771 fi
7772 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7773 if test -n "$ac_ct_LIPO"; then
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7775 $as_echo "$ac_ct_LIPO" >&6; }
7776 else
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7779 fi
7780
7781   if test "x$ac_ct_LIPO" = x; then
7782     LIPO=":"
7783   else
7784     case $cross_compiling:$ac_tool_warned in
7785 yes:)
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7789 esac
7790     LIPO=$ac_ct_LIPO
7791   fi
7792 else
7793   LIPO="$ac_cv_prog_LIPO"
7794 fi
7795
7796     if test -n "$ac_tool_prefix"; then
7797   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}otool; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_prog_OTOOL+:} false; then :
7802   $as_echo_n "(cached) " >&6
7803 else
7804   if test -n "$OTOOL"; then
7805   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810   IFS=$as_save_IFS
7811   test -z "$as_dir" && as_dir=.
7812     for ac_exec_ext in '' $ac_executable_extensions; do
7813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816     break 2
7817   fi
7818 done
7819   done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 OTOOL=$ac_cv_prog_OTOOL
7825 if test -n "$OTOOL"; then
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7827 $as_echo "$OTOOL" >&6; }
7828 else
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833
7834 fi
7835 if test -z "$ac_cv_prog_OTOOL"; then
7836   ac_ct_OTOOL=$OTOOL
7837   # Extract the first word of "otool", so it can be a program name with args.
7838 set dummy otool; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7842   $as_echo_n "(cached) " >&6
7843 else
7844   if test -n "$ac_ct_OTOOL"; then
7845   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850   IFS=$as_save_IFS
7851   test -z "$as_dir" && as_dir=.
7852     for ac_exec_ext in '' $ac_executable_extensions; do
7853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854     ac_cv_prog_ac_ct_OTOOL="otool"
7855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856     break 2
7857   fi
7858 done
7859   done
7860 IFS=$as_save_IFS
7861
7862 fi
7863 fi
7864 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7865 if test -n "$ac_ct_OTOOL"; then
7866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7867 $as_echo "$ac_ct_OTOOL" >&6; }
7868 else
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871 fi
7872
7873   if test "x$ac_ct_OTOOL" = x; then
7874     OTOOL=":"
7875   else
7876     case $cross_compiling:$ac_tool_warned in
7877 yes:)
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7880 ac_tool_warned=yes ;;
7881 esac
7882     OTOOL=$ac_ct_OTOOL
7883   fi
7884 else
7885   OTOOL="$ac_cv_prog_OTOOL"
7886 fi
7887
7888     if test -n "$ac_tool_prefix"; then
7889   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7890 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_OTOOL64+:} false; then :
7894   $as_echo_n "(cached) " >&6
7895 else
7896   if test -n "$OTOOL64"; then
7897   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902   IFS=$as_save_IFS
7903   test -z "$as_dir" && as_dir=.
7904     for ac_exec_ext in '' $ac_executable_extensions; do
7905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908     break 2
7909   fi
7910 done
7911   done
7912 IFS=$as_save_IFS
7913
7914 fi
7915 fi
7916 OTOOL64=$ac_cv_prog_OTOOL64
7917 if test -n "$OTOOL64"; then
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7919 $as_echo "$OTOOL64" >&6; }
7920 else
7921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7923 fi
7924
7925
7926 fi
7927 if test -z "$ac_cv_prog_OTOOL64"; then
7928   ac_ct_OTOOL64=$OTOOL64
7929   # Extract the first word of "otool64", so it can be a program name with args.
7930 set dummy otool64; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7934   $as_echo_n "(cached) " >&6
7935 else
7936   if test -n "$ac_ct_OTOOL64"; then
7937   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7938 else
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7941 do
7942   IFS=$as_save_IFS
7943   test -z "$as_dir" && as_dir=.
7944     for ac_exec_ext in '' $ac_executable_extensions; do
7945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946     ac_cv_prog_ac_ct_OTOOL64="otool64"
7947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948     break 2
7949   fi
7950 done
7951   done
7952 IFS=$as_save_IFS
7953
7954 fi
7955 fi
7956 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7957 if test -n "$ac_ct_OTOOL64"; then
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7959 $as_echo "$ac_ct_OTOOL64" >&6; }
7960 else
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7963 fi
7964
7965   if test "x$ac_ct_OTOOL64" = x; then
7966     OTOOL64=":"
7967   else
7968     case $cross_compiling:$ac_tool_warned in
7969 yes:)
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7972 ac_tool_warned=yes ;;
7973 esac
7974     OTOOL64=$ac_ct_OTOOL64
7975   fi
7976 else
7977   OTOOL64="$ac_cv_prog_OTOOL64"
7978 fi
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8007 $as_echo_n "checking for -single_module linker flag... " >&6; }
8008 if ${lt_cv_apple_cc_single_mod+:} false; then :
8009   $as_echo_n "(cached) " >&6
8010 else
8011   lt_cv_apple_cc_single_mod=no
8012       if test -z "${LT_MULTI_MODULE}"; then
8013         # By default we will add the -single_module flag. You can override
8014         # by either setting the environment variable LT_MULTI_MODULE
8015         # non-empty at configure time, or by adding -multi_module to the
8016         # link flags.
8017         rm -rf libconftest.dylib*
8018         echo "int foo(void){return 1;}" > conftest.c
8019         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8020 -dynamiclib -Wl,-single_module conftest.c" >&5
8021         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8022           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8023         _lt_result=$?
8024         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8025           lt_cv_apple_cc_single_mod=yes
8026         else
8027           cat conftest.err >&5
8028         fi
8029         rm -rf libconftest.dylib*
8030         rm -f conftest.*
8031       fi
8032 fi
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8034 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8036 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8037 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   lt_cv_ld_exported_symbols_list=no
8041       save_LDFLAGS=$LDFLAGS
8042       echo "_main" > conftest.sym
8043       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8044       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h.  */
8046
8047 int
8048 main ()
8049 {
8050
8051   ;
8052   return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_link "$LINENO"; then :
8056   lt_cv_ld_exported_symbols_list=yes
8057 else
8058   lt_cv_ld_exported_symbols_list=no
8059 fi
8060 rm -f core conftest.err conftest.$ac_objext \
8061     conftest$ac_exeext conftest.$ac_ext
8062         LDFLAGS="$save_LDFLAGS"
8063
8064 fi
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8066 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8068 $as_echo_n "checking for -force_load linker flag... " >&6; }
8069 if ${lt_cv_ld_force_load+:} false; then :
8070   $as_echo_n "(cached) " >&6
8071 else
8072   lt_cv_ld_force_load=no
8073       cat > conftest.c << _LT_EOF
8074 int forced_loaded() { return 2;}
8075 _LT_EOF
8076       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8077       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8078       echo "$AR cru libconftest.a conftest.o" >&5
8079       $AR cru libconftest.a conftest.o 2>&5
8080       cat > conftest.c << _LT_EOF
8081 int main() { return 0;}
8082 _LT_EOF
8083       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8084       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8085       _lt_result=$?
8086       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8087         lt_cv_ld_force_load=yes
8088       else
8089         cat conftest.err >&5
8090       fi
8091         rm -f conftest.err libconftest.a conftest conftest.c
8092         rm -rf conftest.dSYM
8093
8094 fi
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8096 $as_echo "$lt_cv_ld_force_load" >&6; }
8097     case $host_os in
8098     rhapsody* | darwin1.[012])
8099       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8100     darwin1.*)
8101       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8102     darwin*) # darwin 5.x on
8103       # if running on 10.5 or later, the deployment target defaults
8104       # to the OS version, if on x86, and 10.4, the deployment
8105       # target defaults to 10.4. Don't you love it?
8106       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8107         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8108           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8109         10.[012][,.]*)
8110           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8111         10.*)
8112           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8113       esac
8114     ;;
8115   esac
8116     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8117       _lt_dar_single_mod='$single_module'
8118     fi
8119     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8120       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8121     else
8122       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8123     fi
8124     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8125       _lt_dsymutil='~$DSYMUTIL $lib || :'
8126     else
8127       _lt_dsymutil=
8128     fi
8129     ;;
8130   esac
8131
8132 for ac_header in dlfcn.h
8133 do :
8134   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8135 "
8136 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8137   cat >>confdefs.h <<_ACEOF
8138 #define HAVE_DLFCN_H 1
8139 _ACEOF
8140
8141 fi
8142
8143 done
8144
8145
8146
8147
8148
8149 # Set options
8150 enable_dlopen=yes
8151
8152
8153
8154
8155   enable_win32_dll=no
8156
8157
8158             # Check whether --enable-shared was given.
8159 if test "${enable_shared+set}" = set; then :
8160   enableval=$enable_shared; p=${PACKAGE-default}
8161     case $enableval in
8162     yes) enable_shared=yes ;;
8163     no) enable_shared=no ;;
8164     *)
8165       enable_shared=no
8166       # Look at the argument we got.  We use all the common list separators.
8167       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8168       for pkg in $enableval; do
8169         IFS="$lt_save_ifs"
8170         if test "X$pkg" = "X$p"; then
8171           enable_shared=yes
8172         fi
8173       done
8174       IFS="$lt_save_ifs"
8175       ;;
8176     esac
8177 else
8178   enable_shared=yes
8179 fi
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189   # Check whether --enable-static was given.
8190 if test "${enable_static+set}" = set; then :
8191   enableval=$enable_static; p=${PACKAGE-default}
8192     case $enableval in
8193     yes) enable_static=yes ;;
8194     no) enable_static=no ;;
8195     *)
8196      enable_static=no
8197       # Look at the argument we got.  We use all the common list separators.
8198       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8199       for pkg in $enableval; do
8200         IFS="$lt_save_ifs"
8201         if test "X$pkg" = "X$p"; then
8202           enable_static=yes
8203         fi
8204       done
8205       IFS="$lt_save_ifs"
8206       ;;
8207     esac
8208 else
8209   enable_static=yes
8210 fi
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221 # Check whether --with-pic was given.
8222 if test "${with_pic+set}" = set; then :
8223   withval=$with_pic; pic_mode="$withval"
8224 else
8225   pic_mode=default
8226 fi
8227
8228
8229 test -z "$pic_mode" && pic_mode=default
8230
8231
8232
8233
8234
8235
8236
8237   # Check whether --enable-fast-install was given.
8238 if test "${enable_fast_install+set}" = set; then :
8239   enableval=$enable_fast_install; p=${PACKAGE-default}
8240     case $enableval in
8241     yes) enable_fast_install=yes ;;
8242     no) enable_fast_install=no ;;
8243     *)
8244       enable_fast_install=no
8245       # Look at the argument we got.  We use all the common list separators.
8246       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8247       for pkg in $enableval; do
8248         IFS="$lt_save_ifs"
8249         if test "X$pkg" = "X$p"; then
8250           enable_fast_install=yes
8251         fi
8252       done
8253       IFS="$lt_save_ifs"
8254       ;;
8255     esac
8256 else
8257   enable_fast_install=yes
8258 fi
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270 # This can be used to rebuild libtool when needed
8271 LIBTOOL_DEPS="$ltmain"
8272
8273 # Always use our own libtool.
8274 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301 test -z "$LN_S" && LN_S="ln -s"
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316 if test -n "${ZSH_VERSION+set}" ; then
8317    setopt NO_GLOB_SUBST
8318 fi
8319
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8321 $as_echo_n "checking for objdir... " >&6; }
8322 if ${lt_cv_objdir+:} false; then :
8323   $as_echo_n "(cached) " >&6
8324 else
8325   rm -f .libs 2>/dev/null
8326 mkdir .libs 2>/dev/null
8327 if test -d .libs; then
8328   lt_cv_objdir=.libs
8329 else
8330   # MS-DOS does not allow filenames that begin with a dot.
8331   lt_cv_objdir=_libs
8332 fi
8333 rmdir .libs 2>/dev/null
8334 fi
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8336 $as_echo "$lt_cv_objdir" >&6; }
8337 objdir=$lt_cv_objdir
8338
8339
8340
8341
8342
8343 cat >>confdefs.h <<_ACEOF
8344 #define LT_OBJDIR "$lt_cv_objdir/"
8345 _ACEOF
8346
8347
8348
8349
8350 case $host_os in
8351 aix3*)
8352   # AIX sometimes has problems with the GCC collect2 program.  For some
8353   # reason, if we set the COLLECT_NAMES environment variable, the problems
8354   # vanish in a puff of smoke.
8355   if test "X${COLLECT_NAMES+set}" != Xset; then
8356     COLLECT_NAMES=
8357     export COLLECT_NAMES
8358   fi
8359   ;;
8360 esac
8361
8362 # Global variables:
8363 ofile=libtool
8364 can_build_shared=yes
8365
8366 # All known linkers require a `.a' archive for static linking (except MSVC,
8367 # which needs '.lib').
8368 libext=a
8369
8370 with_gnu_ld="$lt_cv_prog_gnu_ld"
8371
8372 old_CC="$CC"
8373 old_CFLAGS="$CFLAGS"
8374
8375 # Set sane defaults for various variables
8376 test -z "$CC" && CC=cc
8377 test -z "$LTCC" && LTCC=$CC
8378 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8379 test -z "$LD" && LD=ld
8380 test -z "$ac_objext" && ac_objext=o
8381
8382 for cc_temp in $compiler""; do
8383   case $cc_temp in
8384     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8385     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8386     \-*) ;;
8387     *) break;;
8388   esac
8389 done
8390 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8391
8392
8393 # Only perform the check for file, if the check method requires it
8394 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8395 case $deplibs_check_method in
8396 file_magic*)
8397   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8399 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8400 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8401   $as_echo_n "(cached) " >&6
8402 else
8403   case $MAGIC_CMD in
8404 [\\/*] |  ?:[\\/]*)
8405   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8406   ;;
8407 *)
8408   lt_save_MAGIC_CMD="$MAGIC_CMD"
8409   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8410   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8411   for ac_dir in $ac_dummy; do
8412     IFS="$lt_save_ifs"
8413     test -z "$ac_dir" && ac_dir=.
8414     if test -f $ac_dir/${ac_tool_prefix}file; then
8415       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8416       if test -n "$file_magic_test_file"; then
8417         case $deplibs_check_method in
8418         "file_magic "*)
8419           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8420           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8422             $EGREP "$file_magic_regex" > /dev/null; then
8423             :
8424           else
8425             cat <<_LT_EOF 1>&2
8426
8427 *** Warning: the command libtool uses to detect shared libraries,
8428 *** $file_magic_cmd, produces output that libtool cannot recognize.
8429 *** The result is that libtool may fail to recognize shared libraries
8430 *** as such.  This will affect the creation of libtool libraries that
8431 *** depend on shared libraries, but programs linked with such libtool
8432 *** libraries will work regardless of this problem.  Nevertheless, you
8433 *** may want to report the problem to your system manager and/or to
8434 *** bug-libtool@gnu.org
8435
8436 _LT_EOF
8437           fi ;;
8438         esac
8439       fi
8440       break
8441     fi
8442   done
8443   IFS="$lt_save_ifs"
8444   MAGIC_CMD="$lt_save_MAGIC_CMD"
8445   ;;
8446 esac
8447 fi
8448
8449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450 if test -n "$MAGIC_CMD"; then
8451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8452 $as_echo "$MAGIC_CMD" >&6; }
8453 else
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8456 fi
8457
8458
8459
8460
8461
8462 if test -z "$lt_cv_path_MAGIC_CMD"; then
8463   if test -n "$ac_tool_prefix"; then
8464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8465 $as_echo_n "checking for file... " >&6; }
8466 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8467   $as_echo_n "(cached) " >&6
8468 else
8469   case $MAGIC_CMD in
8470 [\\/*] |  ?:[\\/]*)
8471   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8472   ;;
8473 *)
8474   lt_save_MAGIC_CMD="$MAGIC_CMD"
8475   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8476   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8477   for ac_dir in $ac_dummy; do
8478     IFS="$lt_save_ifs"
8479     test -z "$ac_dir" && ac_dir=.
8480     if test -f $ac_dir/file; then
8481       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8482       if test -n "$file_magic_test_file"; then
8483         case $deplibs_check_method in
8484         "file_magic "*)
8485           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8486           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8487           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8488             $EGREP "$file_magic_regex" > /dev/null; then
8489             :
8490           else
8491             cat <<_LT_EOF 1>&2
8492
8493 *** Warning: the command libtool uses to detect shared libraries,
8494 *** $file_magic_cmd, produces output that libtool cannot recognize.
8495 *** The result is that libtool may fail to recognize shared libraries
8496 *** as such.  This will affect the creation of libtool libraries that
8497 *** depend on shared libraries, but programs linked with such libtool
8498 *** libraries will work regardless of this problem.  Nevertheless, you
8499 *** may want to report the problem to your system manager and/or to
8500 *** bug-libtool@gnu.org
8501
8502 _LT_EOF
8503           fi ;;
8504         esac
8505       fi
8506       break
8507     fi
8508   done
8509   IFS="$lt_save_ifs"
8510   MAGIC_CMD="$lt_save_MAGIC_CMD"
8511   ;;
8512 esac
8513 fi
8514
8515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8516 if test -n "$MAGIC_CMD"; then
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8518 $as_echo "$MAGIC_CMD" >&6; }
8519 else
8520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8522 fi
8523
8524
8525   else
8526     MAGIC_CMD=:
8527   fi
8528 fi
8529
8530   fi
8531   ;;
8532 esac
8533
8534 # Use C for the default configuration in the libtool script
8535
8536 lt_save_CC="$CC"
8537 ac_ext=c
8538 ac_cpp='$CPP $CPPFLAGS'
8539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8542
8543
8544 # Source file extension for C test sources.
8545 ac_ext=c
8546
8547 # Object file extension for compiled C test sources.
8548 objext=o
8549 objext=$objext
8550
8551 # Code to be used in simple compile tests
8552 lt_simple_compile_test_code="int some_variable = 0;"
8553
8554 # Code to be used in simple link tests
8555 lt_simple_link_test_code='int main(){return(0);}'
8556
8557
8558
8559
8560
8561
8562
8563 # If no C compiler was specified, use CC.
8564 LTCC=${LTCC-"$CC"}
8565
8566 # If no C compiler flags were specified, use CFLAGS.
8567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8568
8569 # Allow CC to be a program name with arguments.
8570 compiler=$CC
8571
8572 # Save the default compiler, since it gets overwritten when the other
8573 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8574 compiler_DEFAULT=$CC
8575
8576 # save warnings/boilerplate of simple test code
8577 ac_outfile=conftest.$ac_objext
8578 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8580 _lt_compiler_boilerplate=`cat conftest.err`
8581 $RM conftest*
8582
8583 ac_outfile=conftest.$ac_objext
8584 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8585 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8586 _lt_linker_boilerplate=`cat conftest.err`
8587 $RM -r conftest*
8588
8589
8590 ## CAVEAT EMPTOR:
8591 ## There is no encapsulation within the following macros, do not change
8592 ## the running order or otherwise move them around unless you know exactly
8593 ## what you are doing...
8594 if test -n "$compiler"; then
8595
8596 lt_prog_compiler_no_builtin_flag=
8597
8598 if test "$GCC" = yes; then
8599   case $cc_basename in
8600   nvcc*)
8601     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8602   *)
8603     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8604   esac
8605
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8607 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8608 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8609   $as_echo_n "(cached) " >&6
8610 else
8611   lt_cv_prog_compiler_rtti_exceptions=no
8612    ac_outfile=conftest.$ac_objext
8613    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8614    lt_compiler_flag="-fno-rtti -fno-exceptions"
8615    # Insert the option either (1) after the last *FLAGS variable, or
8616    # (2) before a word containing "conftest.", or (3) at the end.
8617    # Note that $ac_compile itself does not contain backslashes and begins
8618    # with a dollar sign (not a hyphen), so the echo should work correctly.
8619    # The option is referenced via a variable to avoid confusing sed.
8620    lt_compile=`echo "$ac_compile" | $SED \
8621    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623    -e 's:$: $lt_compiler_flag:'`
8624    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8625    (eval "$lt_compile" 2>conftest.err)
8626    ac_status=$?
8627    cat conftest.err >&5
8628    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629    if (exit $ac_status) && test -s "$ac_outfile"; then
8630      # The compiler can only warn and ignore the option if not recognized
8631      # So say no if there are warnings other than the usual output.
8632      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8633      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8634      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8635        lt_cv_prog_compiler_rtti_exceptions=yes
8636      fi
8637    fi
8638    $RM conftest*
8639
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8642 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8643
8644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8645     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8646 else
8647     :
8648 fi
8649
8650 fi
8651
8652
8653
8654
8655
8656
8657   lt_prog_compiler_wl=
8658 lt_prog_compiler_pic=
8659 lt_prog_compiler_static=
8660
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8662 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8663
8664   if test "$GCC" = yes; then
8665     lt_prog_compiler_wl='-Wl,'
8666     lt_prog_compiler_static='-static'
8667
8668     case $host_os in
8669       aix*)
8670       # All AIX code is PIC.
8671       if test "$host_cpu" = ia64; then
8672         # AIX 5 now supports IA64 processor
8673         lt_prog_compiler_static='-Bstatic'
8674       fi
8675       lt_prog_compiler_pic='-fPIC'
8676       ;;
8677
8678     amigaos*)
8679       case $host_cpu in
8680       powerpc)
8681             # see comment about AmigaOS4 .so support
8682             lt_prog_compiler_pic='-fPIC'
8683         ;;
8684       m68k)
8685             # FIXME: we need at least 68020 code to build shared libraries, but
8686             # adding the `-m68020' flag to GCC prevents building anything better,
8687             # like `-m68040'.
8688             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8689         ;;
8690       esac
8691       ;;
8692
8693     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8694       # PIC is the default for these OSes.
8695       ;;
8696
8697     mingw* | cygwin* | pw32* | os2* | cegcc*)
8698       # This hack is so that the source file can tell whether it is being
8699       # built for inclusion in a dll (and should export symbols for example).
8700       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8701       # (--disable-auto-import) libraries
8702       lt_prog_compiler_pic='-DDLL_EXPORT'
8703       ;;
8704
8705     darwin* | rhapsody*)
8706       # PIC is the default on this platform
8707       # Common symbols not allowed in MH_DYLIB files
8708       lt_prog_compiler_pic='-fno-common'
8709       ;;
8710
8711     haiku*)
8712       # PIC is the default for Haiku.
8713       # The "-static" flag exists, but is broken.
8714       lt_prog_compiler_static=
8715       ;;
8716
8717     hpux*)
8718       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8719       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8720       # sets the default TLS model and affects inlining.
8721       case $host_cpu in
8722       hppa*64*)
8723         # +Z the default
8724         ;;
8725       *)
8726         lt_prog_compiler_pic='-fPIC'
8727         ;;
8728       esac
8729       ;;
8730
8731     interix[3-9]*)
8732       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8733       # Instead, we relocate shared libraries at runtime.
8734       ;;
8735
8736     msdosdjgpp*)
8737       # Just because we use GCC doesn't mean we suddenly get shared libraries
8738       # on systems that don't support them.
8739       lt_prog_compiler_can_build_shared=no
8740       enable_shared=no
8741       ;;
8742
8743     *nto* | *qnx*)
8744       # QNX uses GNU C++, but need to define -shared option too, otherwise
8745       # it will coredump.
8746       lt_prog_compiler_pic='-fPIC -shared'
8747       ;;
8748
8749     sysv4*MP*)
8750       if test -d /usr/nec; then
8751         lt_prog_compiler_pic=-Kconform_pic
8752       fi
8753       ;;
8754
8755     *)
8756       lt_prog_compiler_pic='-fPIC'
8757       ;;
8758     esac
8759
8760     case $cc_basename in
8761     nvcc*) # Cuda Compiler Driver 2.2
8762       lt_prog_compiler_wl='-Xlinker '
8763       lt_prog_compiler_pic='-Xcompiler -fPIC'
8764       ;;
8765     esac
8766   else
8767     # PORTME Check for flag to pass linker flags through the system compiler.
8768     case $host_os in
8769     aix*)
8770       lt_prog_compiler_wl='-Wl,'
8771       if test "$host_cpu" = ia64; then
8772         # AIX 5 now supports IA64 processor
8773         lt_prog_compiler_static='-Bstatic'
8774       else
8775         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8776       fi
8777       ;;
8778
8779     mingw* | cygwin* | pw32* | os2* | cegcc*)
8780       # This hack is so that the source file can tell whether it is being
8781       # built for inclusion in a dll (and should export symbols for example).
8782       lt_prog_compiler_pic='-DDLL_EXPORT'
8783       ;;
8784
8785     hpux9* | hpux10* | hpux11*)
8786       lt_prog_compiler_wl='-Wl,'
8787       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8788       # not for PA HP-UX.
8789       case $host_cpu in
8790       hppa*64*|ia64*)
8791         # +Z the default
8792         ;;
8793       *)
8794         lt_prog_compiler_pic='+Z'
8795         ;;
8796       esac
8797       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8798       lt_prog_compiler_static='${wl}-a ${wl}archive'
8799       ;;
8800
8801     irix5* | irix6* | nonstopux*)
8802       lt_prog_compiler_wl='-Wl,'
8803       # PIC (with -KPIC) is the default.
8804       lt_prog_compiler_static='-non_shared'
8805       ;;
8806
8807     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8808       case $cc_basename in
8809       # old Intel for x86_64 which still supported -KPIC.
8810       ecc*)
8811         lt_prog_compiler_wl='-Wl,'
8812         lt_prog_compiler_pic='-KPIC'
8813         lt_prog_compiler_static='-static'
8814         ;;
8815       # icc used to be incompatible with GCC.
8816       # ICC 10 doesn't accept -KPIC any more.
8817       icc* | ifort*)
8818         lt_prog_compiler_wl='-Wl,'
8819         lt_prog_compiler_pic='-fPIC'
8820         lt_prog_compiler_static='-static'
8821         ;;
8822       # Lahey Fortran 8.1.
8823       lf95*)
8824         lt_prog_compiler_wl='-Wl,'
8825         lt_prog_compiler_pic='--shared'
8826         lt_prog_compiler_static='--static'
8827         ;;
8828       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8829         # Portland Group compilers (*not* the Pentium gcc compiler,
8830         # which looks to be a dead project)
8831         lt_prog_compiler_wl='-Wl,'
8832         lt_prog_compiler_pic='-fpic'
8833         lt_prog_compiler_static='-Bstatic'
8834         ;;
8835       ccc*)
8836         lt_prog_compiler_wl='-Wl,'
8837         # All Alpha code is PIC.
8838         lt_prog_compiler_static='-non_shared'
8839         ;;
8840       xl* | bgxl* | bgf* | mpixl*)
8841         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8842         lt_prog_compiler_wl='-Wl,'
8843         lt_prog_compiler_pic='-qpic'
8844         lt_prog_compiler_static='-qstaticlink'
8845         ;;
8846       *)
8847         case `$CC -V 2>&1 | sed 5q` in
8848         *Sun\ F* | *Sun*Fortran*)
8849           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8850           lt_prog_compiler_pic='-KPIC'
8851           lt_prog_compiler_static='-Bstatic'
8852           lt_prog_compiler_wl=''
8853           ;;
8854         *Sun\ C*)
8855           # Sun C 5.9
8856           lt_prog_compiler_pic='-KPIC'
8857           lt_prog_compiler_static='-Bstatic'
8858           lt_prog_compiler_wl='-Wl,'
8859           ;;
8860         esac
8861         ;;
8862       esac
8863       ;;
8864
8865     newsos6)
8866       lt_prog_compiler_pic='-KPIC'
8867       lt_prog_compiler_static='-Bstatic'
8868       ;;
8869
8870     *nto* | *qnx*)
8871       # QNX uses GNU C++, but need to define -shared option too, otherwise
8872       # it will coredump.
8873       lt_prog_compiler_pic='-fPIC -shared'
8874       ;;
8875
8876     osf3* | osf4* | osf5*)
8877       lt_prog_compiler_wl='-Wl,'
8878       # All OSF/1 code is PIC.
8879       lt_prog_compiler_static='-non_shared'
8880       ;;
8881
8882     rdos*)
8883       lt_prog_compiler_static='-non_shared'
8884       ;;
8885
8886     solaris*)
8887       lt_prog_compiler_pic='-KPIC'
8888       lt_prog_compiler_static='-Bstatic'
8889       case $cc_basename in
8890       f77* | f90* | f95*)
8891         lt_prog_compiler_wl='-Qoption ld ';;
8892       *)
8893         lt_prog_compiler_wl='-Wl,';;
8894       esac
8895       ;;
8896
8897     sunos4*)
8898       lt_prog_compiler_wl='-Qoption ld '
8899       lt_prog_compiler_pic='-PIC'
8900       lt_prog_compiler_static='-Bstatic'
8901       ;;
8902
8903     sysv4 | sysv4.2uw2* | sysv4.3*)
8904       lt_prog_compiler_wl='-Wl,'
8905       lt_prog_compiler_pic='-KPIC'
8906       lt_prog_compiler_static='-Bstatic'
8907       ;;
8908
8909     sysv4*MP*)
8910       if test -d /usr/nec ;then
8911         lt_prog_compiler_pic='-Kconform_pic'
8912         lt_prog_compiler_static='-Bstatic'
8913       fi
8914       ;;
8915
8916     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8917       lt_prog_compiler_wl='-Wl,'
8918       lt_prog_compiler_pic='-KPIC'
8919       lt_prog_compiler_static='-Bstatic'
8920       ;;
8921
8922     unicos*)
8923       lt_prog_compiler_wl='-Wl,'
8924       lt_prog_compiler_can_build_shared=no
8925       ;;
8926
8927     uts4*)
8928       lt_prog_compiler_pic='-pic'
8929       lt_prog_compiler_static='-Bstatic'
8930       ;;
8931
8932     *)
8933       lt_prog_compiler_can_build_shared=no
8934       ;;
8935     esac
8936   fi
8937
8938 case $host_os in
8939   # For platforms which do not support PIC, -DPIC is meaningless:
8940   *djgpp*)
8941     lt_prog_compiler_pic=
8942     ;;
8943   *)
8944     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8945     ;;
8946 esac
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8948 $as_echo "$lt_prog_compiler_pic" >&6; }
8949
8950
8951
8952
8953
8954
8955 #
8956 # Check to make sure the PIC flag actually works.
8957 #
8958 if test -n "$lt_prog_compiler_pic"; then
8959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8960 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8961 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8962   $as_echo_n "(cached) " >&6
8963 else
8964   lt_cv_prog_compiler_pic_works=no
8965    ac_outfile=conftest.$ac_objext
8966    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8967    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8968    # Insert the option either (1) after the last *FLAGS variable, or
8969    # (2) before a word containing "conftest.", or (3) at the end.
8970    # Note that $ac_compile itself does not contain backslashes and begins
8971    # with a dollar sign (not a hyphen), so the echo should work correctly.
8972    # The option is referenced via a variable to avoid confusing sed.
8973    lt_compile=`echo "$ac_compile" | $SED \
8974    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8975    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8976    -e 's:$: $lt_compiler_flag:'`
8977    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8978    (eval "$lt_compile" 2>conftest.err)
8979    ac_status=$?
8980    cat conftest.err >&5
8981    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982    if (exit $ac_status) && test -s "$ac_outfile"; then
8983      # The compiler can only warn and ignore the option if not recognized
8984      # So say no if there are warnings other than the usual output.
8985      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8986      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8987      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8988        lt_cv_prog_compiler_pic_works=yes
8989      fi
8990    fi
8991    $RM conftest*
8992
8993 fi
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8995 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8996
8997 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8998     case $lt_prog_compiler_pic in
8999      "" | " "*) ;;
9000      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9001      esac
9002 else
9003     lt_prog_compiler_pic=
9004      lt_prog_compiler_can_build_shared=no
9005 fi
9006
9007 fi
9008
9009
9010
9011
9012
9013
9014 #
9015 # Check to make sure the static flag actually works.
9016 #
9017 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9019 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9020 if ${lt_cv_prog_compiler_static_works+:} false; then :
9021   $as_echo_n "(cached) " >&6
9022 else
9023   lt_cv_prog_compiler_static_works=no
9024    save_LDFLAGS="$LDFLAGS"
9025    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9026    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9027    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9028      # The linker can only warn and ignore the option if not recognized
9029      # So say no if there are warnings
9030      if test -s conftest.err; then
9031        # Append any errors to the config.log.
9032        cat conftest.err 1>&5
9033        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9034        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035        if diff conftest.exp conftest.er2 >/dev/null; then
9036          lt_cv_prog_compiler_static_works=yes
9037        fi
9038      else
9039        lt_cv_prog_compiler_static_works=yes
9040      fi
9041    fi
9042    $RM -r conftest*
9043    LDFLAGS="$save_LDFLAGS"
9044
9045 fi
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9047 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9048
9049 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9050     :
9051 else
9052     lt_prog_compiler_static=
9053 fi
9054
9055
9056
9057
9058
9059
9060
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9062 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9063 if ${lt_cv_prog_compiler_c_o+:} false; then :
9064   $as_echo_n "(cached) " >&6
9065 else
9066   lt_cv_prog_compiler_c_o=no
9067    $RM -r conftest 2>/dev/null
9068    mkdir conftest
9069    cd conftest
9070    mkdir out
9071    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9072
9073    lt_compiler_flag="-o out/conftest2.$ac_objext"
9074    # Insert the option either (1) after the last *FLAGS variable, or
9075    # (2) before a word containing "conftest.", or (3) at the end.
9076    # Note that $ac_compile itself does not contain backslashes and begins
9077    # with a dollar sign (not a hyphen), so the echo should work correctly.
9078    lt_compile=`echo "$ac_compile" | $SED \
9079    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9080    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9081    -e 's:$: $lt_compiler_flag:'`
9082    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9083    (eval "$lt_compile" 2>out/conftest.err)
9084    ac_status=$?
9085    cat out/conftest.err >&5
9086    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9088    then
9089      # The compiler can only warn and ignore the option if not recognized
9090      # So say no if there are warnings
9091      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9092      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9093      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9094        lt_cv_prog_compiler_c_o=yes
9095      fi
9096    fi
9097    chmod u+w . 2>&5
9098    $RM conftest*
9099    # SGI C++ compiler will create directory out/ii_files/ for
9100    # template instantiation
9101    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9102    $RM out/* && rmdir out
9103    cd ..
9104    $RM -r conftest
9105    $RM conftest*
9106
9107 fi
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9109 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9110
9111
9112
9113
9114
9115
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9117 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9118 if ${lt_cv_prog_compiler_c_o+:} false; then :
9119   $as_echo_n "(cached) " >&6
9120 else
9121   lt_cv_prog_compiler_c_o=no
9122    $RM -r conftest 2>/dev/null
9123    mkdir conftest
9124    cd conftest
9125    mkdir out
9126    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9127
9128    lt_compiler_flag="-o out/conftest2.$ac_objext"
9129    # Insert the option either (1) after the last *FLAGS variable, or
9130    # (2) before a word containing "conftest.", or (3) at the end.
9131    # Note that $ac_compile itself does not contain backslashes and begins
9132    # with a dollar sign (not a hyphen), so the echo should work correctly.
9133    lt_compile=`echo "$ac_compile" | $SED \
9134    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9135    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9136    -e 's:$: $lt_compiler_flag:'`
9137    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9138    (eval "$lt_compile" 2>out/conftest.err)
9139    ac_status=$?
9140    cat out/conftest.err >&5
9141    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9143    then
9144      # The compiler can only warn and ignore the option if not recognized
9145      # So say no if there are warnings
9146      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9147      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9148      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9149        lt_cv_prog_compiler_c_o=yes
9150      fi
9151    fi
9152    chmod u+w . 2>&5
9153    $RM conftest*
9154    # SGI C++ compiler will create directory out/ii_files/ for
9155    # template instantiation
9156    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9157    $RM out/* && rmdir out
9158    cd ..
9159    $RM -r conftest
9160    $RM conftest*
9161
9162 fi
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9164 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9165
9166
9167
9168
9169 hard_links="nottested"
9170 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9171   # do not overwrite the value of need_locks provided by the user
9172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9173 $as_echo_n "checking if we can lock with hard links... " >&6; }
9174   hard_links=yes
9175   $RM conftest*
9176   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9177   touch conftest.a
9178   ln conftest.a conftest.b 2>&5 || hard_links=no
9179   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9181 $as_echo "$hard_links" >&6; }
9182   if test "$hard_links" = no; then
9183     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9184 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9185     need_locks=warn
9186   fi
9187 else
9188   need_locks=no
9189 fi
9190
9191
9192
9193
9194
9195
9196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9197 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9198
9199   runpath_var=
9200   allow_undefined_flag=
9201   always_export_symbols=no
9202   archive_cmds=
9203   archive_expsym_cmds=
9204   compiler_needs_object=no
9205   enable_shared_with_static_runtimes=no
9206   export_dynamic_flag_spec=
9207   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9208   hardcode_automatic=no
9209   hardcode_direct=no
9210   hardcode_direct_absolute=no
9211   hardcode_libdir_flag_spec=
9212   hardcode_libdir_flag_spec_ld=
9213   hardcode_libdir_separator=
9214   hardcode_minus_L=no
9215   hardcode_shlibpath_var=unsupported
9216   inherit_rpath=no
9217   link_all_deplibs=unknown
9218   module_cmds=
9219   module_expsym_cmds=
9220   old_archive_from_new_cmds=
9221   old_archive_from_expsyms_cmds=
9222   thread_safe_flag_spec=
9223   whole_archive_flag_spec=
9224   # include_expsyms should be a list of space-separated symbols to be *always*
9225   # included in the symbol list
9226   include_expsyms=
9227   # exclude_expsyms can be an extended regexp of symbols to exclude
9228   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9229   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9230   # as well as any symbol that contains `d'.
9231   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9232   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9233   # platforms (ab)use it in PIC code, but their linkers get confused if
9234   # the symbol is explicitly referenced.  Since portable code cannot
9235   # rely on this symbol name, it's probably fine to never include it in
9236   # preloaded symbol tables.
9237   # Exclude shared library initialization/finalization symbols.
9238   extract_expsyms_cmds=
9239
9240   case $host_os in
9241   cygwin* | mingw* | pw32* | cegcc*)
9242     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9243     # When not using gcc, we currently assume that we are using
9244     # Microsoft Visual C++.
9245     if test "$GCC" != yes; then
9246       with_gnu_ld=no
9247     fi
9248     ;;
9249   interix*)
9250     # we just hope/assume this is gcc and not c89 (= MSVC++)
9251     with_gnu_ld=yes
9252     ;;
9253   openbsd*)
9254     with_gnu_ld=no
9255     ;;
9256   esac
9257
9258   ld_shlibs=yes
9259
9260   # On some targets, GNU ld is compatible enough with the native linker
9261   # that we're better off using the native interface for both.
9262   lt_use_gnu_ld_interface=no
9263   if test "$with_gnu_ld" = yes; then
9264     case $host_os in
9265       aix*)
9266         # The AIX port of GNU ld has always aspired to compatibility
9267         # with the native linker.  However, as the warning in the GNU ld
9268         # block says, versions before 2.19.5* couldn't really create working
9269         # shared libraries, regardless of the interface used.
9270         case `$LD -v 2>&1` in
9271           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9272           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9273           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9274           *)
9275             lt_use_gnu_ld_interface=yes
9276             ;;
9277         esac
9278         ;;
9279       *)
9280         lt_use_gnu_ld_interface=yes
9281         ;;
9282     esac
9283   fi
9284
9285   if test "$lt_use_gnu_ld_interface" = yes; then
9286     # If archive_cmds runs LD, not CC, wlarc should be empty
9287     wlarc='${wl}'
9288
9289     # Set some defaults for GNU ld with shared library support. These
9290     # are reset later if shared libraries are not supported. Putting them
9291     # here allows them to be overridden if necessary.
9292     runpath_var=LD_RUN_PATH
9293     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294     export_dynamic_flag_spec='${wl}--export-dynamic'
9295     # ancient GNU ld didn't support --whole-archive et. al.
9296     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9297       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9298     else
9299       whole_archive_flag_spec=
9300     fi
9301     supports_anon_versioning=no
9302     case `$LD -v 2>&1` in
9303       *GNU\ gold*) supports_anon_versioning=yes ;;
9304       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9305       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9306       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9307       *\ 2.11.*) ;; # other 2.11 versions
9308       *) supports_anon_versioning=yes ;;
9309     esac
9310
9311     # See if GNU ld supports shared libraries.
9312     case $host_os in
9313     aix[3-9]*)
9314       # On AIX/PPC, the GNU linker is very broken
9315       if test "$host_cpu" != ia64; then
9316         ld_shlibs=no
9317         cat <<_LT_EOF 1>&2
9318
9319 *** Warning: the GNU linker, at least up to release 2.19, is reported
9320 *** to be unable to reliably create shared libraries on AIX.
9321 *** Therefore, libtool is disabling shared libraries support.  If you
9322 *** really care for shared libraries, you may want to install binutils
9323 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9324 *** You will then need to restart the configuration process.
9325
9326 _LT_EOF
9327       fi
9328       ;;
9329
9330     amigaos*)
9331       case $host_cpu in
9332       powerpc)
9333             # see comment about AmigaOS4 .so support
9334             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9335             archive_expsym_cmds=''
9336         ;;
9337       m68k)
9338             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)'
9339             hardcode_libdir_flag_spec='-L$libdir'
9340             hardcode_minus_L=yes
9341         ;;
9342       esac
9343       ;;
9344
9345     beos*)
9346       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9347         allow_undefined_flag=unsupported
9348         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9349         # support --undefined.  This deserves some investigation.  FIXME
9350         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9351       else
9352         ld_shlibs=no
9353       fi
9354       ;;
9355
9356     cygwin* | mingw* | pw32* | cegcc*)
9357       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9358       # as there is no search path for DLLs.
9359       hardcode_libdir_flag_spec='-L$libdir'
9360       export_dynamic_flag_spec='${wl}--export-all-symbols'
9361       allow_undefined_flag=unsupported
9362       always_export_symbols=no
9363       enable_shared_with_static_runtimes=yes
9364       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9365
9366       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9367         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9368         # If the export-symbols file already is a .def file (1st line
9369         # is EXPORTS), use it as is; otherwise, prepend...
9370         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9371           cp $export_symbols $output_objdir/$soname.def;
9372         else
9373           echo EXPORTS > $output_objdir/$soname.def;
9374           cat $export_symbols >> $output_objdir/$soname.def;
9375         fi~
9376         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9377       else
9378         ld_shlibs=no
9379       fi
9380       ;;
9381
9382     haiku*)
9383       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384       link_all_deplibs=yes
9385       ;;
9386
9387     interix[3-9]*)
9388       hardcode_direct=no
9389       hardcode_shlibpath_var=no
9390       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9391       export_dynamic_flag_spec='${wl}-E'
9392       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9393       # Instead, shared libraries are loaded at an image base (0x10000000 by
9394       # default) and relocated if they conflict, which is a slow very memory
9395       # consuming and fragmenting process.  To avoid this, we pick a random,
9396       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9397       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9398       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9399       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'
9400       ;;
9401
9402     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9403       tmp_diet=no
9404       if test "$host_os" = linux-dietlibc; then
9405         case $cc_basename in
9406           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9407         esac
9408       fi
9409       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9410          && test "$tmp_diet" = no
9411       then
9412         tmp_addflag=' $pic_flag'
9413         tmp_sharedflag='-shared'
9414         case $cc_basename,$host_cpu in
9415         pgcc*)                          # Portland Group C compiler
9416           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'
9417           tmp_addflag=' $pic_flag'
9418           ;;
9419         pgf77* | pgf90* | pgf95* | pgfortran*)
9420                                         # Portland Group f77 and f90 compilers
9421           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'
9422           tmp_addflag=' $pic_flag -Mnomain' ;;
9423         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9424           tmp_addflag=' -i_dynamic' ;;
9425         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9426           tmp_addflag=' -i_dynamic -nofor_main' ;;
9427         ifc* | ifort*)                  # Intel Fortran compiler
9428           tmp_addflag=' -nofor_main' ;;
9429         lf95*)                          # Lahey Fortran 8.1
9430           whole_archive_flag_spec=
9431           tmp_sharedflag='--shared' ;;
9432         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9433           tmp_sharedflag='-qmkshrobj'
9434           tmp_addflag= ;;
9435         nvcc*)  # Cuda Compiler Driver 2.2
9436           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'
9437           compiler_needs_object=yes
9438           ;;
9439         esac
9440         case `$CC -V 2>&1 | sed 5q` in
9441         *Sun\ C*)                       # Sun C 5.9
9442           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'
9443           compiler_needs_object=yes
9444           tmp_sharedflag='-G' ;;
9445         *Sun\ F*)                       # Sun Fortran 8.3
9446           tmp_sharedflag='-G' ;;
9447         esac
9448         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449
9450         if test "x$supports_anon_versioning" = xyes; then
9451           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9452             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9453             echo "local: *; };" >> $output_objdir/$libname.ver~
9454             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9455         fi
9456
9457         case $cc_basename in
9458         xlf* | bgf* | bgxlf* | mpixlf*)
9459           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9460           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9461           hardcode_libdir_flag_spec=
9462           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9463           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9464           if test "x$supports_anon_versioning" = xyes; then
9465             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9466               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9467               echo "local: *; };" >> $output_objdir/$libname.ver~
9468               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9469           fi
9470           ;;
9471         esac
9472       else
9473         ld_shlibs=no
9474       fi
9475       ;;
9476
9477     netbsd*)
9478       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9479         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9480         wlarc=
9481       else
9482         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9483         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9484       fi
9485       ;;
9486
9487     solaris*)
9488       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9489         ld_shlibs=no
9490         cat <<_LT_EOF 1>&2
9491
9492 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9493 *** create shared libraries on Solaris systems.  Therefore, libtool
9494 *** is disabling shared libraries support.  We urge you to upgrade GNU
9495 *** binutils to release 2.9.1 or newer.  Another option is to modify
9496 *** your PATH or compiler configuration so that the native linker is
9497 *** used, and then restart.
9498
9499 _LT_EOF
9500       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9501         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9502         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9503       else
9504         ld_shlibs=no
9505       fi
9506       ;;
9507
9508     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9509       case `$LD -v 2>&1` in
9510         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9511         ld_shlibs=no
9512         cat <<_LT_EOF 1>&2
9513
9514 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9515 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9516 *** is disabling shared libraries support.  We urge you to upgrade GNU
9517 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9518 *** your PATH or compiler configuration so that the native linker is
9519 *** used, and then restart.
9520
9521 _LT_EOF
9522         ;;
9523         *)
9524           # For security reasons, it is highly recommended that you always
9525           # use absolute paths for naming shared libraries, and exclude the
9526           # DT_RUNPATH tag from executables and libraries.  But doing so
9527           # requires that you compile everything twice, which is a pain.
9528           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9529             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9532           else
9533             ld_shlibs=no
9534           fi
9535         ;;
9536       esac
9537       ;;
9538
9539     sunos4*)
9540       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9541       wlarc=
9542       hardcode_direct=yes
9543       hardcode_shlibpath_var=no
9544       ;;
9545
9546     *)
9547       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9548         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9549         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9550       else
9551         ld_shlibs=no
9552       fi
9553       ;;
9554     esac
9555
9556     if test "$ld_shlibs" = no; then
9557       runpath_var=
9558       hardcode_libdir_flag_spec=
9559       export_dynamic_flag_spec=
9560       whole_archive_flag_spec=
9561     fi
9562   else
9563     # PORTME fill in a description of your system's linker (not GNU ld)
9564     case $host_os in
9565     aix3*)
9566       allow_undefined_flag=unsupported
9567       always_export_symbols=yes
9568       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'
9569       # Note: this linker hardcodes the directories in LIBPATH if there
9570       # are no directories specified by -L.
9571       hardcode_minus_L=yes
9572       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9573         # Neither direct hardcoding nor static linking is supported with a
9574         # broken collect2.
9575         hardcode_direct=unsupported
9576       fi
9577       ;;
9578
9579     aix[4-9]*)
9580       if test "$host_cpu" = ia64; then
9581         # On IA64, the linker does run time linking by default, so we don't
9582         # have to do anything special.
9583         aix_use_runtimelinking=no
9584         exp_sym_flag='-Bexport'
9585         no_entry_flag=""
9586       else
9587         # If we're using GNU nm, then we don't want the "-C" option.
9588         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9589         # Also, AIX nm treats weak defined symbols like other global
9590         # defined symbols, whereas GNU nm marks them as "W".
9591         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9592           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'
9593         else
9594           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'
9595         fi
9596         aix_use_runtimelinking=no
9597
9598         # Test if we are trying to use run time linking or normal
9599         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9600         # need to do runtime linking.
9601         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9602           for ld_flag in $LDFLAGS; do
9603           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9604             aix_use_runtimelinking=yes
9605             break
9606           fi
9607           done
9608           ;;
9609         esac
9610
9611         exp_sym_flag='-bexport'
9612         no_entry_flag='-bnoentry'
9613       fi
9614
9615       # When large executables or shared objects are built, AIX ld can
9616       # have problems creating the table of contents.  If linking a library
9617       # or program results in "error TOC overflow" add -mminimal-toc to
9618       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9619       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9620
9621       archive_cmds=''
9622       hardcode_direct=yes
9623       hardcode_direct_absolute=yes
9624       hardcode_libdir_separator=':'
9625       link_all_deplibs=yes
9626       file_list_spec='${wl}-f,'
9627
9628       if test "$GCC" = yes; then
9629         case $host_os in aix4.[012]|aix4.[012].*)
9630         # We only want to do this on AIX 4.2 and lower, the check
9631         # below for broken collect2 doesn't work under 4.3+
9632           collect2name=`${CC} -print-prog-name=collect2`
9633           if test -f "$collect2name" &&
9634            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9635           then
9636           # We have reworked collect2
9637           :
9638           else
9639           # We have old collect2
9640           hardcode_direct=unsupported
9641           # It fails to find uninstalled libraries when the uninstalled
9642           # path is not listed in the libpath.  Setting hardcode_minus_L
9643           # to unsupported forces relinking
9644           hardcode_minus_L=yes
9645           hardcode_libdir_flag_spec='-L$libdir'
9646           hardcode_libdir_separator=
9647           fi
9648           ;;
9649         esac
9650         shared_flag='-shared'
9651         if test "$aix_use_runtimelinking" = yes; then
9652           shared_flag="$shared_flag "'${wl}-G'
9653         fi
9654       else
9655         # not using gcc
9656         if test "$host_cpu" = ia64; then
9657         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9658         # chokes on -Wl,-G. The following line is correct:
9659           shared_flag='-G'
9660         else
9661           if test "$aix_use_runtimelinking" = yes; then
9662             shared_flag='${wl}-G'
9663           else
9664             shared_flag='${wl}-bM:SRE'
9665           fi
9666         fi
9667       fi
9668
9669       export_dynamic_flag_spec='${wl}-bexpall'
9670       # It seems that -bexpall does not export symbols beginning with
9671       # underscore (_), so it is better to generate a list of symbols to export.
9672       always_export_symbols=yes
9673       if test "$aix_use_runtimelinking" = yes; then
9674         # Warning - without using the other runtime loading flags (-brtl),
9675         # -berok will link without error, but may produce a broken library.
9676         allow_undefined_flag='-berok'
9677         # Determine the default libpath from the value encoded in an
9678         # empty executable.
9679         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h.  */
9681
9682 int
9683 main ()
9684 {
9685
9686   ;
9687   return 0;
9688 }
9689 _ACEOF
9690 if ac_fn_c_try_link "$LINENO"; then :
9691
9692 lt_aix_libpath_sed='
9693     /Import File Strings/,/^$/ {
9694         /^0/ {
9695             s/^0  *\(.*\)$/\1/
9696             p
9697         }
9698     }'
9699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9700 # Check for a 64-bit object if we didn't find anything.
9701 if test -z "$aix_libpath"; then
9702   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9703 fi
9704 fi
9705 rm -f core conftest.err conftest.$ac_objext \
9706     conftest$ac_exeext conftest.$ac_ext
9707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9708
9709         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9710         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"
9711       else
9712         if test "$host_cpu" = ia64; then
9713           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9714           allow_undefined_flag="-z nodefs"
9715           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"
9716         else
9717          # Determine the default libpath from the value encoded in an
9718          # empty executable.
9719          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h.  */
9721
9722 int
9723 main ()
9724 {
9725
9726   ;
9727   return 0;
9728 }
9729 _ACEOF
9730 if ac_fn_c_try_link "$LINENO"; then :
9731
9732 lt_aix_libpath_sed='
9733     /Import File Strings/,/^$/ {
9734         /^0/ {
9735             s/^0  *\(.*\)$/\1/
9736             p
9737         }
9738     }'
9739 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9740 # Check for a 64-bit object if we didn't find anything.
9741 if test -z "$aix_libpath"; then
9742   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9743 fi
9744 fi
9745 rm -f core conftest.err conftest.$ac_objext \
9746     conftest$ac_exeext conftest.$ac_ext
9747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9748
9749          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9750           # Warning - without using the other run time loading flags,
9751           # -berok will link without error, but may produce a broken library.
9752           no_undefined_flag=' ${wl}-bernotok'
9753           allow_undefined_flag=' ${wl}-berok'
9754           if test "$with_gnu_ld" = yes; then
9755             # We only use this code for GNU lds that support --whole-archive.
9756             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9757           else
9758             # Exported symbols can be pulled into shared objects from archives
9759             whole_archive_flag_spec='$convenience'
9760           fi
9761           archive_cmds_need_lc=yes
9762           # This is similar to how AIX traditionally builds its shared libraries.
9763           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'
9764         fi
9765       fi
9766       ;;
9767
9768     amigaos*)
9769       case $host_cpu in
9770       powerpc)
9771             # see comment about AmigaOS4 .so support
9772             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773             archive_expsym_cmds=''
9774         ;;
9775       m68k)
9776             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)'
9777             hardcode_libdir_flag_spec='-L$libdir'
9778             hardcode_minus_L=yes
9779         ;;
9780       esac
9781       ;;
9782
9783     bsdi[45]*)
9784       export_dynamic_flag_spec=-rdynamic
9785       ;;
9786
9787     cygwin* | mingw* | pw32* | cegcc*)
9788       # When not using gcc, we currently assume that we are using
9789       # Microsoft Visual C++.
9790       # hardcode_libdir_flag_spec is actually meaningless, as there is
9791       # no search path for DLLs.
9792       hardcode_libdir_flag_spec=' '
9793       allow_undefined_flag=unsupported
9794       # Tell ltmain to make .lib files, not .a files.
9795       libext=lib
9796       # Tell ltmain to make .dll files, not .so files.
9797       shrext_cmds=".dll"
9798       # FIXME: Setting linknames here is a bad hack.
9799       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9800       # The linker will automatically build a .lib file if we build a DLL.
9801       old_archive_from_new_cmds='true'
9802       # FIXME: Should let the user specify the lib program.
9803       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9804       fix_srcfile_path='`cygpath -w "$srcfile"`'
9805       enable_shared_with_static_runtimes=yes
9806       ;;
9807
9808     darwin* | rhapsody*)
9809
9810
9811   archive_cmds_need_lc=no
9812   hardcode_direct=no
9813   hardcode_automatic=yes
9814   hardcode_shlibpath_var=unsupported
9815   if test "$lt_cv_ld_force_load" = "yes"; then
9816     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\"`'
9817   else
9818     whole_archive_flag_spec=''
9819   fi
9820   link_all_deplibs=yes
9821   allow_undefined_flag="$_lt_dar_allow_undefined"
9822   case $cc_basename in
9823      ifort*) _lt_dar_can_shared=yes ;;
9824      *) _lt_dar_can_shared=$GCC ;;
9825   esac
9826   if test "$_lt_dar_can_shared" = "yes"; then
9827     output_verbose_link_cmd=func_echo_all
9828     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9829     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9830     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}"
9831     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}"
9832
9833   else
9834   ld_shlibs=no
9835   fi
9836
9837       ;;
9838
9839     dgux*)
9840       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841       hardcode_libdir_flag_spec='-L$libdir'
9842       hardcode_shlibpath_var=no
9843       ;;
9844
9845     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9846     # support.  Future versions do this automatically, but an explicit c++rt0.o
9847     # does not break anything, and helps significantly (at the cost of a little
9848     # extra space).
9849     freebsd2.2*)
9850       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9851       hardcode_libdir_flag_spec='-R$libdir'
9852       hardcode_direct=yes
9853       hardcode_shlibpath_var=no
9854       ;;
9855
9856     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9857     freebsd2.*)
9858       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9859       hardcode_direct=yes
9860       hardcode_minus_L=yes
9861       hardcode_shlibpath_var=no
9862       ;;
9863
9864     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9865     freebsd* | dragonfly*)
9866       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9867       hardcode_libdir_flag_spec='-R$libdir'
9868       hardcode_direct=yes
9869       hardcode_shlibpath_var=no
9870       ;;
9871
9872     hpux9*)
9873       if test "$GCC" = yes; then
9874         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'
9875       else
9876         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'
9877       fi
9878       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9879       hardcode_libdir_separator=:
9880       hardcode_direct=yes
9881
9882       # hardcode_minus_L: Not really in the search PATH,
9883       # but as the default location of the library.
9884       hardcode_minus_L=yes
9885       export_dynamic_flag_spec='${wl}-E'
9886       ;;
9887
9888     hpux10*)
9889       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9890         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9891       else
9892         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9893       fi
9894       if test "$with_gnu_ld" = no; then
9895         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9896         hardcode_libdir_flag_spec_ld='+b $libdir'
9897         hardcode_libdir_separator=:
9898         hardcode_direct=yes
9899         hardcode_direct_absolute=yes
9900         export_dynamic_flag_spec='${wl}-E'
9901         # hardcode_minus_L: Not really in the search PATH,
9902         # but as the default location of the library.
9903         hardcode_minus_L=yes
9904       fi
9905       ;;
9906
9907     hpux11*)
9908       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9909         case $host_cpu in
9910         hppa*64*)
9911           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9912           ;;
9913         ia64*)
9914           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9915           ;;
9916         *)
9917           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9918           ;;
9919         esac
9920       else
9921         case $host_cpu in
9922         hppa*64*)
9923           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9924           ;;
9925         ia64*)
9926           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9927           ;;
9928         *)
9929
9930           # Older versions of the 11.00 compiler do not understand -b yet
9931           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9932           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9933 $as_echo_n "checking if $CC understands -b... " >&6; }
9934 if ${lt_cv_prog_compiler__b+:} false; then :
9935   $as_echo_n "(cached) " >&6
9936 else
9937   lt_cv_prog_compiler__b=no
9938    save_LDFLAGS="$LDFLAGS"
9939    LDFLAGS="$LDFLAGS -b"
9940    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9941    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9942      # The linker can only warn and ignore the option if not recognized
9943      # So say no if there are warnings
9944      if test -s conftest.err; then
9945        # Append any errors to the config.log.
9946        cat conftest.err 1>&5
9947        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9948        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9949        if diff conftest.exp conftest.er2 >/dev/null; then
9950          lt_cv_prog_compiler__b=yes
9951        fi
9952      else
9953        lt_cv_prog_compiler__b=yes
9954      fi
9955    fi
9956    $RM -r conftest*
9957    LDFLAGS="$save_LDFLAGS"
9958
9959 fi
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9961 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9962
9963 if test x"$lt_cv_prog_compiler__b" = xyes; then
9964     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9965 else
9966     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9967 fi
9968
9969           ;;
9970         esac
9971       fi
9972       if test "$with_gnu_ld" = no; then
9973         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9974         hardcode_libdir_separator=:
9975
9976         case $host_cpu in
9977         hppa*64*|ia64*)
9978           hardcode_direct=no
9979           hardcode_shlibpath_var=no
9980           ;;
9981         *)
9982           hardcode_direct=yes
9983           hardcode_direct_absolute=yes
9984           export_dynamic_flag_spec='${wl}-E'
9985
9986           # hardcode_minus_L: Not really in the search PATH,
9987           # but as the default location of the library.
9988           hardcode_minus_L=yes
9989           ;;
9990         esac
9991       fi
9992       ;;
9993
9994     irix5* | irix6* | nonstopux*)
9995       if test "$GCC" = yes; then
9996         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'
9997         # Try to use the -exported_symbol ld option, if it does not
9998         # work, assume that -exports_file does not work either and
9999         # implicitly export all symbols.
10000         save_LDFLAGS="$LDFLAGS"
10001         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10002         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h.  */
10004 int foo(void) {}
10005 _ACEOF
10006 if ac_fn_c_try_link "$LINENO"; then :
10007   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'
10008
10009 fi
10010 rm -f core conftest.err conftest.$ac_objext \
10011     conftest$ac_exeext conftest.$ac_ext
10012         LDFLAGS="$save_LDFLAGS"
10013       else
10014         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'
10015         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'
10016       fi
10017       archive_cmds_need_lc='no'
10018       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10019       hardcode_libdir_separator=:
10020       inherit_rpath=yes
10021       link_all_deplibs=yes
10022       ;;
10023
10024     netbsd*)
10025       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10026         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10027       else
10028         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10029       fi
10030       hardcode_libdir_flag_spec='-R$libdir'
10031       hardcode_direct=yes
10032       hardcode_shlibpath_var=no
10033       ;;
10034
10035     newsos6)
10036       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10037       hardcode_direct=yes
10038       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10039       hardcode_libdir_separator=:
10040       hardcode_shlibpath_var=no
10041       ;;
10042
10043     *nto* | *qnx*)
10044       ;;
10045
10046     openbsd*)
10047       if test -f /usr/libexec/ld.so; then
10048         hardcode_direct=yes
10049         hardcode_shlibpath_var=no
10050         hardcode_direct_absolute=yes
10051         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10052           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10053           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10054           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10055           export_dynamic_flag_spec='${wl}-E'
10056         else
10057           case $host_os in
10058            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10059              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10060              hardcode_libdir_flag_spec='-R$libdir'
10061              ;;
10062            *)
10063              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10064              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10065              ;;
10066           esac
10067         fi
10068       else
10069         ld_shlibs=no
10070       fi
10071       ;;
10072
10073     os2*)
10074       hardcode_libdir_flag_spec='-L$libdir'
10075       hardcode_minus_L=yes
10076       allow_undefined_flag=unsupported
10077       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'
10078       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10079       ;;
10080
10081     osf3*)
10082       if test "$GCC" = yes; then
10083         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10084         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'
10085       else
10086         allow_undefined_flag=' -expect_unresolved \*'
10087         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'
10088       fi
10089       archive_cmds_need_lc='no'
10090       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10091       hardcode_libdir_separator=:
10092       ;;
10093
10094     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10095       if test "$GCC" = yes; then
10096         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10097         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'
10098         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10099       else
10100         allow_undefined_flag=' -expect_unresolved \*'
10101         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'
10102         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~
10103         $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'
10104
10105         # Both c and cxx compiler support -rpath directly
10106         hardcode_libdir_flag_spec='-rpath $libdir'
10107       fi
10108       archive_cmds_need_lc='no'
10109       hardcode_libdir_separator=:
10110       ;;
10111
10112     solaris*)
10113       no_undefined_flag=' -z defs'
10114       if test "$GCC" = yes; then
10115         wlarc='${wl}'
10116         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10117         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10118           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10119       else
10120         case `$CC -V 2>&1` in
10121         *"Compilers 5.0"*)
10122           wlarc=''
10123           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10125           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10126           ;;
10127         *)
10128           wlarc='${wl}'
10129           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10130           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10131           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10132           ;;
10133         esac
10134       fi
10135       hardcode_libdir_flag_spec='-R$libdir'
10136       hardcode_shlibpath_var=no
10137       case $host_os in
10138       solaris2.[0-5] | solaris2.[0-5].*) ;;
10139       *)
10140         # The compiler driver will combine and reorder linker options,
10141         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10142         # but is careful enough not to reorder.
10143         # Supported since Solaris 2.6 (maybe 2.5.1?)
10144         if test "$GCC" = yes; then
10145           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10146         else
10147           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10148         fi
10149         ;;
10150       esac
10151       link_all_deplibs=yes
10152       ;;
10153
10154     sunos4*)
10155       if test "x$host_vendor" = xsequent; then
10156         # Use $CC to link under sequent, because it throws in some extra .o
10157         # files that make .init and .fini sections work.
10158         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10159       else
10160         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10161       fi
10162       hardcode_libdir_flag_spec='-L$libdir'
10163       hardcode_direct=yes
10164       hardcode_minus_L=yes
10165       hardcode_shlibpath_var=no
10166       ;;
10167
10168     sysv4)
10169       case $host_vendor in
10170         sni)
10171           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172           hardcode_direct=yes # is this really true???
10173         ;;
10174         siemens)
10175           ## LD is ld it makes a PLAMLIB
10176           ## CC just makes a GrossModule.
10177           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10178           reload_cmds='$CC -r -o $output$reload_objs'
10179           hardcode_direct=no
10180         ;;
10181         motorola)
10182           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10183           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10184         ;;
10185       esac
10186       runpath_var='LD_RUN_PATH'
10187       hardcode_shlibpath_var=no
10188       ;;
10189
10190     sysv4.3*)
10191       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192       hardcode_shlibpath_var=no
10193       export_dynamic_flag_spec='-Bexport'
10194       ;;
10195
10196     sysv4*MP*)
10197       if test -d /usr/nec; then
10198         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199         hardcode_shlibpath_var=no
10200         runpath_var=LD_RUN_PATH
10201         hardcode_runpath_var=yes
10202         ld_shlibs=yes
10203       fi
10204       ;;
10205
10206     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10207       no_undefined_flag='${wl}-z,text'
10208       archive_cmds_need_lc=no
10209       hardcode_shlibpath_var=no
10210       runpath_var='LD_RUN_PATH'
10211
10212       if test "$GCC" = yes; then
10213         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215       else
10216         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218       fi
10219       ;;
10220
10221     sysv5* | sco3.2v5* | sco5v6*)
10222       # Note: We can NOT use -z defs as we might desire, because we do not
10223       # link with -lc, and that would cause any symbols used from libc to
10224       # always be unresolved, which means just about no library would
10225       # ever link correctly.  If we're not using GNU ld we use -z text
10226       # though, which does catch some bad symbols but isn't as heavy-handed
10227       # as -z defs.
10228       no_undefined_flag='${wl}-z,text'
10229       allow_undefined_flag='${wl}-z,nodefs'
10230       archive_cmds_need_lc=no
10231       hardcode_shlibpath_var=no
10232       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10233       hardcode_libdir_separator=':'
10234       link_all_deplibs=yes
10235       export_dynamic_flag_spec='${wl}-Bexport'
10236       runpath_var='LD_RUN_PATH'
10237
10238       if test "$GCC" = yes; then
10239         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241       else
10242         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244       fi
10245       ;;
10246
10247     uts4*)
10248       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10249       hardcode_libdir_flag_spec='-L$libdir'
10250       hardcode_shlibpath_var=no
10251       ;;
10252
10253     *)
10254       ld_shlibs=no
10255       ;;
10256     esac
10257
10258     if test x$host_vendor = xsni; then
10259       case $host in
10260       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10261         export_dynamic_flag_spec='${wl}-Blargedynsym'
10262         ;;
10263       esac
10264     fi
10265   fi
10266
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10268 $as_echo "$ld_shlibs" >&6; }
10269 test "$ld_shlibs" = no && can_build_shared=no
10270
10271 with_gnu_ld=$with_gnu_ld
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287 #
10288 # Do we need to explicitly link libc?
10289 #
10290 case "x$archive_cmds_need_lc" in
10291 x|xyes)
10292   # Assume -lc should be added
10293   archive_cmds_need_lc=yes
10294
10295   if test "$enable_shared" = yes && test "$GCC" = yes; then
10296     case $archive_cmds in
10297     *'~'*)
10298       # FIXME: we may have to deal with multi-command sequences.
10299       ;;
10300     '$CC '*)
10301       # Test whether the compiler implicitly links with -lc since on some
10302       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10303       # to ld, don't add -lc before -lgcc.
10304       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10305 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10306 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10307   $as_echo_n "(cached) " >&6
10308 else
10309   $RM conftest*
10310         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10311
10312         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10313   (eval $ac_compile) 2>&5
10314   ac_status=$?
10315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10316   test $ac_status = 0; } 2>conftest.err; then
10317           soname=conftest
10318           lib=conftest
10319           libobjs=conftest.$ac_objext
10320           deplibs=
10321           wl=$lt_prog_compiler_wl
10322           pic_flag=$lt_prog_compiler_pic
10323           compiler_flags=-v
10324           linker_flags=-v
10325           verstring=
10326           output_objdir=.
10327           libname=conftest
10328           lt_save_allow_undefined_flag=$allow_undefined_flag
10329           allow_undefined_flag=
10330           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10331   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10332   ac_status=$?
10333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10334   test $ac_status = 0; }
10335           then
10336             lt_cv_archive_cmds_need_lc=no
10337           else
10338             lt_cv_archive_cmds_need_lc=yes
10339           fi
10340           allow_undefined_flag=$lt_save_allow_undefined_flag
10341         else
10342           cat conftest.err 1>&5
10343         fi
10344         $RM conftest*
10345
10346 fi
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10348 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10349       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10350       ;;
10351     esac
10352   fi
10353   ;;
10354 esac
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10513 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10514
10515 if test "$GCC" = yes; then
10516   case $host_os in
10517     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10518     *) lt_awk_arg="/^libraries:/" ;;
10519   esac
10520   case $host_os in
10521     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10522     *) lt_sed_strip_eq="s,=/,/,g" ;;
10523   esac
10524   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10525   case $lt_search_path_spec in
10526   *\;*)
10527     # if the path contains ";" then we assume it to be the separator
10528     # otherwise default to the standard path separator (i.e. ":") - it is
10529     # assumed that no part of a normal pathname contains ";" but that should
10530     # okay in the real world where ";" in dirpaths is itself problematic.
10531     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10532     ;;
10533   *)
10534     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10535     ;;
10536   esac
10537   # Ok, now we have the path, separated by spaces, we can step through it
10538   # and add multilib dir if necessary.
10539   lt_tmp_lt_search_path_spec=
10540   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10541   for lt_sys_path in $lt_search_path_spec; do
10542     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10543       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10544     else
10545       test -d "$lt_sys_path" && \
10546         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10547     fi
10548   done
10549   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10550 BEGIN {RS=" "; FS="/|\n";} {
10551   lt_foo="";
10552   lt_count=0;
10553   for (lt_i = NF; lt_i > 0; lt_i--) {
10554     if ($lt_i != "" && $lt_i != ".") {
10555       if ($lt_i == "..") {
10556         lt_count++;
10557       } else {
10558         if (lt_count == 0) {
10559           lt_foo="/" $lt_i lt_foo;
10560         } else {
10561           lt_count--;
10562         }
10563       }
10564     }
10565   }
10566   if (lt_foo != "") { lt_freq[lt_foo]++; }
10567   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10568 }'`
10569   # AWK program above erroneously prepends '/' to C:/dos/paths
10570   # for these hosts.
10571   case $host_os in
10572     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10573       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10574   esac
10575   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10576 else
10577   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10578 fi
10579 library_names_spec=
10580 libname_spec='lib$name'
10581 soname_spec=
10582 shrext_cmds=".so"
10583 postinstall_cmds=
10584 postuninstall_cmds=
10585 finish_cmds=
10586 finish_eval=
10587 shlibpath_var=
10588 shlibpath_overrides_runpath=unknown
10589 version_type=none
10590 dynamic_linker="$host_os ld.so"
10591 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10592 need_lib_prefix=unknown
10593 hardcode_into_libs=no
10594
10595 # when you set need_version to no, make sure it does not cause -set_version
10596 # flags to be left without arguments
10597 need_version=unknown
10598
10599 case $host_os in
10600 aix3*)
10601   version_type=linux
10602   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10603   shlibpath_var=LIBPATH
10604
10605   # AIX 3 has no versioning support, so we append a major version to the name.
10606   soname_spec='${libname}${release}${shared_ext}$major'
10607   ;;
10608
10609 aix[4-9]*)
10610   version_type=linux
10611   need_lib_prefix=no
10612   need_version=no
10613   hardcode_into_libs=yes
10614   if test "$host_cpu" = ia64; then
10615     # AIX 5 supports IA64
10616     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10617     shlibpath_var=LD_LIBRARY_PATH
10618   else
10619     # With GCC up to 2.95.x, collect2 would create an import file
10620     # for dependence libraries.  The import file would start with
10621     # the line `#! .'.  This would cause the generated library to
10622     # depend on `.', always an invalid library.  This was fixed in
10623     # development snapshots of GCC prior to 3.0.
10624     case $host_os in
10625       aix4 | aix4.[01] | aix4.[01].*)
10626       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10627            echo ' yes '
10628            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10629         :
10630       else
10631         can_build_shared=no
10632       fi
10633       ;;
10634     esac
10635     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10636     # soname into executable. Probably we can add versioning support to
10637     # collect2, so additional links can be useful in future.
10638     if test "$aix_use_runtimelinking" = yes; then
10639       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10640       # instead of lib<name>.a to let people know that these are not
10641       # typical AIX shared libraries.
10642       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643     else
10644       # We preserve .a as extension for shared libraries through AIX4.2
10645       # and later when we are not doing run time linking.
10646       library_names_spec='${libname}${release}.a $libname.a'
10647       soname_spec='${libname}${release}${shared_ext}$major'
10648     fi
10649     shlibpath_var=LIBPATH
10650   fi
10651   ;;
10652
10653 amigaos*)
10654   case $host_cpu in
10655   powerpc)
10656     # Since July 2007 AmigaOS4 officially supports .so libraries.
10657     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659     ;;
10660   m68k)
10661     library_names_spec='$libname.ixlibrary $libname.a'
10662     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10663     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'
10664     ;;
10665   esac
10666   ;;
10667
10668 beos*)
10669   library_names_spec='${libname}${shared_ext}'
10670   dynamic_linker="$host_os ld.so"
10671   shlibpath_var=LIBRARY_PATH
10672   ;;
10673
10674 bsdi[45]*)
10675   version_type=linux
10676   need_version=no
10677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678   soname_spec='${libname}${release}${shared_ext}$major'
10679   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10680   shlibpath_var=LD_LIBRARY_PATH
10681   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10682   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10683   # the default ld.so.conf also contains /usr/contrib/lib and
10684   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10685   # libtool to hard-code these into programs
10686   ;;
10687
10688 cygwin* | mingw* | pw32* | cegcc*)
10689   version_type=windows
10690   shrext_cmds=".dll"
10691   need_version=no
10692   need_lib_prefix=no
10693
10694   case $GCC,$host_os in
10695   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10696     library_names_spec='$libname.dll.a'
10697     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10698     postinstall_cmds='base_file=`basename \${file}`~
10699       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10700       dldir=$destdir/`dirname \$dlpath`~
10701       test -d \$dldir || mkdir -p \$dldir~
10702       $install_prog $dir/$dlname \$dldir/$dlname~
10703       chmod a+x \$dldir/$dlname~
10704       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10705         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10706       fi'
10707     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10708       dlpath=$dir/\$dldll~
10709        $RM \$dlpath'
10710     shlibpath_overrides_runpath=yes
10711
10712     case $host_os in
10713     cygwin*)
10714       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10715       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10716
10717       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10718       ;;
10719     mingw* | cegcc*)
10720       # MinGW DLLs use traditional 'lib' prefix
10721       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10722       ;;
10723     pw32*)
10724       # pw32 DLLs use 'pw' prefix rather than 'lib'
10725       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10726       ;;
10727     esac
10728     ;;
10729
10730   *)
10731     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10732     ;;
10733   esac
10734   dynamic_linker='Win32 ld.exe'
10735   # FIXME: first we should search . and the directory the executable is in
10736   shlibpath_var=PATH
10737   ;;
10738
10739 darwin* | rhapsody*)
10740   dynamic_linker="$host_os dyld"
10741   version_type=darwin
10742   need_lib_prefix=no
10743   need_version=no
10744   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10745   soname_spec='${libname}${release}${major}$shared_ext'
10746   shlibpath_overrides_runpath=yes
10747   shlibpath_var=DYLD_LIBRARY_PATH
10748   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10749
10750   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10751   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10752   ;;
10753
10754 dgux*)
10755   version_type=linux
10756   need_lib_prefix=no
10757   need_version=no
10758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10759   soname_spec='${libname}${release}${shared_ext}$major'
10760   shlibpath_var=LD_LIBRARY_PATH
10761   ;;
10762
10763 freebsd* | dragonfly*)
10764   # DragonFly does not have aout.  When/if they implement a new
10765   # versioning mechanism, adjust this.
10766   if test -x /usr/bin/objformat; then
10767     objformat=`/usr/bin/objformat`
10768   else
10769     case $host_os in
10770     freebsd[23].*) objformat=aout ;;
10771     *) objformat=elf ;;
10772     esac
10773   fi
10774   version_type=freebsd-$objformat
10775   case $version_type in
10776     freebsd-elf*)
10777       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10778       need_version=no
10779       need_lib_prefix=no
10780       ;;
10781     freebsd-*)
10782       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10783       need_version=yes
10784       ;;
10785   esac
10786   shlibpath_var=LD_LIBRARY_PATH
10787   case $host_os in
10788   freebsd2.*)
10789     shlibpath_overrides_runpath=yes
10790     ;;
10791   freebsd3.[01]* | freebsdelf3.[01]*)
10792     shlibpath_overrides_runpath=yes
10793     hardcode_into_libs=yes
10794     ;;
10795   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10796   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10797     shlibpath_overrides_runpath=no
10798     hardcode_into_libs=yes
10799     ;;
10800   *) # from 4.6 on, and DragonFly
10801     shlibpath_overrides_runpath=yes
10802     hardcode_into_libs=yes
10803     ;;
10804   esac
10805   ;;
10806
10807 gnu*)
10808   version_type=linux
10809   need_lib_prefix=no
10810   need_version=no
10811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10812   soname_spec='${libname}${release}${shared_ext}$major'
10813   shlibpath_var=LD_LIBRARY_PATH
10814   hardcode_into_libs=yes
10815   ;;
10816
10817 haiku*)
10818   version_type=linux
10819   need_lib_prefix=no
10820   need_version=no
10821   dynamic_linker="$host_os runtime_loader"
10822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10823   soname_spec='${libname}${release}${shared_ext}$major'
10824   shlibpath_var=LIBRARY_PATH
10825   shlibpath_overrides_runpath=yes
10826   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10827   hardcode_into_libs=yes
10828   ;;
10829
10830 hpux9* | hpux10* | hpux11*)
10831   # Give a soname corresponding to the major version so that dld.sl refuses to
10832   # link against other versions.
10833   version_type=sunos
10834   need_lib_prefix=no
10835   need_version=no
10836   case $host_cpu in
10837   ia64*)
10838     shrext_cmds='.so'
10839     hardcode_into_libs=yes
10840     dynamic_linker="$host_os dld.so"
10841     shlibpath_var=LD_LIBRARY_PATH
10842     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10843     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844     soname_spec='${libname}${release}${shared_ext}$major'
10845     if test "X$HPUX_IA64_MODE" = X32; then
10846       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10847     else
10848       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10849     fi
10850     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10851     ;;
10852   hppa*64*)
10853     shrext_cmds='.sl'
10854     hardcode_into_libs=yes
10855     dynamic_linker="$host_os dld.sl"
10856     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10857     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10858     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859     soname_spec='${libname}${release}${shared_ext}$major'
10860     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10861     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10862     ;;
10863   *)
10864     shrext_cmds='.sl'
10865     dynamic_linker="$host_os dld.sl"
10866     shlibpath_var=SHLIB_PATH
10867     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10868     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869     soname_spec='${libname}${release}${shared_ext}$major'
10870     ;;
10871   esac
10872   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10873   postinstall_cmds='chmod 555 $lib'
10874   # or fails outright, so override atomically:
10875   install_override_mode=555
10876   ;;
10877
10878 interix[3-9]*)
10879   version_type=linux
10880   need_lib_prefix=no
10881   need_version=no
10882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10883   soname_spec='${libname}${release}${shared_ext}$major'
10884   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10885   shlibpath_var=LD_LIBRARY_PATH
10886   shlibpath_overrides_runpath=no
10887   hardcode_into_libs=yes
10888   ;;
10889
10890 irix5* | irix6* | nonstopux*)
10891   case $host_os in
10892     nonstopux*) version_type=nonstopux ;;
10893     *)
10894         if test "$lt_cv_prog_gnu_ld" = yes; then
10895                 version_type=linux
10896         else
10897                 version_type=irix
10898         fi ;;
10899   esac
10900   need_lib_prefix=no
10901   need_version=no
10902   soname_spec='${libname}${release}${shared_ext}$major'
10903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10904   case $host_os in
10905   irix5* | nonstopux*)
10906     libsuff= shlibsuff=
10907     ;;
10908   *)
10909     case $LD in # libtool.m4 will add one of these switches to LD
10910     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10911       libsuff= shlibsuff= libmagic=32-bit;;
10912     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10913       libsuff=32 shlibsuff=N32 libmagic=N32;;
10914     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10915       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10916     *) libsuff= shlibsuff= libmagic=never-match;;
10917     esac
10918     ;;
10919   esac
10920   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10921   shlibpath_overrides_runpath=no
10922   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10923   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10924   hardcode_into_libs=yes
10925   ;;
10926
10927 # No shared lib support for Linux oldld, aout, or coff.
10928 linux*oldld* | linux*aout* | linux*coff*)
10929   dynamic_linker=no
10930   ;;
10931
10932 # This must be Linux ELF.
10933 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10934   version_type=linux
10935   need_lib_prefix=no
10936   need_version=no
10937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938   soname_spec='${libname}${release}${shared_ext}$major'
10939   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10940   shlibpath_var=LD_LIBRARY_PATH
10941   shlibpath_overrides_runpath=no
10942
10943   # Some binutils ld are patched to set DT_RUNPATH
10944   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10945   $as_echo_n "(cached) " >&6
10946 else
10947   lt_cv_shlibpath_overrides_runpath=no
10948     save_LDFLAGS=$LDFLAGS
10949     save_libdir=$libdir
10950     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10951          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10952     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h.  */
10954
10955 int
10956 main ()
10957 {
10958
10959   ;
10960   return 0;
10961 }
10962 _ACEOF
10963 if ac_fn_c_try_link "$LINENO"; then :
10964   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10965   lt_cv_shlibpath_overrides_runpath=yes
10966 fi
10967 fi
10968 rm -f core conftest.err conftest.$ac_objext \
10969     conftest$ac_exeext conftest.$ac_ext
10970     LDFLAGS=$save_LDFLAGS
10971     libdir=$save_libdir
10972
10973 fi
10974
10975   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10976
10977   # This implies no fast_install, which is unacceptable.
10978   # Some rework will be needed to allow for fast_install
10979   # before this can be enabled.
10980   hardcode_into_libs=yes
10981
10982   # Append ld.so.conf contents to the search path
10983   if test -f /etc/ld.so.conf; then
10984     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' ' '`
10985     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10986   fi
10987
10988   # We used to test for /lib/ld.so.1 and disable shared libraries on
10989   # powerpc, because MkLinux only supported shared libraries with the
10990   # GNU dynamic linker.  Since this was broken with cross compilers,
10991   # most powerpc-linux boxes support dynamic linking these days and
10992   # people can always --disable-shared, the test was removed, and we
10993   # assume the GNU/Linux dynamic linker is in use.
10994   dynamic_linker='GNU/Linux ld.so'
10995   ;;
10996
10997 netbsd*)
10998   version_type=sunos
10999   need_lib_prefix=no
11000   need_version=no
11001   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11002     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11003     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11004     dynamic_linker='NetBSD (a.out) ld.so'
11005   else
11006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11007     soname_spec='${libname}${release}${shared_ext}$major'
11008     dynamic_linker='NetBSD ld.elf_so'
11009   fi
11010   shlibpath_var=LD_LIBRARY_PATH
11011   shlibpath_overrides_runpath=yes
11012   hardcode_into_libs=yes
11013   ;;
11014
11015 newsos6)
11016   version_type=linux
11017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11018   shlibpath_var=LD_LIBRARY_PATH
11019   shlibpath_overrides_runpath=yes
11020   ;;
11021
11022 *nto* | *qnx*)
11023   version_type=qnx
11024   need_lib_prefix=no
11025   need_version=no
11026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027   soname_spec='${libname}${release}${shared_ext}$major'
11028   shlibpath_var=LD_LIBRARY_PATH
11029   shlibpath_overrides_runpath=no
11030   hardcode_into_libs=yes
11031   dynamic_linker='ldqnx.so'
11032   ;;
11033
11034 openbsd*)
11035   version_type=sunos
11036   sys_lib_dlsearch_path_spec="/usr/lib"
11037   need_lib_prefix=no
11038   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11039   case $host_os in
11040     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11041     *)                          need_version=no  ;;
11042   esac
11043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11044   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11045   shlibpath_var=LD_LIBRARY_PATH
11046   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11047     case $host_os in
11048       openbsd2.[89] | openbsd2.[89].*)
11049         shlibpath_overrides_runpath=no
11050         ;;
11051       *)
11052         shlibpath_overrides_runpath=yes
11053         ;;
11054       esac
11055   else
11056     shlibpath_overrides_runpath=yes
11057   fi
11058   ;;
11059
11060 os2*)
11061   libname_spec='$name'
11062   shrext_cmds=".dll"
11063   need_lib_prefix=no
11064   library_names_spec='$libname${shared_ext} $libname.a'
11065   dynamic_linker='OS/2 ld.exe'
11066   shlibpath_var=LIBPATH
11067   ;;
11068
11069 osf3* | osf4* | osf5*)
11070   version_type=osf
11071   need_lib_prefix=no
11072   need_version=no
11073   soname_spec='${libname}${release}${shared_ext}$major'
11074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075   shlibpath_var=LD_LIBRARY_PATH
11076   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11077   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11078   ;;
11079
11080 rdos*)
11081   dynamic_linker=no
11082   ;;
11083
11084 solaris*)
11085   version_type=linux
11086   need_lib_prefix=no
11087   need_version=no
11088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089   soname_spec='${libname}${release}${shared_ext}$major'
11090   shlibpath_var=LD_LIBRARY_PATH
11091   shlibpath_overrides_runpath=yes
11092   hardcode_into_libs=yes
11093   # ldd complains unless libraries are executable
11094   postinstall_cmds='chmod +x $lib'
11095   ;;
11096
11097 sunos4*)
11098   version_type=sunos
11099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11100   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11101   shlibpath_var=LD_LIBRARY_PATH
11102   shlibpath_overrides_runpath=yes
11103   if test "$with_gnu_ld" = yes; then
11104     need_lib_prefix=no
11105   fi
11106   need_version=yes
11107   ;;
11108
11109 sysv4 | sysv4.3*)
11110   version_type=linux
11111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112   soname_spec='${libname}${release}${shared_ext}$major'
11113   shlibpath_var=LD_LIBRARY_PATH
11114   case $host_vendor in
11115     sni)
11116       shlibpath_overrides_runpath=no
11117       need_lib_prefix=no
11118       runpath_var=LD_RUN_PATH
11119       ;;
11120     siemens)
11121       need_lib_prefix=no
11122       ;;
11123     motorola)
11124       need_lib_prefix=no
11125       need_version=no
11126       shlibpath_overrides_runpath=no
11127       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11128       ;;
11129   esac
11130   ;;
11131
11132 sysv4*MP*)
11133   if test -d /usr/nec ;then
11134     version_type=linux
11135     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11136     soname_spec='$libname${shared_ext}.$major'
11137     shlibpath_var=LD_LIBRARY_PATH
11138   fi
11139   ;;
11140
11141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11142   version_type=freebsd-elf
11143   need_lib_prefix=no
11144   need_version=no
11145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11146   soname_spec='${libname}${release}${shared_ext}$major'
11147   shlibpath_var=LD_LIBRARY_PATH
11148   shlibpath_overrides_runpath=yes
11149   hardcode_into_libs=yes
11150   if test "$with_gnu_ld" = yes; then
11151     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11152   else
11153     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11154     case $host_os in
11155       sco3.2v5*)
11156         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11157         ;;
11158     esac
11159   fi
11160   sys_lib_dlsearch_path_spec='/usr/lib'
11161   ;;
11162
11163 tpf*)
11164   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11165   version_type=linux
11166   need_lib_prefix=no
11167   need_version=no
11168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169   shlibpath_var=LD_LIBRARY_PATH
11170   shlibpath_overrides_runpath=no
11171   hardcode_into_libs=yes
11172   ;;
11173
11174 uts4*)
11175   version_type=linux
11176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177   soname_spec='${libname}${release}${shared_ext}$major'
11178   shlibpath_var=LD_LIBRARY_PATH
11179   ;;
11180
11181 *)
11182   dynamic_linker=no
11183   ;;
11184 esac
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11186 $as_echo "$dynamic_linker" >&6; }
11187 test "$dynamic_linker" = no && can_build_shared=no
11188
11189 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11190 if test "$GCC" = yes; then
11191   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11192 fi
11193
11194 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11195   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11196 fi
11197 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11198   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11199 fi
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11293 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11294 hardcode_action=
11295 if test -n "$hardcode_libdir_flag_spec" ||
11296    test -n "$runpath_var" ||
11297    test "X$hardcode_automatic" = "Xyes" ; then
11298
11299   # We can hardcode non-existent directories.
11300   if test "$hardcode_direct" != no &&
11301      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11302      # have to relink, otherwise we might link with an installed library
11303      # when we should be linking with a yet-to-be-installed one
11304      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11305      test "$hardcode_minus_L" != no; then
11306     # Linking always hardcodes the temporary library directory.
11307     hardcode_action=relink
11308   else
11309     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11310     hardcode_action=immediate
11311   fi
11312 else
11313   # We cannot hardcode anything, or else we can only hardcode existing
11314   # directories.
11315   hardcode_action=unsupported
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11318 $as_echo "$hardcode_action" >&6; }
11319
11320 if test "$hardcode_action" = relink ||
11321    test "$inherit_rpath" = yes; then
11322   # Fast installation is not supported
11323   enable_fast_install=no
11324 elif test "$shlibpath_overrides_runpath" = yes ||
11325      test "$enable_shared" = no; then
11326   # Fast installation is not necessary
11327   enable_fast_install=needless
11328 fi
11329
11330
11331
11332
11333
11334
11335   if test "x$enable_dlopen" != xyes; then
11336   enable_dlopen=unknown
11337   enable_dlopen_self=unknown
11338   enable_dlopen_self_static=unknown
11339 else
11340   lt_cv_dlopen=no
11341   lt_cv_dlopen_libs=
11342
11343   case $host_os in
11344   beos*)
11345     lt_cv_dlopen="load_add_on"
11346     lt_cv_dlopen_libs=
11347     lt_cv_dlopen_self=yes
11348     ;;
11349
11350   mingw* | pw32* | cegcc*)
11351     lt_cv_dlopen="LoadLibrary"
11352     lt_cv_dlopen_libs=
11353     ;;
11354
11355   cygwin*)
11356     lt_cv_dlopen="dlopen"
11357     lt_cv_dlopen_libs=
11358     ;;
11359
11360   darwin*)
11361   # if libdl is installed we need to link against it
11362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11363 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11364 if ${ac_cv_lib_dl_dlopen+:} false; then :
11365   $as_echo_n "(cached) " >&6
11366 else
11367   ac_check_lib_save_LIBS=$LIBS
11368 LIBS="-ldl  $LIBS"
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h.  */
11371
11372 /* Override any GCC internal prototype to avoid an error.
11373    Use char because int might match the return type of a GCC
11374    builtin and then its argument prototype would still apply.  */
11375 #ifdef __cplusplus
11376 extern "C"
11377 #endif
11378 char dlopen ();
11379 int
11380 main ()
11381 {
11382 return dlopen ();
11383   ;
11384   return 0;
11385 }
11386 _ACEOF
11387 if ac_fn_c_try_link "$LINENO"; then :
11388   ac_cv_lib_dl_dlopen=yes
11389 else
11390   ac_cv_lib_dl_dlopen=no
11391 fi
11392 rm -f core conftest.err conftest.$ac_objext \
11393     conftest$ac_exeext conftest.$ac_ext
11394 LIBS=$ac_check_lib_save_LIBS
11395 fi
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11397 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11398 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11399   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11400 else
11401
11402     lt_cv_dlopen="dyld"
11403     lt_cv_dlopen_libs=
11404     lt_cv_dlopen_self=yes
11405
11406 fi
11407
11408     ;;
11409
11410   *)
11411     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11412 if test "x$ac_cv_func_shl_load" = xyes; then :
11413   lt_cv_dlopen="shl_load"
11414 else
11415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11416 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11417 if ${ac_cv_lib_dld_shl_load+:} false; then :
11418   $as_echo_n "(cached) " >&6
11419 else
11420   ac_check_lib_save_LIBS=$LIBS
11421 LIBS="-ldld  $LIBS"
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h.  */
11424
11425 /* Override any GCC internal prototype to avoid an error.
11426    Use char because int might match the return type of a GCC
11427    builtin and then its argument prototype would still apply.  */
11428 #ifdef __cplusplus
11429 extern "C"
11430 #endif
11431 char shl_load ();
11432 int
11433 main ()
11434 {
11435 return shl_load ();
11436   ;
11437   return 0;
11438 }
11439 _ACEOF
11440 if ac_fn_c_try_link "$LINENO"; then :
11441   ac_cv_lib_dld_shl_load=yes
11442 else
11443   ac_cv_lib_dld_shl_load=no
11444 fi
11445 rm -f core conftest.err conftest.$ac_objext \
11446     conftest$ac_exeext conftest.$ac_ext
11447 LIBS=$ac_check_lib_save_LIBS
11448 fi
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11450 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11451 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11452   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11453 else
11454   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11455 if test "x$ac_cv_func_dlopen" = xyes; then :
11456   lt_cv_dlopen="dlopen"
11457 else
11458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11459 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11460 if ${ac_cv_lib_dl_dlopen+:} false; then :
11461   $as_echo_n "(cached) " >&6
11462 else
11463   ac_check_lib_save_LIBS=$LIBS
11464 LIBS="-ldl  $LIBS"
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h.  */
11467
11468 /* Override any GCC internal prototype to avoid an error.
11469    Use char because int might match the return type of a GCC
11470    builtin and then its argument prototype would still apply.  */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char dlopen ();
11475 int
11476 main ()
11477 {
11478 return dlopen ();
11479   ;
11480   return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484   ac_cv_lib_dl_dlopen=yes
11485 else
11486   ac_cv_lib_dl_dlopen=no
11487 fi
11488 rm -f core conftest.err conftest.$ac_objext \
11489     conftest$ac_exeext conftest.$ac_ext
11490 LIBS=$ac_check_lib_save_LIBS
11491 fi
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11493 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11494 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11495   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11496 else
11497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11498 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11499 if ${ac_cv_lib_svld_dlopen+:} false; then :
11500   $as_echo_n "(cached) " >&6
11501 else
11502   ac_check_lib_save_LIBS=$LIBS
11503 LIBS="-lsvld  $LIBS"
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h.  */
11506
11507 /* Override any GCC internal prototype to avoid an error.
11508    Use char because int might match the return type of a GCC
11509    builtin and then its argument prototype would still apply.  */
11510 #ifdef __cplusplus
11511 extern "C"
11512 #endif
11513 char dlopen ();
11514 int
11515 main ()
11516 {
11517 return dlopen ();
11518   ;
11519   return 0;
11520 }
11521 _ACEOF
11522 if ac_fn_c_try_link "$LINENO"; then :
11523   ac_cv_lib_svld_dlopen=yes
11524 else
11525   ac_cv_lib_svld_dlopen=no
11526 fi
11527 rm -f core conftest.err conftest.$ac_objext \
11528     conftest$ac_exeext conftest.$ac_ext
11529 LIBS=$ac_check_lib_save_LIBS
11530 fi
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11532 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11533 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11534   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11535 else
11536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11537 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11538 if ${ac_cv_lib_dld_dld_link+:} false; then :
11539   $as_echo_n "(cached) " >&6
11540 else
11541   ac_check_lib_save_LIBS=$LIBS
11542 LIBS="-ldld  $LIBS"
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h.  */
11545
11546 /* Override any GCC internal prototype to avoid an error.
11547    Use char because int might match the return type of a GCC
11548    builtin and then its argument prototype would still apply.  */
11549 #ifdef __cplusplus
11550 extern "C"
11551 #endif
11552 char dld_link ();
11553 int
11554 main ()
11555 {
11556 return dld_link ();
11557   ;
11558   return 0;
11559 }
11560 _ACEOF
11561 if ac_fn_c_try_link "$LINENO"; then :
11562   ac_cv_lib_dld_dld_link=yes
11563 else
11564   ac_cv_lib_dld_dld_link=no
11565 fi
11566 rm -f core conftest.err conftest.$ac_objext \
11567     conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11569 fi
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11571 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11572 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11573   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11574 fi
11575
11576
11577 fi
11578
11579
11580 fi
11581
11582
11583 fi
11584
11585
11586 fi
11587
11588
11589 fi
11590
11591     ;;
11592   esac
11593
11594   if test "x$lt_cv_dlopen" != xno; then
11595     enable_dlopen=yes
11596   else
11597     enable_dlopen=no
11598   fi
11599
11600   case $lt_cv_dlopen in
11601   dlopen)
11602     save_CPPFLAGS="$CPPFLAGS"
11603     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11604
11605     save_LDFLAGS="$LDFLAGS"
11606     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11607
11608     save_LIBS="$LIBS"
11609     LIBS="$lt_cv_dlopen_libs $LIBS"
11610
11611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11612 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11613 if ${lt_cv_dlopen_self+:} false; then :
11614   $as_echo_n "(cached) " >&6
11615 else
11616           if test "$cross_compiling" = yes; then :
11617   lt_cv_dlopen_self=cross
11618 else
11619   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11620   lt_status=$lt_dlunknown
11621   cat > conftest.$ac_ext <<_LT_EOF
11622 #line 11622 "configure"
11623 #include "confdefs.h"
11624
11625 #if HAVE_DLFCN_H
11626 #include <dlfcn.h>
11627 #endif
11628
11629 #include <stdio.h>
11630
11631 #ifdef RTLD_GLOBAL
11632 #  define LT_DLGLOBAL           RTLD_GLOBAL
11633 #else
11634 #  ifdef DL_GLOBAL
11635 #    define LT_DLGLOBAL         DL_GLOBAL
11636 #  else
11637 #    define LT_DLGLOBAL         0
11638 #  endif
11639 #endif
11640
11641 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11642    find out it does not work in some platform. */
11643 #ifndef LT_DLLAZY_OR_NOW
11644 #  ifdef RTLD_LAZY
11645 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11646 #  else
11647 #    ifdef DL_LAZY
11648 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11649 #    else
11650 #      ifdef RTLD_NOW
11651 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11652 #      else
11653 #        ifdef DL_NOW
11654 #          define LT_DLLAZY_OR_NOW      DL_NOW
11655 #        else
11656 #          define LT_DLLAZY_OR_NOW      0
11657 #        endif
11658 #      endif
11659 #    endif
11660 #  endif
11661 #endif
11662
11663 /* When -fvisbility=hidden is used, assume the code has been annotated
11664    correspondingly for the symbols needed.  */
11665 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11666 void fnord () __attribute__((visibility("default")));
11667 #endif
11668
11669 void fnord () { int i=42; }
11670 int main ()
11671 {
11672   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11673   int status = $lt_dlunknown;
11674
11675   if (self)
11676     {
11677       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11678       else
11679         {
11680           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11681           else puts (dlerror ());
11682         }
11683       /* dlclose (self); */
11684     }
11685   else
11686     puts (dlerror ());
11687
11688   return status;
11689 }
11690 _LT_EOF
11691   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11692   (eval $ac_link) 2>&5
11693   ac_status=$?
11694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11696     (./conftest; exit; ) >&5 2>/dev/null
11697     lt_status=$?
11698     case x$lt_status in
11699       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11700       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11701       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11702     esac
11703   else :
11704     # compilation failed
11705     lt_cv_dlopen_self=no
11706   fi
11707 fi
11708 rm -fr conftest*
11709
11710
11711 fi
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11713 $as_echo "$lt_cv_dlopen_self" >&6; }
11714
11715     if test "x$lt_cv_dlopen_self" = xyes; then
11716       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11717       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11718 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11719 if ${lt_cv_dlopen_self_static+:} false; then :
11720   $as_echo_n "(cached) " >&6
11721 else
11722           if test "$cross_compiling" = yes; then :
11723   lt_cv_dlopen_self_static=cross
11724 else
11725   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11726   lt_status=$lt_dlunknown
11727   cat > conftest.$ac_ext <<_LT_EOF
11728 #line 11728 "configure"
11729 #include "confdefs.h"
11730
11731 #if HAVE_DLFCN_H
11732 #include <dlfcn.h>
11733 #endif
11734
11735 #include <stdio.h>
11736
11737 #ifdef RTLD_GLOBAL
11738 #  define LT_DLGLOBAL           RTLD_GLOBAL
11739 #else
11740 #  ifdef DL_GLOBAL
11741 #    define LT_DLGLOBAL         DL_GLOBAL
11742 #  else
11743 #    define LT_DLGLOBAL         0
11744 #  endif
11745 #endif
11746
11747 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11748    find out it does not work in some platform. */
11749 #ifndef LT_DLLAZY_OR_NOW
11750 #  ifdef RTLD_LAZY
11751 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11752 #  else
11753 #    ifdef DL_LAZY
11754 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11755 #    else
11756 #      ifdef RTLD_NOW
11757 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11758 #      else
11759 #        ifdef DL_NOW
11760 #          define LT_DLLAZY_OR_NOW      DL_NOW
11761 #        else
11762 #          define LT_DLLAZY_OR_NOW      0
11763 #        endif
11764 #      endif
11765 #    endif
11766 #  endif
11767 #endif
11768
11769 /* When -fvisbility=hidden is used, assume the code has been annotated
11770    correspondingly for the symbols needed.  */
11771 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11772 void fnord () __attribute__((visibility("default")));
11773 #endif
11774
11775 void fnord () { int i=42; }
11776 int main ()
11777 {
11778   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11779   int status = $lt_dlunknown;
11780
11781   if (self)
11782     {
11783       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11784       else
11785         {
11786           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11787           else puts (dlerror ());
11788         }
11789       /* dlclose (self); */
11790     }
11791   else
11792     puts (dlerror ());
11793
11794   return status;
11795 }
11796 _LT_EOF
11797   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11798   (eval $ac_link) 2>&5
11799   ac_status=$?
11800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11802     (./conftest; exit; ) >&5 2>/dev/null
11803     lt_status=$?
11804     case x$lt_status in
11805       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11806       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11807       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11808     esac
11809   else :
11810     # compilation failed
11811     lt_cv_dlopen_self_static=no
11812   fi
11813 fi
11814 rm -fr conftest*
11815
11816
11817 fi
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11819 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11820     fi
11821
11822     CPPFLAGS="$save_CPPFLAGS"
11823     LDFLAGS="$save_LDFLAGS"
11824     LIBS="$save_LIBS"
11825     ;;
11826   esac
11827
11828   case $lt_cv_dlopen_self in
11829   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11830   *) enable_dlopen_self=unknown ;;
11831   esac
11832
11833   case $lt_cv_dlopen_self_static in
11834   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11835   *) enable_dlopen_self_static=unknown ;;
11836   esac
11837 fi
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855 striplib=
11856 old_striplib=
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11858 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11859 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11860   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11861   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11863 $as_echo "yes" >&6; }
11864 else
11865 # FIXME - insert some real tests, host_os isn't really good enough
11866   case $host_os in
11867   darwin*)
11868     if test -n "$STRIP" ; then
11869       striplib="$STRIP -x"
11870       old_striplib="$STRIP -S"
11871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11872 $as_echo "yes" >&6; }
11873     else
11874       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11876     fi
11877     ;;
11878   *)
11879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11881     ;;
11882   esac
11883 fi
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896   # Report which library types will actually be built
11897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11898 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11900 $as_echo "$can_build_shared" >&6; }
11901
11902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11903 $as_echo_n "checking whether to build shared libraries... " >&6; }
11904   test "$can_build_shared" = "no" && enable_shared=no
11905
11906   # On AIX, shared libraries and static libraries use the same namespace, and
11907   # are all built from PIC.
11908   case $host_os in
11909   aix3*)
11910     test "$enable_shared" = yes && enable_static=no
11911     if test -n "$RANLIB"; then
11912       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11913       postinstall_cmds='$RANLIB $lib'
11914     fi
11915     ;;
11916
11917   aix[4-9]*)
11918     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11919       test "$enable_shared" = yes && enable_static=no
11920     fi
11921     ;;
11922   esac
11923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11924 $as_echo "$enable_shared" >&6; }
11925
11926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11927 $as_echo_n "checking whether to build static libraries... " >&6; }
11928   # Make sure either enable_shared or enable_static is yes.
11929   test "$enable_shared" = yes || enable_static=yes
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11931 $as_echo "$enable_static" >&6; }
11932
11933
11934
11935
11936 fi
11937 ac_ext=c
11938 ac_cpp='$CPP $CPPFLAGS'
11939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11942
11943 CC="$lt_save_CC"
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957         ac_config_commands="$ac_config_commands libtool"
11958
11959
11960
11961
11962 # Only expand once:
11963
11964
11965
11966
11967
11968   gdc_save_DFLAGS=$GDCFLAGS
11969   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
11970
11971
11972 # Source file extension for D test sources.
11973 ac_ext=d
11974
11975 # Object file extension for compiled D test sources.
11976 objext=o
11977 objext_D=$objext
11978
11979 # Code to be used in simple compile tests
11980 lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }"
11981
11982 # Code to be used in simple link tests
11983 lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }'
11984
11985 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11986
11987
11988
11989
11990
11991
11992 # If no C compiler was specified, use CC.
11993 LTCC=${LTCC-"$CC"}
11994
11995 # If no C compiler flags were specified, use CFLAGS.
11996 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11997
11998 # Allow CC to be a program name with arguments.
11999 compiler=$CC
12000
12001
12002 # save warnings/boilerplate of simple test code
12003 ac_outfile=conftest.$ac_objext
12004 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12005 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12006 _lt_compiler_boilerplate=`cat conftest.err`
12007 $RM conftest*
12008
12009 ac_outfile=conftest.$ac_objext
12010 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12011 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12012 _lt_linker_boilerplate=`cat conftest.err`
12013 $RM -r conftest*
12014
12015
12016 # Allow CC to be a program name with arguments.
12017 lt_save_CC=$CC
12018 lt_save_CFLAGS=$CFLAGS
12019 lt_save_DFLAGS=$GDCFLAGS
12020 lt_save_GCC=$GCC
12021 GCC=yes
12022 CC=${GDC-"gdc"}
12023 # Need to specify location for object.d
12024 GDCFLAGS="-nophoboslib $GDCFLAGS"
12025 CFLAGS=$GDCFLAGS
12026 compiler=$CC
12027 compiler_D=$CC
12028 LD_D=$CC
12029 for cc_temp in $compiler""; do
12030   case $cc_temp in
12031     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12032     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12033     \-*) ;;
12034     *) break;;
12035   esac
12036 done
12037 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12038
12039
12040 # GDC did not exist at the time GCC didn't implicitly link libc in.
12041 archive_cmds_need_lc_D=no
12042
12043 old_archive_cmds_D=$old_archive_cmds
12044 reload_flag_D=$reload_flag
12045 reload_cmds_D=$reload_cmds
12046
12047 ## CAVEAT EMPTOR:
12048 ## There is no encapsulation within the following macros, do not change
12049 ## the running order or otherwise move them around unless you know exactly
12050 ## what you are doing...
12051 if test -n "$compiler"; then
12052
12053 lt_prog_compiler_no_builtin_flag_D=
12054
12055 if test "$GCC" = yes; then
12056   case $cc_basename in
12057   nvcc*)
12058     lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12059   *)
12060     lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12061   esac
12062
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12064 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12065 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12066   $as_echo_n "(cached) " >&6
12067 else
12068   lt_cv_prog_compiler_rtti_exceptions=no
12069    ac_outfile=conftest.$ac_objext
12070    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12071    lt_compiler_flag="-fno-rtti -fno-exceptions"
12072    # Insert the option either (1) after the last *FLAGS variable, or
12073    # (2) before a word containing "conftest.", or (3) at the end.
12074    # Note that $ac_compile itself does not contain backslashes and begins
12075    # with a dollar sign (not a hyphen), so the echo should work correctly.
12076    # The option is referenced via a variable to avoid confusing sed.
12077    lt_compile=`echo "$ac_compile" | $SED \
12078    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12079    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12080    -e 's:$: $lt_compiler_flag:'`
12081    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12082    (eval "$lt_compile" 2>conftest.err)
12083    ac_status=$?
12084    cat conftest.err >&5
12085    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086    if (exit $ac_status) && test -s "$ac_outfile"; then
12087      # The compiler can only warn and ignore the option if not recognized
12088      # So say no if there are warnings other than the usual output.
12089      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12090      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12091      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12092        lt_cv_prog_compiler_rtti_exceptions=yes
12093      fi
12094    fi
12095    $RM conftest*
12096
12097 fi
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12099 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12100
12101 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12102     lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12103 else
12104     :
12105 fi
12106
12107 fi
12108
12109
12110
12111   lt_prog_compiler_wl_D=
12112 lt_prog_compiler_pic_D=
12113 lt_prog_compiler_static_D=
12114
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12116 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12117
12118   if test "$GCC" = yes; then
12119     lt_prog_compiler_wl_D='-Wl,'
12120     lt_prog_compiler_static_D='-static'
12121
12122     case $host_os in
12123       aix*)
12124       # All AIX code is PIC.
12125       if test "$host_cpu" = ia64; then
12126         # AIX 5 now supports IA64 processor
12127         lt_prog_compiler_static_D='-Bstatic'
12128       fi
12129       lt_prog_compiler_pic_D='-fPIC'
12130       ;;
12131
12132     amigaos*)
12133       case $host_cpu in
12134       powerpc)
12135             # see comment about AmigaOS4 .so support
12136             lt_prog_compiler_pic_D='-fPIC'
12137         ;;
12138       m68k)
12139             # FIXME: we need at least 68020 code to build shared libraries, but
12140             # adding the `-m68020' flag to GCC prevents building anything better,
12141             # like `-m68040'.
12142             lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12143         ;;
12144       esac
12145       ;;
12146
12147     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12148       # PIC is the default for these OSes.
12149       ;;
12150
12151     mingw* | cygwin* | pw32* | os2* | cegcc*)
12152       # This hack is so that the source file can tell whether it is being
12153       # built for inclusion in a dll (and should export symbols for example).
12154       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12155       # (--disable-auto-import) libraries
12156       lt_prog_compiler_pic_D='-DDLL_EXPORT'
12157       ;;
12158
12159     darwin* | rhapsody*)
12160       # PIC is the default on this platform
12161       # Common symbols not allowed in MH_DYLIB files
12162       lt_prog_compiler_pic_D='-fno-common'
12163       ;;
12164
12165     haiku*)
12166       # PIC is the default for Haiku.
12167       # The "-static" flag exists, but is broken.
12168       lt_prog_compiler_static_D=
12169       ;;
12170
12171     hpux*)
12172       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12173       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12174       # sets the default TLS model and affects inlining.
12175       case $host_cpu in
12176       hppa*64*)
12177         # +Z the default
12178         ;;
12179       *)
12180         lt_prog_compiler_pic_D='-fPIC'
12181         ;;
12182       esac
12183       ;;
12184
12185     interix[3-9]*)
12186       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12187       # Instead, we relocate shared libraries at runtime.
12188       ;;
12189
12190     msdosdjgpp*)
12191       # Just because we use GCC doesn't mean we suddenly get shared libraries
12192       # on systems that don't support them.
12193       lt_prog_compiler_can_build_shared_D=no
12194       enable_shared=no
12195       ;;
12196
12197     *nto* | *qnx*)
12198       # QNX uses GNU C++, but need to define -shared option too, otherwise
12199       # it will coredump.
12200       lt_prog_compiler_pic_D='-fPIC -shared'
12201       ;;
12202
12203     sysv4*MP*)
12204       if test -d /usr/nec; then
12205         lt_prog_compiler_pic_D=-Kconform_pic
12206       fi
12207       ;;
12208
12209     *)
12210       lt_prog_compiler_pic_D='-fPIC'
12211       ;;
12212     esac
12213
12214     case $cc_basename in
12215     nvcc*) # Cuda Compiler Driver 2.2
12216       lt_prog_compiler_wl_D='-Xlinker '
12217       lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12218       ;;
12219     esac
12220   else
12221     # PORTME Check for flag to pass linker flags through the system compiler.
12222     case $host_os in
12223     aix*)
12224       lt_prog_compiler_wl_D='-Wl,'
12225       if test "$host_cpu" = ia64; then
12226         # AIX 5 now supports IA64 processor
12227         lt_prog_compiler_static_D='-Bstatic'
12228       else
12229         lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12230       fi
12231       ;;
12232
12233     mingw* | cygwin* | pw32* | os2* | cegcc*)
12234       # This hack is so that the source file can tell whether it is being
12235       # built for inclusion in a dll (and should export symbols for example).
12236       lt_prog_compiler_pic_D='-DDLL_EXPORT'
12237       ;;
12238
12239     hpux9* | hpux10* | hpux11*)
12240       lt_prog_compiler_wl_D='-Wl,'
12241       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12242       # not for PA HP-UX.
12243       case $host_cpu in
12244       hppa*64*|ia64*)
12245         # +Z the default
12246         ;;
12247       *)
12248         lt_prog_compiler_pic_D='+Z'
12249         ;;
12250       esac
12251       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12252       lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12253       ;;
12254
12255     irix5* | irix6* | nonstopux*)
12256       lt_prog_compiler_wl_D='-Wl,'
12257       # PIC (with -KPIC) is the default.
12258       lt_prog_compiler_static_D='-non_shared'
12259       ;;
12260
12261     linux* | k*bsd*-gnu | kopensolaris*-gnu)
12262       case $cc_basename in
12263       # old Intel for x86_64 which still supported -KPIC.
12264       ecc*)
12265         lt_prog_compiler_wl_D='-Wl,'
12266         lt_prog_compiler_pic_D='-KPIC'
12267         lt_prog_compiler_static_D='-static'
12268         ;;
12269       # icc used to be incompatible with GCC.
12270       # ICC 10 doesn't accept -KPIC any more.
12271       icc* | ifort*)
12272         lt_prog_compiler_wl_D='-Wl,'
12273         lt_prog_compiler_pic_D='-fPIC'
12274         lt_prog_compiler_static_D='-static'
12275         ;;
12276       # Lahey Fortran 8.1.
12277       lf95*)
12278         lt_prog_compiler_wl_D='-Wl,'
12279         lt_prog_compiler_pic_D='--shared'
12280         lt_prog_compiler_static_D='--static'
12281         ;;
12282       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12283         # Portland Group compilers (*not* the Pentium gcc compiler,
12284         # which looks to be a dead project)
12285         lt_prog_compiler_wl_D='-Wl,'
12286         lt_prog_compiler_pic_D='-fpic'
12287         lt_prog_compiler_static_D='-Bstatic'
12288         ;;
12289       ccc*)
12290         lt_prog_compiler_wl_D='-Wl,'
12291         # All Alpha code is PIC.
12292         lt_prog_compiler_static_D='-non_shared'
12293         ;;
12294       xl* | bgxl* | bgf* | mpixl*)
12295         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12296         lt_prog_compiler_wl_D='-Wl,'
12297         lt_prog_compiler_pic_D='-qpic'
12298         lt_prog_compiler_static_D='-qstaticlink'
12299         ;;
12300       *)
12301         case `$CC -V 2>&1 | sed 5q` in
12302         *Sun\ F* | *Sun*Fortran*)
12303           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12304           lt_prog_compiler_pic_D='-KPIC'
12305           lt_prog_compiler_static_D='-Bstatic'
12306           lt_prog_compiler_wl_D=''
12307           ;;
12308         *Sun\ C*)
12309           # Sun C 5.9
12310           lt_prog_compiler_pic_D='-KPIC'
12311           lt_prog_compiler_static_D='-Bstatic'
12312           lt_prog_compiler_wl_D='-Wl,'
12313           ;;
12314         esac
12315         ;;
12316       esac
12317       ;;
12318
12319     newsos6)
12320       lt_prog_compiler_pic_D='-KPIC'
12321       lt_prog_compiler_static_D='-Bstatic'
12322       ;;
12323
12324     *nto* | *qnx*)
12325       # QNX uses GNU C++, but need to define -shared option too, otherwise
12326       # it will coredump.
12327       lt_prog_compiler_pic_D='-fPIC -shared'
12328       ;;
12329
12330     osf3* | osf4* | osf5*)
12331       lt_prog_compiler_wl_D='-Wl,'
12332       # All OSF/1 code is PIC.
12333       lt_prog_compiler_static_D='-non_shared'
12334       ;;
12335
12336     rdos*)
12337       lt_prog_compiler_static_D='-non_shared'
12338       ;;
12339
12340     solaris*)
12341       lt_prog_compiler_pic_D='-KPIC'
12342       lt_prog_compiler_static_D='-Bstatic'
12343       case $cc_basename in
12344       f77* | f90* | f95*)
12345         lt_prog_compiler_wl_D='-Qoption ld ';;
12346       *)
12347         lt_prog_compiler_wl_D='-Wl,';;
12348       esac
12349       ;;
12350
12351     sunos4*)
12352       lt_prog_compiler_wl_D='-Qoption ld '
12353       lt_prog_compiler_pic_D='-PIC'
12354       lt_prog_compiler_static_D='-Bstatic'
12355       ;;
12356
12357     sysv4 | sysv4.2uw2* | sysv4.3*)
12358       lt_prog_compiler_wl_D='-Wl,'
12359       lt_prog_compiler_pic_D='-KPIC'
12360       lt_prog_compiler_static_D='-Bstatic'
12361       ;;
12362
12363     sysv4*MP*)
12364       if test -d /usr/nec ;then
12365         lt_prog_compiler_pic_D='-Kconform_pic'
12366         lt_prog_compiler_static_D='-Bstatic'
12367       fi
12368       ;;
12369
12370     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12371       lt_prog_compiler_wl_D='-Wl,'
12372       lt_prog_compiler_pic_D='-KPIC'
12373       lt_prog_compiler_static_D='-Bstatic'
12374       ;;
12375
12376     unicos*)
12377       lt_prog_compiler_wl_D='-Wl,'
12378       lt_prog_compiler_can_build_shared_D=no
12379       ;;
12380
12381     uts4*)
12382       lt_prog_compiler_pic_D='-pic'
12383       lt_prog_compiler_static_D='-Bstatic'
12384       ;;
12385
12386     *)
12387       lt_prog_compiler_can_build_shared_D=no
12388       ;;
12389     esac
12390   fi
12391
12392 case $host_os in
12393   # For platforms which do not support PIC, -DPIC is meaningless:
12394   *djgpp*)
12395     lt_prog_compiler_pic_D=
12396     ;;
12397   *)
12398     lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12399     ;;
12400 esac
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12402 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12403
12404
12405
12406 #
12407 # Check to make sure the PIC flag actually works.
12408 #
12409 if test -n "$lt_prog_compiler_pic_D"; then
12410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12411 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12412 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12413   $as_echo_n "(cached) " >&6
12414 else
12415   lt_cv_prog_compiler_pic_works_D=no
12416    ac_outfile=conftest.$ac_objext
12417    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12418    lt_compiler_flag="$lt_prog_compiler_pic_D"
12419    # Insert the option either (1) after the last *FLAGS variable, or
12420    # (2) before a word containing "conftest.", or (3) at the end.
12421    # Note that $ac_compile itself does not contain backslashes and begins
12422    # with a dollar sign (not a hyphen), so the echo should work correctly.
12423    # The option is referenced via a variable to avoid confusing sed.
12424    lt_compile=`echo "$ac_compile" | $SED \
12425    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12426    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12427    -e 's:$: $lt_compiler_flag:'`
12428    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12429    (eval "$lt_compile" 2>conftest.err)
12430    ac_status=$?
12431    cat conftest.err >&5
12432    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433    if (exit $ac_status) && test -s "$ac_outfile"; then
12434      # The compiler can only warn and ignore the option if not recognized
12435      # So say no if there are warnings other than the usual output.
12436      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12437      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12438      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12439        lt_cv_prog_compiler_pic_works_D=yes
12440      fi
12441    fi
12442    $RM conftest*
12443
12444 fi
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12446 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12447
12448 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12449     case $lt_prog_compiler_pic_D in
12450      "" | " "*) ;;
12451      *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12452      esac
12453 else
12454     lt_prog_compiler_pic_D=
12455      lt_prog_compiler_can_build_shared_D=no
12456 fi
12457
12458 fi
12459
12460
12461
12462 #
12463 # Check to make sure the static flag actually works.
12464 #
12465 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12467 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12468 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12469   $as_echo_n "(cached) " >&6
12470 else
12471   lt_cv_prog_compiler_static_works_D=no
12472    save_LDFLAGS="$LDFLAGS"
12473    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12474    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12475    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12476      # The linker can only warn and ignore the option if not recognized
12477      # So say no if there are warnings
12478      if test -s conftest.err; then
12479        # Append any errors to the config.log.
12480        cat conftest.err 1>&5
12481        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12482        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12483        if diff conftest.exp conftest.er2 >/dev/null; then
12484          lt_cv_prog_compiler_static_works_D=yes
12485        fi
12486      else
12487        lt_cv_prog_compiler_static_works_D=yes
12488      fi
12489    fi
12490    $RM -r conftest*
12491    LDFLAGS="$save_LDFLAGS"
12492
12493 fi
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12495 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12496
12497 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12498     :
12499 else
12500     lt_prog_compiler_static_D=
12501 fi
12502
12503
12504
12505
12506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12507 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12508 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12509   $as_echo_n "(cached) " >&6
12510 else
12511   lt_cv_prog_compiler_c_o_D=no
12512    $RM -r conftest 2>/dev/null
12513    mkdir conftest
12514    cd conftest
12515    mkdir out
12516    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12517
12518    lt_compiler_flag="-o out/conftest2.$ac_objext"
12519    # Insert the option either (1) after the last *FLAGS variable, or
12520    # (2) before a word containing "conftest.", or (3) at the end.
12521    # Note that $ac_compile itself does not contain backslashes and begins
12522    # with a dollar sign (not a hyphen), so the echo should work correctly.
12523    lt_compile=`echo "$ac_compile" | $SED \
12524    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12525    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12526    -e 's:$: $lt_compiler_flag:'`
12527    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12528    (eval "$lt_compile" 2>out/conftest.err)
12529    ac_status=$?
12530    cat out/conftest.err >&5
12531    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12533    then
12534      # The compiler can only warn and ignore the option if not recognized
12535      # So say no if there are warnings
12536      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12537      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12538      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12539        lt_cv_prog_compiler_c_o_D=yes
12540      fi
12541    fi
12542    chmod u+w . 2>&5
12543    $RM conftest*
12544    # SGI C++ compiler will create directory out/ii_files/ for
12545    # template instantiation
12546    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12547    $RM out/* && rmdir out
12548    cd ..
12549    $RM -r conftest
12550    $RM conftest*
12551
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12554 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12555
12556
12557
12558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12559 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12560 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12561   $as_echo_n "(cached) " >&6
12562 else
12563   lt_cv_prog_compiler_c_o_D=no
12564    $RM -r conftest 2>/dev/null
12565    mkdir conftest
12566    cd conftest
12567    mkdir out
12568    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12569
12570    lt_compiler_flag="-o out/conftest2.$ac_objext"
12571    # Insert the option either (1) after the last *FLAGS variable, or
12572    # (2) before a word containing "conftest.", or (3) at the end.
12573    # Note that $ac_compile itself does not contain backslashes and begins
12574    # with a dollar sign (not a hyphen), so the echo should work correctly.
12575    lt_compile=`echo "$ac_compile" | $SED \
12576    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12577    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12578    -e 's:$: $lt_compiler_flag:'`
12579    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12580    (eval "$lt_compile" 2>out/conftest.err)
12581    ac_status=$?
12582    cat out/conftest.err >&5
12583    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12585    then
12586      # The compiler can only warn and ignore the option if not recognized
12587      # So say no if there are warnings
12588      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12589      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12590      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12591        lt_cv_prog_compiler_c_o_D=yes
12592      fi
12593    fi
12594    chmod u+w . 2>&5
12595    $RM conftest*
12596    # SGI C++ compiler will create directory out/ii_files/ for
12597    # template instantiation
12598    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12599    $RM out/* && rmdir out
12600    cd ..
12601    $RM -r conftest
12602    $RM conftest*
12603
12604 fi
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12606 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12607
12608
12609
12610
12611 hard_links="nottested"
12612 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12613   # do not overwrite the value of need_locks provided by the user
12614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12615 $as_echo_n "checking if we can lock with hard links... " >&6; }
12616   hard_links=yes
12617   $RM conftest*
12618   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12619   touch conftest.a
12620   ln conftest.a conftest.b 2>&5 || hard_links=no
12621   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12623 $as_echo "$hard_links" >&6; }
12624   if test "$hard_links" = no; then
12625     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12626 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12627     need_locks=warn
12628   fi
12629 else
12630   need_locks=no
12631 fi
12632
12633
12634
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12636 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12637
12638   runpath_var=
12639   allow_undefined_flag_D=
12640   always_export_symbols_D=no
12641   archive_cmds_D=
12642   archive_expsym_cmds_D=
12643   compiler_needs_object_D=no
12644   enable_shared_with_static_runtimes_D=no
12645   export_dynamic_flag_spec_D=
12646   export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12647   hardcode_automatic_D=no
12648   hardcode_direct_D=no
12649   hardcode_direct_absolute_D=no
12650   hardcode_libdir_flag_spec_D=
12651   hardcode_libdir_flag_spec_ld_D=
12652   hardcode_libdir_separator_D=
12653   hardcode_minus_L_D=no
12654   hardcode_shlibpath_var_D=unsupported
12655   inherit_rpath_D=no
12656   link_all_deplibs_D=unknown
12657   module_cmds_D=
12658   module_expsym_cmds_D=
12659   old_archive_from_new_cmds_D=
12660   old_archive_from_expsyms_cmds_D=
12661   thread_safe_flag_spec_D=
12662   whole_archive_flag_spec_D=
12663   # include_expsyms should be a list of space-separated symbols to be *always*
12664   # included in the symbol list
12665   include_expsyms_D=
12666   # exclude_expsyms can be an extended regexp of symbols to exclude
12667   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12668   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12669   # as well as any symbol that contains `d'.
12670   exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12671   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12672   # platforms (ab)use it in PIC code, but their linkers get confused if
12673   # the symbol is explicitly referenced.  Since portable code cannot
12674   # rely on this symbol name, it's probably fine to never include it in
12675   # preloaded symbol tables.
12676   # Exclude shared library initialization/finalization symbols.
12677   extract_expsyms_cmds=
12678
12679   case $host_os in
12680   cygwin* | mingw* | pw32* | cegcc*)
12681     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12682     # When not using gcc, we currently assume that we are using
12683     # Microsoft Visual C++.
12684     if test "$GCC" != yes; then
12685       with_gnu_ld=no
12686     fi
12687     ;;
12688   interix*)
12689     # we just hope/assume this is gcc and not c89 (= MSVC++)
12690     with_gnu_ld=yes
12691     ;;
12692   openbsd*)
12693     with_gnu_ld=no
12694     ;;
12695   esac
12696
12697   ld_shlibs_D=yes
12698
12699   # On some targets, GNU ld is compatible enough with the native linker
12700   # that we're better off using the native interface for both.
12701   lt_use_gnu_ld_interface=no
12702   if test "$with_gnu_ld" = yes; then
12703     case $host_os in
12704       aix*)
12705         # The AIX port of GNU ld has always aspired to compatibility
12706         # with the native linker.  However, as the warning in the GNU ld
12707         # block says, versions before 2.19.5* couldn't really create working
12708         # shared libraries, regardless of the interface used.
12709         case `$LD -v 2>&1` in
12710           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12711           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12712           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12713           *)
12714             lt_use_gnu_ld_interface=yes
12715             ;;
12716         esac
12717         ;;
12718       *)
12719         lt_use_gnu_ld_interface=yes
12720         ;;
12721     esac
12722   fi
12723
12724   if test "$lt_use_gnu_ld_interface" = yes; then
12725     # If archive_cmds runs LD, not CC, wlarc should be empty
12726     wlarc='${wl}'
12727
12728     # Set some defaults for GNU ld with shared library support. These
12729     # are reset later if shared libraries are not supported. Putting them
12730     # here allows them to be overridden if necessary.
12731     runpath_var=LD_RUN_PATH
12732     hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12733     export_dynamic_flag_spec_D='${wl}--export-dynamic'
12734     # ancient GNU ld didn't support --whole-archive et. al.
12735     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12736       whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12737     else
12738       whole_archive_flag_spec_D=
12739     fi
12740     supports_anon_versioning=no
12741     case `$LD -v 2>&1` in
12742       *GNU\ gold*) supports_anon_versioning=yes ;;
12743       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12744       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12745       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12746       *\ 2.11.*) ;; # other 2.11 versions
12747       *) supports_anon_versioning=yes ;;
12748     esac
12749
12750     # See if GNU ld supports shared libraries.
12751     case $host_os in
12752     aix[3-9]*)
12753       # On AIX/PPC, the GNU linker is very broken
12754       if test "$host_cpu" != ia64; then
12755         ld_shlibs_D=no
12756         cat <<_LT_EOF 1>&2
12757
12758 *** Warning: the GNU linker, at least up to release 2.19, is reported
12759 *** to be unable to reliably create shared libraries on AIX.
12760 *** Therefore, libtool is disabling shared libraries support.  If you
12761 *** really care for shared libraries, you may want to install binutils
12762 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12763 *** You will then need to restart the configuration process.
12764
12765 _LT_EOF
12766       fi
12767       ;;
12768
12769     amigaos*)
12770       case $host_cpu in
12771       powerpc)
12772             # see comment about AmigaOS4 .so support
12773             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12774             archive_expsym_cmds_D=''
12775         ;;
12776       m68k)
12777             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)'
12778             hardcode_libdir_flag_spec_D='-L$libdir'
12779             hardcode_minus_L_D=yes
12780         ;;
12781       esac
12782       ;;
12783
12784     beos*)
12785       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12786         allow_undefined_flag_D=unsupported
12787         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12788         # support --undefined.  This deserves some investigation.  FIXME
12789         archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12790       else
12791         ld_shlibs_D=no
12792       fi
12793       ;;
12794
12795     cygwin* | mingw* | pw32* | cegcc*)
12796       # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12797       # as there is no search path for DLLs.
12798       hardcode_libdir_flag_spec_D='-L$libdir'
12799       export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12800       allow_undefined_flag_D=unsupported
12801       always_export_symbols_D=no
12802       enable_shared_with_static_runtimes_D=yes
12803       export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12804
12805       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12806         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12807         # If the export-symbols file already is a .def file (1st line
12808         # is EXPORTS), use it as is; otherwise, prepend...
12809         archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12810           cp $export_symbols $output_objdir/$soname.def;
12811         else
12812           echo EXPORTS > $output_objdir/$soname.def;
12813           cat $export_symbols >> $output_objdir/$soname.def;
12814         fi~
12815         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12816       else
12817         ld_shlibs_D=no
12818       fi
12819       ;;
12820
12821     haiku*)
12822       archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823       link_all_deplibs_D=yes
12824       ;;
12825
12826     interix[3-9]*)
12827       hardcode_direct_D=no
12828       hardcode_shlibpath_var_D=no
12829       hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12830       export_dynamic_flag_spec_D='${wl}-E'
12831       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12832       # Instead, shared libraries are loaded at an image base (0x10000000 by
12833       # default) and relocated if they conflict, which is a slow very memory
12834       # consuming and fragmenting process.  To avoid this, we pick a random,
12835       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12836       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12837       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'
12838       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'
12839       ;;
12840
12841     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12842       tmp_diet=no
12843       if test "$host_os" = linux-dietlibc; then
12844         case $cc_basename in
12845           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12846         esac
12847       fi
12848       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12849          && test "$tmp_diet" = no
12850       then
12851         tmp_addflag=' $pic_flag'
12852         tmp_sharedflag='-shared'
12853         case $cc_basename,$host_cpu in
12854         pgcc*)                          # Portland Group C compiler
12855           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'
12856           tmp_addflag=' $pic_flag'
12857           ;;
12858         pgf77* | pgf90* | pgf95* | pgfortran*)
12859                                         # Portland Group f77 and f90 compilers
12860           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'
12861           tmp_addflag=' $pic_flag -Mnomain' ;;
12862         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12863           tmp_addflag=' -i_dynamic' ;;
12864         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12865           tmp_addflag=' -i_dynamic -nofor_main' ;;
12866         ifc* | ifort*)                  # Intel Fortran compiler
12867           tmp_addflag=' -nofor_main' ;;
12868         lf95*)                          # Lahey Fortran 8.1
12869           whole_archive_flag_spec_D=
12870           tmp_sharedflag='--shared' ;;
12871         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12872           tmp_sharedflag='-qmkshrobj'
12873           tmp_addflag= ;;
12874         nvcc*)  # Cuda Compiler Driver 2.2
12875           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'
12876           compiler_needs_object_D=yes
12877           ;;
12878         esac
12879         case `$CC -V 2>&1 | sed 5q` in
12880         *Sun\ C*)                       # Sun C 5.9
12881           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'
12882           compiler_needs_object_D=yes
12883           tmp_sharedflag='-G' ;;
12884         *Sun\ F*)                       # Sun Fortran 8.3
12885           tmp_sharedflag='-G' ;;
12886         esac
12887         archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12888
12889         if test "x$supports_anon_versioning" = xyes; then
12890           archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12891             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12892             echo "local: *; };" >> $output_objdir/$libname.ver~
12893             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12894         fi
12895
12896         case $cc_basename in
12897         xlf* | bgf* | bgxlf* | mpixlf*)
12898           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12899           whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12900           hardcode_libdir_flag_spec_D=
12901           hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12902           archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12903           if test "x$supports_anon_versioning" = xyes; then
12904             archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12905               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12906               echo "local: *; };" >> $output_objdir/$libname.ver~
12907               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12908           fi
12909           ;;
12910         esac
12911       else
12912         ld_shlibs_D=no
12913       fi
12914       ;;
12915
12916     netbsd*)
12917       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12918         archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12919         wlarc=
12920       else
12921         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12922         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12923       fi
12924       ;;
12925
12926     solaris*)
12927       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12928         ld_shlibs_D=no
12929         cat <<_LT_EOF 1>&2
12930
12931 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12932 *** create shared libraries on Solaris systems.  Therefore, libtool
12933 *** is disabling shared libraries support.  We urge you to upgrade GNU
12934 *** binutils to release 2.9.1 or newer.  Another option is to modify
12935 *** your PATH or compiler configuration so that the native linker is
12936 *** used, and then restart.
12937
12938 _LT_EOF
12939       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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       else
12943         ld_shlibs_D=no
12944       fi
12945       ;;
12946
12947     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12948       case `$LD -v 2>&1` in
12949         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12950         ld_shlibs_D=no
12951         cat <<_LT_EOF 1>&2
12952
12953 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12954 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12955 *** is disabling shared libraries support.  We urge you to upgrade GNU
12956 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12957 *** your PATH or compiler configuration so that the native linker is
12958 *** used, and then restart.
12959
12960 _LT_EOF
12961         ;;
12962         *)
12963           # For security reasons, it is highly recommended that you always
12964           # use absolute paths for naming shared libraries, and exclude the
12965           # DT_RUNPATH tag from executables and libraries.  But doing so
12966           # requires that you compile everything twice, which is a pain.
12967           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12968             hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12969             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12970             archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12971           else
12972             ld_shlibs_D=no
12973           fi
12974         ;;
12975       esac
12976       ;;
12977
12978     sunos4*)
12979       archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12980       wlarc=
12981       hardcode_direct_D=yes
12982       hardcode_shlibpath_var_D=no
12983       ;;
12984
12985     *)
12986       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12987         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12988         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12989       else
12990         ld_shlibs_D=no
12991       fi
12992       ;;
12993     esac
12994
12995     if test "$ld_shlibs_D" = no; then
12996       runpath_var=
12997       hardcode_libdir_flag_spec_D=
12998       export_dynamic_flag_spec_D=
12999       whole_archive_flag_spec_D=
13000     fi
13001   else
13002     # PORTME fill in a description of your system's linker (not GNU ld)
13003     case $host_os in
13004     aix3*)
13005       allow_undefined_flag_D=unsupported
13006       always_export_symbols_D=yes
13007       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'
13008       # Note: this linker hardcodes the directories in LIBPATH if there
13009       # are no directories specified by -L.
13010       hardcode_minus_L_D=yes
13011       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13012         # Neither direct hardcoding nor static linking is supported with a
13013         # broken collect2.
13014         hardcode_direct_D=unsupported
13015       fi
13016       ;;
13017
13018     aix[4-9]*)
13019       if test "$host_cpu" = ia64; then
13020         # On IA64, the linker does run time linking by default, so we don't
13021         # have to do anything special.
13022         aix_use_runtimelinking=no
13023         exp_sym_flag='-Bexport'
13024         no_entry_flag=""
13025       else
13026         # If we're using GNU nm, then we don't want the "-C" option.
13027         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13028         # Also, AIX nm treats weak defined symbols like other global
13029         # defined symbols, whereas GNU nm marks them as "W".
13030         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13031           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'
13032         else
13033           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'
13034         fi
13035         aix_use_runtimelinking=no
13036
13037         # Test if we are trying to use run time linking or normal
13038         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13039         # need to do runtime linking.
13040         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13041           for ld_flag in $LDFLAGS; do
13042           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13043             aix_use_runtimelinking=yes
13044             break
13045           fi
13046           done
13047           ;;
13048         esac
13049
13050         exp_sym_flag='-bexport'
13051         no_entry_flag='-bnoentry'
13052       fi
13053
13054       # When large executables or shared objects are built, AIX ld can
13055       # have problems creating the table of contents.  If linking a library
13056       # or program results in "error TOC overflow" add -mminimal-toc to
13057       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13058       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13059
13060       archive_cmds_D=''
13061       hardcode_direct_D=yes
13062       hardcode_direct_absolute_D=yes
13063       hardcode_libdir_separator_D=':'
13064       link_all_deplibs_D=yes
13065       file_list_spec_D='${wl}-f,'
13066
13067       if test "$GCC" = yes; then
13068         case $host_os in aix4.[012]|aix4.[012].*)
13069         # We only want to do this on AIX 4.2 and lower, the check
13070         # below for broken collect2 doesn't work under 4.3+
13071           collect2name=`${CC} -print-prog-name=collect2`
13072           if test -f "$collect2name" &&
13073            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13074           then
13075           # We have reworked collect2
13076           :
13077           else
13078           # We have old collect2
13079           hardcode_direct_D=unsupported
13080           # It fails to find uninstalled libraries when the uninstalled
13081           # path is not listed in the libpath.  Setting hardcode_minus_L
13082           # to unsupported forces relinking
13083           hardcode_minus_L_D=yes
13084           hardcode_libdir_flag_spec_D='-L$libdir'
13085           hardcode_libdir_separator_D=
13086           fi
13087           ;;
13088         esac
13089         shared_flag='-shared'
13090         if test "$aix_use_runtimelinking" = yes; then
13091           shared_flag="$shared_flag "'${wl}-G'
13092         fi
13093       else
13094         # not using gcc
13095         if test "$host_cpu" = ia64; then
13096         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13097         # chokes on -Wl,-G. The following line is correct:
13098           shared_flag='-G'
13099         else
13100           if test "$aix_use_runtimelinking" = yes; then
13101             shared_flag='${wl}-G'
13102           else
13103             shared_flag='${wl}-bM:SRE'
13104           fi
13105         fi
13106       fi
13107
13108       export_dynamic_flag_spec_D='${wl}-bexpall'
13109       # It seems that -bexpall does not export symbols beginning with
13110       # underscore (_), so it is better to generate a list of symbols to export.
13111       always_export_symbols_D=yes
13112       if test "$aix_use_runtimelinking" = yes; then
13113         # Warning - without using the other runtime loading flags (-brtl),
13114         # -berok will link without error, but may produce a broken library.
13115         allow_undefined_flag_D='-berok'
13116         # Determine the default libpath from the value encoded in an
13117         # empty executable.
13118         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h.  */
13120
13121 int
13122 main ()
13123 {
13124
13125   ;
13126   return 0;
13127 }
13128 _ACEOF
13129 if ac_fn_c_try_link "$LINENO"; then :
13130
13131 lt_aix_libpath_sed='
13132     /Import File Strings/,/^$/ {
13133         /^0/ {
13134             s/^0  *\(.*\)$/\1/
13135             p
13136         }
13137     }'
13138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13139 # Check for a 64-bit object if we didn't find anything.
13140 if test -z "$aix_libpath"; then
13141   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13142 fi
13143 fi
13144 rm -f core conftest.err conftest.$ac_objext \
13145     conftest$ac_exeext conftest.$ac_ext
13146 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13147
13148         hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13149         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"
13150       else
13151         if test "$host_cpu" = ia64; then
13152           hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13153           allow_undefined_flag_D="-z nodefs"
13154           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"
13155         else
13156          # Determine the default libpath from the value encoded in an
13157          # empty executable.
13158          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h.  */
13160
13161 int
13162 main ()
13163 {
13164
13165   ;
13166   return 0;
13167 }
13168 _ACEOF
13169 if ac_fn_c_try_link "$LINENO"; then :
13170
13171 lt_aix_libpath_sed='
13172     /Import File Strings/,/^$/ {
13173         /^0/ {
13174             s/^0  *\(.*\)$/\1/
13175             p
13176         }
13177     }'
13178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13179 # Check for a 64-bit object if we didn't find anything.
13180 if test -z "$aix_libpath"; then
13181   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13182 fi
13183 fi
13184 rm -f core conftest.err conftest.$ac_objext \
13185     conftest$ac_exeext conftest.$ac_ext
13186 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13187
13188          hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13189           # Warning - without using the other run time loading flags,
13190           # -berok will link without error, but may produce a broken library.
13191           no_undefined_flag_D=' ${wl}-bernotok'
13192           allow_undefined_flag_D=' ${wl}-berok'
13193           if test "$with_gnu_ld" = yes; then
13194             # We only use this code for GNU lds that support --whole-archive.
13195             whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13196           else
13197             # Exported symbols can be pulled into shared objects from archives
13198             whole_archive_flag_spec_D='$convenience'
13199           fi
13200           archive_cmds_need_lc_D=yes
13201           # This is similar to how AIX traditionally builds its shared libraries.
13202           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'
13203         fi
13204       fi
13205       ;;
13206
13207     amigaos*)
13208       case $host_cpu in
13209       powerpc)
13210             # see comment about AmigaOS4 .so support
13211             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13212             archive_expsym_cmds_D=''
13213         ;;
13214       m68k)
13215             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)'
13216             hardcode_libdir_flag_spec_D='-L$libdir'
13217             hardcode_minus_L_D=yes
13218         ;;
13219       esac
13220       ;;
13221
13222     bsdi[45]*)
13223       export_dynamic_flag_spec_D=-rdynamic
13224       ;;
13225
13226     cygwin* | mingw* | pw32* | cegcc*)
13227       # When not using gcc, we currently assume that we are using
13228       # Microsoft Visual C++.
13229       # hardcode_libdir_flag_spec is actually meaningless, as there is
13230       # no search path for DLLs.
13231       hardcode_libdir_flag_spec_D=' '
13232       allow_undefined_flag_D=unsupported
13233       # Tell ltmain to make .lib files, not .a files.
13234       libext=lib
13235       # Tell ltmain to make .dll files, not .so files.
13236       shrext_cmds=".dll"
13237       # FIXME: Setting linknames here is a bad hack.
13238       archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13239       # The linker will automatically build a .lib file if we build a DLL.
13240       old_archive_from_new_cmds_D='true'
13241       # FIXME: Should let the user specify the lib program.
13242       old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13243       fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13244       enable_shared_with_static_runtimes_D=yes
13245       ;;
13246
13247     darwin* | rhapsody*)
13248
13249
13250   archive_cmds_need_lc_D=no
13251   hardcode_direct_D=no
13252   hardcode_automatic_D=yes
13253   hardcode_shlibpath_var_D=unsupported
13254   if test "$lt_cv_ld_force_load" = "yes"; then
13255     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\"`'
13256   else
13257     whole_archive_flag_spec_D=''
13258   fi
13259   link_all_deplibs_D=yes
13260   allow_undefined_flag_D="$_lt_dar_allow_undefined"
13261   case $cc_basename in
13262      ifort*) _lt_dar_can_shared=yes ;;
13263      *) _lt_dar_can_shared=$GCC ;;
13264   esac
13265   if test "$_lt_dar_can_shared" = "yes"; then
13266     output_verbose_link_cmd=func_echo_all
13267     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}"
13268     module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13269     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}"
13270     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}"
13271
13272   else
13273   ld_shlibs_D=no
13274   fi
13275
13276       ;;
13277
13278     dgux*)
13279       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13280       hardcode_libdir_flag_spec_D='-L$libdir'
13281       hardcode_shlibpath_var_D=no
13282       ;;
13283
13284     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13285     # support.  Future versions do this automatically, but an explicit c++rt0.o
13286     # does not break anything, and helps significantly (at the cost of a little
13287     # extra space).
13288     freebsd2.2*)
13289       archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13290       hardcode_libdir_flag_spec_D='-R$libdir'
13291       hardcode_direct_D=yes
13292       hardcode_shlibpath_var_D=no
13293       ;;
13294
13295     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13296     freebsd2.*)
13297       archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13298       hardcode_direct_D=yes
13299       hardcode_minus_L_D=yes
13300       hardcode_shlibpath_var_D=no
13301       ;;
13302
13303     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13304     freebsd* | dragonfly*)
13305       archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13306       hardcode_libdir_flag_spec_D='-R$libdir'
13307       hardcode_direct_D=yes
13308       hardcode_shlibpath_var_D=no
13309       ;;
13310
13311     hpux9*)
13312       if test "$GCC" = yes; then
13313         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'
13314       else
13315         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'
13316       fi
13317       hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13318       hardcode_libdir_separator_D=:
13319       hardcode_direct_D=yes
13320
13321       # hardcode_minus_L: Not really in the search PATH,
13322       # but as the default location of the library.
13323       hardcode_minus_L_D=yes
13324       export_dynamic_flag_spec_D='${wl}-E'
13325       ;;
13326
13327     hpux10*)
13328       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13329         archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13330       else
13331         archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13332       fi
13333       if test "$with_gnu_ld" = no; then
13334         hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13335         hardcode_libdir_flag_spec_ld_D='+b $libdir'
13336         hardcode_libdir_separator_D=:
13337         hardcode_direct_D=yes
13338         hardcode_direct_absolute_D=yes
13339         export_dynamic_flag_spec_D='${wl}-E'
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       fi
13344       ;;
13345
13346     hpux11*)
13347       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13348         case $host_cpu in
13349         hppa*64*)
13350           archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13351           ;;
13352         ia64*)
13353           archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13354           ;;
13355         *)
13356           archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13357           ;;
13358         esac
13359       else
13360         case $host_cpu in
13361         hppa*64*)
13362           archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13363           ;;
13364         ia64*)
13365           archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13366           ;;
13367         *)
13368         archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13369           ;;
13370         esac
13371       fi
13372       if test "$with_gnu_ld" = no; then
13373         hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13374         hardcode_libdir_separator_D=:
13375
13376         case $host_cpu in
13377         hppa*64*|ia64*)
13378           hardcode_direct_D=no
13379           hardcode_shlibpath_var_D=no
13380           ;;
13381         *)
13382           hardcode_direct_D=yes
13383           hardcode_direct_absolute_D=yes
13384           export_dynamic_flag_spec_D='${wl}-E'
13385
13386           # hardcode_minus_L: Not really in the search PATH,
13387           # but as the default location of the library.
13388           hardcode_minus_L_D=yes
13389           ;;
13390         esac
13391       fi
13392       ;;
13393
13394     irix5* | irix6* | nonstopux*)
13395       if test "$GCC" = yes; then
13396         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'
13397         # Try to use the -exported_symbol ld option, if it does not
13398         # work, assume that -exports_file does not work either and
13399         # implicitly export all symbols.
13400         save_LDFLAGS="$LDFLAGS"
13401         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13402         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h.  */
13404 int foo(void) {}
13405 _ACEOF
13406 if ac_fn_c_try_link "$LINENO"; then :
13407   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'
13408
13409 fi
13410 rm -f core conftest.err conftest.$ac_objext \
13411     conftest$ac_exeext conftest.$ac_ext
13412         LDFLAGS="$save_LDFLAGS"
13413       else
13414         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'
13415         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'
13416       fi
13417       archive_cmds_need_lc_D='no'
13418       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13419       hardcode_libdir_separator_D=:
13420       inherit_rpath_D=yes
13421       link_all_deplibs_D=yes
13422       ;;
13423
13424     netbsd*)
13425       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13426         archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13427       else
13428         archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13429       fi
13430       hardcode_libdir_flag_spec_D='-R$libdir'
13431       hardcode_direct_D=yes
13432       hardcode_shlibpath_var_D=no
13433       ;;
13434
13435     newsos6)
13436       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13437       hardcode_direct_D=yes
13438       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13439       hardcode_libdir_separator_D=:
13440       hardcode_shlibpath_var_D=no
13441       ;;
13442
13443     *nto* | *qnx*)
13444       ;;
13445
13446     openbsd*)
13447       if test -f /usr/libexec/ld.so; then
13448         hardcode_direct_D=yes
13449         hardcode_shlibpath_var_D=no
13450         hardcode_direct_absolute_D=yes
13451         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13452           archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13453           archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13454           hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13455           export_dynamic_flag_spec_D='${wl}-E'
13456         else
13457           case $host_os in
13458            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13459              archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13460              hardcode_libdir_flag_spec_D='-R$libdir'
13461              ;;
13462            *)
13463              archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13464              hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13465              ;;
13466           esac
13467         fi
13468       else
13469         ld_shlibs_D=no
13470       fi
13471       ;;
13472
13473     os2*)
13474       hardcode_libdir_flag_spec_D='-L$libdir'
13475       hardcode_minus_L_D=yes
13476       allow_undefined_flag_D=unsupported
13477       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'
13478       old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13479       ;;
13480
13481     osf3*)
13482       if test "$GCC" = yes; then
13483         allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13484         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'
13485       else
13486         allow_undefined_flag_D=' -expect_unresolved \*'
13487         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'
13488       fi
13489       archive_cmds_need_lc_D='no'
13490       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13491       hardcode_libdir_separator_D=:
13492       ;;
13493
13494     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13495       if test "$GCC" = yes; then
13496         allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13497         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'
13498         hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13499       else
13500         allow_undefined_flag_D=' -expect_unresolved \*'
13501         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'
13502         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~
13503         $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'
13504
13505         # Both c and cxx compiler support -rpath directly
13506         hardcode_libdir_flag_spec_D='-rpath $libdir'
13507       fi
13508       archive_cmds_need_lc_D='no'
13509       hardcode_libdir_separator_D=:
13510       ;;
13511
13512     solaris*)
13513       no_undefined_flag_D=' -z defs'
13514       if test "$GCC" = yes; then
13515         wlarc='${wl}'
13516         archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13517         archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13518           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13519       else
13520         case `$CC -V 2>&1` in
13521         *"Compilers 5.0"*)
13522           wlarc=''
13523           archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13524           archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13525           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13526           ;;
13527         *)
13528           wlarc='${wl}'
13529           archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13530           archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13531           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13532           ;;
13533         esac
13534       fi
13535       hardcode_libdir_flag_spec_D='-R$libdir'
13536       hardcode_shlibpath_var_D=no
13537       case $host_os in
13538       solaris2.[0-5] | solaris2.[0-5].*) ;;
13539       *)
13540         # The compiler driver will combine and reorder linker options,
13541         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13542         # but is careful enough not to reorder.
13543         # Supported since Solaris 2.6 (maybe 2.5.1?)
13544         if test "$GCC" = yes; then
13545           whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13546         else
13547           whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13548         fi
13549         ;;
13550       esac
13551       link_all_deplibs_D=yes
13552       ;;
13553
13554     sunos4*)
13555       if test "x$host_vendor" = xsequent; then
13556         # Use $CC to link under sequent, because it throws in some extra .o
13557         # files that make .init and .fini sections work.
13558         archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13559       else
13560         archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13561       fi
13562       hardcode_libdir_flag_spec_D='-L$libdir'
13563       hardcode_direct_D=yes
13564       hardcode_minus_L_D=yes
13565       hardcode_shlibpath_var_D=no
13566       ;;
13567
13568     sysv4)
13569       case $host_vendor in
13570         sni)
13571           archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13572           hardcode_direct_D=yes # is this really true???
13573         ;;
13574         siemens)
13575           ## LD is ld it makes a PLAMLIB
13576           ## CC just makes a GrossModule.
13577           archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13578           reload_cmds_D='$CC -r -o $output$reload_objs'
13579           hardcode_direct_D=no
13580         ;;
13581         motorola)
13582           archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583           hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13584         ;;
13585       esac
13586       runpath_var='LD_RUN_PATH'
13587       hardcode_shlibpath_var_D=no
13588       ;;
13589
13590     sysv4.3*)
13591       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13592       hardcode_shlibpath_var_D=no
13593       export_dynamic_flag_spec_D='-Bexport'
13594       ;;
13595
13596     sysv4*MP*)
13597       if test -d /usr/nec; then
13598         archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13599         hardcode_shlibpath_var_D=no
13600         runpath_var=LD_RUN_PATH
13601         hardcode_runpath_var=yes
13602         ld_shlibs_D=yes
13603       fi
13604       ;;
13605
13606     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13607       no_undefined_flag_D='${wl}-z,text'
13608       archive_cmds_need_lc_D=no
13609       hardcode_shlibpath_var_D=no
13610       runpath_var='LD_RUN_PATH'
13611
13612       if test "$GCC" = yes; then
13613         archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13614         archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13615       else
13616         archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13617         archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13618       fi
13619       ;;
13620
13621     sysv5* | sco3.2v5* | sco5v6*)
13622       # Note: We can NOT use -z defs as we might desire, because we do not
13623       # link with -lc, and that would cause any symbols used from libc to
13624       # always be unresolved, which means just about no library would
13625       # ever link correctly.  If we're not using GNU ld we use -z text
13626       # though, which does catch some bad symbols but isn't as heavy-handed
13627       # as -z defs.
13628       no_undefined_flag_D='${wl}-z,text'
13629       allow_undefined_flag_D='${wl}-z,nodefs'
13630       archive_cmds_need_lc_D=no
13631       hardcode_shlibpath_var_D=no
13632       hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13633       hardcode_libdir_separator_D=':'
13634       link_all_deplibs_D=yes
13635       export_dynamic_flag_spec_D='${wl}-Bexport'
13636       runpath_var='LD_RUN_PATH'
13637
13638       if test "$GCC" = yes; then
13639         archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13640         archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13641       else
13642         archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643         archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644       fi
13645       ;;
13646
13647     uts4*)
13648       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13649       hardcode_libdir_flag_spec_D='-L$libdir'
13650       hardcode_shlibpath_var_D=no
13651       ;;
13652
13653     *)
13654       ld_shlibs_D=no
13655       ;;
13656     esac
13657
13658     if test x$host_vendor = xsni; then
13659       case $host in
13660       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13661         export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13662         ;;
13663       esac
13664     fi
13665   fi
13666
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13668 $as_echo "$ld_shlibs_D" >&6; }
13669 test "$ld_shlibs_D" = no && can_build_shared=no
13670
13671 with_gnu_ld_D=$with_gnu_ld
13672
13673
13674
13675
13676
13677
13678 #
13679 # Do we need to explicitly link libc?
13680 #
13681 case "x$archive_cmds_need_lc_D" in
13682 x|xyes)
13683   # Assume -lc should be added
13684   archive_cmds_need_lc_D=yes
13685
13686   if test "$enable_shared" = yes && test "$GCC" = yes; then
13687     case $archive_cmds_D in
13688     *'~'*)
13689       # FIXME: we may have to deal with multi-command sequences.
13690       ;;
13691     '$CC '*)
13692       # Test whether the compiler implicitly links with -lc since on some
13693       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13694       # to ld, don't add -lc before -lgcc.
13695       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13696 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13697 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13698   $as_echo_n "(cached) " >&6
13699 else
13700   $RM conftest*
13701         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13702
13703         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13704   (eval $ac_compile) 2>&5
13705   ac_status=$?
13706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13707   test $ac_status = 0; } 2>conftest.err; then
13708           soname=conftest
13709           lib=conftest
13710           libobjs=conftest.$ac_objext
13711           deplibs=
13712           wl=$lt_prog_compiler_wl_D
13713           pic_flag=$lt_prog_compiler_pic_D
13714           compiler_flags=-v
13715           linker_flags=-v
13716           verstring=
13717           output_objdir=.
13718           libname=conftest
13719           lt_save_allow_undefined_flag=$allow_undefined_flag_D
13720           allow_undefined_flag_D=
13721           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13722   (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13723   ac_status=$?
13724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13725   test $ac_status = 0; }
13726           then
13727             lt_cv_archive_cmds_need_lc_D=no
13728           else
13729             lt_cv_archive_cmds_need_lc_D=yes
13730           fi
13731           allow_undefined_flag_D=$lt_save_allow_undefined_flag
13732         else
13733           cat conftest.err 1>&5
13734         fi
13735         $RM conftest*
13736
13737 fi
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13739 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13740       archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13741       ;;
13742     esac
13743   fi
13744   ;;
13745 esac
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13811 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13812 hardcode_action_D=
13813 if test -n "$hardcode_libdir_flag_spec_D" ||
13814    test -n "$runpath_var_D" ||
13815    test "X$hardcode_automatic_D" = "Xyes" ; then
13816
13817   # We can hardcode non-existent directories.
13818   if test "$hardcode_direct_D" != no &&
13819      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13820      # have to relink, otherwise we might link with an installed library
13821      # when we should be linking with a yet-to-be-installed one
13822      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13823      test "$hardcode_minus_L_D" != no; then
13824     # Linking always hardcodes the temporary library directory.
13825     hardcode_action_D=relink
13826   else
13827     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13828     hardcode_action_D=immediate
13829   fi
13830 else
13831   # We cannot hardcode anything, or else we can only hardcode existing
13832   # directories.
13833   hardcode_action_D=unsupported
13834 fi
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13836 $as_echo "$hardcode_action_D" >&6; }
13837
13838 if test "$hardcode_action_D" = relink ||
13839    test "$inherit_rpath_D" = yes; then
13840   # Fast installation is not supported
13841   enable_fast_install=no
13842 elif test "$shlibpath_overrides_runpath" = yes ||
13843      test "$enable_shared" = no; then
13844   # Fast installation is not necessary
13845   enable_fast_install=needless
13846 fi
13847
13848
13849
13850
13851
13852
13853
13854 fi
13855
13856 ac_ext=c
13857 ac_cpp='$CPP $CPPFLAGS'
13858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13861
13862
13863 GCC=$lt_save_GCC
13864 CC=$lt_save_CC
13865 CFLAGS=$lt_save_CFLAGS
13866 GDCFLAGS=$lt_save_DFLAGS
13867
13868   GDCFLAGS=$gdc_save_DFLAGS
13869
13870
13871 # libtool variables for Phobos shared and position-independent compiles.
13872 #
13873 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13874 # creating shared objects. Default: -fversion=Shared.
13875 #
13876 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13877 # creating position-independent objects. This varies with the target
13878 # hardware and operating system, but is often: -fPIC.
13879 #
13880 # The distinction between pic and shared compilation flags is not present in
13881 # libtool, and so we make it here.  How it is handled is that in shared
13882 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13883 # ensure that conditional compilation of shared runtime code is compiled in.
13884 # The original PIC flags are then used in the compilation of every object.
13885 #
13886 # Why are objects destined for libgphobos.a compiled with -fPIC?
13887 # Because -fPIC is not harmful to use for objects destined for static
13888 # libraries. In addition, using -fPIC will allow the use of static
13889 # libgphobos.a in the creation of other D shared libraries.
13890 if test "$enable_shared" = yes; then
13891   phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13892   phobos_compiler_shared_flag="-fversion=Shared"
13893 else
13894   phobos_compiler_pic_flag=
13895   phobos_compiler_shared_flag=
13896 fi
13897
13898
13899
13900 # Override the libtool's pic_flag and pic_mode.
13901 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13902 # NB: this impacts --with-pic and --without-pic.
13903 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13904 pic_mode='default'
13905
13906 # Determine what GCC version number to use in filesystem paths.
13907
13908   get_gcc_base_ver="cat"
13909
13910 # Check whether --with-gcc-major-version-only was given.
13911 if test "${with_gcc_major_version_only+set}" = set; then :
13912   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13913         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13914       fi
13915
13916 fi
13917
13918
13919
13920
13921 # libphobos/libdruntime specific options and feature detection
13922
13923   # These need to be absolute paths, yet at the same time need to
13924   # canonicalize only relative paths, because then amd will not unmount
13925   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13926   libphobos_builddir=`${PWDCMD-pwd}`
13927   case $srcdir in
13928     \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13929     *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13930   esac
13931
13932
13933
13934
13935   if test ${multilib} = yes; then
13936     multilib_arg="--enable-multilib"
13937   else
13938     multilib_arg=
13939   fi
13940
13941
13942   # Check whether --enable-werror was given.
13943 if test "${enable_werror+set}" = set; then :
13944   enableval=$enable_werror;
13945 fi
13946
13947   WERROR_FLAG=""
13948   if test "x$enable_werror" = "xyes"; then
13949       WERROR_FLAG="-Werror"
13950   fi
13951
13952
13953     # Check whether --enable-druntime-gc was given.
13954 if test "${enable_druntime_gc+set}" = set; then :
13955   enableval=$enable_druntime_gc; enable_druntime_gc=no
13956 else
13957   enable_druntime_gc=yes
13958 fi
13959
13960
13961    if test "$enable_druntime_gc" = "yes"; then
13962   DRUNTIME_GC_ENABLE_TRUE=
13963   DRUNTIME_GC_ENABLE_FALSE='#'
13964 else
13965   DRUNTIME_GC_ENABLE_TRUE='#'
13966   DRUNTIME_GC_ENABLE_FALSE=
13967 fi
13968
13969
13970
13971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13972 $as_echo_n "checking for target OS... " >&6; }
13973 if ${druntime_cv_target_os+:} false; then :
13974   $as_echo_n "(cached) " >&6
13975 else
13976   druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13977 fi
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13979 $as_echo "$druntime_cv_target_os" >&6; }
13980     if test -z "$druntime_cv_target_os"; then :
13981   as_fn_error $? "can't detect target OS" "$LINENO" 5
13982 fi
13983
13984
13985
13986   # Check whether --enable-unix was given.
13987 if test "${enable_unix+set}" = set; then :
13988   enableval=$enable_unix; :
13989 else
13990   enable_unix=auto
13991 fi
13992
13993
13994   case "$druntime_cv_target_os" in
13995     aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
13996   esac
13997   if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
13998     enable_unix=yes
13999   fi
14000    if test "$enable_unix" = "yes"; then
14001   DRUNTIME_OS_UNIX_TRUE=
14002   DRUNTIME_OS_UNIX_FALSE='#'
14003 else
14004   DRUNTIME_OS_UNIX_TRUE='#'
14005   DRUNTIME_OS_UNIX_FALSE=
14006 fi
14007
14008
14009
14010
14011
14012   druntime_target_os_parsed=""
14013   case "$druntime_cv_target_os" in
14014       aix*)    druntime_target_os_parsed="aix"
14015                ;;
14016       *android*)
14017                druntime_target_os_parsed="android"
14018                ;;
14019       darwin*) druntime_target_os_parsed="darwin"
14020                ;;
14021       dragonfly*)
14022                druntime_target_os_parsed="dragonflybsd"
14023                ;;
14024       freebsd*|k*bsd*-gnu)
14025                druntime_target_os_parsed="freebsd"
14026                ;;
14027       openbsd*)
14028                druntime_target_os_parsed="openbsd"
14029                ;;
14030       netbsd*)
14031                druntime_target_os_parsed="netbsd"
14032                ;;
14033       linux*)  druntime_target_os_parsed="linux"
14034                ;;
14035       mingw*)  druntime_target_os_parsed="mingw"
14036              ;;
14037       *solaris*) druntime_target_os_parsed="solaris"
14038   esac
14039    if test "$druntime_target_os_parsed" = "aix"; then
14040   DRUNTIME_OS_AIX_TRUE=
14041   DRUNTIME_OS_AIX_FALSE='#'
14042 else
14043   DRUNTIME_OS_AIX_TRUE='#'
14044   DRUNTIME_OS_AIX_FALSE=
14045 fi
14046
14047    if test "$druntime_target_os_parsed" = "android"; then
14048   DRUNTIME_OS_ANDROID_TRUE=
14049   DRUNTIME_OS_ANDROID_FALSE='#'
14050 else
14051   DRUNTIME_OS_ANDROID_TRUE='#'
14052   DRUNTIME_OS_ANDROID_FALSE=
14053 fi
14054
14055    if test "$druntime_target_os_parsed" = "darwin"; then
14056   DRUNTIME_OS_DARWIN_TRUE=
14057   DRUNTIME_OS_DARWIN_FALSE='#'
14058 else
14059   DRUNTIME_OS_DARWIN_TRUE='#'
14060   DRUNTIME_OS_DARWIN_FALSE=
14061 fi
14062
14063    if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14064   DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14065   DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14066 else
14067   DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14068   DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14069 fi
14070
14071    if test "$druntime_target_os_parsed" = "freebsd"; then
14072   DRUNTIME_OS_FREEBSD_TRUE=
14073   DRUNTIME_OS_FREEBSD_FALSE='#'
14074 else
14075   DRUNTIME_OS_FREEBSD_TRUE='#'
14076   DRUNTIME_OS_FREEBSD_FALSE=
14077 fi
14078
14079    if test "$druntime_target_os_parsed" = "netbsd"; then
14080   DRUNTIME_OS_NETBSD_TRUE=
14081   DRUNTIME_OS_NETBSD_FALSE='#'
14082 else
14083   DRUNTIME_OS_NETBSD_TRUE='#'
14084   DRUNTIME_OS_NETBSD_FALSE=
14085 fi
14086
14087    if test "$druntime_target_os_parsed" = "openbsd"; then
14088   DRUNTIME_OS_OPENBSD_TRUE=
14089   DRUNTIME_OS_OPENBSD_FALSE='#'
14090 else
14091   DRUNTIME_OS_OPENBSD_TRUE='#'
14092   DRUNTIME_OS_OPENBSD_FALSE=
14093 fi
14094
14095    if test "$druntime_target_os_parsed" = "linux"; then
14096   DRUNTIME_OS_LINUX_TRUE=
14097   DRUNTIME_OS_LINUX_FALSE='#'
14098 else
14099   DRUNTIME_OS_LINUX_TRUE='#'
14100   DRUNTIME_OS_LINUX_FALSE=
14101 fi
14102
14103    if test "$druntime_target_os_parsed" = "mingw"; then
14104   DRUNTIME_OS_MINGW_TRUE=
14105   DRUNTIME_OS_MINGW_FALSE='#'
14106 else
14107   DRUNTIME_OS_MINGW_TRUE='#'
14108   DRUNTIME_OS_MINGW_FALSE=
14109 fi
14110
14111    if test "$druntime_target_os_parsed" = "solaris"; then
14112   DRUNTIME_OS_SOLARIS_TRUE=
14113   DRUNTIME_OS_SOLARIS_FALSE='#'
14114 else
14115   DRUNTIME_OS_SOLARIS_TRUE='#'
14116   DRUNTIME_OS_SOLARIS_FALSE=
14117 fi
14118
14119
14120
14121
14122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14123 $as_echo_n "checking for thread model used by GDC... " >&6; }
14124   d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14126 $as_echo "$d_thread_model" >&6; }
14127
14128   # Map from thread model to thread interface.
14129
14130 case $d_thread_model in
14131     aix)    DCFG_THREAD_MODEL="Posix" ;;
14132     lynx)   DCFG_THREAD_MODEL="Posix" ;;
14133     posix)  DCFG_THREAD_MODEL="Posix" ;;
14134     single) DCFG_THREAD_MODEL="Single" ;;
14135     win32)  DCFG_THREAD_MODEL="Win32" ;;
14136     # TODO: These targets need porting.
14137     dce|mipssde|rtems|tpf|vxworks)
14138             DCFG_THREAD_MODEL="Single" ;;
14139     *)      as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14140 esac
14141
14142
14143
14144
14145   ac_ext=c
14146 ac_cpp='$CPP $CPPFLAGS'
14147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14150
14151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14152 $as_echo_n "checking for ARM unwinder... " >&6; }
14153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h.  */
14155 #include <unwind.h>
14156 int
14157 main ()
14158 {
14159
14160   #if __ARM_EABI_UNWINDER__
14161   #error Yes, it is.
14162   #endif
14163
14164   ;
14165   return 0;
14166 }
14167 _ACEOF
14168 if ac_fn_c_try_compile "$LINENO"; then :
14169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14170 $as_echo "no" >&6; }
14171      DCFG_ARM_EABI_UNWINDER=false
14172 else
14173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14174 $as_echo "yes" >&6; }
14175      DCFG_ARM_EABI_UNWINDER=true
14176 fi
14177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14178
14179    if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14180   DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14181   DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14182 else
14183   DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14184   DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14185 fi
14186
14187   ac_ext=c
14188 ac_cpp='$CPP $CPPFLAGS'
14189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14192
14193
14194
14195   ac_ext=c
14196 ac_cpp='$CPP $CPPFLAGS'
14197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14200
14201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14202 $as_echo_n "checking for minfo section bracketing... " >&6; }
14203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h.  */
14205
14206     void* module_info_ptr __attribute__((section ("minfo")));
14207     extern void* __start_minfo __attribute__((visibility ("hidden")));
14208     extern void* __stop_minfo __attribute__((visibility ("hidden")));
14209
14210     int main()
14211     {
14212         // Never run, just to prevent compiler from optimizing access
14213         return &__start_minfo == &__stop_minfo;
14214     }
14215
14216 _ACEOF
14217 if ac_fn_c_try_link "$LINENO"; then :
14218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14219 $as_echo "yes" >&6; }
14220      DCFG_MINFO_BRACKETING=true
14221 else
14222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223 $as_echo "no" >&6; }
14224      DCFG_MINFO_BRACKETING=false
14225 fi
14226 rm -f core conftest.err conftest.$ac_objext \
14227     conftest$ac_exeext conftest.$ac_ext
14228
14229    if test "$DCFG_MINFO_BRACKETING" = "true"; then
14230   DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14231   DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14232 else
14233   DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14234   DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14235 fi
14236
14237   ac_ext=c
14238 ac_cpp='$CPP $CPPFLAGS'
14239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14242
14243
14244
14245   ac_ext=c
14246 ac_cpp='$CPP $CPPFLAGS'
14247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14250
14251   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>
14252 "
14253 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14254   DCFG_DLPI_TLS_MODID=true
14255 else
14256   DCFG_DLPI_TLS_MODID=false
14257 fi
14258
14259
14260   ac_ext=c
14261 ac_cpp='$CPP $CPPFLAGS'
14262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14265
14266
14267
14268   case $target in
14269     i?86-*-solaris2.* | x86_64-*-solaris2.*)
14270       # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14271       # relocs.  Work around by disabling TLS transitions.  Not necessary
14272       # on 32-bit x86, but cannot be distinguished reliably in specs.
14273       druntime_ld_prog=`$CC -print-prog-name=ld`
14274       if test -n "$druntime_ld_prog" \
14275          && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14276         :
14277       else
14278         OS_LINK_SPEC='-z relax=transtls'
14279       fi
14280       ;;
14281   esac
14282
14283
14284
14285   ac_ext=c
14286 ac_cpp='$CPP $CPPFLAGS'
14287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14290
14291   DCFG_HAVE_QSORT_R=false
14292   ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14293 if test "x$ac_cv_func_qsort_r" = xyes; then :
14294   DCFG_HAVE_QSORT_R=true
14295 fi
14296
14297
14298   ac_ext=c
14299 ac_cpp='$CPP $CPPFLAGS'
14300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14303
14304
14305
14306
14307
14308   gdc_save_DFLAGS=$GDCFLAGS
14309   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14310
14311   ac_ext=d
14312 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14313 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314 ac_compiler_gnu=yes
14315
14316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14317 $as_echo_n "checking for library containing malloc... " >&6; }
14318 if ${ac_cv_search_malloc+:} false; then :
14319   $as_echo_n "(cached) " >&6
14320 else
14321   ac_func_search_save_LIBS=$LIBS
14322 cat > conftest.$ac_ext <<_ACEOF
14323 module mod;
14324  extern(C) int malloc();
14325
14326 extern(C) int main() {
14327   malloc(); return 0;
14328 }
14329 _ACEOF
14330 for ac_lib in '' c; do
14331   if test -z "$ac_lib"; then
14332     ac_res="none required"
14333   else
14334     ac_res=-l$ac_lib
14335     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14336   fi
14337   if ac_fn_d_try_link "$LINENO"; then :
14338   ac_cv_search_malloc=$ac_res
14339 fi
14340 rm -f core conftest.err conftest.$ac_objext \
14341     conftest$ac_exeext
14342   if ${ac_cv_search_malloc+:} false; then :
14343   break
14344 fi
14345 done
14346 if ${ac_cv_search_malloc+:} false; then :
14347
14348 else
14349   ac_cv_search_malloc=no
14350 fi
14351 rm conftest.$ac_ext
14352 LIBS=$ac_func_search_save_LIBS
14353 fi
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14355 $as_echo "$ac_cv_search_malloc" >&6; }
14356 ac_res=$ac_cv_search_malloc
14357 if test "$ac_res" != no; then :
14358   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14359
14360 fi
14361
14362
14363   enable_thread_lib=yes
14364   # Check whether --enable-thread-lib was given.
14365 if test "${enable_thread_lib+set}" = set; then :
14366   enableval=$enable_thread_lib;
14367 fi
14368
14369
14370   if test "x$enable_thread_lib" = "xyes"; then :
14371
14372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14373 $as_echo_n "checking for library containing pthread_create... " >&6; }
14374 if ${ac_cv_search_pthread_create+:} false; then :
14375   $as_echo_n "(cached) " >&6
14376 else
14377   ac_func_search_save_LIBS=$LIBS
14378 cat > conftest.$ac_ext <<_ACEOF
14379 module mod;
14380  extern(C) int pthread_create();
14381
14382 extern(C) int main() {
14383   pthread_create(); return 0;
14384 }
14385 _ACEOF
14386 for ac_lib in '' pthread; do
14387   if test -z "$ac_lib"; then
14388     ac_res="none required"
14389   else
14390     ac_res=-l$ac_lib
14391     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14392   fi
14393   if ac_fn_d_try_link "$LINENO"; then :
14394   ac_cv_search_pthread_create=$ac_res
14395 fi
14396 rm -f core conftest.err conftest.$ac_objext \
14397     conftest$ac_exeext
14398   if ${ac_cv_search_pthread_create+:} false; then :
14399   break
14400 fi
14401 done
14402 if ${ac_cv_search_pthread_create+:} false; then :
14403
14404 else
14405   ac_cv_search_pthread_create=no
14406 fi
14407 rm conftest.$ac_ext
14408 LIBS=$ac_func_search_save_LIBS
14409 fi
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14411 $as_echo "$ac_cv_search_pthread_create" >&6; }
14412 ac_res=$ac_cv_search_pthread_create
14413 if test "$ac_res" != no; then :
14414   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14415
14416 fi
14417
14418
14419 else
14420
14421     if test "x$enable_thread_lib" = "xno"; then :
14422
14423       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14424 $as_echo_n "checking for thread library... " >&6; }
14425       { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14426 $as_echo "disabled" >&6; }
14427
14428 else
14429
14430       as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14432 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14433 if eval \${$as_ac_Lib+:} false; then :
14434   $as_echo_n "(cached) " >&6
14435 else
14436   ac_check_lib_save_LIBS=$LIBS
14437 LIBS="-l$enable_thread_lib  $LIBS"
14438 cat > conftest.$ac_ext <<_ACEOF
14439 module mod;
14440  extern(C) int pthread_create();
14441
14442 extern(C) int main() {
14443   pthread_create(); return 0;
14444 }
14445 _ACEOF
14446 if ac_fn_d_try_link "$LINENO"; then :
14447   eval "$as_ac_Lib=yes"
14448 else
14449   eval "$as_ac_Lib=no"
14450 fi
14451 rm -f core conftest.err conftest.$ac_objext \
14452     conftest$ac_exeext conftest.$ac_ext
14453 LIBS=$ac_check_lib_save_LIBS
14454 fi
14455 eval ac_res=\$$as_ac_Lib
14456                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14457 $as_echo "$ac_res" >&6; }
14458 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14459   cat >>confdefs.h <<_ACEOF
14460 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14461 _ACEOF
14462
14463   LIBS="-l$enable_thread_lib $LIBS"
14464
14465 else
14466
14467         as_fn_error $? "Thread library not found" "$LINENO" 5
14468
14469 fi
14470
14471
14472 fi
14473
14474 fi
14475
14476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14477 $as_echo_n "checking for library containing cosf... " >&6; }
14478 if ${ac_cv_search_cosf+:} false; then :
14479   $as_echo_n "(cached) " >&6
14480 else
14481   ac_func_search_save_LIBS=$LIBS
14482 cat > conftest.$ac_ext <<_ACEOF
14483 module mod;
14484  extern(C) int cosf();
14485
14486 extern(C) int main() {
14487   cosf(); return 0;
14488 }
14489 _ACEOF
14490 for ac_lib in '' m; do
14491   if test -z "$ac_lib"; then
14492     ac_res="none required"
14493   else
14494     ac_res=-l$ac_lib
14495     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14496   fi
14497   if ac_fn_d_try_link "$LINENO"; then :
14498   ac_cv_search_cosf=$ac_res
14499 fi
14500 rm -f core conftest.err conftest.$ac_objext \
14501     conftest$ac_exeext
14502   if ${ac_cv_search_cosf+:} false; then :
14503   break
14504 fi
14505 done
14506 if ${ac_cv_search_cosf+:} false; then :
14507
14508 else
14509   ac_cv_search_cosf=no
14510 fi
14511 rm conftest.$ac_ext
14512 LIBS=$ac_func_search_save_LIBS
14513 fi
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14515 $as_echo "$ac_cv_search_cosf" >&6; }
14516 ac_res=$ac_cv_search_cosf
14517 if test "$ac_res" != no; then :
14518   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14519
14520 fi
14521
14522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14523 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14524 if ${ac_cv_search_clock_gettime+:} false; then :
14525   $as_echo_n "(cached) " >&6
14526 else
14527   ac_func_search_save_LIBS=$LIBS
14528 cat > conftest.$ac_ext <<_ACEOF
14529 module mod;
14530  extern(C) int clock_gettime();
14531
14532 extern(C) int main() {
14533   clock_gettime(); return 0;
14534 }
14535 _ACEOF
14536 for ac_lib in '' rt; do
14537   if test -z "$ac_lib"; then
14538     ac_res="none required"
14539   else
14540     ac_res=-l$ac_lib
14541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14542   fi
14543   if ac_fn_d_try_link "$LINENO"; then :
14544   ac_cv_search_clock_gettime=$ac_res
14545 fi
14546 rm -f core conftest.err conftest.$ac_objext \
14547     conftest$ac_exeext
14548   if ${ac_cv_search_clock_gettime+:} false; then :
14549   break
14550 fi
14551 done
14552 if ${ac_cv_search_clock_gettime+:} false; then :
14553
14554 else
14555   ac_cv_search_clock_gettime=no
14556 fi
14557 rm conftest.$ac_ext
14558 LIBS=$ac_func_search_save_LIBS
14559 fi
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14561 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14562 ac_res=$ac_cv_search_clock_gettime
14563 if test "$ac_res" != no; then :
14564   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14565
14566 fi
14567
14568
14569   # This checks to see if the host supports the compiler-generated builtins
14570   # for atomic operations for various integral sizes. Note, this is intended
14571   # to be an all-or-nothing switch, so all the atomic operations that are
14572   # used should be checked.
14573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14574 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14575   if ${druntime_cv_atomic_byte+:} false; then :
14576   $as_echo_n "(cached) " >&6
14577 else
14578
14579     cat > conftest.$ac_ext <<_ACEOF
14580 module mod;
14581 import gcc.builtins;
14582
14583 extern(C) int main() {
14584
14585       shared(byte) c1;
14586        byte c2, c3;
14587        __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14588        __atomic_load_1(&c1, 5);
14589        __atomic_store_1(&c1, c2, 5);
14590        return 0;
14591
14592 }
14593 _ACEOF
14594 if ac_fn_d_try_link "$LINENO"; then :
14595   druntime_cv_atomic_byte=yes
14596 else
14597   druntime_cv_atomic_byte=no
14598 fi
14599 rm -f core conftest.err conftest.$ac_objext \
14600     conftest$ac_exeext conftest.$ac_ext
14601
14602 fi
14603
14604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14605 $as_echo "$druntime_cv_atomic_byte" >&6; }
14606
14607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14608 $as_echo_n "checking for atomic builtins for short... " >&6; }
14609   if ${druntime_cv_atomic_short+:} false; then :
14610   $as_echo_n "(cached) " >&6
14611 else
14612
14613     cat > conftest.$ac_ext <<_ACEOF
14614 module mod;
14615 import gcc.builtins;
14616
14617 extern(C) int main() {
14618
14619       shared(short) c1;
14620        short c2, c3;
14621        __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14622        __atomic_load_2(&c1, 5);
14623        __atomic_store_2(&c1, c2, 5);
14624        return 0;
14625
14626 }
14627 _ACEOF
14628 if ac_fn_d_try_link "$LINENO"; then :
14629   druntime_cv_atomic_short=yes
14630 else
14631   druntime_cv_atomic_short=no
14632 fi
14633 rm -f core conftest.err conftest.$ac_objext \
14634     conftest$ac_exeext conftest.$ac_ext
14635
14636 fi
14637
14638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14639 $as_echo "$druntime_cv_atomic_short" >&6; }
14640
14641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14642 $as_echo_n "checking for atomic builtins for int... " >&6; }
14643   if ${druntime_cv_atomic_int+:} false; then :
14644   $as_echo_n "(cached) " >&6
14645 else
14646
14647     cat > conftest.$ac_ext <<_ACEOF
14648 module mod;
14649 import gcc.builtins;
14650
14651 extern(C) int main() {
14652
14653       shared(int) c1;
14654        int c2, c3;
14655        __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14656        __atomic_load_4(&c1, 5);
14657        __atomic_store_4(&c1, c2, 5);
14658        return 0;
14659
14660 }
14661 _ACEOF
14662 if ac_fn_d_try_link "$LINENO"; then :
14663   druntime_cv_atomic_int=yes
14664 else
14665   druntime_cv_atomic_int=no
14666 fi
14667 rm -f core conftest.err conftest.$ac_objext \
14668     conftest$ac_exeext conftest.$ac_ext
14669
14670 fi
14671
14672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14673 $as_echo "$druntime_cv_atomic_int" >&6; }
14674
14675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14676 $as_echo_n "checking for atomic builtins for long... " >&6; }
14677   if ${druntime_cv_atomic_long+:} false; then :
14678   $as_echo_n "(cached) " >&6
14679 else
14680
14681     cat > conftest.$ac_ext <<_ACEOF
14682 module mod;
14683 import gcc.builtins;
14684
14685 extern(C) int main() {
14686
14687        shared(long) c1;
14688        long c2, c3;
14689        __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14690        __atomic_load_8(&c1, 5);
14691        __atomic_store_8(&c1, c2, 5);
14692        return 0;
14693
14694 }
14695 _ACEOF
14696 if ac_fn_d_try_link "$LINENO"; then :
14697   druntime_cv_atomic_long=yes
14698 else
14699   druntime_cv_atomic_long=no
14700 fi
14701 rm -f core conftest.err conftest.$ac_objext \
14702     conftest$ac_exeext conftest.$ac_ext
14703
14704 fi
14705
14706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14707 $as_echo "$druntime_cv_atomic_long" >&6; }
14708
14709   # Have atomic builtin support if all but the long test above passes.
14710   DCFG_HAVE_ATOMIC_BUILTINS=false
14711   if test "$druntime_cv_atomic_byte" = yes \
14712      && test "$druntime_cv_atomic_short" = yes \
14713      && test "$druntime_cv_atomic_int" = yes; then \
14714     DCFG_HAVE_ATOMIC_BUILTINS=true
14715   fi
14716
14717   # Have 64-bit atomic support if the long test above passes.
14718   DCFG_HAVE_64BIT_ATOMICS=false
14719   if test "$druntime_cv_atomic_long" = yes; then
14720     DCFG_HAVE_64BIT_ATOMICS=true
14721   fi
14722
14723
14724
14725
14726   ac_ext=c
14727 ac_cpp='$CPP $CPPFLAGS'
14728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14731
14732
14733   GDCFLAGS=$gdc_save_DFLAGS
14734
14735
14736
14737
14738 # Check whether --with-libatomic was given.
14739 if test "${with_libatomic+set}" = set; then :
14740   withval=$with_libatomic;
14741 fi
14742
14743
14744   DCFG_HAVE_LIBATOMIC=false
14745   LIBATOMIC=
14746   if test "x$with_libatomic" != "xno"; then :
14747
14748     DCFG_HAVE_LIBATOMIC=true
14749     LIBATOMIC=../../libatomic/libatomic_convenience.la
14750
14751 else
14752
14753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14754 $as_echo_n "checking for libatomic... " >&6; }
14755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14756 $as_echo "disabled" >&6; }
14757
14758 fi
14759
14760
14761
14762
14763
14764   ac_ext=c
14765 ac_cpp='$CPP $CPPFLAGS'
14766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14769
14770   BACKTRACE_SUPPORTED=false
14771   BACKTRACE_USES_MALLOC=false
14772   BACKTRACE_SUPPORTS_THREADS=false
14773   LIBBACKTRACE=""
14774
14775
14776 # Check whether --with-libbacktrace was given.
14777 if test "${with_libbacktrace+set}" = set; then :
14778   withval=$with_libbacktrace;
14779 fi
14780
14781
14782   if test "x$with_libbacktrace" != "xno"; then :
14783
14784     LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14785
14786     gdc_save_CPPFLAGS=$CPPFLAGS
14787     CPPFLAGS+=" -I../libbacktrace "
14788
14789     ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14790 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14791   have_libbacktrace_h=true
14792 else
14793   have_libbacktrace_h=false
14794 fi
14795
14796
14797
14798     if $have_libbacktrace_h; then
14799       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14800 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14801       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h.  */
14803
14804       #include <backtrace-supported.h>
14805       #if BACKTRACE_SUPPORTED
14806         FOUND_LIBBACKTRACE_RESULT_GDC
14807       #endif
14808
14809 _ACEOF
14810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14811   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14812   BACKTRACE_SUPPORTED=true
14813 else
14814   BACKTRACE_SUPPORTED=false
14815 fi
14816 rm -f conftest*
14817
14818       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14819 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14820
14821       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14822 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14823       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h.  */
14825
14826       #include <backtrace-supported.h>
14827       #if BACKTRACE_USES_MALLOC
14828         FOUND_LIBBACKTRACE_RESULT_GDC
14829       #endif
14830
14831 _ACEOF
14832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14833   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14834   BACKTRACE_USES_MALLOC=true
14835 else
14836   BACKTRACE_USES_MALLOC=false
14837 fi
14838 rm -f conftest*
14839
14840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14841 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14842
14843       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14844 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14845       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846 /* end confdefs.h.  */
14847
14848       #include <backtrace-supported.h>
14849       #if BACKTRACE_SUPPORTS_THREADS
14850         FOUND_LIBBACKTRACE_RESULT_GDC
14851       #endif
14852
14853 _ACEOF
14854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14855   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14856   BACKTRACE_SUPPORTS_THREADS=true
14857 else
14858   BACKTRACE_SUPPORTS_THREADS=false
14859 fi
14860 rm -f conftest*
14861
14862       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14863 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14864     fi
14865     CPPFLAGS=$gdc_save_CPPFLAGS
14866
14867 else
14868
14869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14870 $as_echo_n "checking for libbacktrace... " >&6; }
14871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14872 $as_echo "disabled" >&6; }
14873
14874 fi
14875
14876
14877
14878
14879
14880   ac_ext=c
14881 ac_cpp='$CPP $CPPFLAGS'
14882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14885
14886
14887
14888   # Libtool has already checked this, so re-use the inferred dlopen lib.
14889   if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14890
14891     LIBS="$LIBS $lt_cv_dlopen_libs"
14892
14893 fi
14894
14895
14896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14897 $as_echo_n "checking for socket libraries... " >&6; }
14898 if ${druntime_cv_lib_sockets+:} false; then :
14899   $as_echo_n "(cached) " >&6
14900 else
14901   druntime_cv_lib_sockets=
14902      druntime_check_both=no
14903      ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14904 if test "x$ac_cv_func_connect" = xyes; then :
14905   druntime_check_socket=no
14906 else
14907   druntime_check_socket=yes
14908 fi
14909
14910      if test "$druntime_check_socket" = "yes"; then
14911        unset ac_cv_func_connect
14912        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14913 $as_echo_n "checking for main in -lsocket... " >&6; }
14914 if ${ac_cv_lib_socket_main+:} false; then :
14915   $as_echo_n "(cached) " >&6
14916 else
14917   ac_check_lib_save_LIBS=$LIBS
14918 LIBS="-lsocket  $LIBS"
14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h.  */
14921
14922
14923 int
14924 main ()
14925 {
14926 return main ();
14927   ;
14928   return 0;
14929 }
14930 _ACEOF
14931 if ac_fn_c_try_link "$LINENO"; then :
14932   ac_cv_lib_socket_main=yes
14933 else
14934   ac_cv_lib_socket_main=no
14935 fi
14936 rm -f core conftest.err conftest.$ac_objext \
14937     conftest$ac_exeext conftest.$ac_ext
14938 LIBS=$ac_check_lib_save_LIBS
14939 fi
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14941 $as_echo "$ac_cv_lib_socket_main" >&6; }
14942 if test "x$ac_cv_lib_socket_main" = xyes; then :
14943   druntime_cv_lib_sockets="-lsocket"
14944 else
14945   druntime_check_both=yes
14946 fi
14947
14948      fi
14949      if test "$druntime_check_both" = "yes"; then
14950        druntime_old_libs=$LIBS
14951        LIBS="$LIBS -lsocket -lnsl"
14952        unset ac_cv_func_accept
14953        ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14954 if test "x$ac_cv_func_accept" = xyes; then :
14955   druntime_check_nsl=no
14956                       druntime_cv_lib_sockets="-lsocket -lnsl"
14957 fi
14958
14959        unset ac_cv_func_accept
14960        LIBS=$druntime_old_libs
14961      fi
14962      unset ac_cv_func_gethostbyname
14963      druntime_old_libs="$LIBS"
14964      ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14965 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14966
14967 else
14968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14969 $as_echo_n "checking for main in -lnsl... " >&6; }
14970 if ${ac_cv_lib_nsl_main+:} false; then :
14971   $as_echo_n "(cached) " >&6
14972 else
14973   ac_check_lib_save_LIBS=$LIBS
14974 LIBS="-lnsl  $LIBS"
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h.  */
14977
14978
14979 int
14980 main ()
14981 {
14982 return main ();
14983   ;
14984   return 0;
14985 }
14986 _ACEOF
14987 if ac_fn_c_try_link "$LINENO"; then :
14988   ac_cv_lib_nsl_main=yes
14989 else
14990   ac_cv_lib_nsl_main=no
14991 fi
14992 rm -f core conftest.err conftest.$ac_objext \
14993     conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14995 fi
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14997 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14998 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14999   druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15000 fi
15001
15002 fi
15003
15004
15005 fi
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15007 $as_echo "$druntime_cv_lib_sockets" >&6; }
15008   LIBS="$LIBS $druntime_cv_lib_sockets"
15009
15010
15011   ac_ext=c
15012 ac_cpp='$CPP $CPPFLAGS'
15013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15016
15017   LIBZ=""
15018
15019
15020 # Check whether --with-target-system-zlib was given.
15021 if test "${with_target_system_zlib+set}" = set; then :
15022   withval=$with_target_system_zlib;
15023 else
15024   with_target_system_zlib=no
15025 fi
15026
15027
15028   case "$with_target_system_zlib" in
15029     yes|no|auto) ;;
15030     *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15031   esac
15032
15033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15034 $as_echo_n "checking for system zlib... " >&6; }
15035   save_LIBS=$LIBS
15036   LIBS="$LIBS -lz"
15037       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h.  */
15039 #include <zlib.h>
15040 int
15041 main ()
15042 {
15043 gzopen("none", "rb")
15044   ;
15045   return 0;
15046 }
15047 _ACEOF
15048 if ac_fn_c_try_link "$LINENO"; then :
15049
15050       if test "$cross_compiling" = yes; then :
15051           system_zlib_found=no
15052
15053 else
15054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h.  */
15056
15057         #include <zlib.h>
15058         int main() {
15059           gzFile file = gzopen("none", "rb");
15060           return 0;
15061         }
15062
15063 _ACEOF
15064 if ac_fn_c_try_run "$LINENO"; then :
15065   system_zlib_found=yes
15066 else
15067   system_zlib_found=no
15068 fi
15069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15070   conftest.$ac_objext conftest.beam conftest.$ac_ext
15071 fi
15072
15073
15074 else
15075   system_zlib_found=no
15076 fi
15077 rm -f core conftest.err conftest.$ac_objext \
15078     conftest$ac_exeext conftest.$ac_ext
15079   LIBS=$save_LIBS
15080
15081   if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15083 $as_echo "found" >&6; }
15084     LIBS="$LIBS -lz"
15085   elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15086     as_fn_error $? "system zlib required but not found" "$LINENO" 5
15087   else
15088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15089 $as_echo "just compiled" >&6; }
15090     LIBZ=../../zlib/libz_convenience.la
15091   fi
15092
15093
15094   ac_ext=c
15095 ac_cpp='$CPP $CPPFLAGS'
15096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15099
15100
15101
15102
15103
15104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15105 $as_echo_n "checking D GCC version... " >&6; }
15106   gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15108 $as_echo "$gcc_version" >&6; }
15109
15110
15111
15112 # Check whether --with-cross-host was given.
15113 if test "${with_cross_host+set}" = set; then :
15114   withval=$with_cross_host;
15115 fi
15116
15117
15118   libphobos_toolexecdir=no
15119   libphobos_toolexeclibdir=no
15120
15121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15122 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15123   # Check whether --enable-version-specific-runtime-libs was given.
15124 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15125   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15126       yes) version_specific_libs=yes ;;
15127       no)  version_specific_libs=no ;;
15128       *)   as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15129      esac
15130 else
15131   version_specific_libs=no
15132 fi
15133
15134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15135 $as_echo "$version_specific_libs" >&6; }
15136
15137   # Version-specific runtime libs processing.
15138   if test $version_specific_libs = yes; then
15139     libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15140     libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15141   else
15142     # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15143     # Install a library built with a cross compiler in tooldir, not libdir.
15144     if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15145       libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15146       libphobos_toolexeclibdir='${toolexecdir}/lib'
15147     else
15148       libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15149       libphobos_toolexeclibdir='${libdir}'
15150     fi
15151     multi_os_directory=`$GDC -print-multi-os-directory`
15152     case $multi_os_directory in
15153       .) ;; # Avoid trailing /.
15154       *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15155     esac
15156   fi
15157
15158
15159
15160   # Default case for install directory for D sources files.
15161   gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15162
15163
15164
15165 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15166 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15167     DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15168 else
15169     DRTSTUFF_SPEC=/dev/null
15170 fi
15171
15172
15173 # Add dependencies for libgphobos.spec file
15174 SPEC_PHOBOS_DEPS="$LIBS"
15175
15176
15177 # Libdruntime / phobos soname version
15178 libtool_VERSION=76:3:0
15179
15180
15181 # Set default flags (after DRUNTIME_WERROR!)
15182 if test -z "$GDCFLAGS"; then
15183     GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15184 fi
15185
15186
15187 if test -z "$GDCFLAGSX"; then
15188     GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15189 fi
15190
15191
15192 # Sanity check for the cross-compilation case:
15193 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15194 if test "x$ac_cv_header_stdio_h" = xyes; then :
15195   :
15196 else
15197   as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15198 fi
15199
15200
15201
15202 ac_config_files="$ac_config_files Makefile"
15203
15204
15205 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15206
15207 ac_config_files="$ac_config_files src/libgphobos.spec"
15208
15209 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15210
15211
15212 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15213 # that multilib installs will end up installed in the correct place.
15214 # The testsuite needs it for multilib-aware ABI baseline files.
15215 # To work around this not being passed down from config-ml.in ->
15216 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15217 # append it here.  Only modify Makefiles that have just been created.
15218 #
15219 # Also, get rid of this simulated-VPATH thing that automake does.
15220 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15221
15222
15223 cat >confcache <<\_ACEOF
15224 # This file is a shell script that caches the results of configure
15225 # tests run on this system so they can be shared between configure
15226 # scripts and configure runs, see configure's option --config-cache.
15227 # It is not useful on other systems.  If it contains results you don't
15228 # want to keep, you may remove or edit it.
15229 #
15230 # config.status only pays attention to the cache file if you give it
15231 # the --recheck option to rerun configure.
15232 #
15233 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15234 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15235 # following values.
15236
15237 _ACEOF
15238
15239 # The following way of writing the cache mishandles newlines in values,
15240 # but we know of no workaround that is simple, portable, and efficient.
15241 # So, we kill variables containing newlines.
15242 # Ultrix sh set writes to stderr and can't be redirected directly,
15243 # and sets the high bit in the cache file unless we assign to the vars.
15244 (
15245   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15246     eval ac_val=\$$ac_var
15247     case $ac_val in #(
15248     *${as_nl}*)
15249       case $ac_var in #(
15250       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15251 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15252       esac
15253       case $ac_var in #(
15254       _ | IFS | as_nl) ;; #(
15255       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15256       *) { eval $ac_var=; unset $ac_var;} ;;
15257       esac ;;
15258     esac
15259   done
15260
15261   (set) 2>&1 |
15262     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15263     *${as_nl}ac_space=\ *)
15264       # `set' does not quote correctly, so add quotes: double-quote
15265       # substitution turns \\\\ into \\, and sed turns \\ into \.
15266       sed -n \
15267         "s/'/'\\\\''/g;
15268           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15269       ;; #(
15270     *)
15271       # `set' quotes correctly as required by POSIX, so do not add quotes.
15272       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15273       ;;
15274     esac |
15275     sort
15276 ) |
15277   sed '
15278      /^ac_cv_env_/b end
15279      t clear
15280      :clear
15281      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15282      t end
15283      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15284      :end' >>confcache
15285 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15286   if test -w "$cache_file"; then
15287     if test "x$cache_file" != "x/dev/null"; then
15288       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15289 $as_echo "$as_me: updating cache $cache_file" >&6;}
15290       if test ! -f "$cache_file" || test -h "$cache_file"; then
15291         cat confcache >"$cache_file"
15292       else
15293         case $cache_file in #(
15294         */* | ?:*)
15295           mv -f confcache "$cache_file"$$ &&
15296           mv -f "$cache_file"$$ "$cache_file" ;; #(
15297         *)
15298           mv -f confcache "$cache_file" ;;
15299         esac
15300       fi
15301     fi
15302   else
15303     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15304 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15305   fi
15306 fi
15307 rm -f confcache
15308
15309 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15310 # Let make expand exec_prefix.
15311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15312
15313 DEFS=-DHAVE_CONFIG_H
15314
15315 ac_libobjs=
15316 ac_ltlibobjs=
15317 U=
15318 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15319   # 1. Remove the extension, and $U if already installed.
15320   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15321   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15322   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15323   #    will be set to the directory where LIBOBJS objects are built.
15324   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15325   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15326 done
15327 LIBOBJS=$ac_libobjs
15328
15329 LTLIBOBJS=$ac_ltlibobjs
15330
15331
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15333 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15334    if test -n "$am_sleep_pid"; then
15335      # Hide warnings about reused PIDs.
15336      wait $am_sleep_pid 2>/dev/null
15337    fi
15338    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15339 $as_echo "done" >&6; }
15340  if test -n "$EXEEXT"; then
15341   am__EXEEXT_TRUE=
15342   am__EXEEXT_FALSE='#'
15343 else
15344   am__EXEEXT_TRUE='#'
15345   am__EXEEXT_FALSE=
15346 fi
15347
15348 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15349   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15351 fi
15352 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15353   as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15355 fi
15356 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15357   as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
15358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15359 fi
15360 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15361   as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15363 fi
15364 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15365   as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15367 fi
15368 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15369   as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15371 fi
15372 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15373   as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15375 fi
15376 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15377   as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15379 fi
15380 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15381   as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15383 fi
15384 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15385   as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15387 fi
15388 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15389   as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15391 fi
15392 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15393   as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15395 fi
15396 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15397   as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15399 fi
15400 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15401   as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15403 fi
15404 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15405   as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15407 fi
15408
15409 : "${CONFIG_STATUS=./config.status}"
15410 ac_write_fail=0
15411 ac_clean_files_save=$ac_clean_files
15412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15414 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15415 as_write_fail=0
15416 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15417 #! $SHELL
15418 # Generated by $as_me.
15419 # Run this file to recreate the current configuration.
15420 # Compiler output produced by configure, useful for debugging
15421 # configure, is in config.log if it exists.
15422
15423 debug=false
15424 ac_cs_recheck=false
15425 ac_cs_silent=false
15426
15427 SHELL=\${CONFIG_SHELL-$SHELL}
15428 export SHELL
15429 _ASEOF
15430 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15431 ## -------------------- ##
15432 ## M4sh Initialization. ##
15433 ## -------------------- ##
15434
15435 # Be more Bourne compatible
15436 DUALCASE=1; export DUALCASE # for MKS sh
15437 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15438   emulate sh
15439   NULLCMD=:
15440   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15441   # is contrary to our usage.  Disable this feature.
15442   alias -g '${1+"$@"}'='"$@"'
15443   setopt NO_GLOB_SUBST
15444 else
15445   case `(set -o) 2>/dev/null` in #(
15446   *posix*) :
15447     set -o posix ;; #(
15448   *) :
15449      ;;
15450 esac
15451 fi
15452
15453
15454 as_nl='
15455 '
15456 export as_nl
15457 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15458 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15461 # Prefer a ksh shell builtin over an external printf program on Solaris,
15462 # but without wasting forks for bash or zsh.
15463 if test -z "$BASH_VERSION$ZSH_VERSION" \
15464     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15465   as_echo='print -r --'
15466   as_echo_n='print -rn --'
15467 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15468   as_echo='printf %s\n'
15469   as_echo_n='printf %s'
15470 else
15471   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15472     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15473     as_echo_n='/usr/ucb/echo -n'
15474   else
15475     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15476     as_echo_n_body='eval
15477       arg=$1;
15478       case $arg in #(
15479       *"$as_nl"*)
15480         expr "X$arg" : "X\\(.*\\)$as_nl";
15481         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15482       esac;
15483       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15484     '
15485     export as_echo_n_body
15486     as_echo_n='sh -c $as_echo_n_body as_echo'
15487   fi
15488   export as_echo_body
15489   as_echo='sh -c $as_echo_body as_echo'
15490 fi
15491
15492 # The user is always right.
15493 if test "${PATH_SEPARATOR+set}" != set; then
15494   PATH_SEPARATOR=:
15495   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15496     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15497       PATH_SEPARATOR=';'
15498   }
15499 fi
15500
15501
15502 # IFS
15503 # We need space, tab and new line, in precisely that order.  Quoting is
15504 # there to prevent editors from complaining about space-tab.
15505 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15506 # splitting by setting IFS to empty value.)
15507 IFS=" ""        $as_nl"
15508
15509 # Find who we are.  Look in the path if we contain no directory separator.
15510 as_myself=
15511 case $0 in #((
15512   *[\\/]* ) as_myself=$0 ;;
15513   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15514 for as_dir in $PATH
15515 do
15516   IFS=$as_save_IFS
15517   test -z "$as_dir" && as_dir=.
15518     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15519   done
15520 IFS=$as_save_IFS
15521
15522      ;;
15523 esac
15524 # We did not find ourselves, most probably we were run as `sh COMMAND'
15525 # in which case we are not to be found in the path.
15526 if test "x$as_myself" = x; then
15527   as_myself=$0
15528 fi
15529 if test ! -f "$as_myself"; then
15530   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15531   exit 1
15532 fi
15533
15534 # Unset variables that we do not need and which cause bugs (e.g. in
15535 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15536 # suppresses any "Segmentation fault" message there.  '((' could
15537 # trigger a bug in pdksh 5.2.14.
15538 for as_var in BASH_ENV ENV MAIL MAILPATH
15539 do eval test x\${$as_var+set} = xset \
15540   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15541 done
15542 PS1='$ '
15543 PS2='> '
15544 PS4='+ '
15545
15546 # NLS nuisances.
15547 LC_ALL=C
15548 export LC_ALL
15549 LANGUAGE=C
15550 export LANGUAGE
15551
15552 # CDPATH.
15553 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15554
15555
15556 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15557 # ----------------------------------------
15558 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15559 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15560 # script with STATUS, using 1 if that was 0.
15561 as_fn_error ()
15562 {
15563   as_status=$1; test $as_status -eq 0 && as_status=1
15564   if test "$4"; then
15565     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15566     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15567   fi
15568   $as_echo "$as_me: error: $2" >&2
15569   as_fn_exit $as_status
15570 } # as_fn_error
15571
15572
15573 # as_fn_set_status STATUS
15574 # -----------------------
15575 # Set $? to STATUS, without forking.
15576 as_fn_set_status ()
15577 {
15578   return $1
15579 } # as_fn_set_status
15580
15581 # as_fn_exit STATUS
15582 # -----------------
15583 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15584 as_fn_exit ()
15585 {
15586   set +e
15587   as_fn_set_status $1
15588   exit $1
15589 } # as_fn_exit
15590
15591 # as_fn_unset VAR
15592 # ---------------
15593 # Portably unset VAR.
15594 as_fn_unset ()
15595 {
15596   { eval $1=; unset $1;}
15597 }
15598 as_unset=as_fn_unset
15599 # as_fn_append VAR VALUE
15600 # ----------------------
15601 # Append the text in VALUE to the end of the definition contained in VAR. Take
15602 # advantage of any shell optimizations that allow amortized linear growth over
15603 # repeated appends, instead of the typical quadratic growth present in naive
15604 # implementations.
15605 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15606   eval 'as_fn_append ()
15607   {
15608     eval $1+=\$2
15609   }'
15610 else
15611   as_fn_append ()
15612   {
15613     eval $1=\$$1\$2
15614   }
15615 fi # as_fn_append
15616
15617 # as_fn_arith ARG...
15618 # ------------------
15619 # Perform arithmetic evaluation on the ARGs, and store the result in the
15620 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15621 # must be portable across $(()) and expr.
15622 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15623   eval 'as_fn_arith ()
15624   {
15625     as_val=$(( $* ))
15626   }'
15627 else
15628   as_fn_arith ()
15629   {
15630     as_val=`expr "$@" || test $? -eq 1`
15631   }
15632 fi # as_fn_arith
15633
15634
15635 if expr a : '\(a\)' >/dev/null 2>&1 &&
15636    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15637   as_expr=expr
15638 else
15639   as_expr=false
15640 fi
15641
15642 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15643   as_basename=basename
15644 else
15645   as_basename=false
15646 fi
15647
15648 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15649   as_dirname=dirname
15650 else
15651   as_dirname=false
15652 fi
15653
15654 as_me=`$as_basename -- "$0" ||
15655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15656          X"$0" : 'X\(//\)$' \| \
15657          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15658 $as_echo X/"$0" |
15659     sed '/^.*\/\([^/][^/]*\)\/*$/{
15660             s//\1/
15661             q
15662           }
15663           /^X\/\(\/\/\)$/{
15664             s//\1/
15665             q
15666           }
15667           /^X\/\(\/\).*/{
15668             s//\1/
15669             q
15670           }
15671           s/.*/./; q'`
15672
15673 # Avoid depending upon Character Ranges.
15674 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15675 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15676 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15677 as_cr_digits='0123456789'
15678 as_cr_alnum=$as_cr_Letters$as_cr_digits
15679
15680 ECHO_C= ECHO_N= ECHO_T=
15681 case `echo -n x` in #(((((
15682 -n*)
15683   case `echo 'xy\c'` in
15684   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15685   xy)  ECHO_C='\c';;
15686   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15687        ECHO_T=' ';;
15688   esac;;
15689 *)
15690   ECHO_N='-n';;
15691 esac
15692
15693 rm -f conf$$ conf$$.exe conf$$.file
15694 if test -d conf$$.dir; then
15695   rm -f conf$$.dir/conf$$.file
15696 else
15697   rm -f conf$$.dir
15698   mkdir conf$$.dir 2>/dev/null
15699 fi
15700 if (echo >conf$$.file) 2>/dev/null; then
15701   if ln -s conf$$.file conf$$ 2>/dev/null; then
15702     as_ln_s='ln -s'
15703     # ... but there are two gotchas:
15704     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15705     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15706     # In both cases, we have to default to `cp -pR'.
15707     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15708       as_ln_s='cp -pR'
15709   elif ln conf$$.file conf$$ 2>/dev/null; then
15710     as_ln_s=ln
15711   else
15712     as_ln_s='cp -pR'
15713   fi
15714 else
15715   as_ln_s='cp -pR'
15716 fi
15717 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15718 rmdir conf$$.dir 2>/dev/null
15719
15720
15721 # as_fn_mkdir_p
15722 # -------------
15723 # Create "$as_dir" as a directory, including parents if necessary.
15724 as_fn_mkdir_p ()
15725 {
15726
15727   case $as_dir in #(
15728   -*) as_dir=./$as_dir;;
15729   esac
15730   test -d "$as_dir" || eval $as_mkdir_p || {
15731     as_dirs=
15732     while :; do
15733       case $as_dir in #(
15734       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15735       *) as_qdir=$as_dir;;
15736       esac
15737       as_dirs="'$as_qdir' $as_dirs"
15738       as_dir=`$as_dirname -- "$as_dir" ||
15739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15740          X"$as_dir" : 'X\(//\)[^/]' \| \
15741          X"$as_dir" : 'X\(//\)$' \| \
15742          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15743 $as_echo X"$as_dir" |
15744     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15745             s//\1/
15746             q
15747           }
15748           /^X\(\/\/\)[^/].*/{
15749             s//\1/
15750             q
15751           }
15752           /^X\(\/\/\)$/{
15753             s//\1/
15754             q
15755           }
15756           /^X\(\/\).*/{
15757             s//\1/
15758             q
15759           }
15760           s/.*/./; q'`
15761       test -d "$as_dir" && break
15762     done
15763     test -z "$as_dirs" || eval "mkdir $as_dirs"
15764   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15765
15766
15767 } # as_fn_mkdir_p
15768 if mkdir -p . 2>/dev/null; then
15769   as_mkdir_p='mkdir -p "$as_dir"'
15770 else
15771   test -d ./-p && rmdir ./-p
15772   as_mkdir_p=false
15773 fi
15774
15775
15776 # as_fn_executable_p FILE
15777 # -----------------------
15778 # Test if FILE is an executable regular file.
15779 as_fn_executable_p ()
15780 {
15781   test -f "$1" && test -x "$1"
15782 } # as_fn_executable_p
15783 as_test_x='test -x'
15784 as_executable_p=as_fn_executable_p
15785
15786 # Sed expression to map a string onto a valid CPP name.
15787 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15788
15789 # Sed expression to map a string onto a valid variable name.
15790 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15791
15792
15793 exec 6>&1
15794 ## ----------------------------------- ##
15795 ## Main body of $CONFIG_STATUS script. ##
15796 ## ----------------------------------- ##
15797 _ASEOF
15798 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15799
15800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15801 # Save the log message, to keep $0 and so on meaningful, and to
15802 # report actual input values of CONFIG_FILES etc. instead of their
15803 # values after options handling.
15804 ac_log="
15805 This file was extended by package-unused $as_me version-unused, which was
15806 generated by GNU Autoconf 2.69.  Invocation command line was
15807
15808   CONFIG_FILES    = $CONFIG_FILES
15809   CONFIG_HEADERS  = $CONFIG_HEADERS
15810   CONFIG_LINKS    = $CONFIG_LINKS
15811   CONFIG_COMMANDS = $CONFIG_COMMANDS
15812   $ $0 $@
15813
15814 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15815 "
15816
15817 _ACEOF
15818
15819 case $ac_config_files in *"
15820 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15821 esac
15822
15823 case $ac_config_headers in *"
15824 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15825 esac
15826
15827
15828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15829 # Files that config.status was made for.
15830 config_files="$ac_config_files"
15831 config_headers="$ac_config_headers"
15832 config_commands="$ac_config_commands"
15833
15834 _ACEOF
15835
15836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15837 ac_cs_usage="\
15838 \`$as_me' instantiates files and other configuration actions
15839 from templates according to the current configuration.  Unless the files
15840 and actions are specified as TAGs, all are instantiated by default.
15841
15842 Usage: $0 [OPTION]... [TAG]...
15843
15844   -h, --help       print this help, then exit
15845   -V, --version    print version number and configuration settings, then exit
15846       --config     print configuration, then exit
15847   -q, --quiet, --silent
15848                    do not print progress messages
15849   -d, --debug      don't remove temporary files
15850       --recheck    update $as_me by reconfiguring in the same conditions
15851       --file=FILE[:TEMPLATE]
15852                    instantiate the configuration file FILE
15853       --header=FILE[:TEMPLATE]
15854                    instantiate the configuration header FILE
15855
15856 Configuration files:
15857 $config_files
15858
15859 Configuration headers:
15860 $config_headers
15861
15862 Configuration commands:
15863 $config_commands
15864
15865 Report bugs to the package provider."
15866
15867 _ACEOF
15868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15869 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15870 ac_cs_version="\\
15871 package-unused config.status version-unused
15872 configured by $0, generated by GNU Autoconf 2.69,
15873   with options \\"\$ac_cs_config\\"
15874
15875 Copyright (C) 2012 Free Software Foundation, Inc.
15876 This config.status script is free software; the Free Software Foundation
15877 gives unlimited permission to copy, distribute and modify it."
15878
15879 ac_pwd='$ac_pwd'
15880 srcdir='$srcdir'
15881 INSTALL='$INSTALL'
15882 MKDIR_P='$MKDIR_P'
15883 AWK='$AWK'
15884 test -n "\$AWK" || AWK=awk
15885 _ACEOF
15886
15887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15888 # The default lists apply if the user does not specify any file.
15889 ac_need_defaults=:
15890 while test $# != 0
15891 do
15892   case $1 in
15893   --*=?*)
15894     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15895     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15896     ac_shift=:
15897     ;;
15898   --*=)
15899     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15900     ac_optarg=
15901     ac_shift=:
15902     ;;
15903   *)
15904     ac_option=$1
15905     ac_optarg=$2
15906     ac_shift=shift
15907     ;;
15908   esac
15909
15910   case $ac_option in
15911   # Handling of the options.
15912   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15913     ac_cs_recheck=: ;;
15914   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15915     $as_echo "$ac_cs_version"; exit ;;
15916   --config | --confi | --conf | --con | --co | --c )
15917     $as_echo "$ac_cs_config"; exit ;;
15918   --debug | --debu | --deb | --de | --d | -d )
15919     debug=: ;;
15920   --file | --fil | --fi | --f )
15921     $ac_shift
15922     case $ac_optarg in
15923     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15924     '') as_fn_error $? "missing file argument" ;;
15925     esac
15926     as_fn_append CONFIG_FILES " '$ac_optarg'"
15927     ac_need_defaults=false;;
15928   --header | --heade | --head | --hea )
15929     $ac_shift
15930     case $ac_optarg in
15931     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15932     esac
15933     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15934     ac_need_defaults=false;;
15935   --he | --h)
15936     # Conflict between --help and --header
15937     as_fn_error $? "ambiguous option: \`$1'
15938 Try \`$0 --help' for more information.";;
15939   --help | --hel | -h )
15940     $as_echo "$ac_cs_usage"; exit ;;
15941   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15942   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15943     ac_cs_silent=: ;;
15944
15945   # This is an error.
15946   -*) as_fn_error $? "unrecognized option: \`$1'
15947 Try \`$0 --help' for more information." ;;
15948
15949   *) as_fn_append ac_config_targets " $1"
15950      ac_need_defaults=false ;;
15951
15952   esac
15953   shift
15954 done
15955
15956 ac_configure_extra_args=
15957
15958 if $ac_cs_silent; then
15959   exec 6>/dev/null
15960   ac_configure_extra_args="$ac_configure_extra_args --silent"
15961 fi
15962
15963 _ACEOF
15964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15965 if \$ac_cs_recheck; then
15966   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15967   shift
15968   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15969   CONFIG_SHELL='$SHELL'
15970   export CONFIG_SHELL
15971   exec "\$@"
15972 fi
15973
15974 _ACEOF
15975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15976 exec 5>>config.log
15977 {
15978   echo
15979   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15980 ## Running $as_me. ##
15981 _ASBOX
15982   $as_echo "$ac_log"
15983 } >&5
15984
15985 _ACEOF
15986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15987 #
15988 # INIT-COMMANDS
15989 #
15990
15991 srcdir="$srcdir"
15992 host="$host"
15993 target="$target"
15994 with_multisubdir="$with_multisubdir"
15995 with_multisrctop="$with_multisrctop"
15996 with_target_subdir="$with_target_subdir"
15997 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15998 multi_basedir="$multi_basedir"
15999 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16000 CC="$CC"
16001 CXX="$CXX"
16002 GFORTRAN="$GFORTRAN"
16003 GDC="$GDC"
16004
16005
16006 # The HP-UX ksh and POSIX shell print the target directory to stdout
16007 # if CDPATH is set.
16008 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16009
16010 sed_quote_subst='$sed_quote_subst'
16011 double_quote_subst='$double_quote_subst'
16012 delay_variable_subst='$delay_variable_subst'
16013 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16014 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16015 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16016 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16017 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16018 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16019 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16020 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16021 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16022 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16023 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16024 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16025 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16026 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16027 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16028 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16029 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16030 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16031 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16032 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16033 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16034 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16035 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16036 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16037 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16038 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16039 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16040 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16041 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16042 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16043 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16044 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16045 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16046 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16047 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16048 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16049 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16050 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16051 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16052 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16053 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16054 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16055 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16056 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16057 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16058 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16059 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16060 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16061 lt_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"`'
16062 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16063 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16064 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16065 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16066 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16067 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16068 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16069 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16070 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16071 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16072 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16073 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16074 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16075 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16076 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16077 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16078 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16079 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16080 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16081 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16082 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16083 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16084 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16085 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16086 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16087 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16088 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16089 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16090 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16091 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16092 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16093 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16094 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16095 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16096 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16097 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16098 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16099 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16100 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16101 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16102 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16103 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16104 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16105 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16106 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16107 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16108 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16109 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16110 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16111 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16112 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16113 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16114 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16115 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16116 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16117 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16118 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16119 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16120 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16121 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16122 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16123 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16124 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16125 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16126 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16127 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16128 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16129 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16130 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16131 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16132 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16133 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16134 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16135 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16136 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16137 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16138 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16139 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16140 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16141 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16142 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16143 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16144 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16145 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16146 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16147 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16148 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16149 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16150 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16151 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16152 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16153 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16154 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16155 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16156 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16157 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16158 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16159 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16160 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16161 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16162 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16163 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16164 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16165 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16166 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16167 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16168 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16169 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16170 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16171 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16172 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16173 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16174 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16175 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16176
16177 LTCC='$LTCC'
16178 LTCFLAGS='$LTCFLAGS'
16179 compiler='$compiler_DEFAULT'
16180
16181 # A function that is used when there is no print builtin or printf.
16182 func_fallback_echo ()
16183 {
16184   eval 'cat <<_LTECHO_EOF
16185 \$1
16186 _LTECHO_EOF'
16187 }
16188
16189 # Quote evaled strings.
16190 for var in SHELL \
16191 ECHO \
16192 SED \
16193 GREP \
16194 EGREP \
16195 FGREP \
16196 LD \
16197 NM \
16198 LN_S \
16199 lt_SP2NL \
16200 lt_NL2SP \
16201 reload_flag \
16202 OBJDUMP \
16203 deplibs_check_method \
16204 file_magic_cmd \
16205 AR \
16206 AR_FLAGS \
16207 STRIP \
16208 RANLIB \
16209 CC \
16210 CFLAGS \
16211 compiler \
16212 lt_cv_sys_global_symbol_pipe \
16213 lt_cv_sys_global_symbol_to_cdecl \
16214 lt_cv_sys_global_symbol_to_c_name_address \
16215 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16216 lt_prog_compiler_no_builtin_flag \
16217 lt_prog_compiler_wl \
16218 lt_prog_compiler_pic \
16219 lt_prog_compiler_static \
16220 lt_cv_prog_compiler_c_o \
16221 need_locks \
16222 DSYMUTIL \
16223 NMEDIT \
16224 LIPO \
16225 OTOOL \
16226 OTOOL64 \
16227 shrext_cmds \
16228 export_dynamic_flag_spec \
16229 whole_archive_flag_spec \
16230 compiler_needs_object \
16231 with_gnu_ld \
16232 allow_undefined_flag \
16233 no_undefined_flag \
16234 hardcode_libdir_flag_spec \
16235 hardcode_libdir_flag_spec_ld \
16236 hardcode_libdir_separator \
16237 fix_srcfile_path \
16238 exclude_expsyms \
16239 include_expsyms \
16240 file_list_spec \
16241 variables_saved_for_relink \
16242 libname_spec \
16243 library_names_spec \
16244 soname_spec \
16245 install_override_mode \
16246 finish_eval \
16247 old_striplib \
16248 striplib \
16249 LD_D \
16250 reload_flag_D \
16251 compiler_D \
16252 lt_prog_compiler_no_builtin_flag_D \
16253 lt_prog_compiler_wl_D \
16254 lt_prog_compiler_pic_D \
16255 lt_prog_compiler_static_D \
16256 lt_cv_prog_compiler_c_o_D \
16257 export_dynamic_flag_spec_D \
16258 whole_archive_flag_spec_D \
16259 compiler_needs_object_D \
16260 with_gnu_ld_D \
16261 allow_undefined_flag_D \
16262 no_undefined_flag_D \
16263 hardcode_libdir_flag_spec_D \
16264 hardcode_libdir_flag_spec_ld_D \
16265 hardcode_libdir_separator_D \
16266 fix_srcfile_path_D \
16267 exclude_expsyms_D \
16268 include_expsyms_D \
16269 file_list_spec_D; do
16270     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16271     *[\\\\\\\`\\"\\\$]*)
16272       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16273       ;;
16274     *)
16275       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16276       ;;
16277     esac
16278 done
16279
16280 # Double-quote double-evaled strings.
16281 for var in reload_cmds \
16282 old_postinstall_cmds \
16283 old_postuninstall_cmds \
16284 old_archive_cmds \
16285 extract_expsyms_cmds \
16286 old_archive_from_new_cmds \
16287 old_archive_from_expsyms_cmds \
16288 archive_cmds \
16289 archive_expsym_cmds \
16290 module_cmds \
16291 module_expsym_cmds \
16292 export_symbols_cmds \
16293 prelink_cmds \
16294 postinstall_cmds \
16295 postuninstall_cmds \
16296 finish_cmds \
16297 sys_lib_search_path_spec \
16298 sys_lib_dlsearch_path_spec \
16299 reload_cmds_D \
16300 old_archive_cmds_D \
16301 old_archive_from_new_cmds_D \
16302 old_archive_from_expsyms_cmds_D \
16303 archive_cmds_D \
16304 archive_expsym_cmds_D \
16305 module_cmds_D \
16306 module_expsym_cmds_D \
16307 export_symbols_cmds_D \
16308 prelink_cmds_D; do
16309     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16310     *[\\\\\\\`\\"\\\$]*)
16311       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16312       ;;
16313     *)
16314       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16315       ;;
16316     esac
16317 done
16318
16319 ac_aux_dir='$ac_aux_dir'
16320 xsi_shell='$xsi_shell'
16321 lt_shell_append='$lt_shell_append'
16322
16323 # See if we are running on zsh, and set the options which allow our
16324 # commands through without removal of \ escapes INIT.
16325 if test -n "\${ZSH_VERSION+set}" ; then
16326    setopt NO_GLOB_SUBST
16327 fi
16328
16329
16330     PACKAGE='$PACKAGE'
16331     VERSION='$VERSION'
16332     TIMESTAMP='$TIMESTAMP'
16333     RM='$RM'
16334     ofile='$ofile'
16335
16336
16337
16338
16339
16340
16341 _ACEOF
16342
16343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16344
16345 # Handling of arguments.
16346 for ac_config_target in $ac_config_targets
16347 do
16348   case $ac_config_target in
16349     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16350     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16351     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16352     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16353     "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16354     "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16355     "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16356     "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16357     "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16358     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16359     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16360
16361   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16362   esac
16363 done
16364
16365
16366 # If the user did not use the arguments to specify the items to instantiate,
16367 # then the envvar interface is used.  Set only those that are not.
16368 # We use the long form for the default assignment because of an extremely
16369 # bizarre bug on SunOS 4.1.3.
16370 if $ac_need_defaults; then
16371   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16372   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16373   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16374 fi
16375
16376 # Have a temporary directory for convenience.  Make it in the build tree
16377 # simply because there is no reason against having it here, and in addition,
16378 # creating and moving files from /tmp can sometimes cause problems.
16379 # Hook for its removal unless debugging.
16380 # Note that there is a small window in which the directory will not be cleaned:
16381 # after its creation but before its name has been assigned to `$tmp'.
16382 $debug ||
16383 {
16384   tmp= ac_tmp=
16385   trap 'exit_status=$?
16386   : "${ac_tmp:=$tmp}"
16387   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16388 ' 0
16389   trap 'as_fn_exit 1' 1 2 13 15
16390 }
16391 # Create a (secure) tmp directory for tmp files.
16392
16393 {
16394   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16395   test -d "$tmp"
16396 }  ||
16397 {
16398   tmp=./conf$$-$RANDOM
16399   (umask 077 && mkdir "$tmp")
16400 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16401 ac_tmp=$tmp
16402
16403 # Set up the scripts for CONFIG_FILES section.
16404 # No need to generate them if there are no CONFIG_FILES.
16405 # This happens for instance with `./config.status config.h'.
16406 if test -n "$CONFIG_FILES"; then
16407
16408 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16409   ac_cs_awk_getline=:
16410   ac_cs_awk_pipe_init=
16411   ac_cs_awk_read_file='
16412       while ((getline aline < (F[key])) > 0)
16413         print(aline)
16414       close(F[key])'
16415   ac_cs_awk_pipe_fini=
16416 else
16417   ac_cs_awk_getline=false
16418   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16419   ac_cs_awk_read_file='
16420       print "|#_!!_#|"
16421       print "cat " F[key] " &&"
16422       '$ac_cs_awk_pipe_init
16423   # The final `:' finishes the AND list.
16424   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16425 fi
16426 ac_cr=`echo X | tr X '\015'`
16427 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16428 # But we know of no other shell where ac_cr would be empty at this
16429 # point, so we can use a bashism as a fallback.
16430 if test "x$ac_cr" = x; then
16431   eval ac_cr=\$\'\\r\'
16432 fi
16433 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16434 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16435   ac_cs_awk_cr='\\r'
16436 else
16437   ac_cs_awk_cr=$ac_cr
16438 fi
16439
16440 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16441 _ACEOF
16442
16443 # Create commands to substitute file output variables.
16444 {
16445   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16446   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16447   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16448   echo "_ACAWK" &&
16449   echo "_ACEOF"
16450 } >conf$$files.sh &&
16451 . ./conf$$files.sh ||
16452   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16453 rm -f conf$$files.sh
16454
16455 {
16456   echo "cat >conf$$subs.awk <<_ACEOF" &&
16457   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16458   echo "_ACEOF"
16459 } >conf$$subs.sh ||
16460   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16461 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16462 ac_delim='%!_!# '
16463 for ac_last_try in false false false false false :; do
16464   . ./conf$$subs.sh ||
16465     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16466
16467   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16468   if test $ac_delim_n = $ac_delim_num; then
16469     break
16470   elif $ac_last_try; then
16471     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16472   else
16473     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16474   fi
16475 done
16476 rm -f conf$$subs.sh
16477
16478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16479 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16480 _ACEOF
16481 sed -n '
16482 h
16483 s/^/S["/; s/!.*/"]=/
16484 p
16485 g
16486 s/^[^!]*!//
16487 :repl
16488 t repl
16489 s/'"$ac_delim"'$//
16490 t delim
16491 :nl
16492 h
16493 s/\(.\{148\}\)..*/\1/
16494 t more1
16495 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16496 p
16497 n
16498 b repl
16499 :more1
16500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16501 p
16502 g
16503 s/.\{148\}//
16504 t nl
16505 :delim
16506 h
16507 s/\(.\{148\}\)..*/\1/
16508 t more2
16509 s/["\\]/\\&/g; s/^/"/; s/$/"/
16510 p
16511 b
16512 :more2
16513 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16514 p
16515 g
16516 s/.\{148\}//
16517 t delim
16518 ' <conf$$subs.awk | sed '
16519 /^[^""]/{
16520   N
16521   s/\n//
16522 }
16523 ' >>$CONFIG_STATUS || ac_write_fail=1
16524 rm -f conf$$subs.awk
16525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16526 _ACAWK
16527 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16528   for (key in S) S_is_set[key] = 1
16529   FS = "\a"
16530   \$ac_cs_awk_pipe_init
16531 }
16532 {
16533   line = $ 0
16534   nfields = split(line, field, "@")
16535   substed = 0
16536   len = length(field[1])
16537   for (i = 2; i < nfields; i++) {
16538     key = field[i]
16539     keylen = length(key)
16540     if (S_is_set[key]) {
16541       value = S[key]
16542       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16543       len += length(value) + length(field[++i])
16544       substed = 1
16545     } else
16546       len += 1 + keylen
16547   }
16548   if (nfields == 3 && !substed) {
16549     key = field[2]
16550     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16551       \$ac_cs_awk_read_file
16552       next
16553     }
16554   }
16555   print line
16556 }
16557 \$ac_cs_awk_pipe_fini
16558 _ACAWK
16559 _ACEOF
16560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16561 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16562   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16563 else
16564   cat
16565 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16566   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16567 _ACEOF
16568
16569 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16570 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16571 # trailing colons and then remove the whole line if VPATH becomes empty
16572 # (actually we leave an empty line to preserve line numbers).
16573 if test "x$srcdir" = x.; then
16574   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16575 h
16576 s///
16577 s/^/:/
16578 s/[      ]*$/:/
16579 s/:\$(srcdir):/:/g
16580 s/:\${srcdir}:/:/g
16581 s/:@srcdir@:/:/g
16582 s/^:*//
16583 s/:*$//
16584 x
16585 s/\(=[   ]*\).*/\1/
16586 G
16587 s/\n//
16588 s/^[^=]*=[       ]*$//
16589 }'
16590 fi
16591
16592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16593 fi # test -n "$CONFIG_FILES"
16594
16595 # Set up the scripts for CONFIG_HEADERS section.
16596 # No need to generate them if there are no CONFIG_HEADERS.
16597 # This happens for instance with `./config.status Makefile'.
16598 if test -n "$CONFIG_HEADERS"; then
16599 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16600 BEGIN {
16601 _ACEOF
16602
16603 # Transform confdefs.h into an awk script `defines.awk', embedded as
16604 # here-document in config.status, that substitutes the proper values into
16605 # config.h.in to produce config.h.
16606
16607 # Create a delimiter string that does not exist in confdefs.h, to ease
16608 # handling of long lines.
16609 ac_delim='%!_!# '
16610 for ac_last_try in false false :; do
16611   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16612   if test -z "$ac_tt"; then
16613     break
16614   elif $ac_last_try; then
16615     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16616   else
16617     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16618   fi
16619 done
16620
16621 # For the awk script, D is an array of macro values keyed by name,
16622 # likewise P contains macro parameters if any.  Preserve backslash
16623 # newline sequences.
16624
16625 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16626 sed -n '
16627 s/.\{148\}/&'"$ac_delim"'/g
16628 t rset
16629 :rset
16630 s/^[     ]*#[    ]*define[       ][      ]*/ /
16631 t def
16632 d
16633 :def
16634 s/\\$//
16635 t bsnl
16636 s/["\\]/\\&/g
16637 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16638 D["\1"]=" \3"/p
16639 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16640 d
16641 :bsnl
16642 s/["\\]/\\&/g
16643 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16644 D["\1"]=" \3\\\\\\n"\\/p
16645 t cont
16646 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16647 t cont
16648 d
16649 :cont
16650 n
16651 s/.\{148\}/&'"$ac_delim"'/g
16652 t clear
16653 :clear
16654 s/\\$//
16655 t bsnlc
16656 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16657 d
16658 :bsnlc
16659 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16660 b cont
16661 ' <confdefs.h | sed '
16662 s/'"$ac_delim"'/"\\\
16663 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16664
16665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16666   for (key in D) D_is_set[key] = 1
16667   FS = "\a"
16668 }
16669 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16670   line = \$ 0
16671   split(line, arg, " ")
16672   if (arg[1] == "#") {
16673     defundef = arg[2]
16674     mac1 = arg[3]
16675   } else {
16676     defundef = substr(arg[1], 2)
16677     mac1 = arg[2]
16678   }
16679   split(mac1, mac2, "(") #)
16680   macro = mac2[1]
16681   prefix = substr(line, 1, index(line, defundef) - 1)
16682   if (D_is_set[macro]) {
16683     # Preserve the white space surrounding the "#".
16684     print prefix "define", macro P[macro] D[macro]
16685     next
16686   } else {
16687     # Replace #undef with comments.  This is necessary, for example,
16688     # in the case of _POSIX_SOURCE, which is predefined and required
16689     # on some systems where configure will not decide to define it.
16690     if (defundef == "undef") {
16691       print "/*", prefix defundef, macro, "*/"
16692       next
16693     }
16694   }
16695 }
16696 { print }
16697 _ACAWK
16698 _ACEOF
16699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16700   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16701 fi # test -n "$CONFIG_HEADERS"
16702
16703
16704 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16705 shift
16706 for ac_tag
16707 do
16708   case $ac_tag in
16709   :[FHLC]) ac_mode=$ac_tag; continue;;
16710   esac
16711   case $ac_mode$ac_tag in
16712   :[FHL]*:*);;
16713   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16714   :[FH]-) ac_tag=-:-;;
16715   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16716   esac
16717   ac_save_IFS=$IFS
16718   IFS=:
16719   set x $ac_tag
16720   IFS=$ac_save_IFS
16721   shift
16722   ac_file=$1
16723   shift
16724
16725   case $ac_mode in
16726   :L) ac_source=$1;;
16727   :[FH])
16728     ac_file_inputs=
16729     for ac_f
16730     do
16731       case $ac_f in
16732       -) ac_f="$ac_tmp/stdin";;
16733       *) # Look for the file first in the build tree, then in the source tree
16734          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16735          # because $ac_f cannot contain `:'.
16736          test -f "$ac_f" ||
16737            case $ac_f in
16738            [\\/$]*) false;;
16739            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16740            esac ||
16741            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16742       esac
16743       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16744       as_fn_append ac_file_inputs " '$ac_f'"
16745     done
16746
16747     # Let's still pretend it is `configure' which instantiates (i.e., don't
16748     # use $as_me), people would be surprised to read:
16749     #    /* config.h.  Generated by config.status.  */
16750     configure_input='Generated from '`
16751           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16752         `' by configure.'
16753     if test x"$ac_file" != x-; then
16754       configure_input="$ac_file.  $configure_input"
16755       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16756 $as_echo "$as_me: creating $ac_file" >&6;}
16757     fi
16758     # Neutralize special characters interpreted by sed in replacement strings.
16759     case $configure_input in #(
16760     *\&* | *\|* | *\\* )
16761        ac_sed_conf_input=`$as_echo "$configure_input" |
16762        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16763     *) ac_sed_conf_input=$configure_input;;
16764     esac
16765
16766     case $ac_tag in
16767     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16768       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16769     esac
16770     ;;
16771   esac
16772
16773   ac_dir=`$as_dirname -- "$ac_file" ||
16774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16775          X"$ac_file" : 'X\(//\)[^/]' \| \
16776          X"$ac_file" : 'X\(//\)$' \| \
16777          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16778 $as_echo X"$ac_file" |
16779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16780             s//\1/
16781             q
16782           }
16783           /^X\(\/\/\)[^/].*/{
16784             s//\1/
16785             q
16786           }
16787           /^X\(\/\/\)$/{
16788             s//\1/
16789             q
16790           }
16791           /^X\(\/\).*/{
16792             s//\1/
16793             q
16794           }
16795           s/.*/./; q'`
16796   as_dir="$ac_dir"; as_fn_mkdir_p
16797   ac_builddir=.
16798
16799 case "$ac_dir" in
16800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16801 *)
16802   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16803   # A ".." for each directory in $ac_dir_suffix.
16804   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16805   case $ac_top_builddir_sub in
16806   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16807   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16808   esac ;;
16809 esac
16810 ac_abs_top_builddir=$ac_pwd
16811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16812 # for backward compatibility:
16813 ac_top_builddir=$ac_top_build_prefix
16814
16815 case $srcdir in
16816   .)  # We are building in place.
16817     ac_srcdir=.
16818     ac_top_srcdir=$ac_top_builddir_sub
16819     ac_abs_top_srcdir=$ac_pwd ;;
16820   [\\/]* | ?:[\\/]* )  # Absolute name.
16821     ac_srcdir=$srcdir$ac_dir_suffix;
16822     ac_top_srcdir=$srcdir
16823     ac_abs_top_srcdir=$srcdir ;;
16824   *) # Relative name.
16825     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16826     ac_top_srcdir=$ac_top_build_prefix$srcdir
16827     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16828 esac
16829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16830
16831
16832   case $ac_mode in
16833   :F)
16834   #
16835   # CONFIG_FILE
16836   #
16837
16838   case $INSTALL in
16839   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16840   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16841   esac
16842   ac_MKDIR_P=$MKDIR_P
16843   case $MKDIR_P in
16844   [\\/$]* | ?:[\\/]* ) ;;
16845   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16846   esac
16847 _ACEOF
16848
16849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16850 # If the template does not know about datarootdir, expand it.
16851 # FIXME: This hack should be removed a few years after 2.60.
16852 ac_datarootdir_hack=; ac_datarootdir_seen=
16853 ac_sed_dataroot='
16854 /datarootdir/ {
16855   p
16856   q
16857 }
16858 /@datadir@/p
16859 /@docdir@/p
16860 /@infodir@/p
16861 /@localedir@/p
16862 /@mandir@/p'
16863 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16864 *datarootdir*) ac_datarootdir_seen=yes;;
16865 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16866   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16867 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16868 _ACEOF
16869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870   ac_datarootdir_hack='
16871   s&@datadir@&$datadir&g
16872   s&@docdir@&$docdir&g
16873   s&@infodir@&$infodir&g
16874   s&@localedir@&$localedir&g
16875   s&@mandir@&$mandir&g
16876   s&\\\${datarootdir}&$datarootdir&g' ;;
16877 esac
16878 _ACEOF
16879
16880 # Neutralize VPATH when `$srcdir' = `.'.
16881 # Shell code in configure.ac might set extrasub.
16882 # FIXME: do we really want to maintain this feature?
16883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16884 ac_sed_extra="$ac_vpsub
16885 $extrasub
16886 _ACEOF
16887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16888 :t
16889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16890 s|@configure_input@|$ac_sed_conf_input|;t t
16891 s&@top_builddir@&$ac_top_builddir_sub&;t t
16892 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16893 s&@srcdir@&$ac_srcdir&;t t
16894 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16895 s&@top_srcdir@&$ac_top_srcdir&;t t
16896 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16897 s&@builddir@&$ac_builddir&;t t
16898 s&@abs_builddir@&$ac_abs_builddir&;t t
16899 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16900 s&@INSTALL@&$ac_INSTALL&;t t
16901 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16902 $ac_datarootdir_hack
16903 "
16904 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16905 if $ac_cs_awk_getline; then
16906   $AWK -f "$ac_tmp/subs.awk"
16907 else
16908   $AWK -f "$ac_tmp/subs.awk" | $SHELL
16909 fi \
16910   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16911
16912 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16913   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16914   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16915       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16916   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16917 which seems to be undefined.  Please make sure it is defined" >&5
16918 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16919 which seems to be undefined.  Please make sure it is defined" >&2;}
16920
16921   rm -f "$ac_tmp/stdin"
16922   case $ac_file in
16923   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16924   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16925   esac \
16926   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16927  ;;
16928   :H)
16929   #
16930   # CONFIG_HEADER
16931   #
16932   if test x"$ac_file" != x-; then
16933     {
16934       $as_echo "/* $configure_input  */" \
16935       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16936     } >"$ac_tmp/config.h" \
16937       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16938     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16939       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16940 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16941     else
16942       rm -f "$ac_file"
16943       mv "$ac_tmp/config.h" "$ac_file" \
16944         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16945     fi
16946   else
16947     $as_echo "/* $configure_input  */" \
16948       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16949       || as_fn_error $? "could not create -" "$LINENO" 5
16950   fi
16951 # Compute "$ac_file"'s index in $config_headers.
16952 _am_arg="$ac_file"
16953 _am_stamp_count=1
16954 for _am_header in $config_headers :; do
16955   case $_am_header in
16956     $_am_arg | $_am_arg:* )
16957       break ;;
16958     * )
16959       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16960   esac
16961 done
16962 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16963 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16964          X"$_am_arg" : 'X\(//\)[^/]' \| \
16965          X"$_am_arg" : 'X\(//\)$' \| \
16966          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16967 $as_echo X"$_am_arg" |
16968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16969             s//\1/
16970             q
16971           }
16972           /^X\(\/\/\)[^/].*/{
16973             s//\1/
16974             q
16975           }
16976           /^X\(\/\/\)$/{
16977             s//\1/
16978             q
16979           }
16980           /^X\(\/\).*/{
16981             s//\1/
16982             q
16983           }
16984           s/.*/./; q'`/stamp-h$_am_stamp_count
16985  ;;
16986
16987   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16988 $as_echo "$as_me: executing $ac_file commands" >&6;}
16989  ;;
16990   esac
16991
16992
16993   case $ac_file$ac_mode in
16994     "default-1":C)
16995 # Only add multilib support code if we just rebuilt the top-level
16996 # Makefile.
16997 case " $CONFIG_FILES " in
16998  *" Makefile "*)
16999    ac_file=Makefile . ${multi_basedir}/config-ml.in
17000    ;;
17001 esac ;;
17002     "libtool":C)
17003
17004     # See if we are running on zsh, and set the options which allow our
17005     # commands through without removal of \ escapes.
17006     if test -n "${ZSH_VERSION+set}" ; then
17007       setopt NO_GLOB_SUBST
17008     fi
17009
17010     cfgfile="${ofile}T"
17011     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17012     $RM "$cfgfile"
17013
17014     cat <<_LT_EOF >> "$cfgfile"
17015 #! $SHELL
17016
17017 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17018 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17020 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17021 #
17022 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17023 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17024 #   Written by Gordon Matzigkeit, 1996
17025 #
17026 #   This file is part of GNU Libtool.
17027 #
17028 # GNU Libtool is free software; you can redistribute it and/or
17029 # modify it under the terms of the GNU General Public License as
17030 # published by the Free Software Foundation; either version 2 of
17031 # the License, or (at your option) any later version.
17032 #
17033 # As a special exception to the GNU General Public License,
17034 # if you distribute this file as part of a program or library that
17035 # is built using GNU Libtool, you may include this file under the
17036 # same distribution terms that you use for the rest of that program.
17037 #
17038 # GNU Libtool is distributed in the hope that it will be useful,
17039 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17040 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17041 # GNU General Public License for more details.
17042 #
17043 # You should have received a copy of the GNU General Public License
17044 # along with GNU Libtool; see the file COPYING.  If not, a copy
17045 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17046 # obtained by writing to the Free Software Foundation, Inc.,
17047 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17048
17049
17050 # The names of the tagged configurations supported by this script.
17051 available_tags="D "
17052
17053 # ### BEGIN LIBTOOL CONFIG
17054
17055 # Which release of libtool.m4 was used?
17056 macro_version=$macro_version
17057 macro_revision=$macro_revision
17058
17059 # Whether or not to build shared libraries.
17060 build_libtool_libs=$enable_shared
17061
17062 # Whether or not to build static libraries.
17063 build_old_libs=$enable_static
17064
17065 # What type of objects to build.
17066 pic_mode=$pic_mode
17067
17068 # Whether or not to optimize for fast installation.
17069 fast_install=$enable_fast_install
17070
17071 # Shell to use when invoking shell scripts.
17072 SHELL=$lt_SHELL
17073
17074 # An echo program that protects backslashes.
17075 ECHO=$lt_ECHO
17076
17077 # The host system.
17078 host_alias=$host_alias
17079 host=$host
17080 host_os=$host_os
17081
17082 # The build system.
17083 build_alias=$build_alias
17084 build=$build
17085 build_os=$build_os
17086
17087 # A sed program that does not truncate output.
17088 SED=$lt_SED
17089
17090 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17091 Xsed="\$SED -e 1s/^X//"
17092
17093 # A grep program that handles long lines.
17094 GREP=$lt_GREP
17095
17096 # An ERE matcher.
17097 EGREP=$lt_EGREP
17098
17099 # A literal string matcher.
17100 FGREP=$lt_FGREP
17101
17102 # A BSD- or MS-compatible name lister.
17103 NM=$lt_NM
17104
17105 # Whether we need soft or hard links.
17106 LN_S=$lt_LN_S
17107
17108 # What is the maximum length of a command?
17109 max_cmd_len=$max_cmd_len
17110
17111 # Object file suffix (normally "o").
17112 objext=$ac_objext
17113
17114 # Executable file suffix (normally "").
17115 exeext=$exeext
17116
17117 # whether the shell understands "unset".
17118 lt_unset=$lt_unset
17119
17120 # turn spaces into newlines.
17121 SP2NL=$lt_lt_SP2NL
17122
17123 # turn newlines into spaces.
17124 NL2SP=$lt_lt_NL2SP
17125
17126 # An object symbol dumper.
17127 OBJDUMP=$lt_OBJDUMP
17128
17129 # Method to check whether dependent libraries are shared objects.
17130 deplibs_check_method=$lt_deplibs_check_method
17131
17132 # Command to use when deplibs_check_method == "file_magic".
17133 file_magic_cmd=$lt_file_magic_cmd
17134
17135 # The archiver.
17136 AR=$lt_AR
17137 AR_FLAGS=$lt_AR_FLAGS
17138
17139 # A symbol stripping program.
17140 STRIP=$lt_STRIP
17141
17142 # Commands used to install an old-style archive.
17143 RANLIB=$lt_RANLIB
17144 old_postinstall_cmds=$lt_old_postinstall_cmds
17145 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17146
17147 # Whether to use a lock for old archive extraction.
17148 lock_old_archive_extraction=$lock_old_archive_extraction
17149
17150 # A C compiler.
17151 LTCC=$lt_CC
17152
17153 # LTCC compiler flags.
17154 LTCFLAGS=$lt_CFLAGS
17155
17156 # Take the output of nm and produce a listing of raw symbols and C names.
17157 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17158
17159 # Transform the output of nm in a proper C declaration.
17160 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17161
17162 # Transform the output of nm in a C name address pair.
17163 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17164
17165 # Transform the output of nm in a C name address pair when lib prefix is needed.
17166 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17167
17168 # The name of the directory that contains temporary libtool files.
17169 objdir=$objdir
17170
17171 # Used to examine libraries when file_magic_cmd begins with "file".
17172 MAGIC_CMD=$MAGIC_CMD
17173
17174 # Must we lock files when doing compilation?
17175 need_locks=$lt_need_locks
17176
17177 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17178 DSYMUTIL=$lt_DSYMUTIL
17179
17180 # Tool to change global to local symbols on Mac OS X.
17181 NMEDIT=$lt_NMEDIT
17182
17183 # Tool to manipulate fat objects and archives on Mac OS X.
17184 LIPO=$lt_LIPO
17185
17186 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17187 OTOOL=$lt_OTOOL
17188
17189 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17190 OTOOL64=$lt_OTOOL64
17191
17192 # Old archive suffix (normally "a").
17193 libext=$libext
17194
17195 # Shared library suffix (normally ".so").
17196 shrext_cmds=$lt_shrext_cmds
17197
17198 # The commands to extract the exported symbol list from a shared archive.
17199 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17200
17201 # Variables whose values should be saved in libtool wrapper scripts and
17202 # restored at link time.
17203 variables_saved_for_relink=$lt_variables_saved_for_relink
17204
17205 # Do we need the "lib" prefix for modules?
17206 need_lib_prefix=$need_lib_prefix
17207
17208 # Do we need a version for libraries?
17209 need_version=$need_version
17210
17211 # Library versioning type.
17212 version_type=$version_type
17213
17214 # Shared library runtime path variable.
17215 runpath_var=$runpath_var
17216
17217 # Shared library path variable.
17218 shlibpath_var=$shlibpath_var
17219
17220 # Is shlibpath searched before the hard-coded library search path?
17221 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17222
17223 # Format of library name prefix.
17224 libname_spec=$lt_libname_spec
17225
17226 # List of archive names.  First name is the real one, the rest are links.
17227 # The last name is the one that the linker finds with -lNAME
17228 library_names_spec=$lt_library_names_spec
17229
17230 # The coded name of the library, if different from the real name.
17231 soname_spec=$lt_soname_spec
17232
17233 # Permission mode override for installation of shared libraries.
17234 install_override_mode=$lt_install_override_mode
17235
17236 # Command to use after installation of a shared archive.
17237 postinstall_cmds=$lt_postinstall_cmds
17238
17239 # Command to use after uninstallation of a shared archive.
17240 postuninstall_cmds=$lt_postuninstall_cmds
17241
17242 # Commands used to finish a libtool library installation in a directory.
17243 finish_cmds=$lt_finish_cmds
17244
17245 # As "finish_cmds", except a single script fragment to be evaled but
17246 # not shown.
17247 finish_eval=$lt_finish_eval
17248
17249 # Whether we should hardcode library paths into libraries.
17250 hardcode_into_libs=$hardcode_into_libs
17251
17252 # Compile-time system search path for libraries.
17253 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17254
17255 # Run-time system search path for libraries.
17256 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17257
17258 # Whether dlopen is supported.
17259 dlopen_support=$enable_dlopen
17260
17261 # Whether dlopen of programs is supported.
17262 dlopen_self=$enable_dlopen_self
17263
17264 # Whether dlopen of statically linked programs is supported.
17265 dlopen_self_static=$enable_dlopen_self_static
17266
17267 # Commands to strip libraries.
17268 old_striplib=$lt_old_striplib
17269 striplib=$lt_striplib
17270
17271
17272 # The linker used to build libraries.
17273 LD=$lt_LD
17274
17275 # How to create reloadable object files.
17276 reload_flag=$lt_reload_flag
17277 reload_cmds=$lt_reload_cmds
17278
17279 # Commands used to build an old-style archive.
17280 old_archive_cmds=$lt_old_archive_cmds
17281
17282 # A language specific compiler.
17283 CC=$lt_compiler
17284
17285 # Is the compiler the GNU compiler?
17286 with_gcc=$GCC
17287
17288 # Compiler flag to turn off builtin functions.
17289 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17290
17291 # How to pass a linker flag through the compiler.
17292 wl=$lt_lt_prog_compiler_wl
17293
17294 # Additional compiler flags for building library objects.
17295 pic_flag=$lt_lt_prog_compiler_pic
17296
17297 # Compiler flag to prevent dynamic linking.
17298 link_static_flag=$lt_lt_prog_compiler_static
17299
17300 # Does compiler simultaneously support -c and -o options?
17301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17302
17303 # Whether or not to add -lc for building shared libraries.
17304 build_libtool_need_lc=$archive_cmds_need_lc
17305
17306 # Whether or not to disallow shared libs when runtime libs are static.
17307 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17308
17309 # Compiler flag to allow reflexive dlopens.
17310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17311
17312 # Compiler flag to generate shared objects directly from archives.
17313 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17314
17315 # Whether the compiler copes with passing no objects directly.
17316 compiler_needs_object=$lt_compiler_needs_object
17317
17318 # Create an old-style archive from a shared archive.
17319 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17320
17321 # Create a temporary old-style archive to link instead of a shared archive.
17322 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17323
17324 # Commands used to build a shared archive.
17325 archive_cmds=$lt_archive_cmds
17326 archive_expsym_cmds=$lt_archive_expsym_cmds
17327
17328 # Commands used to build a loadable module if different from building
17329 # a shared archive.
17330 module_cmds=$lt_module_cmds
17331 module_expsym_cmds=$lt_module_expsym_cmds
17332
17333 # Whether we are building with GNU ld or not.
17334 with_gnu_ld=$lt_with_gnu_ld
17335
17336 # Flag that allows shared libraries with undefined symbols to be built.
17337 allow_undefined_flag=$lt_allow_undefined_flag
17338
17339 # Flag that enforces no undefined symbols.
17340 no_undefined_flag=$lt_no_undefined_flag
17341
17342 # Flag to hardcode \$libdir into a binary during linking.
17343 # This must work even if \$libdir does not exist
17344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17345
17346 # If ld is used when linking, flag to hardcode \$libdir into a binary
17347 # during linking.  This must work even if \$libdir does not exist.
17348 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17349
17350 # Whether we need a single "-rpath" flag with a separated argument.
17351 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17352
17353 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17354 # DIR into the resulting binary.
17355 hardcode_direct=$hardcode_direct
17356
17357 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17358 # DIR into the resulting binary and the resulting library dependency is
17359 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17360 # library is relocated.
17361 hardcode_direct_absolute=$hardcode_direct_absolute
17362
17363 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17364 # into the resulting binary.
17365 hardcode_minus_L=$hardcode_minus_L
17366
17367 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17368 # into the resulting binary.
17369 hardcode_shlibpath_var=$hardcode_shlibpath_var
17370
17371 # Set to "yes" if building a shared library automatically hardcodes DIR
17372 # into the library and all subsequent libraries and executables linked
17373 # against it.
17374 hardcode_automatic=$hardcode_automatic
17375
17376 # Set to yes if linker adds runtime paths of dependent libraries
17377 # to runtime path list.
17378 inherit_rpath=$inherit_rpath
17379
17380 # Whether libtool must link a program against all its dependency libraries.
17381 link_all_deplibs=$link_all_deplibs
17382
17383 # Fix the shell variable \$srcfile for the compiler.
17384 fix_srcfile_path=$lt_fix_srcfile_path
17385
17386 # Set to "yes" if exported symbols are required.
17387 always_export_symbols=$always_export_symbols
17388
17389 # The commands to list exported symbols.
17390 export_symbols_cmds=$lt_export_symbols_cmds
17391
17392 # Symbols that should not be listed in the preloaded symbols.
17393 exclude_expsyms=$lt_exclude_expsyms
17394
17395 # Symbols that must always be exported.
17396 include_expsyms=$lt_include_expsyms
17397
17398 # Commands necessary for linking programs (against libraries) with templates.
17399 prelink_cmds=$lt_prelink_cmds
17400
17401 # Specify filename containing input files.
17402 file_list_spec=$lt_file_list_spec
17403
17404 # How to hardcode a shared library path into an executable.
17405 hardcode_action=$hardcode_action
17406
17407 # ### END LIBTOOL CONFIG
17408
17409 _LT_EOF
17410
17411   case $host_os in
17412   aix3*)
17413     cat <<\_LT_EOF >> "$cfgfile"
17414 # AIX sometimes has problems with the GCC collect2 program.  For some
17415 # reason, if we set the COLLECT_NAMES environment variable, the problems
17416 # vanish in a puff of smoke.
17417 if test "X${COLLECT_NAMES+set}" != Xset; then
17418   COLLECT_NAMES=
17419   export COLLECT_NAMES
17420 fi
17421 _LT_EOF
17422     ;;
17423   esac
17424
17425
17426 ltmain="$ac_aux_dir/ltmain.sh"
17427
17428
17429   # We use sed instead of cat because bash on DJGPP gets confused if
17430   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17431   # text mode, it properly converts lines to CR/LF.  This bash problem
17432   # is reportedly fixed, but why not run on old versions too?
17433   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17434     || (rm -f "$cfgfile"; exit 1)
17435
17436   case $xsi_shell in
17437   yes)
17438     cat << \_LT_EOF >> "$cfgfile"
17439
17440 # func_dirname file append nondir_replacement
17441 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17442 # otherwise set result to NONDIR_REPLACEMENT.
17443 func_dirname ()
17444 {
17445   case ${1} in
17446     */*) func_dirname_result="${1%/*}${2}" ;;
17447     *  ) func_dirname_result="${3}" ;;
17448   esac
17449 }
17450
17451 # func_basename file
17452 func_basename ()
17453 {
17454   func_basename_result="${1##*/}"
17455 }
17456
17457 # func_dirname_and_basename file append nondir_replacement
17458 # perform func_basename and func_dirname in a single function
17459 # call:
17460 #   dirname:  Compute the dirname of FILE.  If nonempty,
17461 #             add APPEND to the result, otherwise set result
17462 #             to NONDIR_REPLACEMENT.
17463 #             value returned in "$func_dirname_result"
17464 #   basename: Compute filename of FILE.
17465 #             value retuned in "$func_basename_result"
17466 # Implementation must be kept synchronized with func_dirname
17467 # and func_basename. For efficiency, we do not delegate to
17468 # those functions but instead duplicate the functionality here.
17469 func_dirname_and_basename ()
17470 {
17471   case ${1} in
17472     */*) func_dirname_result="${1%/*}${2}" ;;
17473     *  ) func_dirname_result="${3}" ;;
17474   esac
17475   func_basename_result="${1##*/}"
17476 }
17477
17478 # func_stripname prefix suffix name
17479 # strip PREFIX and SUFFIX off of NAME.
17480 # PREFIX and SUFFIX must not contain globbing or regex special
17481 # characters, hashes, percent signs, but SUFFIX may contain a leading
17482 # dot (in which case that matches only a dot).
17483 func_stripname ()
17484 {
17485   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17486   # positional parameters, so assign one to ordinary parameter first.
17487   func_stripname_result=${3}
17488   func_stripname_result=${func_stripname_result#"${1}"}
17489   func_stripname_result=${func_stripname_result%"${2}"}
17490 }
17491
17492 # func_opt_split
17493 func_opt_split ()
17494 {
17495   func_opt_split_opt=${1%%=*}
17496   func_opt_split_arg=${1#*=}
17497 }
17498
17499 # func_lo2o object
17500 func_lo2o ()
17501 {
17502   case ${1} in
17503     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17504     *)    func_lo2o_result=${1} ;;
17505   esac
17506 }
17507
17508 # func_xform libobj-or-source
17509 func_xform ()
17510 {
17511   func_xform_result=${1%.*}.lo
17512 }
17513
17514 # func_arith arithmetic-term...
17515 func_arith ()
17516 {
17517   func_arith_result=$(( $* ))
17518 }
17519
17520 # func_len string
17521 # STRING may not start with a hyphen.
17522 func_len ()
17523 {
17524   func_len_result=${#1}
17525 }
17526
17527 _LT_EOF
17528     ;;
17529   *) # Bourne compatible functions.
17530     cat << \_LT_EOF >> "$cfgfile"
17531
17532 # func_dirname file append nondir_replacement
17533 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17534 # otherwise set result to NONDIR_REPLACEMENT.
17535 func_dirname ()
17536 {
17537   # Extract subdirectory from the argument.
17538   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17539   if test "X$func_dirname_result" = "X${1}"; then
17540     func_dirname_result="${3}"
17541   else
17542     func_dirname_result="$func_dirname_result${2}"
17543   fi
17544 }
17545
17546 # func_basename file
17547 func_basename ()
17548 {
17549   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17550 }
17551
17552
17553 # func_stripname prefix suffix name
17554 # strip PREFIX and SUFFIX off of NAME.
17555 # PREFIX and SUFFIX must not contain globbing or regex special
17556 # characters, hashes, percent signs, but SUFFIX may contain a leading
17557 # dot (in which case that matches only a dot).
17558 # func_strip_suffix prefix name
17559 func_stripname ()
17560 {
17561   case ${2} in
17562     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17563     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17564   esac
17565 }
17566
17567 # sed scripts:
17568 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17569 my_sed_long_arg='1s/^-[^=]*=//'
17570
17571 # func_opt_split
17572 func_opt_split ()
17573 {
17574   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17575   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17576 }
17577
17578 # func_lo2o object
17579 func_lo2o ()
17580 {
17581   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17582 }
17583
17584 # func_xform libobj-or-source
17585 func_xform ()
17586 {
17587   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17588 }
17589
17590 # func_arith arithmetic-term...
17591 func_arith ()
17592 {
17593   func_arith_result=`expr "$@"`
17594 }
17595
17596 # func_len string
17597 # STRING may not start with a hyphen.
17598 func_len ()
17599 {
17600   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17601 }
17602
17603 _LT_EOF
17604 esac
17605
17606 case $lt_shell_append in
17607   yes)
17608     cat << \_LT_EOF >> "$cfgfile"
17609
17610 # func_append var value
17611 # Append VALUE to the end of shell variable VAR.
17612 func_append ()
17613 {
17614   eval "$1+=\$2"
17615 }
17616 _LT_EOF
17617     ;;
17618   *)
17619     cat << \_LT_EOF >> "$cfgfile"
17620
17621 # func_append var value
17622 # Append VALUE to the end of shell variable VAR.
17623 func_append ()
17624 {
17625   eval "$1=\$$1\$2"
17626 }
17627
17628 _LT_EOF
17629     ;;
17630   esac
17631
17632
17633   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17634     || (rm -f "$cfgfile"; exit 1)
17635
17636   mv -f "$cfgfile" "$ofile" ||
17637     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17638   chmod +x "$ofile"
17639
17640
17641     cat <<_LT_EOF >> "$ofile"
17642
17643 # ### BEGIN LIBTOOL TAG CONFIG: D
17644
17645 # The linker used to build libraries.
17646 LD=$lt_LD_D
17647
17648 # How to create reloadable object files.
17649 reload_flag=$lt_reload_flag_D
17650 reload_cmds=$lt_reload_cmds_D
17651
17652 # Commands used to build an old-style archive.
17653 old_archive_cmds=$lt_old_archive_cmds_D
17654
17655 # A language specific compiler.
17656 CC=$lt_compiler_D
17657
17658 # Is the compiler the GNU compiler?
17659 with_gcc=$GCC_D
17660
17661 # Compiler flag to turn off builtin functions.
17662 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17663
17664 # How to pass a linker flag through the compiler.
17665 wl=$lt_lt_prog_compiler_wl_D
17666
17667 # Additional compiler flags for building library objects.
17668 pic_flag=$lt_lt_prog_compiler_pic_D
17669
17670 # Compiler flag to prevent dynamic linking.
17671 link_static_flag=$lt_lt_prog_compiler_static_D
17672
17673 # Does compiler simultaneously support -c and -o options?
17674 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17675
17676 # Whether or not to add -lc for building shared libraries.
17677 build_libtool_need_lc=$archive_cmds_need_lc_D
17678
17679 # Whether or not to disallow shared libs when runtime libs are static.
17680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17681
17682 # Compiler flag to allow reflexive dlopens.
17683 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17684
17685 # Compiler flag to generate shared objects directly from archives.
17686 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17687
17688 # Whether the compiler copes with passing no objects directly.
17689 compiler_needs_object=$lt_compiler_needs_object_D
17690
17691 # Create an old-style archive from a shared archive.
17692 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17693
17694 # Create a temporary old-style archive to link instead of a shared archive.
17695 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17696
17697 # Commands used to build a shared archive.
17698 archive_cmds=$lt_archive_cmds_D
17699 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17700
17701 # Commands used to build a loadable module if different from building
17702 # a shared archive.
17703 module_cmds=$lt_module_cmds_D
17704 module_expsym_cmds=$lt_module_expsym_cmds_D
17705
17706 # Whether we are building with GNU ld or not.
17707 with_gnu_ld=$lt_with_gnu_ld_D
17708
17709 # Flag that allows shared libraries with undefined symbols to be built.
17710 allow_undefined_flag=$lt_allow_undefined_flag_D
17711
17712 # Flag that enforces no undefined symbols.
17713 no_undefined_flag=$lt_no_undefined_flag_D
17714
17715 # Flag to hardcode \$libdir into a binary during linking.
17716 # This must work even if \$libdir does not exist
17717 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17718
17719 # If ld is used when linking, flag to hardcode \$libdir into a binary
17720 # during linking.  This must work even if \$libdir does not exist.
17721 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17722
17723 # Whether we need a single "-rpath" flag with a separated argument.
17724 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17725
17726 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17727 # DIR into the resulting binary.
17728 hardcode_direct=$hardcode_direct_D
17729
17730 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17731 # DIR into the resulting binary and the resulting library dependency is
17732 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17733 # library is relocated.
17734 hardcode_direct_absolute=$hardcode_direct_absolute_D
17735
17736 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17737 # into the resulting binary.
17738 hardcode_minus_L=$hardcode_minus_L_D
17739
17740 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17741 # into the resulting binary.
17742 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17743
17744 # Set to "yes" if building a shared library automatically hardcodes DIR
17745 # into the library and all subsequent libraries and executables linked
17746 # against it.
17747 hardcode_automatic=$hardcode_automatic_D
17748
17749 # Set to yes if linker adds runtime paths of dependent libraries
17750 # to runtime path list.
17751 inherit_rpath=$inherit_rpath_D
17752
17753 # Whether libtool must link a program against all its dependency libraries.
17754 link_all_deplibs=$link_all_deplibs_D
17755
17756 # Fix the shell variable \$srcfile for the compiler.
17757 fix_srcfile_path=$lt_fix_srcfile_path_D
17758
17759 # Set to "yes" if exported symbols are required.
17760 always_export_symbols=$always_export_symbols_D
17761
17762 # The commands to list exported symbols.
17763 export_symbols_cmds=$lt_export_symbols_cmds_D
17764
17765 # Symbols that should not be listed in the preloaded symbols.
17766 exclude_expsyms=$lt_exclude_expsyms_D
17767
17768 # Symbols that must always be exported.
17769 include_expsyms=$lt_include_expsyms_D
17770
17771 # Commands necessary for linking programs (against libraries) with templates.
17772 prelink_cmds=$lt_prelink_cmds_D
17773
17774 # Specify filename containing input files.
17775 file_list_spec=$lt_file_list_spec_D
17776
17777 # How to hardcode a shared library path into an executable.
17778 hardcode_action=$hardcode_action_D
17779
17780 # ### END LIBTOOL TAG CONFIG: D
17781 _LT_EOF
17782
17783  ;;
17784     "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17785     "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17786 s!`test -f '$<' || echo '$(srcdir)/'`!!
17787 _EOF
17788    sed -f vpsed$$ $ac_file > tmp$$
17789    mv tmp$$ $ac_file
17790    rm vpsed$$
17791    echo 'MULTISUBDIR =' >> $ac_file
17792    ml_norecursion=yes
17793    . ${multi_basedir}/config-ml.in
17794    { ml_norecursion=; unset ml_norecursion;}
17795  ;;
17796     "src/Makefile":F) cat > vpsed$$ << \_EOF
17797 s!`test -f '$<' || echo '$(srcdir)/'`!!
17798 _EOF
17799    sed -f vpsed$$ $ac_file > tmp$$
17800    mv tmp$$ $ac_file
17801    rm vpsed$$
17802    echo 'MULTISUBDIR =' >> $ac_file
17803    ml_norecursion=yes
17804    . ${multi_basedir}/config-ml.in
17805    { ml_norecursion=; unset ml_norecursion;}
17806  ;;
17807     "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17808 s!`test -f '$<' || echo '$(srcdir)/'`!!
17809 _EOF
17810    sed -f vpsed$$ $ac_file > tmp$$
17811    mv tmp$$ $ac_file
17812    rm vpsed$$
17813    echo 'MULTISUBDIR =' >> $ac_file
17814    ml_norecursion=yes
17815    . ${multi_basedir}/config-ml.in
17816    { ml_norecursion=; unset ml_norecursion;}
17817  ;;
17818
17819   esac
17820 done # for ac_tag
17821
17822
17823 as_fn_exit 0
17824 _ACEOF
17825 ac_clean_files=$ac_clean_files_save
17826
17827 test $ac_write_fail = 0 ||
17828   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17829
17830
17831 # configure is writing to config.log, and then calls config.status.
17832 # config.status does its own redirection, appending to config.log.
17833 # Unfortunately, on DOS this fails, as config.log is still kept open
17834 # by configure, so config.status won't be able to write to it; its
17835 # output is simply discarded.  So we exec the FD to /dev/null,
17836 # effectively closing config.log, so it can be properly (re)opened and
17837 # appended to by config.status.  When coming back to configure, we
17838 # need to make the FD available again.
17839 if test "$no_create" != yes; then
17840   ac_cs_success=:
17841   ac_config_status_args=
17842   test "$silent" = yes &&
17843     ac_config_status_args="$ac_config_status_args --quiet"
17844   exec 5>/dev/null
17845   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17846   exec 5>>config.log
17847   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17848   # would make configure fail if this is the last instruction.
17849   $ac_cs_success || as_fn_exit 1
17850 fi
17851 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17852   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17853 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17854 fi
17855