]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/file/configure
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / file / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for file 5.37.
4 #
5 # Report bugs to <christos@astron.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: christos@astron.com about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='file'
592 PACKAGE_TARNAME='file'
593 PACKAGE_VERSION='5.37'
594 PACKAGE_STRING='file 5.37'
595 PACKAGE_BUGREPORT='christos@astron.com'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_header_list=
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 IS_CROSS_COMPILE_FALSE
639 IS_CROSS_COMPILE_TRUE
640 LIBOBJS
641 HAVE_VISIBILITY
642 CFLAG_VISIBILITY
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 MANIFEST_TOOL
649 RANLIB
650 ac_ct_AR
651 AR
652 DLLTOOL
653 OBJDUMP
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 SED
660 LIBTOOL
661 LN_S
662 EGREP
663 GREP
664 CPP
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 am__nodep
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 WARNINGS
683 FSECT5_FALSE
684 FSECT5_TRUE
685 fsect
686 pkgdatadir
687 MINGW_FALSE
688 MINGW_TRUE
689 MINGW
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files=''
764 ac_user_opts='
765 enable_option_checking
766 enable_silent_rules
767 enable_elf
768 enable_elf_core
769 enable_zlib
770 enable_libseccomp
771 enable_fsect_man5
772 enable_dependency_tracking
773 enable_static
774 with_pic
775 enable_shared
776 enable_fast_install
777 with_gnu_ld
778 with_sysroot
779 enable_libtool_lock
780 enable_largefile
781 enable_warnings
782 '
783       ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CPP'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833 infodir='${datarootdir}/info'
834 htmldir='${docdir}'
835 dvidir='${docdir}'
836 pdfdir='${docdir}'
837 psdir='${docdir}'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
841
842 ac_prev=
843 ac_dashdash=
844 for ac_option
845 do
846   # If the previous option needs an argument, assign it.
847   if test -n "$ac_prev"; then
848     eval $ac_prev=\$ac_option
849     ac_prev=
850     continue
851   fi
852
853   case $ac_option in
854   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855   *=)   ac_optarg= ;;
856   *)    ac_optarg=yes ;;
857   esac
858
859   # Accept the important Cygnus configure options, so we can diagnose typos.
860
861   case $ac_dashdash$ac_option in
862   --)
863     ac_dashdash=yes ;;
864
865   -bindir | --bindir | --bindi | --bind | --bin | --bi)
866     ac_prev=bindir ;;
867   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868     bindir=$ac_optarg ;;
869
870   -build | --build | --buil | --bui | --bu)
871     ac_prev=build_alias ;;
872   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873     build_alias=$ac_optarg ;;
874
875   -cache-file | --cache-file | --cache-fil | --cache-fi \
876   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877     ac_prev=cache_file ;;
878   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880     cache_file=$ac_optarg ;;
881
882   --config-cache | -C)
883     cache_file=config.cache ;;
884
885   -datadir | --datadir | --datadi | --datad)
886     ac_prev=datadir ;;
887   -datadir=* | --datadir=* | --datadi=* | --datad=*)
888     datadir=$ac_optarg ;;
889
890   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891   | --dataroo | --dataro | --datar)
892     ac_prev=datarootdir ;;
893   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895     datarootdir=$ac_optarg ;;
896
897   -disable-* | --disable-*)
898     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899     # Reject names that are not valid shell variable names.
900     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901       as_fn_error $? "invalid feature name: $ac_useropt"
902     ac_useropt_orig=$ac_useropt
903     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904     case $ac_user_opts in
905       *"
906 "enable_$ac_useropt"
907 "*) ;;
908       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909          ac_unrecognized_sep=', ';;
910     esac
911     eval enable_$ac_useropt=no ;;
912
913   -docdir | --docdir | --docdi | --doc | --do)
914     ac_prev=docdir ;;
915   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916     docdir=$ac_optarg ;;
917
918   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919     ac_prev=dvidir ;;
920   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921     dvidir=$ac_optarg ;;
922
923   -enable-* | --enable-*)
924     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927       as_fn_error $? "invalid feature name: $ac_useropt"
928     ac_useropt_orig=$ac_useropt
929     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930     case $ac_user_opts in
931       *"
932 "enable_$ac_useropt"
933 "*) ;;
934       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935          ac_unrecognized_sep=', ';;
936     esac
937     eval enable_$ac_useropt=\$ac_optarg ;;
938
939   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941   | --exec | --exe | --ex)
942     ac_prev=exec_prefix ;;
943   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945   | --exec=* | --exe=* | --ex=*)
946     exec_prefix=$ac_optarg ;;
947
948   -gas | --gas | --ga | --g)
949     # Obsolete; use --with-gas.
950     with_gas=yes ;;
951
952   -help | --help | --hel | --he | -h)
953     ac_init_help=long ;;
954   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955     ac_init_help=recursive ;;
956   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957     ac_init_help=short ;;
958
959   -host | --host | --hos | --ho)
960     ac_prev=host_alias ;;
961   -host=* | --host=* | --hos=* | --ho=*)
962     host_alias=$ac_optarg ;;
963
964   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965     ac_prev=htmldir ;;
966   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967   | --ht=*)
968     htmldir=$ac_optarg ;;
969
970   -includedir | --includedir | --includedi | --included | --include \
971   | --includ | --inclu | --incl | --inc)
972     ac_prev=includedir ;;
973   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974   | --includ=* | --inclu=* | --incl=* | --inc=*)
975     includedir=$ac_optarg ;;
976
977   -infodir | --infodir | --infodi | --infod | --info | --inf)
978     ac_prev=infodir ;;
979   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980     infodir=$ac_optarg ;;
981
982   -libdir | --libdir | --libdi | --libd)
983     ac_prev=libdir ;;
984   -libdir=* | --libdir=* | --libdi=* | --libd=*)
985     libdir=$ac_optarg ;;
986
987   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988   | --libexe | --libex | --libe)
989     ac_prev=libexecdir ;;
990   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991   | --libexe=* | --libex=* | --libe=*)
992     libexecdir=$ac_optarg ;;
993
994   -localedir | --localedir | --localedi | --localed | --locale)
995     ac_prev=localedir ;;
996   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997     localedir=$ac_optarg ;;
998
999   -localstatedir | --localstatedir | --localstatedi | --localstated \
1000   | --localstate | --localstat | --localsta | --localst | --locals)
1001     ac_prev=localstatedir ;;
1002   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004     localstatedir=$ac_optarg ;;
1005
1006   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007     ac_prev=mandir ;;
1008   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009     mandir=$ac_optarg ;;
1010
1011   -nfp | --nfp | --nf)
1012     # Obsolete; use --without-fp.
1013     with_fp=no ;;
1014
1015   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016   | --no-cr | --no-c | -n)
1017     no_create=yes ;;
1018
1019   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021     no_recursion=yes ;;
1022
1023   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025   | --oldin | --oldi | --old | --ol | --o)
1026     ac_prev=oldincludedir ;;
1027   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030     oldincludedir=$ac_optarg ;;
1031
1032   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033     ac_prev=prefix ;;
1034   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035     prefix=$ac_optarg ;;
1036
1037   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038   | --program-pre | --program-pr | --program-p)
1039     ac_prev=program_prefix ;;
1040   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042     program_prefix=$ac_optarg ;;
1043
1044   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045   | --program-suf | --program-su | --program-s)
1046     ac_prev=program_suffix ;;
1047   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049     program_suffix=$ac_optarg ;;
1050
1051   -program-transform-name | --program-transform-name \
1052   | --program-transform-nam | --program-transform-na \
1053   | --program-transform-n | --program-transform- \
1054   | --program-transform | --program-transfor \
1055   | --program-transfo | --program-transf \
1056   | --program-trans | --program-tran \
1057   | --progr-tra | --program-tr | --program-t)
1058     ac_prev=program_transform_name ;;
1059   -program-transform-name=* | --program-transform-name=* \
1060   | --program-transform-nam=* | --program-transform-na=* \
1061   | --program-transform-n=* | --program-transform-=* \
1062   | --program-transform=* | --program-transfor=* \
1063   | --program-transfo=* | --program-transf=* \
1064   | --program-trans=* | --program-tran=* \
1065   | --progr-tra=* | --program-tr=* | --program-t=*)
1066     program_transform_name=$ac_optarg ;;
1067
1068   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069     ac_prev=pdfdir ;;
1070   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071     pdfdir=$ac_optarg ;;
1072
1073   -psdir | --psdir | --psdi | --psd | --ps)
1074     ac_prev=psdir ;;
1075   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076     psdir=$ac_optarg ;;
1077
1078   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079   | -silent | --silent | --silen | --sile | --sil)
1080     silent=yes ;;
1081
1082   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083     ac_prev=sbindir ;;
1084   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085   | --sbi=* | --sb=*)
1086     sbindir=$ac_optarg ;;
1087
1088   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090   | --sharedst | --shareds | --shared | --share | --shar \
1091   | --sha | --sh)
1092     ac_prev=sharedstatedir ;;
1093   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096   | --sha=* | --sh=*)
1097     sharedstatedir=$ac_optarg ;;
1098
1099   -site | --site | --sit)
1100     ac_prev=site ;;
1101   -site=* | --site=* | --sit=*)
1102     site=$ac_optarg ;;
1103
1104   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105     ac_prev=srcdir ;;
1106   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107     srcdir=$ac_optarg ;;
1108
1109   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110   | --syscon | --sysco | --sysc | --sys | --sy)
1111     ac_prev=sysconfdir ;;
1112   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114     sysconfdir=$ac_optarg ;;
1115
1116   -target | --target | --targe | --targ | --tar | --ta | --t)
1117     ac_prev=target_alias ;;
1118   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119     target_alias=$ac_optarg ;;
1120
1121   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122     verbose=yes ;;
1123
1124   -version | --version | --versio | --versi | --vers | -V)
1125     ac_init_version=: ;;
1126
1127   -with-* | --with-*)
1128     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131       as_fn_error $? "invalid package name: $ac_useropt"
1132     ac_useropt_orig=$ac_useropt
1133     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134     case $ac_user_opts in
1135       *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139          ac_unrecognized_sep=', ';;
1140     esac
1141     eval with_$ac_useropt=\$ac_optarg ;;
1142
1143   -without-* | --without-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error $? "invalid package name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval with_$ac_useropt=no ;;
1158
1159   --x)
1160     # Obsolete; use --with-x.
1161     with_x=yes ;;
1162
1163   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164   | --x-incl | --x-inc | --x-in | --x-i)
1165     ac_prev=x_includes ;;
1166   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168     x_includes=$ac_optarg ;;
1169
1170   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172     ac_prev=x_libraries ;;
1173   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175     x_libraries=$ac_optarg ;;
1176
1177   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1179     ;;
1180
1181   *=*)
1182     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183     # Reject names that are not valid shell variable names.
1184     case $ac_envvar in #(
1185       '' | [0-9]* | *[!_$as_cr_alnum]* )
1186       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187     esac
1188     eval $ac_envvar=\$ac_optarg
1189     export $ac_envvar ;;
1190
1191   *)
1192     # FIXME: should be removed in autoconf 3.0.
1193     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197     ;;
1198
1199   esac
1200 done
1201
1202 if test -n "$ac_prev"; then
1203   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204   as_fn_error $? "missing argument to $ac_option"
1205 fi
1206
1207 if test -n "$ac_unrecognized_opts"; then
1208   case $enable_option_checking in
1209     no) ;;
1210     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212   esac
1213 fi
1214
1215 # Check all directory arguments for consistency.
1216 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217                 datadir sysconfdir sharedstatedir localstatedir includedir \
1218                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219                 libdir localedir mandir
1220 do
1221   eval ac_val=\$$ac_var
1222   # Remove trailing slashes.
1223   case $ac_val in
1224     */ )
1225       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226       eval $ac_var=\$ac_val;;
1227   esac
1228   # Be sure to have absolute directory names.
1229   case $ac_val in
1230     [\\/$]* | ?:[\\/]* )  continue;;
1231     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232   esac
1233   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 done
1235
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1239 build=$build_alias
1240 host=$host_alias
1241 target=$target_alias
1242
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245   if test "x$build_alias" = x; then
1246     cross_compiling=maybe
1247   elif test "x$build_alias" != "x$host_alias"; then
1248     cross_compiling=yes
1249   fi
1250 fi
1251
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255 test "$silent" = yes && exec 6>/dev/null
1256
1257
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261   as_fn_error $? "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263   as_fn_error $? "pwd does not report name of working directory"
1264
1265
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268   ac_srcdir_defaulted=yes
1269   # Try the directory containing this script, then the parent directory.
1270   ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272          X"$as_myself" : 'X\(//\)[^/]' \| \
1273          X"$as_myself" : 'X\(//\)$' \| \
1274          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)[^/].*/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\/\)$/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\).*/{
1289             s//\1/
1290             q
1291           }
1292           s/.*/./; q'`
1293   srcdir=$ac_confdir
1294   if test ! -r "$srcdir/$ac_unique_file"; then
1295     srcdir=..
1296   fi
1297 else
1298   ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303 fi
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307         pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310   srcdir=.
1311 fi
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_env_${ac_var}_value=\$${ac_var}
1321   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1324
1325 #
1326 # Report the --help message.
1327 #
1328 if test "$ac_init_help" = "long"; then
1329   # Omit some internal or obsolete options to make the list less imposing.
1330   # This message is too long to be a string in the A/UX 3.1 sh.
1331   cat <<_ACEOF
1332 \`configure' configures file 5.37 to adapt to many kinds of systems.
1333
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE.  See below for descriptions of some of the useful variables.
1338
1339 Defaults for the options are specified in brackets.
1340
1341 Configuration:
1342   -h, --help              display this help and exit
1343       --help=short        display options specific to this package
1344       --help=recursive    display the short help of all the included packages
1345   -V, --version           display version information and exit
1346   -q, --quiet, --silent   do not print \`checking ...' messages
1347       --cache-file=FILE   cache test results in FILE [disabled]
1348   -C, --config-cache      alias for \`--cache-file=config.cache'
1349   -n, --no-create         do not create output files
1350       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1351
1352 Installation directories:
1353   --prefix=PREFIX         install architecture-independent files in PREFIX
1354                           [$ac_default_prefix]
1355   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1356                           [PREFIX]
1357
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1362
1363 For better control, use the options below.
1364
1365 Fine tuning of the installation directories:
1366   --bindir=DIR            user executables [EPREFIX/bin]
1367   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1368   --libexecdir=DIR        program executables [EPREFIX/libexec]
1369   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1370   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1371   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1372   --libdir=DIR            object code libraries [EPREFIX/lib]
1373   --includedir=DIR        C header files [PREFIX/include]
1374   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1375   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1376   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1377   --infodir=DIR           info documentation [DATAROOTDIR/info]
1378   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1379   --mandir=DIR            man documentation [DATAROOTDIR/man]
1380   --docdir=DIR            documentation root [DATAROOTDIR/doc/file]
1381   --htmldir=DIR           html documentation [DOCDIR]
1382   --dvidir=DIR            dvi documentation [DOCDIR]
1383   --pdfdir=DIR            pdf documentation [DOCDIR]
1384   --psdir=DIR             ps documentation [DOCDIR]
1385 _ACEOF
1386
1387   cat <<\_ACEOF
1388
1389 Program names:
1390   --program-prefix=PREFIX            prepend PREFIX to installed program names
1391   --program-suffix=SUFFIX            append SUFFIX to installed program names
1392   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1393
1394 System types:
1395   --build=BUILD     configure for building on BUILD [guessed]
1396   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1397 _ACEOF
1398 fi
1399
1400 if test -n "$ac_init_help"; then
1401   case $ac_init_help in
1402      short | recursive ) echo "Configuration of file 5.37:";;
1403    esac
1404   cat <<\_ACEOF
1405
1406 Optional Features:
1407   --disable-option-checking  ignore unrecognized --enable/--with options
1408   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1409   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1410   --enable-silent-rules   less verbose build output (undo: "make V=1")
1411   --disable-silent-rules  verbose build output (undo: "make V=0")
1412   --disable-elf            disable builtin ELF support
1413   --disable-elf-core       disable ELF core file support
1414   --disable-zlib          disable zlib compression support [default=auto]
1415   --disable-libseccomp    disable libseccomp sandboxing [default=auto]
1416   --enable-fsect-man5      enable file formats in man section 5
1417   --enable-dependency-tracking
1418                           do not reject slow dependency extractors
1419   --disable-dependency-tracking
1420                           speeds up one-time build
1421   --enable-static[=PKGS]  build static libraries [default=no]
1422   --enable-shared[=PKGS]  build shared libraries [default=yes]
1423   --enable-fast-install[=PKGS]
1424                           optimize for fast installation [default=yes]
1425   --disable-libtool-lock  avoid locking (might break parallel builds)
1426   --disable-largefile     omit support for large files
1427   --disable-warnings    disable compiler warnings
1428
1429 Optional Packages:
1430   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1433                           both]
1434   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1435   --with-sysroot=DIR Search for dependent libraries within DIR
1436                         (or the compiler's sysroot if not specified).
1437
1438 Some influential environment variables:
1439   CC          C compiler command
1440   CFLAGS      C compiler flags
1441   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1442               nonstandard directory <lib dir>
1443   LIBS        libraries to pass to the linker, e.g. -l<library>
1444   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445               you have headers in a nonstandard directory <include dir>
1446   CPP         C preprocessor
1447
1448 Use these variables to override the choices made by `configure' or to help
1449 it to find libraries and programs with nonstandard names/locations.
1450
1451 Report bugs to <christos@astron.com>.
1452 _ACEOF
1453 ac_status=$?
1454 fi
1455
1456 if test "$ac_init_help" = "recursive"; then
1457   # If there are subdirs, report their specific --help.
1458   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459     test -d "$ac_dir" ||
1460       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461       continue
1462     ac_builddir=.
1463
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *)
1467   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468   # A ".." for each directory in $ac_dir_suffix.
1469   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470   case $ac_top_builddir_sub in
1471   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473   esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1479
1480 case $srcdir in
1481   .)  # We are building in place.
1482     ac_srcdir=.
1483     ac_top_srcdir=$ac_top_builddir_sub
1484     ac_abs_top_srcdir=$ac_pwd ;;
1485   [\\/]* | ?:[\\/]* )  # Absolute name.
1486     ac_srcdir=$srcdir$ac_dir_suffix;
1487     ac_top_srcdir=$srcdir
1488     ac_abs_top_srcdir=$srcdir ;;
1489   *) # Relative name.
1490     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491     ac_top_srcdir=$ac_top_build_prefix$srcdir
1492     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496     cd "$ac_dir" || { ac_status=$?; continue; }
1497     # Check for guested configure.
1498     if test -f "$ac_srcdir/configure.gnu"; then
1499       echo &&
1500       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501     elif test -f "$ac_srcdir/configure"; then
1502       echo &&
1503       $SHELL "$ac_srcdir/configure" --help=recursive
1504     else
1505       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506     fi || ac_status=$?
1507     cd "$ac_pwd" || { ac_status=$?; break; }
1508   done
1509 fi
1510
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1513   cat <<\_ACEOF
1514 file configure 5.37
1515 generated by GNU Autoconf 2.69
1516
1517 Copyright (C) 2012 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1520 _ACEOF
1521   exit
1522 fi
1523
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1527
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1532 {
1533   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534   rm -f conftest.$ac_objext
1535   if { { ac_try="$ac_compile"
1536 case "(($ac_try" in
1537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538   *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542   (eval "$ac_compile") 2>conftest.err
1543   ac_status=$?
1544   if test -s conftest.err; then
1545     grep -v '^ *+' conftest.err >conftest.er1
1546     cat conftest.er1 >&5
1547     mv -f conftest.er1 conftest.err
1548   fi
1549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550   test $ac_status = 0; } && {
1551          test -z "$ac_c_werror_flag" ||
1552          test ! -s conftest.err
1553        } && test -s conftest.$ac_objext; then :
1554   ac_retval=0
1555 else
1556   $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1558
1559         ac_retval=1
1560 fi
1561   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562   as_fn_set_status $ac_retval
1563
1564 } # ac_fn_c_try_compile
1565
1566 # ac_fn_c_try_cpp LINENO
1567 # ----------------------
1568 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_cpp ()
1570 {
1571   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572   if { { ac_try="$ac_cpp conftest.$ac_ext"
1573 case "(($ac_try" in
1574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575   *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1580   ac_status=$?
1581   if test -s conftest.err; then
1582     grep -v '^ *+' conftest.err >conftest.er1
1583     cat conftest.er1 >&5
1584     mv -f conftest.er1 conftest.err
1585   fi
1586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587   test $ac_status = 0; } > conftest.i && {
1588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1589          test ! -s conftest.err
1590        }; then :
1591   ac_retval=0
1592 else
1593   $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596     ac_retval=1
1597 fi
1598   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599   as_fn_set_status $ac_retval
1600
1601 } # ac_fn_c_try_cpp
1602
1603 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1604 # -------------------------------------------------------
1605 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1606 # the include files in INCLUDES and setting the cache variable VAR
1607 # accordingly.
1608 ac_fn_c_check_header_mongrel ()
1609 {
1610   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611   if eval \${$3+:} false; then :
1612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if eval \${$3+:} false; then :
1615   $as_echo_n "(cached) " >&6
1616 fi
1617 eval ac_res=\$$3
1618                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619 $as_echo "$ac_res" >&6; }
1620 else
1621   # Is the header compilable?
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1623 $as_echo_n "checking $2 usability... " >&6; }
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h.  */
1626 $4
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_compile "$LINENO"; then :
1630   ac_header_compiler=yes
1631 else
1632   ac_header_compiler=no
1633 fi
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1636 $as_echo "$ac_header_compiler" >&6; }
1637
1638 # Is the header present?
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1640 $as_echo_n "checking $2 presence... " >&6; }
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h.  */
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_cpp "$LINENO"; then :
1646   ac_header_preproc=yes
1647 else
1648   ac_header_preproc=no
1649 fi
1650 rm -f conftest.err conftest.i conftest.$ac_ext
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1652 $as_echo "$ac_header_preproc" >&6; }
1653
1654 # So?  What about this header?
1655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1656   yes:no: )
1657     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1658 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1660 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661     ;;
1662   no:yes:* )
1663     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1664 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1665     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1666 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1667     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1668 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1669     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1670 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1671     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1672 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673 ( $as_echo "## ---------------------------------- ##
1674 ## Report this to christos@astron.com ##
1675 ## ---------------------------------- ##"
1676      ) | sed "s/^/$as_me: WARNING:     /" >&2
1677     ;;
1678 esac
1679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \${$3+:} false; then :
1682   $as_echo_n "(cached) " >&6
1683 else
1684   eval "$3=\$ac_header_compiler"
1685 fi
1686 eval ac_res=\$$3
1687                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1689 fi
1690   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691
1692 } # ac_fn_c_check_header_mongrel
1693
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1699 {
1700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701   if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704   *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708   (eval "$ac_link") 2>&5
1709   ac_status=$?
1710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712   { { case "(($ac_try" in
1713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714   *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718   (eval "$ac_try") 2>&5
1719   ac_status=$?
1720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721   test $ac_status = 0; }; }; then :
1722   ac_retval=0
1723 else
1724   $as_echo "$as_me: program exited with status $ac_status" >&5
1725        $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728        ac_retval=$ac_status
1729 fi
1730   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732   as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_run
1735
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1741 {
1742   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746   $as_echo_n "(cached) " >&6
1747 else
1748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h.  */
1750 $4
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754   eval "$3=yes"
1755 else
1756   eval "$3=no"
1757 fi
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759 fi
1760 eval ac_res=\$$3
1761                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765 } # ac_fn_c_check_header_compile
1766
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_link ()
1771 {
1772   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773   rm -f conftest.$ac_objext conftest$ac_exeext
1774   if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777   *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781   (eval "$ac_link") 2>conftest.err
1782   ac_status=$?
1783   if test -s conftest.err; then
1784     grep -v '^ *+' conftest.err >conftest.er1
1785     cat conftest.er1 >&5
1786     mv -f conftest.er1 conftest.err
1787   fi
1788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789   test $ac_status = 0; } && {
1790          test -z "$ac_c_werror_flag" ||
1791          test ! -s conftest.err
1792        } && test -s conftest$ac_exeext && {
1793          test "$cross_compiling" = yes ||
1794          test -x conftest$ac_exeext
1795        }; then :
1796   ac_retval=0
1797 else
1798   $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801         ac_retval=1
1802 fi
1803   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805   # interfere with the next link command; also delete a directory that is
1806   # left behind by Apple's compiler.  We do this before executing the actions.
1807   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809   as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_link
1812
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1817 {
1818   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822   $as_echo_n "(cached) " >&6
1823 else
1824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h.  */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1828 #define $2 innocuous_$2
1829
1830 /* System header to define __stub macros and hopefully few prototypes,
1831     which can conflict with char $2 (); below.
1832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833     <limits.h> exists even on freestanding compilers.  */
1834
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1840
1841 #undef $2
1842
1843 /* Override any GCC internal prototype to avoid an error.
1844    Use char because int might match the return type of a GCC
1845    builtin and then its argument prototype would still apply.  */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851     to always fail with ENOSYS.  Some functions are actually named
1852     something starting with __ and the normal name is an alias.  */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1856
1857 int
1858 main ()
1859 {
1860 return $2 ();
1861   ;
1862   return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866   eval "$3=yes"
1867 else
1868   eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext \
1871     conftest$ac_exeext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_func
1879
1880 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1881 # -------------------------------------------
1882 # Tests whether TYPE exists after having included INCLUDES, setting cache
1883 # variable VAR accordingly.
1884 ac_fn_c_check_type ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890   $as_echo_n "(cached) " >&6
1891 else
1892   eval "$3=no"
1893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h.  */
1895 $4
1896 int
1897 main ()
1898 {
1899 if (sizeof ($2))
1900          return 0;
1901   ;
1902   return 0;
1903 }
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h.  */
1908 $4
1909 int
1910 main ()
1911 {
1912 if (sizeof (($2)))
1913             return 0;
1914   ;
1915   return 0;
1916 }
1917 _ACEOF
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919
1920 else
1921   eval "$3=yes"
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 fi
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 fi
1927 eval ac_res=\$$3
1928                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
1932 } # ac_fn_c_check_type
1933
1934 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1935 # ----------------------------------------------------
1936 # Tries to find if the field MEMBER exists in type AGGR, after including
1937 # INCLUDES, setting cache variable VAR accordingly.
1938 ac_fn_c_check_member ()
1939 {
1940   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1942 $as_echo_n "checking for $2.$3... " >&6; }
1943 if eval \${$4+:} false; then :
1944   $as_echo_n "(cached) " >&6
1945 else
1946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h.  */
1948 $5
1949 int
1950 main ()
1951 {
1952 static $2 ac_aggr;
1953 if (ac_aggr.$3)
1954 return 0;
1955   ;
1956   return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960   eval "$4=yes"
1961 else
1962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h.  */
1964 $5
1965 int
1966 main ()
1967 {
1968 static $2 ac_aggr;
1969 if (sizeof ac_aggr.$3)
1970 return 0;
1971   ;
1972   return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976   eval "$4=yes"
1977 else
1978   eval "$4=no"
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 fi
1984 eval ac_res=\$$4
1985                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988
1989 } # ac_fn_c_check_member
1990
1991 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1992 # ---------------------------------------------
1993 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1994 # accordingly.
1995 ac_fn_c_check_decl ()
1996 {
1997   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998   as_decl_name=`echo $2|sed 's/ *(.*//'`
1999   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2001 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2002 if eval \${$3+:} false; then :
2003   $as_echo_n "(cached) " >&6
2004 else
2005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h.  */
2007 $4
2008 int
2009 main ()
2010 {
2011 #ifndef $as_decl_name
2012 #ifdef __cplusplus
2013   (void) $as_decl_use;
2014 #else
2015   (void) $as_decl_name;
2016 #endif
2017 #endif
2018
2019   ;
2020   return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024   eval "$3=yes"
2025 else
2026   eval "$3=no"
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 fi
2030 eval ac_res=\$$3
2031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034
2035 } # ac_fn_c_check_decl
2036
2037 # ac_fn_c_find_uintX_t LINENO BITS VAR
2038 # ------------------------------------
2039 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2040 # accordingly.
2041 ac_fn_c_find_uintX_t ()
2042 {
2043   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2045 $as_echo_n "checking for uint$2_t... " >&6; }
2046 if eval \${$3+:} false; then :
2047   $as_echo_n "(cached) " >&6
2048 else
2049   eval "$3=no"
2050      # Order is important - never check a type that is potentially smaller
2051      # than half of the expected target width.
2052      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2053          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2054        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h.  */
2056 $ac_includes_default
2057 int
2058 main ()
2059 {
2060 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2061 test_array [0] = 0;
2062 return test_array [0];
2063
2064   ;
2065   return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069   case $ac_type in #(
2070   uint$2_t) :
2071     eval "$3=yes" ;; #(
2072   *) :
2073     eval "$3=\$ac_type" ;;
2074 esac
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077        if eval test \"x\$"$3"\" = x"no"; then :
2078
2079 else
2080   break
2081 fi
2082      done
2083 fi
2084 eval ac_res=\$$3
2085                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086 $as_echo "$ac_res" >&6; }
2087   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088
2089 } # ac_fn_c_find_uintX_t
2090
2091 # ac_fn_c_find_intX_t LINENO BITS VAR
2092 # -----------------------------------
2093 # Finds a signed integer type with width BITS, setting cache variable VAR
2094 # accordingly.
2095 ac_fn_c_find_intX_t ()
2096 {
2097   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2099 $as_echo_n "checking for int$2_t... " >&6; }
2100 if eval \${$3+:} false; then :
2101   $as_echo_n "(cached) " >&6
2102 else
2103   eval "$3=no"
2104      # Order is important - never check a type that is potentially smaller
2105      # than half of the expected target width.
2106      for ac_type in int$2_t 'int' 'long int' \
2107          'long long int' 'short int' 'signed char'; do
2108        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $ac_includes_default
2111              enum { N = $2 / 2 - 1 };
2112 int
2113 main ()
2114 {
2115 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2116 test_array [0] = 0;
2117 return test_array [0];
2118
2119   ;
2120   return 0;
2121 }
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h.  */
2126 $ac_includes_default
2127                 enum { N = $2 / 2 - 1 };
2128 int
2129 main ()
2130 {
2131 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2132                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2133 test_array [0] = 0;
2134 return test_array [0];
2135
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141
2142 else
2143   case $ac_type in #(
2144   int$2_t) :
2145     eval "$3=yes" ;; #(
2146   *) :
2147     eval "$3=\$ac_type" ;;
2148 esac
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153        if eval test \"x\$"$3"\" = x"no"; then :
2154
2155 else
2156   break
2157 fi
2158      done
2159 fi
2160 eval ac_res=\$$3
2161                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164
2165 } # ac_fn_c_find_intX_t
2166 cat >config.log <<_ACEOF
2167 This file contains any messages produced by compilers while
2168 running configure, to aid debugging if configure makes a mistake.
2169
2170 It was created by file $as_me 5.37, which was
2171 generated by GNU Autoconf 2.69.  Invocation command line was
2172
2173   $ $0 $@
2174
2175 _ACEOF
2176 exec 5>>config.log
2177 {
2178 cat <<_ASUNAME
2179 ## --------- ##
2180 ## Platform. ##
2181 ## --------- ##
2182
2183 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2184 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2185 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2186 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2187 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2188
2189 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2190 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2191
2192 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2193 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2194 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2195 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2196 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2197 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2198 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2199
2200 _ASUNAME
2201
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205   IFS=$as_save_IFS
2206   test -z "$as_dir" && as_dir=.
2207     $as_echo "PATH: $as_dir"
2208   done
2209 IFS=$as_save_IFS
2210
2211 } >&5
2212
2213 cat >&5 <<_ACEOF
2214
2215
2216 ## ----------- ##
2217 ## Core tests. ##
2218 ## ----------- ##
2219
2220 _ACEOF
2221
2222
2223 # Keep a trace of the command line.
2224 # Strip out --no-create and --no-recursion so they do not pile up.
2225 # Strip out --silent because we don't want to record it for future runs.
2226 # Also quote any args containing shell meta-characters.
2227 # Make two passes to allow for proper duplicate-argument suppression.
2228 ac_configure_args=
2229 ac_configure_args0=
2230 ac_configure_args1=
2231 ac_must_keep_next=false
2232 for ac_pass in 1 2
2233 do
2234   for ac_arg
2235   do
2236     case $ac_arg in
2237     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2238     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2239     | -silent | --silent | --silen | --sile | --sil)
2240       continue ;;
2241     *\'*)
2242       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2243     esac
2244     case $ac_pass in
2245     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2246     2)
2247       as_fn_append ac_configure_args1 " '$ac_arg'"
2248       if test $ac_must_keep_next = true; then
2249         ac_must_keep_next=false # Got value, back to normal.
2250       else
2251         case $ac_arg in
2252           *=* | --config-cache | -C | -disable-* | --disable-* \
2253           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2254           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2255           | -with-* | --with-* | -without-* | --without-* | --x)
2256             case "$ac_configure_args0 " in
2257               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2258             esac
2259             ;;
2260           -* ) ac_must_keep_next=true ;;
2261         esac
2262       fi
2263       as_fn_append ac_configure_args " '$ac_arg'"
2264       ;;
2265     esac
2266   done
2267 done
2268 { ac_configure_args0=; unset ac_configure_args0;}
2269 { ac_configure_args1=; unset ac_configure_args1;}
2270
2271 # When interrupted or exit'd, cleanup temporary files, and complete
2272 # config.log.  We remove comments because anyway the quotes in there
2273 # would cause problems or look ugly.
2274 # WARNING: Use '\'' to represent an apostrophe within the trap.
2275 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2276 trap 'exit_status=$?
2277   # Save into config.log some information that might help in debugging.
2278   {
2279     echo
2280
2281     $as_echo "## ---------------- ##
2282 ## Cache variables. ##
2283 ## ---------------- ##"
2284     echo
2285     # The following way of writing the cache mishandles newlines in values,
2286 (
2287   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2288     eval ac_val=\$$ac_var
2289     case $ac_val in #(
2290     *${as_nl}*)
2291       case $ac_var in #(
2292       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2293 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2294       esac
2295       case $ac_var in #(
2296       _ | IFS | as_nl) ;; #(
2297       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2298       *) { eval $ac_var=; unset $ac_var;} ;;
2299       esac ;;
2300     esac
2301   done
2302   (set) 2>&1 |
2303     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2304     *${as_nl}ac_space=\ *)
2305       sed -n \
2306         "s/'\''/'\''\\\\'\'''\''/g;
2307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2308       ;; #(
2309     *)
2310       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2311       ;;
2312     esac |
2313     sort
2314 )
2315     echo
2316
2317     $as_echo "## ----------------- ##
2318 ## Output variables. ##
2319 ## ----------------- ##"
2320     echo
2321     for ac_var in $ac_subst_vars
2322     do
2323       eval ac_val=\$$ac_var
2324       case $ac_val in
2325       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2326       esac
2327       $as_echo "$ac_var='\''$ac_val'\''"
2328     done | sort
2329     echo
2330
2331     if test -n "$ac_subst_files"; then
2332       $as_echo "## ------------------- ##
2333 ## File substitutions. ##
2334 ## ------------------- ##"
2335       echo
2336       for ac_var in $ac_subst_files
2337       do
2338         eval ac_val=\$$ac_var
2339         case $ac_val in
2340         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341         esac
2342         $as_echo "$ac_var='\''$ac_val'\''"
2343       done | sort
2344       echo
2345     fi
2346
2347     if test -s confdefs.h; then
2348       $as_echo "## ----------- ##
2349 ## confdefs.h. ##
2350 ## ----------- ##"
2351       echo
2352       cat confdefs.h
2353       echo
2354     fi
2355     test "$ac_signal" != 0 &&
2356       $as_echo "$as_me: caught signal $ac_signal"
2357     $as_echo "$as_me: exit $exit_status"
2358   } >&5
2359   rm -f core *.core core.conftest.* &&
2360     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2361     exit $exit_status
2362 ' 0
2363 for ac_signal in 1 2 13 15; do
2364   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2365 done
2366 ac_signal=0
2367
2368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2369 rm -f -r conftest* confdefs.h
2370
2371 $as_echo "/* confdefs.h */" > confdefs.h
2372
2373 # Predefined preprocessor variables.
2374
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_NAME "$PACKAGE_NAME"
2377 _ACEOF
2378
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2381 _ACEOF
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_STRING "$PACKAGE_STRING"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_URL "$PACKAGE_URL"
2397 _ACEOF
2398
2399
2400 # Let the site file select an alternate cache file if it wants to.
2401 # Prefer an explicitly selected file to automatically selected ones.
2402 ac_site_file1=NONE
2403 ac_site_file2=NONE
2404 if test -n "$CONFIG_SITE"; then
2405   # We do not want a PATH search for config.site.
2406   case $CONFIG_SITE in #((
2407     -*)  ac_site_file1=./$CONFIG_SITE;;
2408     */*) ac_site_file1=$CONFIG_SITE;;
2409     *)   ac_site_file1=./$CONFIG_SITE;;
2410   esac
2411 elif test "x$prefix" != xNONE; then
2412   ac_site_file1=$prefix/share/config.site
2413   ac_site_file2=$prefix/etc/config.site
2414 else
2415   ac_site_file1=$ac_default_prefix/share/config.site
2416   ac_site_file2=$ac_default_prefix/etc/config.site
2417 fi
2418 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2419 do
2420   test "x$ac_site_file" = xNONE && continue
2421   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2422     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2423 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2424     sed 's/^/| /' "$ac_site_file" >&5
2425     . "$ac_site_file" \
2426       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 as_fn_error $? "failed to load site script $ac_site_file
2429 See \`config.log' for more details" "$LINENO" 5; }
2430   fi
2431 done
2432
2433 if test -r "$cache_file"; then
2434   # Some versions of bash will fail to source /dev/null (special files
2435   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2436   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2437     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2438 $as_echo "$as_me: loading cache $cache_file" >&6;}
2439     case $cache_file in
2440       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2441       *)                      . "./$cache_file";;
2442     esac
2443   fi
2444 else
2445   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2446 $as_echo "$as_me: creating cache $cache_file" >&6;}
2447   >$cache_file
2448 fi
2449
2450 as_fn_append ac_header_list " stdlib.h"
2451 as_fn_append ac_header_list " unistd.h"
2452 as_fn_append ac_header_list " sys/param.h"
2453 # Check that the precious variables saved in the cache have kept the same
2454 # value.
2455 ac_cache_corrupted=false
2456 for ac_var in $ac_precious_vars; do
2457   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458   eval ac_new_set=\$ac_env_${ac_var}_set
2459   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460   eval ac_new_val=\$ac_env_${ac_var}_value
2461   case $ac_old_set,$ac_new_set in
2462     set,)
2463       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2464 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2465       ac_cache_corrupted=: ;;
2466     ,set)
2467       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2468 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2469       ac_cache_corrupted=: ;;
2470     ,);;
2471     *)
2472       if test "x$ac_old_val" != "x$ac_new_val"; then
2473         # differences in whitespace do not lead to failure.
2474         ac_old_val_w=`echo x $ac_old_val`
2475         ac_new_val_w=`echo x $ac_new_val`
2476         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2477           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2478 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2479           ac_cache_corrupted=:
2480         else
2481           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2482 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2483           eval $ac_var=\$ac_old_val
2484         fi
2485         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2486 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2487         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2488 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2489       fi;;
2490   esac
2491   # Pass precious variables to config.status.
2492   if test "$ac_new_set" = set; then
2493     case $ac_new_val in
2494     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2495     *) ac_arg=$ac_var=$ac_new_val ;;
2496     esac
2497     case " $ac_configure_args " in
2498       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2499       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2500     esac
2501   fi
2502 done
2503 if $ac_cache_corrupted; then
2504   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2508   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2509 fi
2510 ## -------------------- ##
2511 ## Main body of script. ##
2512 ## -------------------- ##
2513
2514 ac_ext=c
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519
2520
2521 am__api_version='1.15'
2522
2523 ac_aux_dir=
2524 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2525   if test -f "$ac_dir/install-sh"; then
2526     ac_aux_dir=$ac_dir
2527     ac_install_sh="$ac_aux_dir/install-sh -c"
2528     break
2529   elif test -f "$ac_dir/install.sh"; then
2530     ac_aux_dir=$ac_dir
2531     ac_install_sh="$ac_aux_dir/install.sh -c"
2532     break
2533   elif test -f "$ac_dir/shtool"; then
2534     ac_aux_dir=$ac_dir
2535     ac_install_sh="$ac_aux_dir/shtool install -c"
2536     break
2537   fi
2538 done
2539 if test -z "$ac_aux_dir"; then
2540   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2541 fi
2542
2543 # These three variables are undocumented and unsupported,
2544 # and are intended to be withdrawn in a future Autoconf release.
2545 # They can cause serious problems if a builder's source tree is in a directory
2546 # whose full name contains unusual characters.
2547 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2548 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2549 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2550
2551
2552 # Find a good install program.  We prefer a C program (faster),
2553 # so one script is as good as another.  But avoid the broken or
2554 # incompatible versions:
2555 # SysV /etc/install, /usr/sbin/install
2556 # SunOS /usr/etc/install
2557 # IRIX /sbin/install
2558 # AIX /bin/install
2559 # AmigaOS /C/install, which installs bootblocks on floppy discs
2560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2563 # OS/2's system install, which has a completely different semantic
2564 # ./install, which can be erroneously created by make from ./install.sh.
2565 # Reject install programs that cannot install multiple files.
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2567 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2568 if test -z "$INSTALL"; then
2569 if ${ac_cv_path_install+:} false; then :
2570   $as_echo_n "(cached) " >&6
2571 else
2572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575   IFS=$as_save_IFS
2576   test -z "$as_dir" && as_dir=.
2577     # Account for people who put trailing slashes in PATH elements.
2578 case $as_dir/ in #((
2579   ./ | .// | /[cC]/* | \
2580   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2581   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2582   /usr/ucb/* ) ;;
2583   *)
2584     # OSF1 and SCO ODT 3.0 have their own names for install.
2585     # Don't use installbsd from OSF since it installs stuff as root
2586     # by default.
2587     for ac_prog in ginstall scoinst install; do
2588       for ac_exec_ext in '' $ac_executable_extensions; do
2589         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2590           if test $ac_prog = install &&
2591             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2592             # AIX install.  It has an incompatible calling convention.
2593             :
2594           elif test $ac_prog = install &&
2595             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2596             # program-specific install script used by HP pwplus--don't use.
2597             :
2598           else
2599             rm -rf conftest.one conftest.two conftest.dir
2600             echo one > conftest.one
2601             echo two > conftest.two
2602             mkdir conftest.dir
2603             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2604               test -s conftest.one && test -s conftest.two &&
2605               test -s conftest.dir/conftest.one &&
2606               test -s conftest.dir/conftest.two
2607             then
2608               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2609               break 3
2610             fi
2611           fi
2612         fi
2613       done
2614     done
2615     ;;
2616 esac
2617
2618   done
2619 IFS=$as_save_IFS
2620
2621 rm -rf conftest.one conftest.two conftest.dir
2622
2623 fi
2624   if test "${ac_cv_path_install+set}" = set; then
2625     INSTALL=$ac_cv_path_install
2626   else
2627     # As a last resort, use the slow shell script.  Don't cache a
2628     # value for INSTALL within a source directory, because that will
2629     # break other packages using the cache if that directory is
2630     # removed, or if the value is a relative name.
2631     INSTALL=$ac_install_sh
2632   fi
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2635 $as_echo "$INSTALL" >&6; }
2636
2637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2638 # It thinks the first close brace ends the variable substitution.
2639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2640
2641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2642
2643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2644
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2646 $as_echo_n "checking whether build environment is sane... " >&6; }
2647 # Reject unsafe characters in $srcdir or the absolute working directory
2648 # name.  Accept space and tab only in the latter.
2649 am_lf='
2650 '
2651 case `pwd` in
2652   *[\\\"\#\$\&\'\`$am_lf]*)
2653     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2654 esac
2655 case $srcdir in
2656   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2657     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2658 esac
2659
2660 # Do 'set' in a subshell so we don't clobber the current shell's
2661 # arguments.  Must try -L first in case configure is actually a
2662 # symlink; some systems play weird games with the mod time of symlinks
2663 # (eg FreeBSD returns the mod time of the symlink's containing
2664 # directory).
2665 if (
2666    am_has_slept=no
2667    for am_try in 1 2; do
2668      echo "timestamp, slept: $am_has_slept" > conftest.file
2669      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2670      if test "$*" = "X"; then
2671         # -L didn't work.
2672         set X `ls -t "$srcdir/configure" conftest.file`
2673      fi
2674      if test "$*" != "X $srcdir/configure conftest.file" \
2675         && test "$*" != "X conftest.file $srcdir/configure"; then
2676
2677         # If neither matched, then we have a broken ls.  This can happen
2678         # if, for instance, CONFIG_SHELL is bash and it inherits a
2679         # broken ls alias from the environment.  This has actually
2680         # happened.  Such a system could not be considered "sane".
2681         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2682   alias in your environment" "$LINENO" 5
2683      fi
2684      if test "$2" = conftest.file || test $am_try -eq 2; then
2685        break
2686      fi
2687      # Just in case.
2688      sleep 1
2689      am_has_slept=yes
2690    done
2691    test "$2" = conftest.file
2692    )
2693 then
2694    # Ok.
2695    :
2696 else
2697    as_fn_error $? "newly created file is older than distributed files!
2698 Check your system clock" "$LINENO" 5
2699 fi
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2701 $as_echo "yes" >&6; }
2702 # If we didn't sleep, we still need to ensure time stamps of config.status and
2703 # generated files are strictly newer.
2704 am_sleep_pid=
2705 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2706   ( sleep 1 ) &
2707   am_sleep_pid=$!
2708 fi
2709
2710 rm -f conftest.file
2711
2712 test "$program_prefix" != NONE &&
2713   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2714 # Use a double $ so make ignores it.
2715 test "$program_suffix" != NONE &&
2716   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2717 # Double any \ or $.
2718 # By default was `s,x,x', remove it if useless.
2719 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2720 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2721
2722 # Expand $ac_aux_dir to an absolute path.
2723 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2724
2725 if test x"${MISSING+set}" != xset; then
2726   case $am_aux_dir in
2727   *\ * | *\     *)
2728     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2729   *)
2730     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2731   esac
2732 fi
2733 # Use eval to expand $SHELL
2734 if eval "$MISSING --is-lightweight"; then
2735   am_missing_run="$MISSING "
2736 else
2737   am_missing_run=
2738   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2739 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2740 fi
2741
2742 if test x"${install_sh+set}" != xset; then
2743   case $am_aux_dir in
2744   *\ * | *\     *)
2745     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2746   *)
2747     install_sh="\${SHELL} $am_aux_dir/install-sh"
2748   esac
2749 fi
2750
2751 # Installed binaries are usually stripped using 'strip' when the user
2752 # run "make install-strip".  However 'strip' might not be the right
2753 # tool to use in cross-compilation environments, therefore Automake
2754 # will honor the 'STRIP' environment variable to overrule this program.
2755 if test "$cross_compiling" != no; then
2756   if test -n "$ac_tool_prefix"; then
2757   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2758 set dummy ${ac_tool_prefix}strip; ac_word=$2
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if ${ac_cv_prog_STRIP+:} false; then :
2762   $as_echo_n "(cached) " >&6
2763 else
2764   if test -n "$STRIP"; then
2765   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770   IFS=$as_save_IFS
2771   test -z "$as_dir" && as_dir=.
2772     for ac_exec_ext in '' $ac_executable_extensions; do
2773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
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 fi
2783 fi
2784 STRIP=$ac_cv_prog_STRIP
2785 if test -n "$STRIP"; then
2786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2787 $as_echo "$STRIP" >&6; }
2788 else
2789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2791 fi
2792
2793
2794 fi
2795 if test -z "$ac_cv_prog_STRIP"; then
2796   ac_ct_STRIP=$STRIP
2797   # Extract the first word of "strip", so it can be a program name with args.
2798 set dummy strip; ac_word=$2
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800 $as_echo_n "checking for $ac_word... " >&6; }
2801 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2802   $as_echo_n "(cached) " >&6
2803 else
2804   if test -n "$ac_ct_STRIP"; then
2805   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2806 else
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810   IFS=$as_save_IFS
2811   test -z "$as_dir" && as_dir=.
2812     for ac_exec_ext in '' $ac_executable_extensions; do
2813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814     ac_cv_prog_ac_ct_STRIP="strip"
2815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816     break 2
2817   fi
2818 done
2819   done
2820 IFS=$as_save_IFS
2821
2822 fi
2823 fi
2824 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2825 if test -n "$ac_ct_STRIP"; then
2826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2827 $as_echo "$ac_ct_STRIP" >&6; }
2828 else
2829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 $as_echo "no" >&6; }
2831 fi
2832
2833   if test "x$ac_ct_STRIP" = x; then
2834     STRIP=":"
2835   else
2836     case $cross_compiling:$ac_tool_warned in
2837 yes:)
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2840 ac_tool_warned=yes ;;
2841 esac
2842     STRIP=$ac_ct_STRIP
2843   fi
2844 else
2845   STRIP="$ac_cv_prog_STRIP"
2846 fi
2847
2848 fi
2849 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2850
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2852 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2853 if test -z "$MKDIR_P"; then
2854   if ${ac_cv_path_mkdir+:} false; then :
2855   $as_echo_n "(cached) " >&6
2856 else
2857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2859 do
2860   IFS=$as_save_IFS
2861   test -z "$as_dir" && as_dir=.
2862     for ac_prog in mkdir gmkdir; do
2863          for ac_exec_ext in '' $ac_executable_extensions; do
2864            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2865            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2866              'mkdir (GNU coreutils) '* | \
2867              'mkdir (coreutils) '* | \
2868              'mkdir (fileutils) '4.1*)
2869                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2870                break 3;;
2871            esac
2872          done
2873        done
2874   done
2875 IFS=$as_save_IFS
2876
2877 fi
2878
2879   test -d ./--version && rmdir ./--version
2880   if test "${ac_cv_path_mkdir+set}" = set; then
2881     MKDIR_P="$ac_cv_path_mkdir -p"
2882   else
2883     # As a last resort, use the slow shell script.  Don't cache a
2884     # value for MKDIR_P within a source directory, because that will
2885     # break other packages using the cache if that directory is
2886     # removed, or if the value is a relative name.
2887     MKDIR_P="$ac_install_sh -d"
2888   fi
2889 fi
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2891 $as_echo "$MKDIR_P" >&6; }
2892
2893 for ac_prog in gawk mawk nawk awk
2894 do
2895   # Extract the first word of "$ac_prog", so it can be a program name with args.
2896 set dummy $ac_prog; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_AWK+:} false; then :
2900   $as_echo_n "(cached) " >&6
2901 else
2902   if test -n "$AWK"; then
2903   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908   IFS=$as_save_IFS
2909   test -z "$as_dir" && as_dir=.
2910     for ac_exec_ext in '' $ac_executable_extensions; do
2911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912     ac_cv_prog_AWK="$ac_prog"
2913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914     break 2
2915   fi
2916 done
2917   done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 AWK=$ac_cv_prog_AWK
2923 if test -n "$AWK"; then
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2925 $as_echo "$AWK" >&6; }
2926 else
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931
2932   test -n "$AWK" && break
2933 done
2934
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2936 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2937 set x ${MAKE-make}
2938 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2939 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2940   $as_echo_n "(cached) " >&6
2941 else
2942   cat >conftest.make <<\_ACEOF
2943 SHELL = /bin/sh
2944 all:
2945         @echo '@@@%%%=$(MAKE)=@@@%%%'
2946 _ACEOF
2947 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2948 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2949   *@@@%%%=?*=@@@%%%*)
2950     eval ac_cv_prog_make_${ac_make}_set=yes;;
2951   *)
2952     eval ac_cv_prog_make_${ac_make}_set=no;;
2953 esac
2954 rm -f conftest.make
2955 fi
2956 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2958 $as_echo "yes" >&6; }
2959   SET_MAKE=
2960 else
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963   SET_MAKE="MAKE=${MAKE-make}"
2964 fi
2965
2966 rm -rf .tst 2>/dev/null
2967 mkdir .tst 2>/dev/null
2968 if test -d .tst; then
2969   am__leading_dot=.
2970 else
2971   am__leading_dot=_
2972 fi
2973 rmdir .tst 2>/dev/null
2974
2975 # Check whether --enable-silent-rules was given.
2976 if test "${enable_silent_rules+set}" = set; then :
2977   enableval=$enable_silent_rules;
2978 fi
2979
2980 case $enable_silent_rules in # (((
2981   yes) AM_DEFAULT_VERBOSITY=0;;
2982    no) AM_DEFAULT_VERBOSITY=1;;
2983     *) AM_DEFAULT_VERBOSITY=1;;
2984 esac
2985 am_make=${MAKE-make}
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2987 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2988 if ${am_cv_make_support_nested_variables+:} false; then :
2989   $as_echo_n "(cached) " >&6
2990 else
2991   if $as_echo 'TRUE=$(BAR$(V))
2992 BAR0=false
2993 BAR1=true
2994 V=1
2995 am__doit:
2996         @$(TRUE)
2997 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2998   am_cv_make_support_nested_variables=yes
2999 else
3000   am_cv_make_support_nested_variables=no
3001 fi
3002 fi
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3004 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3005 if test $am_cv_make_support_nested_variables = yes; then
3006     AM_V='$(V)'
3007   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3008 else
3009   AM_V=$AM_DEFAULT_VERBOSITY
3010   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3011 fi
3012 AM_BACKSLASH='\'
3013
3014 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3015   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3016   # is not polluted with repeated "-I."
3017   am__isrc=' -I$(srcdir)'
3018   # test to see if srcdir already configured
3019   if test -f $srcdir/config.status; then
3020     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3021   fi
3022 fi
3023
3024 # test whether we have cygpath
3025 if test -z "$CYGPATH_W"; then
3026   if (cygpath --version) >/dev/null 2>/dev/null; then
3027     CYGPATH_W='cygpath -w'
3028   else
3029     CYGPATH_W=echo
3030   fi
3031 fi
3032
3033
3034 # Define the identity of the package.
3035  PACKAGE='file'
3036  VERSION='5.37'
3037
3038
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE "$PACKAGE"
3041 _ACEOF
3042
3043
3044 cat >>confdefs.h <<_ACEOF
3045 #define VERSION "$VERSION"
3046 _ACEOF
3047
3048 # Some tools Automake needs.
3049
3050 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3051
3052
3053 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3054
3055
3056 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3057
3058
3059 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3060
3061
3062 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3063
3064 # For better backward compatibility.  To be removed once Automake 1.9.x
3065 # dies out for good.  For more background, see:
3066 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3067 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3068 mkdir_p='$(MKDIR_P)'
3069
3070 # We need awk for the "check" target (and possibly the TAP driver).  The
3071 # system "awk" is bad on some platforms.
3072 # Always define AMTAR for backward compatibility.  Yes, it's still used
3073 # in the wild :-(  We should find a proper way to deprecate it ...
3074 AMTAR='$${TAR-tar}'
3075
3076
3077 # We'll loop over all known methods to create a tar archive until one works.
3078 _am_tools='gnutar  pax cpio none'
3079
3080 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3081
3082
3083
3084
3085
3086
3087 # POSIX will say in a future version that running "rm -f" with no argument
3088 # is OK; and we want to be able to make that assumption in our Makefile
3089 # recipes.  So use an aggressive probe to check that the usage we want is
3090 # actually supported "in the wild" to an acceptable degree.
3091 # See automake bug#10828.
3092 # To make any issue more visible, cause the running configure to be aborted
3093 # by default if the 'rm' program in use doesn't match our expectations; the
3094 # user can still override this though.
3095 if rm -f && rm -fr && rm -rf; then : OK; else
3096   cat >&2 <<'END'
3097 Oops!
3098
3099 Your 'rm' program seems unable to run without file operands specified
3100 on the command line, even when the '-f' option is present.  This is contrary
3101 to the behaviour of most rm programs out there, and not conforming with
3102 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3103
3104 Please tell bug-automake@gnu.org about your system, including the value
3105 of your $PATH and any error possibly output before this message.  This
3106 can help us improve future automake versions.
3107
3108 END
3109   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3110     echo 'Configuration will proceed anyway, since you have set the' >&2
3111     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3112     echo >&2
3113   else
3114     cat >&2 <<'END'
3115 Aborting the configuration process, to ensure you take notice of the issue.
3116
3117 You can download and install GNU coreutils to get an 'rm' implementation
3118 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3119
3120 If you want to complete the configuration process using your problematic
3121 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3122 to "yes", and re-run configure.
3123
3124 END
3125     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3126   fi
3127 fi
3128
3129 # Check whether --enable-silent-rules was given.
3130 if test "${enable_silent_rules+set}" = set; then :
3131   enableval=$enable_silent_rules;
3132 fi
3133
3134 case $enable_silent_rules in # (((
3135   yes) AM_DEFAULT_VERBOSITY=0;;
3136    no) AM_DEFAULT_VERBOSITY=1;;
3137     *) AM_DEFAULT_VERBOSITY=0;;
3138 esac
3139 am_make=${MAKE-make}
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3141 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3142 if ${am_cv_make_support_nested_variables+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   if $as_echo 'TRUE=$(BAR$(V))
3146 BAR0=false
3147 BAR1=true
3148 V=1
3149 am__doit:
3150         @$(TRUE)
3151 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3152   am_cv_make_support_nested_variables=yes
3153 else
3154   am_cv_make_support_nested_variables=no
3155 fi
3156 fi
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3158 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3159 if test $am_cv_make_support_nested_variables = yes; then
3160     AM_V='$(V)'
3161   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3162 else
3163   AM_V=$AM_DEFAULT_VERBOSITY
3164   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3165 fi
3166 AM_BACKSLASH='\'
3167
3168
3169 ac_config_headers="$ac_config_headers config.h"
3170
3171
3172
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3174 $as_echo_n "checking for builtin ELF support... " >&6; }
3175 # Check whether --enable-elf was given.
3176 if test "${enable_elf+set}" = set; then :
3177   enableval=$enable_elf; if test "${enableval}" = yes; then
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179 $as_echo "yes" >&6; }
3180
3181 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3182
3183 else
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187 else
3188
3189   # enable by default
3190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3192
3193 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3194
3195
3196 fi
3197
3198
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3200 $as_echo_n "checking for ELF core file support... " >&6; }
3201 # Check whether --enable-elf-core was given.
3202 if test "${enable_elf_core+set}" = set; then :
3203   enableval=$enable_elf_core; if test "${enableval}" = yes; then
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3205 $as_echo "yes" >&6; }
3206
3207 $as_echo "#define ELFCORE 1" >>confdefs.h
3208
3209 else
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212 fi
3213 else
3214
3215   # enable by default
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3217 $as_echo "yes" >&6; }
3218
3219 $as_echo "#define ELFCORE 1" >>confdefs.h
3220
3221
3222 fi
3223
3224
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
3226 $as_echo_n "checking for zlib support... " >&6; }
3227 # Check whether --enable-zlib was given.
3228 if test "${enable_zlib+set}" = set; then :
3229   enableval=$enable_zlib;
3230 fi
3231
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
3233 $as_echo "$enable_zlib" >&6; }
3234
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
3236 $as_echo_n "checking for libseccomp support... " >&6; }
3237 # Check whether --enable-libseccomp was given.
3238 if test "${enable_libseccomp+set}" = set; then :
3239   enableval=$enable_libseccomp;
3240 fi
3241
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
3243 $as_echo "$enable_libseccomp" >&6; }
3244
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3246 $as_echo_n "checking for file formats in man section 5... " >&6; }
3247 # Check whether --enable-fsect-man5 was given.
3248 if test "${enable_fsect_man5+set}" = set; then :
3249   enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251 $as_echo "yes" >&6; }
3252   fsect=5
3253 else
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256   fsect=4
3257 fi
3258 else
3259
3260   # disable by default
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263   fsect=4
3264
3265 fi
3266
3267
3268 # Make sure we can run config.sub.
3269 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3270   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3271
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3273 $as_echo_n "checking build system type... " >&6; }
3274 if ${ac_cv_build+:} false; then :
3275   $as_echo_n "(cached) " >&6
3276 else
3277   ac_build_alias=$build_alias
3278 test "x$ac_build_alias" = x &&
3279   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3280 test "x$ac_build_alias" = x &&
3281   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3282 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3283   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3284
3285 fi
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3287 $as_echo "$ac_cv_build" >&6; }
3288 case $ac_cv_build in
3289 *-*-*) ;;
3290 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3291 esac
3292 build=$ac_cv_build
3293 ac_save_IFS=$IFS; IFS='-'
3294 set x $ac_cv_build
3295 shift
3296 build_cpu=$1
3297 build_vendor=$2
3298 shift; shift
3299 # Remember, the first character of IFS is used to create $*,
3300 # except with old shells:
3301 build_os=$*
3302 IFS=$ac_save_IFS
3303 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3304
3305
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3307 $as_echo_n "checking host system type... " >&6; }
3308 if ${ac_cv_host+:} false; then :
3309   $as_echo_n "(cached) " >&6
3310 else
3311   if test "x$host_alias" = x; then
3312   ac_cv_host=$ac_cv_build
3313 else
3314   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3315     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3316 fi
3317
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3320 $as_echo "$ac_cv_host" >&6; }
3321 case $ac_cv_host in
3322 *-*-*) ;;
3323 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3324 esac
3325 host=$ac_cv_host
3326 ac_save_IFS=$IFS; IFS='-'
3327 set x $ac_cv_host
3328 shift
3329 host_cpu=$1
3330 host_vendor=$2
3331 shift; shift
3332 # Remember, the first character of IFS is used to create $*,
3333 # except with old shells:
3334 host_os=$*
3335 IFS=$ac_save_IFS
3336 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3337
3338
3339 case "$host_os" in
3340    mingw32*)
3341       MINGW=1
3342       ;;
3343    *)
3344       MINGW=0
3345       ;;
3346 esac
3347
3348  if test "$MINGW" = 1; then
3349   MINGW_TRUE=
3350   MINGW_FALSE='#'
3351 else
3352   MINGW_TRUE='#'
3353   MINGW_FALSE=
3354 fi
3355
3356
3357 pkgdatadir='$(datadir)/misc'
3358
3359
3360  if test x$fsect = x5; then
3361   FSECT5_TRUE=
3362   FSECT5_FALSE='#'
3363 else
3364   FSECT5_TRUE='#'
3365   FSECT5_FALSE=
3366 fi
3367
3368
3369
3370
3371 DEPDIR="${am__leading_dot}deps"
3372
3373 ac_config_commands="$ac_config_commands depfiles"
3374
3375
3376 am_make=${MAKE-make}
3377 cat > confinc << 'END'
3378 am__doit:
3379         @echo this is the am__doit target
3380 .PHONY: am__doit
3381 END
3382 # If we don't find an include directive, just comment out the code.
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3384 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3385 am__include="#"
3386 am__quote=
3387 _am_result=none
3388 # First try GNU make style include.
3389 echo "include confinc" > confmf
3390 # Ignore all kinds of additional output from 'make'.
3391 case `$am_make -s -f confmf 2> /dev/null` in #(
3392 *the\ am__doit\ target*)
3393   am__include=include
3394   am__quote=
3395   _am_result=GNU
3396   ;;
3397 esac
3398 # Now try BSD make style include.
3399 if test "$am__include" = "#"; then
3400    echo '.include "confinc"' > confmf
3401    case `$am_make -s -f confmf 2> /dev/null` in #(
3402    *the\ am__doit\ target*)
3403      am__include=.include
3404      am__quote="\""
3405      _am_result=BSD
3406      ;;
3407    esac
3408 fi
3409
3410
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3412 $as_echo "$_am_result" >&6; }
3413 rm -f confinc confmf
3414
3415 # Check whether --enable-dependency-tracking was given.
3416 if test "${enable_dependency_tracking+set}" = set; then :
3417   enableval=$enable_dependency_tracking;
3418 fi
3419
3420 if test "x$enable_dependency_tracking" != xno; then
3421   am_depcomp="$ac_aux_dir/depcomp"
3422   AMDEPBACKSLASH='\'
3423   am__nodep='_no'
3424 fi
3425  if test "x$enable_dependency_tracking" != xno; then
3426   AMDEP_TRUE=
3427   AMDEP_FALSE='#'
3428 else
3429   AMDEP_TRUE='#'
3430   AMDEP_FALSE=
3431 fi
3432
3433
3434 ac_ext=c
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 if test -n "$ac_tool_prefix"; then
3440   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if ${ac_cv_prog_CC+:} false; then :
3445   $as_echo_n "(cached) " >&6
3446 else
3447   if test -n "$CC"; then
3448   ac_cv_prog_CC="$CC" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3452 do
3453   IFS=$as_save_IFS
3454   test -z "$as_dir" && as_dir=.
3455     for ac_exec_ext in '' $ac_executable_extensions; do
3456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3457     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459     break 2
3460   fi
3461 done
3462   done
3463 IFS=$as_save_IFS
3464
3465 fi
3466 fi
3467 CC=$ac_cv_prog_CC
3468 if test -n "$CC"; then
3469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470 $as_echo "$CC" >&6; }
3471 else
3472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3474 fi
3475
3476
3477 fi
3478 if test -z "$ac_cv_prog_CC"; then
3479   ac_ct_CC=$CC
3480   # Extract the first word of "gcc", so it can be a program name with args.
3481 set dummy gcc; ac_word=$2
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 $as_echo_n "checking for $ac_word... " >&6; }
3484 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3485   $as_echo_n "(cached) " >&6
3486 else
3487   if test -n "$ac_ct_CC"; then
3488   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3492 do
3493   IFS=$as_save_IFS
3494   test -z "$as_dir" && as_dir=.
3495     for ac_exec_ext in '' $ac_executable_extensions; do
3496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3497     ac_cv_prog_ac_ct_CC="gcc"
3498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499     break 2
3500   fi
3501 done
3502   done
3503 IFS=$as_save_IFS
3504
3505 fi
3506 fi
3507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3508 if test -n "$ac_ct_CC"; then
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3510 $as_echo "$ac_ct_CC" >&6; }
3511 else
3512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3514 fi
3515
3516   if test "x$ac_ct_CC" = x; then
3517     CC=""
3518   else
3519     case $cross_compiling:$ac_tool_warned in
3520 yes:)
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523 ac_tool_warned=yes ;;
3524 esac
3525     CC=$ac_ct_CC
3526   fi
3527 else
3528   CC="$ac_cv_prog_CC"
3529 fi
3530
3531 if test -z "$CC"; then
3532           if test -n "$ac_tool_prefix"; then
3533     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3534 set dummy ${ac_tool_prefix}cc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if ${ac_cv_prog_CC+:} false; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   if test -n "$CC"; then
3541   ac_cv_prog_CC="$CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546   IFS=$as_save_IFS
3547   test -z "$as_dir" && as_dir=.
3548     for ac_exec_ext in '' $ac_executable_extensions; do
3549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550     ac_cv_prog_CC="${ac_tool_prefix}cc"
3551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552     break 2
3553   fi
3554 done
3555   done
3556 IFS=$as_save_IFS
3557
3558 fi
3559 fi
3560 CC=$ac_cv_prog_CC
3561 if test -n "$CC"; then
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 $as_echo "$CC" >&6; }
3564 else
3565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3567 fi
3568
3569
3570   fi
3571 fi
3572 if test -z "$CC"; then
3573   # Extract the first word of "cc", so it can be a program name with args.
3574 set dummy cc; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if ${ac_cv_prog_CC+:} false; then :
3578   $as_echo_n "(cached) " >&6
3579 else
3580   if test -n "$CC"; then
3581   ac_cv_prog_CC="$CC" # Let the user override the test.
3582 else
3583   ac_prog_rejected=no
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3586 do
3587   IFS=$as_save_IFS
3588   test -z "$as_dir" && as_dir=.
3589     for ac_exec_ext in '' $ac_executable_extensions; do
3590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3592        ac_prog_rejected=yes
3593        continue
3594      fi
3595     ac_cv_prog_CC="cc"
3596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597     break 2
3598   fi
3599 done
3600   done
3601 IFS=$as_save_IFS
3602
3603 if test $ac_prog_rejected = yes; then
3604   # We found a bogon in the path, so make sure we never use it.
3605   set dummy $ac_cv_prog_CC
3606   shift
3607   if test $# != 0; then
3608     # We chose a different compiler from the bogus one.
3609     # However, it has the same basename, so the bogon will be chosen
3610     # first if we set CC to just the basename; use the full file name.
3611     shift
3612     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3613   fi
3614 fi
3615 fi
3616 fi
3617 CC=$ac_cv_prog_CC
3618 if test -n "$CC"; then
3619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 $as_echo "$CC" >&6; }
3621 else
3622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3624 fi
3625
3626
3627 fi
3628 if test -z "$CC"; then
3629   if test -n "$ac_tool_prefix"; then
3630   for ac_prog in cl.exe
3631   do
3632     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if ${ac_cv_prog_CC+:} false; then :
3637   $as_echo_n "(cached) " >&6
3638 else
3639   if test -n "$CC"; then
3640   ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645   IFS=$as_save_IFS
3646   test -z "$as_dir" && as_dir=.
3647     for ac_exec_ext in '' $ac_executable_extensions; do
3648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651     break 2
3652   fi
3653 done
3654   done
3655 IFS=$as_save_IFS
3656
3657 fi
3658 fi
3659 CC=$ac_cv_prog_CC
3660 if test -n "$CC"; then
3661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3663 else
3664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3666 fi
3667
3668
3669     test -n "$CC" && break
3670   done
3671 fi
3672 if test -z "$CC"; then
3673   ac_ct_CC=$CC
3674   for ac_prog in cl.exe
3675 do
3676   # Extract the first word of "$ac_prog", so it can be a program name with args.
3677 set dummy $ac_prog; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3681   $as_echo_n "(cached) " >&6
3682 else
3683   if test -n "$ac_ct_CC"; then
3684   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689   IFS=$as_save_IFS
3690   test -z "$as_dir" && as_dir=.
3691     for ac_exec_ext in '' $ac_executable_extensions; do
3692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693     ac_cv_prog_ac_ct_CC="$ac_prog"
3694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695     break 2
3696   fi
3697 done
3698   done
3699 IFS=$as_save_IFS
3700
3701 fi
3702 fi
3703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3704 if test -n "$ac_ct_CC"; then
3705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3706 $as_echo "$ac_ct_CC" >&6; }
3707 else
3708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3710 fi
3711
3712
3713   test -n "$ac_ct_CC" && break
3714 done
3715
3716   if test "x$ac_ct_CC" = x; then
3717     CC=""
3718   else
3719     case $cross_compiling:$ac_tool_warned in
3720 yes:)
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3723 ac_tool_warned=yes ;;
3724 esac
3725     CC=$ac_ct_CC
3726   fi
3727 fi
3728
3729 fi
3730
3731
3732 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error $? "no acceptable C compiler found in \$PATH
3735 See \`config.log' for more details" "$LINENO" 5; }
3736
3737 # Provide some information about the compiler.
3738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3739 set X $ac_compile
3740 ac_compiler=$2
3741 for ac_option in --version -v -V -qversion; do
3742   { { ac_try="$ac_compiler $ac_option >&5"
3743 case "(($ac_try" in
3744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745   *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748 $as_echo "$ac_try_echo"; } >&5
3749   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3750   ac_status=$?
3751   if test -s conftest.err; then
3752     sed '10a\
3753 ... rest of stderr output deleted ...
3754          10q' conftest.err >conftest.er1
3755     cat conftest.er1 >&5
3756   fi
3757   rm -f conftest.er1 conftest.err
3758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759   test $ac_status = 0; }
3760 done
3761
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h.  */
3764
3765 int
3766 main ()
3767 {
3768
3769   ;
3770   return 0;
3771 }
3772 _ACEOF
3773 ac_clean_files_save=$ac_clean_files
3774 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3775 # Try to create an executable without -o first, disregard a.out.
3776 # It will help us diagnose broken compilers, and finding out an intuition
3777 # of exeext.
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3779 $as_echo_n "checking whether the C compiler works... " >&6; }
3780 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3781
3782 # The possible output files:
3783 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3784
3785 ac_rmfiles=
3786 for ac_file in $ac_files
3787 do
3788   case $ac_file in
3789     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3790     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3791   esac
3792 done
3793 rm -f $ac_rmfiles
3794
3795 if { { ac_try="$ac_link_default"
3796 case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802   (eval "$ac_link_default") 2>&5
3803   ac_status=$?
3804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805   test $ac_status = 0; }; then :
3806   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3808 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3809 # so that the user can short-circuit this test for compilers unknown to
3810 # Autoconf.
3811 for ac_file in $ac_files ''
3812 do
3813   test -f "$ac_file" || continue
3814   case $ac_file in
3815     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3816         ;;
3817     [ab].out )
3818         # We found the default executable, but exeext='' is most
3819         # certainly right.
3820         break;;
3821     *.* )
3822         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3823         then :; else
3824            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3825         fi
3826         # We set ac_cv_exeext here because the later test for it is not
3827         # safe: cross compilers may not add the suffix if given an `-o'
3828         # argument, so we may need to know it at that point already.
3829         # Even if this section looks crufty: it has the advantage of
3830         # actually working.
3831         break;;
3832     * )
3833         break;;
3834   esac
3835 done
3836 test "$ac_cv_exeext" = no && ac_cv_exeext=
3837
3838 else
3839   ac_file=''
3840 fi
3841 if test -z "$ac_file"; then :
3842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 $as_echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3849 as_fn_error 77 "C compiler cannot create executables
3850 See \`config.log' for more details" "$LINENO" 5; }
3851 else
3852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3853 $as_echo "yes" >&6; }
3854 fi
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3856 $as_echo_n "checking for C compiler default output file name... " >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3858 $as_echo "$ac_file" >&6; }
3859 ac_exeext=$ac_cv_exeext
3860
3861 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3862 ac_clean_files=$ac_clean_files_save
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3864 $as_echo_n "checking for suffix of executables... " >&6; }
3865 if { { ac_try="$ac_link"
3866 case "(($ac_try" in
3867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868   *) ac_try_echo=$ac_try;;
3869 esac
3870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871 $as_echo "$ac_try_echo"; } >&5
3872   (eval "$ac_link") 2>&5
3873   ac_status=$?
3874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875   test $ac_status = 0; }; then :
3876   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3877 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3878 # work properly (i.e., refer to `conftest.exe'), while it won't with
3879 # `rm'.
3880 for ac_file in conftest.exe conftest conftest.*; do
3881   test -f "$ac_file" || continue
3882   case $ac_file in
3883     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3884     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3885           break;;
3886     * ) break;;
3887   esac
3888 done
3889 else
3890   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3893 See \`config.log' for more details" "$LINENO" 5; }
3894 fi
3895 rm -f conftest conftest$ac_cv_exeext
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3897 $as_echo "$ac_cv_exeext" >&6; }
3898
3899 rm -f conftest.$ac_ext
3900 EXEEXT=$ac_cv_exeext
3901 ac_exeext=$EXEEXT
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h.  */
3904 #include <stdio.h>
3905 int
3906 main ()
3907 {
3908 FILE *f = fopen ("conftest.out", "w");
3909  return ferror (f) || fclose (f) != 0;
3910
3911   ;
3912   return 0;
3913 }
3914 _ACEOF
3915 ac_clean_files="$ac_clean_files conftest.out"
3916 # Check that the compiler produces executables we can run.  If not, either
3917 # the compiler is broken, or we cross compile.
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3919 $as_echo_n "checking whether we are cross compiling... " >&6; }
3920 if test "$cross_compiling" != yes; then
3921   { { ac_try="$ac_link"
3922 case "(($ac_try" in
3923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924   *) ac_try_echo=$ac_try;;
3925 esac
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 $as_echo "$ac_try_echo"; } >&5
3928   (eval "$ac_link") 2>&5
3929   ac_status=$?
3930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931   test $ac_status = 0; }
3932   if { ac_try='./conftest$ac_cv_exeext'
3933   { { case "(($ac_try" in
3934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935   *) ac_try_echo=$ac_try;;
3936 esac
3937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938 $as_echo "$ac_try_echo"; } >&5
3939   (eval "$ac_try") 2>&5
3940   ac_status=$?
3941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942   test $ac_status = 0; }; }; then
3943     cross_compiling=no
3944   else
3945     if test "$cross_compiling" = maybe; then
3946         cross_compiling=yes
3947     else
3948         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error $? "cannot run C compiled programs.
3951 If you meant to cross compile, use \`--host'.
3952 See \`config.log' for more details" "$LINENO" 5; }
3953     fi
3954   fi
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3957 $as_echo "$cross_compiling" >&6; }
3958
3959 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3960 ac_clean_files=$ac_clean_files_save
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3962 $as_echo_n "checking for suffix of object files... " >&6; }
3963 if ${ac_cv_objext+:} false; then :
3964   $as_echo_n "(cached) " >&6
3965 else
3966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h.  */
3968
3969 int
3970 main ()
3971 {
3972
3973   ;
3974   return 0;
3975 }
3976 _ACEOF
3977 rm -f conftest.o conftest.obj
3978 if { { ac_try="$ac_compile"
3979 case "(($ac_try" in
3980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981   *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 $as_echo "$ac_try_echo"; } >&5
3985   (eval "$ac_compile") 2>&5
3986   ac_status=$?
3987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3988   test $ac_status = 0; }; then :
3989   for ac_file in conftest.o conftest.obj conftest.*; do
3990   test -f "$ac_file" || continue;
3991   case $ac_file in
3992     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3993     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3994        break;;
3995   esac
3996 done
3997 else
3998   $as_echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4000
4001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4003 as_fn_error $? "cannot compute suffix of object files: cannot compile
4004 See \`config.log' for more details" "$LINENO" 5; }
4005 fi
4006 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4007 fi
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4009 $as_echo "$ac_cv_objext" >&6; }
4010 OBJEXT=$ac_cv_objext
4011 ac_objext=$OBJEXT
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4013 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4014 if ${ac_cv_c_compiler_gnu+:} false; then :
4015   $as_echo_n "(cached) " >&6
4016 else
4017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h.  */
4019
4020 int
4021 main ()
4022 {
4023 #ifndef __GNUC__
4024        choke me
4025 #endif
4026
4027   ;
4028   return 0;
4029 }
4030 _ACEOF
4031 if ac_fn_c_try_compile "$LINENO"; then :
4032   ac_compiler_gnu=yes
4033 else
4034   ac_compiler_gnu=no
4035 fi
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4038
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4041 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4042 if test $ac_compiler_gnu = yes; then
4043   GCC=yes
4044 else
4045   GCC=
4046 fi
4047 ac_test_CFLAGS=${CFLAGS+set}
4048 ac_save_CFLAGS=$CFLAGS
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4050 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4051 if ${ac_cv_prog_cc_g+:} false; then :
4052   $as_echo_n "(cached) " >&6
4053 else
4054   ac_save_c_werror_flag=$ac_c_werror_flag
4055    ac_c_werror_flag=yes
4056    ac_cv_prog_cc_g=no
4057    CFLAGS="-g"
4058    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h.  */
4060
4061 int
4062 main ()
4063 {
4064
4065   ;
4066   return 0;
4067 }
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4070   ac_cv_prog_cc_g=yes
4071 else
4072   CFLAGS=""
4073       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h.  */
4075
4076 int
4077 main ()
4078 {
4079
4080   ;
4081   return 0;
4082 }
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085
4086 else
4087   ac_c_werror_flag=$ac_save_c_werror_flag
4088          CFLAGS="-g"
4089          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h.  */
4091
4092 int
4093 main ()
4094 {
4095
4096   ;
4097   return 0;
4098 }
4099 _ACEOF
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101   ac_cv_prog_cc_g=yes
4102 fi
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 fi
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 fi
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108    ac_c_werror_flag=$ac_save_c_werror_flag
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4111 $as_echo "$ac_cv_prog_cc_g" >&6; }
4112 if test "$ac_test_CFLAGS" = set; then
4113   CFLAGS=$ac_save_CFLAGS
4114 elif test $ac_cv_prog_cc_g = yes; then
4115   if test "$GCC" = yes; then
4116     CFLAGS="-g -O2"
4117   else
4118     CFLAGS="-g"
4119   fi
4120 else
4121   if test "$GCC" = yes; then
4122     CFLAGS="-O2"
4123   else
4124     CFLAGS=
4125   fi
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4128 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4129 if ${ac_cv_prog_cc_c89+:} false; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132   ac_cv_prog_cc_c89=no
4133 ac_save_CC=$CC
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h.  */
4136 #include <stdarg.h>
4137 #include <stdio.h>
4138 struct stat;
4139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4140 struct buf { int x; };
4141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4142 static char *e (p, i)
4143      char **p;
4144      int i;
4145 {
4146   return p[i];
4147 }
4148 static char *f (char * (*g) (char **, int), char **p, ...)
4149 {
4150   char *s;
4151   va_list v;
4152   va_start (v,p);
4153   s = g (p, va_arg (v,int));
4154   va_end (v);
4155   return s;
4156 }
4157
4158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4159    function prototypes and stuff, but not '\xHH' hex character constants.
4160    These don't provoke an error unfortunately, instead are silently treated
4161    as 'x'.  The following induces an error, until -std is added to get
4162    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4163    array size at least.  It's necessary to write '\x00'==0 to get something
4164    that's true only with -std.  */
4165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4166
4167 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4168    inside strings and character constants.  */
4169 #define FOO(x) 'x'
4170 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4171
4172 int test (int i, double x);
4173 struct s1 {int (*f) (int a);};
4174 struct s2 {int (*f) (double a);};
4175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4176 int argc;
4177 char **argv;
4178 int
4179 main ()
4180 {
4181 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4187         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4188 do
4189   CC="$ac_save_CC $ac_arg"
4190   if ac_fn_c_try_compile "$LINENO"; then :
4191   ac_cv_prog_cc_c89=$ac_arg
4192 fi
4193 rm -f core conftest.err conftest.$ac_objext
4194   test "x$ac_cv_prog_cc_c89" != "xno" && break
4195 done
4196 rm -f conftest.$ac_ext
4197 CC=$ac_save_CC
4198
4199 fi
4200 # AC_CACHE_VAL
4201 case "x$ac_cv_prog_cc_c89" in
4202   x)
4203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4204 $as_echo "none needed" >&6; } ;;
4205   xno)
4206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4207 $as_echo "unsupported" >&6; } ;;
4208   *)
4209     CC="$CC $ac_cv_prog_cc_c89"
4210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4211 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4212 esac
4213 if test "x$ac_cv_prog_cc_c89" != xno; then :
4214
4215 fi
4216
4217 ac_ext=c
4218 ac_cpp='$CPP $CPPFLAGS'
4219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222
4223 ac_ext=c
4224 ac_cpp='$CPP $CPPFLAGS'
4225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4229 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4230 if ${am_cv_prog_cc_c_o+:} false; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h.  */
4235
4236 int
4237 main ()
4238 {
4239
4240   ;
4241   return 0;
4242 }
4243 _ACEOF
4244   # Make sure it works both with $CC and with simple cc.
4245   # Following AC_PROG_CC_C_O, we do the test twice because some
4246   # compilers refuse to overwrite an existing .o file with -o,
4247   # though they will create one.
4248   am_cv_prog_cc_c_o=yes
4249   for am_i in 1 2; do
4250     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4251    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4252    ac_status=$?
4253    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254    (exit $ac_status); } \
4255          && test -f conftest2.$ac_objext; then
4256       : OK
4257     else
4258       am_cv_prog_cc_c_o=no
4259       break
4260     fi
4261   done
4262   rm -f core conftest*
4263   unset am_i
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4266 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4267 if test "$am_cv_prog_cc_c_o" != yes; then
4268    # Losing compiler, so override with the script.
4269    # FIXME: It is wrong to rewrite CC.
4270    # But if we don't then we get into trouble of one sort or another.
4271    # A longer-term fix would be to have automake use am__CC in this case,
4272    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4273    CC="$am_aux_dir/compile $CC"
4274 fi
4275 ac_ext=c
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280
4281
4282 depcc="$CC"   am_compiler_list=
4283
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4285 $as_echo_n "checking dependency style of $depcc... " >&6; }
4286 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4287   $as_echo_n "(cached) " >&6
4288 else
4289   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4290   # We make a subdir and do the tests there.  Otherwise we can end up
4291   # making bogus files that we don't know about and never remove.  For
4292   # instance it was reported that on HP-UX the gcc test will end up
4293   # making a dummy file named 'D' -- because '-MD' means "put the output
4294   # in D".
4295   rm -rf conftest.dir
4296   mkdir conftest.dir
4297   # Copy depcomp to subdir because otherwise we won't find it if we're
4298   # using a relative directory.
4299   cp "$am_depcomp" conftest.dir
4300   cd conftest.dir
4301   # We will build objects and dependencies in a subdirectory because
4302   # it helps to detect inapplicable dependency modes.  For instance
4303   # both Tru64's cc and ICC support -MD to output dependencies as a
4304   # side effect of compilation, but ICC will put the dependencies in
4305   # the current directory while Tru64 will put them in the object
4306   # directory.
4307   mkdir sub
4308
4309   am_cv_CC_dependencies_compiler_type=none
4310   if test "$am_compiler_list" = ""; then
4311      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4312   fi
4313   am__universal=false
4314   case " $depcc " in #(
4315      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4316      esac
4317
4318   for depmode in $am_compiler_list; do
4319     # Setup a source with many dependencies, because some compilers
4320     # like to wrap large dependency lists on column 80 (with \), and
4321     # we should not choose a depcomp mode which is confused by this.
4322     #
4323     # We need to recreate these files for each test, as the compiler may
4324     # overwrite some of them when testing with obscure command lines.
4325     # This happens at least with the AIX C compiler.
4326     : > sub/conftest.c
4327     for i in 1 2 3 4 5 6; do
4328       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4329       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4330       # Solaris 10 /bin/sh.
4331       echo '/* dummy */' > sub/conftst$i.h
4332     done
4333     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4334
4335     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4336     # mode.  It turns out that the SunPro C++ compiler does not properly
4337     # handle '-M -o', and we need to detect this.  Also, some Intel
4338     # versions had trouble with output in subdirs.
4339     am__obj=sub/conftest.${OBJEXT-o}
4340     am__minus_obj="-o $am__obj"
4341     case $depmode in
4342     gcc)
4343       # This depmode causes a compiler race in universal mode.
4344       test "$am__universal" = false || continue
4345       ;;
4346     nosideeffect)
4347       # After this tag, mechanisms are not by side-effect, so they'll
4348       # only be used when explicitly requested.
4349       if test "x$enable_dependency_tracking" = xyes; then
4350         continue
4351       else
4352         break
4353       fi
4354       ;;
4355     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4356       # This compiler won't grok '-c -o', but also, the minuso test has
4357       # not run yet.  These depmodes are late enough in the game, and
4358       # so weak that their functioning should not be impacted.
4359       am__obj=conftest.${OBJEXT-o}
4360       am__minus_obj=
4361       ;;
4362     none) break ;;
4363     esac
4364     if depmode=$depmode \
4365        source=sub/conftest.c object=$am__obj \
4366        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4367        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4368          >/dev/null 2>conftest.err &&
4369        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4370        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4371        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4372        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4373       # icc doesn't choke on unknown options, it will just issue warnings
4374       # or remarks (even with -Werror).  So we grep stderr for any message
4375       # that says an option was ignored or not supported.
4376       # When given -MP, icc 7.0 and 7.1 complain thusly:
4377       #   icc: Command line warning: ignoring option '-M'; no argument required
4378       # The diagnosis changed in icc 8.0:
4379       #   icc: Command line remark: option '-MP' not supported
4380       if (grep 'ignoring option' conftest.err ||
4381           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4382         am_cv_CC_dependencies_compiler_type=$depmode
4383         break
4384       fi
4385     fi
4386   done
4387
4388   cd ..
4389   rm -rf conftest.dir
4390 else
4391   am_cv_CC_dependencies_compiler_type=none
4392 fi
4393
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4396 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4397 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4398
4399  if
4400   test "x$enable_dependency_tracking" != xno \
4401   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4402   am__fastdepCC_TRUE=
4403   am__fastdepCC_FALSE='#'
4404 else
4405   am__fastdepCC_TRUE='#'
4406   am__fastdepCC_FALSE=
4407 fi
4408
4409
4410    case $ac_cv_prog_cc_stdc in #(
4411   no) :
4412     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4413   *) :
4414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4415 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4416 if ${ac_cv_prog_cc_c99+:} false; then :
4417   $as_echo_n "(cached) " >&6
4418 else
4419   ac_cv_prog_cc_c99=no
4420 ac_save_CC=$CC
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h.  */
4423 #include <stdarg.h>
4424 #include <stdbool.h>
4425 #include <stdlib.h>
4426 #include <wchar.h>
4427 #include <stdio.h>
4428
4429 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4430 #define debug(...) fprintf (stderr, __VA_ARGS__)
4431 #define showlist(...) puts (#__VA_ARGS__)
4432 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4433 static void
4434 test_varargs_macros (void)
4435 {
4436   int x = 1234;
4437   int y = 5678;
4438   debug ("Flag");
4439   debug ("X = %d\n", x);
4440   showlist (The first, second, and third items.);
4441   report (x>y, "x is %d but y is %d", x, y);
4442 }
4443
4444 // Check long long types.
4445 #define BIG64 18446744073709551615ull
4446 #define BIG32 4294967295ul
4447 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4448 #if !BIG_OK
4449   your preprocessor is broken;
4450 #endif
4451 #if BIG_OK
4452 #else
4453   your preprocessor is broken;
4454 #endif
4455 static long long int bignum = -9223372036854775807LL;
4456 static unsigned long long int ubignum = BIG64;
4457
4458 struct incomplete_array
4459 {
4460   int datasize;
4461   double data[];
4462 };
4463
4464 struct named_init {
4465   int number;
4466   const wchar_t *name;
4467   double average;
4468 };
4469
4470 typedef const char *ccp;
4471
4472 static inline int
4473 test_restrict (ccp restrict text)
4474 {
4475   // See if C++-style comments work.
4476   // Iterate through items via the restricted pointer.
4477   // Also check for declarations in for loops.
4478   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4479     continue;
4480   return 0;
4481 }
4482
4483 // Check varargs and va_copy.
4484 static void
4485 test_varargs (const char *format, ...)
4486 {
4487   va_list args;
4488   va_start (args, format);
4489   va_list args_copy;
4490   va_copy (args_copy, args);
4491
4492   const char *str;
4493   int number;
4494   float fnumber;
4495
4496   while (*format)
4497     {
4498       switch (*format++)
4499         {
4500         case 's': // string
4501           str = va_arg (args_copy, const char *);
4502           break;
4503         case 'd': // int
4504           number = va_arg (args_copy, int);
4505           break;
4506         case 'f': // float
4507           fnumber = va_arg (args_copy, double);
4508           break;
4509         default:
4510           break;
4511         }
4512     }
4513   va_end (args_copy);
4514   va_end (args);
4515 }
4516
4517 int
4518 main ()
4519 {
4520
4521   // Check bool.
4522   _Bool success = false;
4523
4524   // Check restrict.
4525   if (test_restrict ("String literal") == 0)
4526     success = true;
4527   char *restrict newvar = "Another string";
4528
4529   // Check varargs.
4530   test_varargs ("s, d' f .", "string", 65, 34.234);
4531   test_varargs_macros ();
4532
4533   // Check flexible array members.
4534   struct incomplete_array *ia =
4535     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4536   ia->datasize = 10;
4537   for (int i = 0; i < ia->datasize; ++i)
4538     ia->data[i] = i * 1.234;
4539
4540   // Check named initializers.
4541   struct named_init ni = {
4542     .number = 34,
4543     .name = L"Test wide string",
4544     .average = 543.34343,
4545   };
4546
4547   ni.number = 58;
4548
4549   int dynamic_array[ni.number];
4550   dynamic_array[ni.number - 1] = 543;
4551
4552   // work around unused variable warnings
4553   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4554           || dynamic_array[ni.number - 1] != 543);
4555
4556   ;
4557   return 0;
4558 }
4559 _ACEOF
4560 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4561 do
4562   CC="$ac_save_CC $ac_arg"
4563   if ac_fn_c_try_compile "$LINENO"; then :
4564   ac_cv_prog_cc_c99=$ac_arg
4565 fi
4566 rm -f core conftest.err conftest.$ac_objext
4567   test "x$ac_cv_prog_cc_c99" != "xno" && break
4568 done
4569 rm -f conftest.$ac_ext
4570 CC=$ac_save_CC
4571
4572 fi
4573 # AC_CACHE_VAL
4574 case "x$ac_cv_prog_cc_c99" in
4575   x)
4576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4577 $as_echo "none needed" >&6; } ;;
4578   xno)
4579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4580 $as_echo "unsupported" >&6; } ;;
4581   *)
4582     CC="$CC $ac_cv_prog_cc_c99"
4583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4584 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4585 esac
4586 if test "x$ac_cv_prog_cc_c99" != xno; then :
4587   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4588 else
4589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4591 if ${ac_cv_prog_cc_c89+:} false; then :
4592   $as_echo_n "(cached) " >&6
4593 else
4594   ac_cv_prog_cc_c89=no
4595 ac_save_CC=$CC
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598 #include <stdarg.h>
4599 #include <stdio.h>
4600 struct stat;
4601 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4602 struct buf { int x; };
4603 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4604 static char *e (p, i)
4605      char **p;
4606      int i;
4607 {
4608   return p[i];
4609 }
4610 static char *f (char * (*g) (char **, int), char **p, ...)
4611 {
4612   char *s;
4613   va_list v;
4614   va_start (v,p);
4615   s = g (p, va_arg (v,int));
4616   va_end (v);
4617   return s;
4618 }
4619
4620 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4621    function prototypes and stuff, but not '\xHH' hex character constants.
4622    These don't provoke an error unfortunately, instead are silently treated
4623    as 'x'.  The following induces an error, until -std is added to get
4624    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4625    array size at least.  It's necessary to write '\x00'==0 to get something
4626    that's true only with -std.  */
4627 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4628
4629 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4630    inside strings and character constants.  */
4631 #define FOO(x) 'x'
4632 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4633
4634 int test (int i, double x);
4635 struct s1 {int (*f) (int a);};
4636 struct s2 {int (*f) (double a);};
4637 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4638 int argc;
4639 char **argv;
4640 int
4641 main ()
4642 {
4643 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4644   ;
4645   return 0;
4646 }
4647 _ACEOF
4648 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4649         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4650 do
4651   CC="$ac_save_CC $ac_arg"
4652   if ac_fn_c_try_compile "$LINENO"; then :
4653   ac_cv_prog_cc_c89=$ac_arg
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext
4656   test "x$ac_cv_prog_cc_c89" != "xno" && break
4657 done
4658 rm -f conftest.$ac_ext
4659 CC=$ac_save_CC
4660
4661 fi
4662 # AC_CACHE_VAL
4663 case "x$ac_cv_prog_cc_c89" in
4664   x)
4665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4666 $as_echo "none needed" >&6; } ;;
4667   xno)
4668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4669 $as_echo "unsupported" >&6; } ;;
4670   *)
4671     CC="$CC $ac_cv_prog_cc_c89"
4672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4673 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4674 esac
4675 if test "x$ac_cv_prog_cc_c89" != xno; then :
4676   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4677 else
4678   ac_cv_prog_cc_stdc=no
4679 fi
4680
4681 fi
4682  ;;
4683 esac
4684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4685 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4686   if ${ac_cv_prog_cc_stdc+:} false; then :
4687   $as_echo_n "(cached) " >&6
4688 fi
4689
4690   case $ac_cv_prog_cc_stdc in #(
4691   no) :
4692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4693 $as_echo "unsupported" >&6; } ;; #(
4694   '') :
4695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4696 $as_echo "none needed" >&6; } ;; #(
4697   *) :
4698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4699 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4700 esac
4701
4702
4703 ac_ext=c
4704 ac_cpp='$CPP $CPPFLAGS'
4705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4709 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4710 # On Suns, sometimes $CPP names a directory.
4711 if test -n "$CPP" && test -d "$CPP"; then
4712   CPP=
4713 fi
4714 if test -z "$CPP"; then
4715   if ${ac_cv_prog_CPP+:} false; then :
4716   $as_echo_n "(cached) " >&6
4717 else
4718       # Double quotes because CPP needs to be expanded
4719     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4720     do
4721       ac_preproc_ok=false
4722 for ac_c_preproc_warn_flag in '' yes
4723 do
4724   # Use a header file that comes with gcc, so configuring glibc
4725   # with a fresh cross-compiler works.
4726   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4727   # <limits.h> exists even on freestanding compilers.
4728   # On the NeXT, cc -E runs the code through the compiler's parser,
4729   # not just through cpp. "Syntax error" is here to catch this case.
4730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h.  */
4732 #ifdef __STDC__
4733 # include <limits.h>
4734 #else
4735 # include <assert.h>
4736 #endif
4737                      Syntax error
4738 _ACEOF
4739 if ac_fn_c_try_cpp "$LINENO"; then :
4740
4741 else
4742   # Broken: fails on valid input.
4743 continue
4744 fi
4745 rm -f conftest.err conftest.i conftest.$ac_ext
4746
4747   # OK, works on sane cases.  Now check whether nonexistent headers
4748   # can be detected and how.
4749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h.  */
4751 #include <ac_nonexistent.h>
4752 _ACEOF
4753 if ac_fn_c_try_cpp "$LINENO"; then :
4754   # Broken: success on invalid input.
4755 continue
4756 else
4757   # Passes both tests.
4758 ac_preproc_ok=:
4759 break
4760 fi
4761 rm -f conftest.err conftest.i conftest.$ac_ext
4762
4763 done
4764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4765 rm -f conftest.i conftest.err conftest.$ac_ext
4766 if $ac_preproc_ok; then :
4767   break
4768 fi
4769
4770     done
4771     ac_cv_prog_CPP=$CPP
4772
4773 fi
4774   CPP=$ac_cv_prog_CPP
4775 else
4776   ac_cv_prog_CPP=$CPP
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4779 $as_echo "$CPP" >&6; }
4780 ac_preproc_ok=false
4781 for ac_c_preproc_warn_flag in '' yes
4782 do
4783   # Use a header file that comes with gcc, so configuring glibc
4784   # with a fresh cross-compiler works.
4785   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4786   # <limits.h> exists even on freestanding compilers.
4787   # On the NeXT, cc -E runs the code through the compiler's parser,
4788   # not just through cpp. "Syntax error" is here to catch this case.
4789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h.  */
4791 #ifdef __STDC__
4792 # include <limits.h>
4793 #else
4794 # include <assert.h>
4795 #endif
4796                      Syntax error
4797 _ACEOF
4798 if ac_fn_c_try_cpp "$LINENO"; then :
4799
4800 else
4801   # Broken: fails on valid input.
4802 continue
4803 fi
4804 rm -f conftest.err conftest.i conftest.$ac_ext
4805
4806   # OK, works on sane cases.  Now check whether nonexistent headers
4807   # can be detected and how.
4808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h.  */
4810 #include <ac_nonexistent.h>
4811 _ACEOF
4812 if ac_fn_c_try_cpp "$LINENO"; then :
4813   # Broken: success on invalid input.
4814 continue
4815 else
4816   # Passes both tests.
4817 ac_preproc_ok=:
4818 break
4819 fi
4820 rm -f conftest.err conftest.i conftest.$ac_ext
4821
4822 done
4823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4824 rm -f conftest.i conftest.err conftest.$ac_ext
4825 if $ac_preproc_ok; then :
4826
4827 else
4828   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4830 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4831 See \`config.log' for more details" "$LINENO" 5; }
4832 fi
4833
4834 ac_ext=c
4835 ac_cpp='$CPP $CPPFLAGS'
4836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4839
4840
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4842 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4843 if ${ac_cv_path_GREP+:} false; then :
4844   $as_echo_n "(cached) " >&6
4845 else
4846   if test -z "$GREP"; then
4847   ac_path_GREP_found=false
4848   # Loop through the user's path and test for each of PROGNAME-LIST
4849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4851 do
4852   IFS=$as_save_IFS
4853   test -z "$as_dir" && as_dir=.
4854     for ac_prog in grep ggrep; do
4855     for ac_exec_ext in '' $ac_executable_extensions; do
4856       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4857       as_fn_executable_p "$ac_path_GREP" || continue
4858 # Check for GNU ac_path_GREP and select it if it is found.
4859   # Check for GNU $ac_path_GREP
4860 case `"$ac_path_GREP" --version 2>&1` in
4861 *GNU*)
4862   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4863 *)
4864   ac_count=0
4865   $as_echo_n 0123456789 >"conftest.in"
4866   while :
4867   do
4868     cat "conftest.in" "conftest.in" >"conftest.tmp"
4869     mv "conftest.tmp" "conftest.in"
4870     cp "conftest.in" "conftest.nl"
4871     $as_echo 'GREP' >> "conftest.nl"
4872     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4873     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4874     as_fn_arith $ac_count + 1 && ac_count=$as_val
4875     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4876       # Best one so far, save it but keep looking for a better one
4877       ac_cv_path_GREP="$ac_path_GREP"
4878       ac_path_GREP_max=$ac_count
4879     fi
4880     # 10*(2^10) chars as input seems more than enough
4881     test $ac_count -gt 10 && break
4882   done
4883   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4884 esac
4885
4886       $ac_path_GREP_found && break 3
4887     done
4888   done
4889   done
4890 IFS=$as_save_IFS
4891   if test -z "$ac_cv_path_GREP"; then
4892     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4893   fi
4894 else
4895   ac_cv_path_GREP=$GREP
4896 fi
4897
4898 fi
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4900 $as_echo "$ac_cv_path_GREP" >&6; }
4901  GREP="$ac_cv_path_GREP"
4902
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4905 $as_echo_n "checking for egrep... " >&6; }
4906 if ${ac_cv_path_EGREP+:} false; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4910    then ac_cv_path_EGREP="$GREP -E"
4911    else
4912      if test -z "$EGREP"; then
4913   ac_path_EGREP_found=false
4914   # Loop through the user's path and test for each of PROGNAME-LIST
4915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4917 do
4918   IFS=$as_save_IFS
4919   test -z "$as_dir" && as_dir=.
4920     for ac_prog in egrep; do
4921     for ac_exec_ext in '' $ac_executable_extensions; do
4922       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4923       as_fn_executable_p "$ac_path_EGREP" || continue
4924 # Check for GNU ac_path_EGREP and select it if it is found.
4925   # Check for GNU $ac_path_EGREP
4926 case `"$ac_path_EGREP" --version 2>&1` in
4927 *GNU*)
4928   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4929 *)
4930   ac_count=0
4931   $as_echo_n 0123456789 >"conftest.in"
4932   while :
4933   do
4934     cat "conftest.in" "conftest.in" >"conftest.tmp"
4935     mv "conftest.tmp" "conftest.in"
4936     cp "conftest.in" "conftest.nl"
4937     $as_echo 'EGREP' >> "conftest.nl"
4938     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4939     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4940     as_fn_arith $ac_count + 1 && ac_count=$as_val
4941     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4942       # Best one so far, save it but keep looking for a better one
4943       ac_cv_path_EGREP="$ac_path_EGREP"
4944       ac_path_EGREP_max=$ac_count
4945     fi
4946     # 10*(2^10) chars as input seems more than enough
4947     test $ac_count -gt 10 && break
4948   done
4949   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4950 esac
4951
4952       $ac_path_EGREP_found && break 3
4953     done
4954   done
4955   done
4956 IFS=$as_save_IFS
4957   if test -z "$ac_cv_path_EGREP"; then
4958     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4959   fi
4960 else
4961   ac_cv_path_EGREP=$EGREP
4962 fi
4963
4964    fi
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4967 $as_echo "$ac_cv_path_EGREP" >&6; }
4968  EGREP="$ac_cv_path_EGREP"
4969
4970
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4972 $as_echo_n "checking for ANSI C header files... " >&6; }
4973 if ${ac_cv_header_stdc+:} false; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h.  */
4978 #include <stdlib.h>
4979 #include <stdarg.h>
4980 #include <string.h>
4981 #include <float.h>
4982
4983 int
4984 main ()
4985 {
4986
4987   ;
4988   return 0;
4989 }
4990 _ACEOF
4991 if ac_fn_c_try_compile "$LINENO"; then :
4992   ac_cv_header_stdc=yes
4993 else
4994   ac_cv_header_stdc=no
4995 fi
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997
4998 if test $ac_cv_header_stdc = yes; then
4999   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h.  */
5002 #include <string.h>
5003
5004 _ACEOF
5005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5006   $EGREP "memchr" >/dev/null 2>&1; then :
5007
5008 else
5009   ac_cv_header_stdc=no
5010 fi
5011 rm -f conftest*
5012
5013 fi
5014
5015 if test $ac_cv_header_stdc = yes; then
5016   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h.  */
5019 #include <stdlib.h>
5020
5021 _ACEOF
5022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5023   $EGREP "free" >/dev/null 2>&1; then :
5024
5025 else
5026   ac_cv_header_stdc=no
5027 fi
5028 rm -f conftest*
5029
5030 fi
5031
5032 if test $ac_cv_header_stdc = yes; then
5033   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5034   if test "$cross_compiling" = yes; then :
5035   :
5036 else
5037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h.  */
5039 #include <ctype.h>
5040 #include <stdlib.h>
5041 #if ((' ' & 0x0FF) == 0x020)
5042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5044 #else
5045 # define ISLOWER(c) \
5046                    (('a' <= (c) && (c) <= 'i') \
5047                      || ('j' <= (c) && (c) <= 'r') \
5048                      || ('s' <= (c) && (c) <= 'z'))
5049 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5050 #endif
5051
5052 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5053 int
5054 main ()
5055 {
5056   int i;
5057   for (i = 0; i < 256; i++)
5058     if (XOR (islower (i), ISLOWER (i))
5059         || toupper (i) != TOUPPER (i))
5060       return 2;
5061   return 0;
5062 }
5063 _ACEOF
5064 if ac_fn_c_try_run "$LINENO"; then :
5065
5066 else
5067   ac_cv_header_stdc=no
5068 fi
5069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5070   conftest.$ac_objext conftest.beam conftest.$ac_ext
5071 fi
5072
5073 fi
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5076 $as_echo "$ac_cv_header_stdc" >&6; }
5077 if test $ac_cv_header_stdc = yes; then
5078
5079 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5080
5081 fi
5082
5083 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5084 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5085                   inttypes.h stdint.h unistd.h
5086 do :
5087   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5088 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5089 "
5090 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5091   cat >>confdefs.h <<_ACEOF
5092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5093 _ACEOF
5094
5095 fi
5096
5097 done
5098
5099
5100
5101   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5102 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5103   MINIX=yes
5104 else
5105   MINIX=
5106 fi
5107
5108
5109   if test "$MINIX" = yes; then
5110
5111 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5112
5113
5114 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5115
5116
5117 $as_echo "#define _MINIX 1" >>confdefs.h
5118
5119   fi
5120
5121
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5123 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5124 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5125   $as_echo_n "(cached) " >&6
5126 else
5127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h.  */
5129
5130 #         define __EXTENSIONS__ 1
5131           $ac_includes_default
5132 int
5133 main ()
5134 {
5135
5136   ;
5137   return 0;
5138 }
5139 _ACEOF
5140 if ac_fn_c_try_compile "$LINENO"; then :
5141   ac_cv_safe_to_define___extensions__=yes
5142 else
5143   ac_cv_safe_to_define___extensions__=no
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146 fi
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5148 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5149   test $ac_cv_safe_to_define___extensions__ = yes &&
5150     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5151
5152   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5153
5154   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5155
5156   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5157
5158   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5159
5160
5161
5162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5163 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5164 if ${ac_cv_c_bigendian+:} false; then :
5165   $as_echo_n "(cached) " >&6
5166 else
5167   ac_cv_c_bigendian=unknown
5168     # See if we're dealing with a universal compiler.
5169     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h.  */
5171 #ifndef __APPLE_CC__
5172                not a universal capable compiler
5173              #endif
5174              typedef int dummy;
5175
5176 _ACEOF
5177 if ac_fn_c_try_compile "$LINENO"; then :
5178
5179         # Check for potential -arch flags.  It is not universal unless
5180         # there are at least two -arch flags with different values.
5181         ac_arch=
5182         ac_prev=
5183         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5184          if test -n "$ac_prev"; then
5185            case $ac_word in
5186              i?86 | x86_64 | ppc | ppc64)
5187                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5188                  ac_arch=$ac_word
5189                else
5190                  ac_cv_c_bigendian=universal
5191                  break
5192                fi
5193                ;;
5194            esac
5195            ac_prev=
5196          elif test "x$ac_word" = "x-arch"; then
5197            ac_prev=arch
5198          fi
5199        done
5200 fi
5201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5202     if test $ac_cv_c_bigendian = unknown; then
5203       # See if sys/param.h defines the BYTE_ORDER macro.
5204       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h.  */
5206 #include <sys/types.h>
5207              #include <sys/param.h>
5208
5209 int
5210 main ()
5211 {
5212 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5213                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5214                      && LITTLE_ENDIAN)
5215               bogus endian macros
5216              #endif
5217
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 if ac_fn_c_try_compile "$LINENO"; then :
5223   # It does; now see whether it defined to BIG_ENDIAN or not.
5224          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h.  */
5226 #include <sys/types.h>
5227                 #include <sys/param.h>
5228
5229 int
5230 main ()
5231 {
5232 #if BYTE_ORDER != BIG_ENDIAN
5233                  not big endian
5234                 #endif
5235
5236   ;
5237   return 0;
5238 }
5239 _ACEOF
5240 if ac_fn_c_try_compile "$LINENO"; then :
5241   ac_cv_c_bigendian=yes
5242 else
5243   ac_cv_c_bigendian=no
5244 fi
5245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 fi
5247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248     fi
5249     if test $ac_cv_c_bigendian = unknown; then
5250       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5251       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h.  */
5253 #include <limits.h>
5254
5255 int
5256 main ()
5257 {
5258 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5259               bogus endian macros
5260              #endif
5261
5262   ;
5263   return 0;
5264 }
5265 _ACEOF
5266 if ac_fn_c_try_compile "$LINENO"; then :
5267   # It does; now see whether it defined to _BIG_ENDIAN or not.
5268          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h.  */
5270 #include <limits.h>
5271
5272 int
5273 main ()
5274 {
5275 #ifndef _BIG_ENDIAN
5276                  not big endian
5277                 #endif
5278
5279   ;
5280   return 0;
5281 }
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284   ac_cv_c_bigendian=yes
5285 else
5286   ac_cv_c_bigendian=no
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 fi
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291     fi
5292     if test $ac_cv_c_bigendian = unknown; then
5293       # Compile a test program.
5294       if test "$cross_compiling" = yes; then :
5295   # Try to guess by grepping values from an object file.
5296          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h.  */
5298 short int ascii_mm[] =
5299                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5300                 short int ascii_ii[] =
5301                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5302                 int use_ascii (int i) {
5303                   return ascii_mm[i] + ascii_ii[i];
5304                 }
5305                 short int ebcdic_ii[] =
5306                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5307                 short int ebcdic_mm[] =
5308                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5309                 int use_ebcdic (int i) {
5310                   return ebcdic_mm[i] + ebcdic_ii[i];
5311                 }
5312                 extern int foo;
5313
5314 int
5315 main ()
5316 {
5317 return use_ascii (foo) == use_ebcdic (foo);
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 if ac_fn_c_try_compile "$LINENO"; then :
5323   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5324               ac_cv_c_bigendian=yes
5325             fi
5326             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5327               if test "$ac_cv_c_bigendian" = unknown; then
5328                 ac_cv_c_bigendian=no
5329               else
5330                 # finding both strings is unlikely to happen, but who knows?
5331                 ac_cv_c_bigendian=unknown
5332               fi
5333             fi
5334 fi
5335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 else
5337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h.  */
5339 $ac_includes_default
5340 int
5341 main ()
5342 {
5343
5344              /* Are we little or big endian?  From Harbison&Steele.  */
5345              union
5346              {
5347                long int l;
5348                char c[sizeof (long int)];
5349              } u;
5350              u.l = 1;
5351              return u.c[sizeof (long int) - 1] == 1;
5352
5353   ;
5354   return 0;
5355 }
5356 _ACEOF
5357 if ac_fn_c_try_run "$LINENO"; then :
5358   ac_cv_c_bigendian=no
5359 else
5360   ac_cv_c_bigendian=yes
5361 fi
5362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5363   conftest.$ac_objext conftest.beam conftest.$ac_ext
5364 fi
5365
5366     fi
5367 fi
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5369 $as_echo "$ac_cv_c_bigendian" >&6; }
5370  case $ac_cv_c_bigendian in #(
5371    yes)
5372      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5373 ;; #(
5374    no)
5375       ;; #(
5376    universal)
5377
5378 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5379
5380      ;; #(
5381    *)
5382      as_fn_error $? "unknown endianness
5383  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5384  esac
5385
5386
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5388 $as_echo_n "checking whether ln -s works... " >&6; }
5389 LN_S=$as_ln_s
5390 if test "$LN_S" = "ln -s"; then
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392 $as_echo "yes" >&6; }
5393 else
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5395 $as_echo "no, using $LN_S" >&6; }
5396 fi
5397
5398 case `pwd` in
5399   *\ * | *\     *)
5400     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5401 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5402 esac
5403
5404
5405
5406 macro_version='2.4.2'
5407 macro_revision='1.3337'
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421 ltmain="$ac_aux_dir/ltmain.sh"
5422
5423 # Backslashify metacharacters that are still active within
5424 # double-quoted strings.
5425 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5426
5427 # Same as above, but do not quote variable references.
5428 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5429
5430 # Sed substitution to delay expansion of an escaped shell variable in a
5431 # double_quote_subst'ed string.
5432 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5433
5434 # Sed substitution to delay expansion of an escaped single quote.
5435 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5436
5437 # Sed substitution to avoid accidental globbing in evaled expressions
5438 no_glob_subst='s/\*/\\\*/g'
5439
5440 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5441 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5442 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5443
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5445 $as_echo_n "checking how to print strings... " >&6; }
5446 # Test print first, because it will be a builtin if present.
5447 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5448    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5449   ECHO='print -r --'
5450 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5451   ECHO='printf %s\n'
5452 else
5453   # Use this function as a fallback that always works.
5454   func_fallback_echo ()
5455   {
5456     eval 'cat <<_LTECHO_EOF
5457 $1
5458 _LTECHO_EOF'
5459   }
5460   ECHO='func_fallback_echo'
5461 fi
5462
5463 # func_echo_all arg...
5464 # Invoke $ECHO with all args, space-separated.
5465 func_echo_all ()
5466 {
5467     $ECHO ""
5468 }
5469
5470 case "$ECHO" in
5471   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5472 $as_echo "printf" >&6; } ;;
5473   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5474 $as_echo "print -r" >&6; } ;;
5475   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5476 $as_echo "cat" >&6; } ;;
5477 esac
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5493 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5494 if ${ac_cv_path_SED+:} false; then :
5495   $as_echo_n "(cached) " >&6
5496 else
5497             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5498      for ac_i in 1 2 3 4 5 6 7; do
5499        ac_script="$ac_script$as_nl$ac_script"
5500      done
5501      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5502      { ac_script=; unset ac_script;}
5503      if test -z "$SED"; then
5504   ac_path_SED_found=false
5505   # Loop through the user's path and test for each of PROGNAME-LIST
5506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509   IFS=$as_save_IFS
5510   test -z "$as_dir" && as_dir=.
5511     for ac_prog in sed gsed; do
5512     for ac_exec_ext in '' $ac_executable_extensions; do
5513       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5514       as_fn_executable_p "$ac_path_SED" || continue
5515 # Check for GNU ac_path_SED and select it if it is found.
5516   # Check for GNU $ac_path_SED
5517 case `"$ac_path_SED" --version 2>&1` in
5518 *GNU*)
5519   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5520 *)
5521   ac_count=0
5522   $as_echo_n 0123456789 >"conftest.in"
5523   while :
5524   do
5525     cat "conftest.in" "conftest.in" >"conftest.tmp"
5526     mv "conftest.tmp" "conftest.in"
5527     cp "conftest.in" "conftest.nl"
5528     $as_echo '' >> "conftest.nl"
5529     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5530     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5531     as_fn_arith $ac_count + 1 && ac_count=$as_val
5532     if test $ac_count -gt ${ac_path_SED_max-0}; then
5533       # Best one so far, save it but keep looking for a better one
5534       ac_cv_path_SED="$ac_path_SED"
5535       ac_path_SED_max=$ac_count
5536     fi
5537     # 10*(2^10) chars as input seems more than enough
5538     test $ac_count -gt 10 && break
5539   done
5540   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5541 esac
5542
5543       $ac_path_SED_found && break 3
5544     done
5545   done
5546   done
5547 IFS=$as_save_IFS
5548   if test -z "$ac_cv_path_SED"; then
5549     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5550   fi
5551 else
5552   ac_cv_path_SED=$SED
5553 fi
5554
5555 fi
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5557 $as_echo "$ac_cv_path_SED" >&6; }
5558  SED="$ac_cv_path_SED"
5559   rm -f conftest.sed
5560
5561 test -z "$SED" && SED=sed
5562 Xsed="$SED -e 1s/^X//"
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5575 $as_echo_n "checking for fgrep... " >&6; }
5576 if ${ac_cv_path_FGREP+:} false; then :
5577   $as_echo_n "(cached) " >&6
5578 else
5579   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5580    then ac_cv_path_FGREP="$GREP -F"
5581    else
5582      if test -z "$FGREP"; then
5583   ac_path_FGREP_found=false
5584   # Loop through the user's path and test for each of PROGNAME-LIST
5585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5587 do
5588   IFS=$as_save_IFS
5589   test -z "$as_dir" && as_dir=.
5590     for ac_prog in fgrep; do
5591     for ac_exec_ext in '' $ac_executable_extensions; do
5592       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5593       as_fn_executable_p "$ac_path_FGREP" || continue
5594 # Check for GNU ac_path_FGREP and select it if it is found.
5595   # Check for GNU $ac_path_FGREP
5596 case `"$ac_path_FGREP" --version 2>&1` in
5597 *GNU*)
5598   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5599 *)
5600   ac_count=0
5601   $as_echo_n 0123456789 >"conftest.in"
5602   while :
5603   do
5604     cat "conftest.in" "conftest.in" >"conftest.tmp"
5605     mv "conftest.tmp" "conftest.in"
5606     cp "conftest.in" "conftest.nl"
5607     $as_echo 'FGREP' >> "conftest.nl"
5608     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5609     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5610     as_fn_arith $ac_count + 1 && ac_count=$as_val
5611     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5612       # Best one so far, save it but keep looking for a better one
5613       ac_cv_path_FGREP="$ac_path_FGREP"
5614       ac_path_FGREP_max=$ac_count
5615     fi
5616     # 10*(2^10) chars as input seems more than enough
5617     test $ac_count -gt 10 && break
5618   done
5619   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5620 esac
5621
5622       $ac_path_FGREP_found && break 3
5623     done
5624   done
5625   done
5626 IFS=$as_save_IFS
5627   if test -z "$ac_cv_path_FGREP"; then
5628     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5629   fi
5630 else
5631   ac_cv_path_FGREP=$FGREP
5632 fi
5633
5634    fi
5635 fi
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5637 $as_echo "$ac_cv_path_FGREP" >&6; }
5638  FGREP="$ac_cv_path_FGREP"
5639
5640
5641 test -z "$GREP" && GREP=grep
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661 # Check whether --with-gnu-ld was given.
5662 if test "${with_gnu_ld+set}" = set; then :
5663   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5664 else
5665   with_gnu_ld=no
5666 fi
5667
5668 ac_prog=ld
5669 if test "$GCC" = yes; then
5670   # Check if gcc -print-prog-name=ld gives a path.
5671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5672 $as_echo_n "checking for ld used by $CC... " >&6; }
5673   case $host in
5674   *-*-mingw*)
5675     # gcc leaves a trailing carriage return which upsets mingw
5676     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5677   *)
5678     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5679   esac
5680   case $ac_prog in
5681     # Accept absolute paths.
5682     [\\/]* | ?:[\\/]*)
5683       re_direlt='/[^/][^/]*/\.\./'
5684       # Canonicalize the pathname of ld
5685       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5686       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5687         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5688       done
5689       test -z "$LD" && LD="$ac_prog"
5690       ;;
5691   "")
5692     # If it fails, then pretend we aren't using GCC.
5693     ac_prog=ld
5694     ;;
5695   *)
5696     # If it is relative, then search for the first ld in PATH.
5697     with_gnu_ld=unknown
5698     ;;
5699   esac
5700 elif test "$with_gnu_ld" = yes; then
5701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5702 $as_echo_n "checking for GNU ld... " >&6; }
5703 else
5704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5705 $as_echo_n "checking for non-GNU ld... " >&6; }
5706 fi
5707 if ${lt_cv_path_LD+:} false; then :
5708   $as_echo_n "(cached) " >&6
5709 else
5710   if test -z "$LD"; then
5711   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5712   for ac_dir in $PATH; do
5713     IFS="$lt_save_ifs"
5714     test -z "$ac_dir" && ac_dir=.
5715     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5716       lt_cv_path_LD="$ac_dir/$ac_prog"
5717       # Check to see if the program is GNU ld.  I'd rather use --version,
5718       # but apparently some variants of GNU ld only accept -v.
5719       # Break only if it was the GNU/non-GNU ld that we prefer.
5720       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5721       *GNU* | *'with BFD'*)
5722         test "$with_gnu_ld" != no && break
5723         ;;
5724       *)
5725         test "$with_gnu_ld" != yes && break
5726         ;;
5727       esac
5728     fi
5729   done
5730   IFS="$lt_save_ifs"
5731 else
5732   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5733 fi
5734 fi
5735
5736 LD="$lt_cv_path_LD"
5737 if test -n "$LD"; then
5738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5739 $as_echo "$LD" >&6; }
5740 else
5741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5743 fi
5744 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5746 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5747 if ${lt_cv_prog_gnu_ld+:} false; then :
5748   $as_echo_n "(cached) " >&6
5749 else
5750   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5751 case `$LD -v 2>&1 </dev/null` in
5752 *GNU* | *'with BFD'*)
5753   lt_cv_prog_gnu_ld=yes
5754   ;;
5755 *)
5756   lt_cv_prog_gnu_ld=no
5757   ;;
5758 esac
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5761 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5762 with_gnu_ld=$lt_cv_prog_gnu_ld
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5773 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5774 if ${lt_cv_path_NM+:} false; then :
5775   $as_echo_n "(cached) " >&6
5776 else
5777   if test -n "$NM"; then
5778   # Let the user override the test.
5779   lt_cv_path_NM="$NM"
5780 else
5781   lt_nm_to_check="${ac_tool_prefix}nm"
5782   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5783     lt_nm_to_check="$lt_nm_to_check nm"
5784   fi
5785   for lt_tmp_nm in $lt_nm_to_check; do
5786     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5787     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5788       IFS="$lt_save_ifs"
5789       test -z "$ac_dir" && ac_dir=.
5790       tmp_nm="$ac_dir/$lt_tmp_nm"
5791       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5792         # Check to see if the nm accepts a BSD-compat flag.
5793         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5794         #   nm: unknown option "B" ignored
5795         # Tru64's nm complains that /dev/null is an invalid object file
5796         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5797         */dev/null* | *'Invalid file or object type'*)
5798           lt_cv_path_NM="$tmp_nm -B"
5799           break
5800           ;;
5801         *)
5802           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5803           */dev/null*)
5804             lt_cv_path_NM="$tmp_nm -p"
5805             break
5806             ;;
5807           *)
5808             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5809             continue # so that we can try to find one that supports BSD flags
5810             ;;
5811           esac
5812           ;;
5813         esac
5814       fi
5815     done
5816     IFS="$lt_save_ifs"
5817   done
5818   : ${lt_cv_path_NM=no}
5819 fi
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5822 $as_echo "$lt_cv_path_NM" >&6; }
5823 if test "$lt_cv_path_NM" != "no"; then
5824   NM="$lt_cv_path_NM"
5825 else
5826   # Didn't find any BSD compatible name lister, look for dumpbin.
5827   if test -n "$DUMPBIN"; then :
5828     # Let the user override the test.
5829   else
5830     if test -n "$ac_tool_prefix"; then
5831   for ac_prog in dumpbin "link -dump"
5832   do
5833     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_DUMPBIN+:} false; then :
5838   $as_echo_n "(cached) " >&6
5839 else
5840   if test -n "$DUMPBIN"; then
5841   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848     for ac_exec_ext in '' $ac_executable_extensions; do
5849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852     break 2
5853   fi
5854 done
5855   done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 DUMPBIN=$ac_cv_prog_DUMPBIN
5861 if test -n "$DUMPBIN"; then
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5863 $as_echo "$DUMPBIN" >&6; }
5864 else
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868
5869
5870     test -n "$DUMPBIN" && break
5871   done
5872 fi
5873 if test -z "$DUMPBIN"; then
5874   ac_ct_DUMPBIN=$DUMPBIN
5875   for ac_prog in dumpbin "link -dump"
5876 do
5877   # Extract the first word of "$ac_prog", so it can be a program name with args.
5878 set dummy $ac_prog; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5882   $as_echo_n "(cached) " >&6
5883 else
5884   if test -n "$ac_ct_DUMPBIN"; then
5885   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890   IFS=$as_save_IFS
5891   test -z "$as_dir" && as_dir=.
5892     for ac_exec_ext in '' $ac_executable_extensions; do
5893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896     break 2
5897   fi
5898 done
5899   done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5905 if test -n "$ac_ct_DUMPBIN"; then
5906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5907 $as_echo "$ac_ct_DUMPBIN" >&6; }
5908 else
5909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913
5914   test -n "$ac_ct_DUMPBIN" && break
5915 done
5916
5917   if test "x$ac_ct_DUMPBIN" = x; then
5918     DUMPBIN=":"
5919   else
5920     case $cross_compiling:$ac_tool_warned in
5921 yes:)
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924 ac_tool_warned=yes ;;
5925 esac
5926     DUMPBIN=$ac_ct_DUMPBIN
5927   fi
5928 fi
5929
5930     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5931     *COFF*)
5932       DUMPBIN="$DUMPBIN -symbols"
5933       ;;
5934     *)
5935       DUMPBIN=:
5936       ;;
5937     esac
5938   fi
5939
5940   if test "$DUMPBIN" != ":"; then
5941     NM="$DUMPBIN"
5942   fi
5943 fi
5944 test -z "$NM" && NM=nm
5945
5946
5947
5948
5949
5950
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5952 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5953 if ${lt_cv_nm_interface+:} false; then :
5954   $as_echo_n "(cached) " >&6
5955 else
5956   lt_cv_nm_interface="BSD nm"
5957   echo "int some_variable = 0;" > conftest.$ac_ext
5958   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5959   (eval "$ac_compile" 2>conftest.err)
5960   cat conftest.err >&5
5961   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5962   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5963   cat conftest.err >&5
5964   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5965   cat conftest.out >&5
5966   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5967     lt_cv_nm_interface="MS dumpbin"
5968   fi
5969   rm -f conftest*
5970 fi
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5972 $as_echo "$lt_cv_nm_interface" >&6; }
5973
5974 # find the maximum length of command line arguments
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5976 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5977 if ${lt_cv_sys_max_cmd_len+:} false; then :
5978   $as_echo_n "(cached) " >&6
5979 else
5980     i=0
5981   teststring="ABCD"
5982
5983   case $build_os in
5984   msdosdjgpp*)
5985     # On DJGPP, this test can blow up pretty badly due to problems in libc
5986     # (any single argument exceeding 2000 bytes causes a buffer overrun
5987     # during glob expansion).  Even if it were fixed, the result of this
5988     # check would be larger than it should be.
5989     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5990     ;;
5991
5992   gnu*)
5993     # Under GNU Hurd, this test is not required because there is
5994     # no limit to the length of command line arguments.
5995     # Libtool will interpret -1 as no limit whatsoever
5996     lt_cv_sys_max_cmd_len=-1;
5997     ;;
5998
5999   cygwin* | mingw* | cegcc*)
6000     # On Win9x/ME, this test blows up -- it succeeds, but takes
6001     # about 5 minutes as the teststring grows exponentially.
6002     # Worse, since 9x/ME are not pre-emptively multitasking,
6003     # you end up with a "frozen" computer, even though with patience
6004     # the test eventually succeeds (with a max line length of 256k).
6005     # Instead, let's just punt: use the minimum linelength reported by
6006     # all of the supported platforms: 8192 (on NT/2K/XP).
6007     lt_cv_sys_max_cmd_len=8192;
6008     ;;
6009
6010   mint*)
6011     # On MiNT this can take a long time and run out of memory.
6012     lt_cv_sys_max_cmd_len=8192;
6013     ;;
6014
6015   amigaos*)
6016     # On AmigaOS with pdksh, this test takes hours, literally.
6017     # So we just punt and use a minimum line length of 8192.
6018     lt_cv_sys_max_cmd_len=8192;
6019     ;;
6020
6021   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6022     # This has been around since 386BSD, at least.  Likely further.
6023     if test -x /sbin/sysctl; then
6024       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6025     elif test -x /usr/sbin/sysctl; then
6026       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6027     else
6028       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6029     fi
6030     # And add a safety zone
6031     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6032     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6033     ;;
6034
6035   interix*)
6036     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6037     lt_cv_sys_max_cmd_len=196608
6038     ;;
6039
6040   os2*)
6041     # The test takes a long time on OS/2.
6042     lt_cv_sys_max_cmd_len=8192
6043     ;;
6044
6045   osf*)
6046     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6047     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6048     # nice to cause kernel panics so lets avoid the loop below.
6049     # First set a reasonable default.
6050     lt_cv_sys_max_cmd_len=16384
6051     #
6052     if test -x /sbin/sysconfig; then
6053       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6054         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6055       esac
6056     fi
6057     ;;
6058   sco3.2v5*)
6059     lt_cv_sys_max_cmd_len=102400
6060     ;;
6061   sysv5* | sco5v6* | sysv4.2uw2*)
6062     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6063     if test -n "$kargmax"; then
6064       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6065     else
6066       lt_cv_sys_max_cmd_len=32768
6067     fi
6068     ;;
6069   *)
6070     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6071     if test -n "$lt_cv_sys_max_cmd_len"; then
6072       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6073       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6074     else
6075       # Make teststring a little bigger before we do anything with it.
6076       # a 1K string should be a reasonable start.
6077       for i in 1 2 3 4 5 6 7 8 ; do
6078         teststring=$teststring$teststring
6079       done
6080       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6081       # If test is not a shell built-in, we'll probably end up computing a
6082       # maximum length that is only half of the actual maximum length, but
6083       # we can't tell.
6084       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6085                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6086               test $i != 17 # 1/2 MB should be enough
6087       do
6088         i=`expr $i + 1`
6089         teststring=$teststring$teststring
6090       done
6091       # Only check the string length outside the loop.
6092       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6093       teststring=
6094       # Add a significant safety factor because C++ compilers can tack on
6095       # massive amounts of additional arguments before passing them to the
6096       # linker.  It appears as though 1/2 is a usable value.
6097       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6098     fi
6099     ;;
6100   esac
6101
6102 fi
6103
6104 if test -n $lt_cv_sys_max_cmd_len ; then
6105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6106 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6107 else
6108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6109 $as_echo "none" >&6; }
6110 fi
6111 max_cmd_len=$lt_cv_sys_max_cmd_len
6112
6113
6114
6115
6116
6117
6118 : ${CP="cp -f"}
6119 : ${MV="mv -f"}
6120 : ${RM="rm -f"}
6121
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6123 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6124 # Try some XSI features
6125 xsi_shell=no
6126 ( _lt_dummy="a/b/c"
6127   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6128       = c,a/b,b/c, \
6129     && eval 'test $(( 1 + 1 )) -eq 2 \
6130     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6131   && xsi_shell=yes
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6133 $as_echo "$xsi_shell" >&6; }
6134
6135
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6137 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6138 lt_shell_append=no
6139 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6140     >/dev/null 2>&1 \
6141   && lt_shell_append=yes
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6143 $as_echo "$lt_shell_append" >&6; }
6144
6145
6146 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6147   lt_unset=unset
6148 else
6149   lt_unset=false
6150 fi
6151
6152
6153
6154
6155
6156 # test EBCDIC or ASCII
6157 case `echo X|tr X '\101'` in
6158  A) # ASCII based system
6159     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6160   lt_SP2NL='tr \040 \012'
6161   lt_NL2SP='tr \015\012 \040\040'
6162   ;;
6163  *) # EBCDIC based system
6164   lt_SP2NL='tr \100 \n'
6165   lt_NL2SP='tr \r\n \100\100'
6166   ;;
6167 esac
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6178 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6179 if ${lt_cv_to_host_file_cmd+:} false; then :
6180   $as_echo_n "(cached) " >&6
6181 else
6182   case $host in
6183   *-*-mingw* )
6184     case $build in
6185       *-*-mingw* ) # actually msys
6186         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6187         ;;
6188       *-*-cygwin* )
6189         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6190         ;;
6191       * ) # otherwise, assume *nix
6192         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6193         ;;
6194     esac
6195     ;;
6196   *-*-cygwin* )
6197     case $build in
6198       *-*-mingw* ) # actually msys
6199         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6200         ;;
6201       *-*-cygwin* )
6202         lt_cv_to_host_file_cmd=func_convert_file_noop
6203         ;;
6204       * ) # otherwise, assume *nix
6205         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6206         ;;
6207     esac
6208     ;;
6209   * ) # unhandled hosts (and "normal" native builds)
6210     lt_cv_to_host_file_cmd=func_convert_file_noop
6211     ;;
6212 esac
6213
6214 fi
6215
6216 to_host_file_cmd=$lt_cv_to_host_file_cmd
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6218 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6219
6220
6221
6222
6223
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6225 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6226 if ${lt_cv_to_tool_file_cmd+:} false; then :
6227   $as_echo_n "(cached) " >&6
6228 else
6229   #assume ordinary cross tools, or native build.
6230 lt_cv_to_tool_file_cmd=func_convert_file_noop
6231 case $host in
6232   *-*-mingw* )
6233     case $build in
6234       *-*-mingw* ) # actually msys
6235         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6236         ;;
6237     esac
6238     ;;
6239 esac
6240
6241 fi
6242
6243 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6245 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6246
6247
6248
6249
6250
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6252 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6253 if ${lt_cv_ld_reload_flag+:} false; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256   lt_cv_ld_reload_flag='-r'
6257 fi
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6259 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6260 reload_flag=$lt_cv_ld_reload_flag
6261 case $reload_flag in
6262 "" | " "*) ;;
6263 *) reload_flag=" $reload_flag" ;;
6264 esac
6265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6266 case $host_os in
6267   cygwin* | mingw* | pw32* | cegcc*)
6268     if test "$GCC" != yes; then
6269       reload_cmds=false
6270     fi
6271     ;;
6272   darwin*)
6273     if test "$GCC" = yes; then
6274       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6275     else
6276       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6277     fi
6278     ;;
6279 esac
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289 if test -n "$ac_tool_prefix"; then
6290   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6291 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_prog_OBJDUMP+:} false; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   if test -n "$OBJDUMP"; then
6298   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305     for ac_exec_ext in '' $ac_executable_extensions; do
6306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312   done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 OBJDUMP=$ac_cv_prog_OBJDUMP
6318 if test -n "$OBJDUMP"; then
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6320 $as_echo "$OBJDUMP" >&6; }
6321 else
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326
6327 fi
6328 if test -z "$ac_cv_prog_OBJDUMP"; then
6329   ac_ct_OBJDUMP=$OBJDUMP
6330   # Extract the first word of "objdump", so it can be a program name with args.
6331 set dummy objdump; ac_word=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6335   $as_echo_n "(cached) " >&6
6336 else
6337   if test -n "$ac_ct_OBJDUMP"; then
6338   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343   IFS=$as_save_IFS
6344   test -z "$as_dir" && as_dir=.
6345     for ac_exec_ext in '' $ac_executable_extensions; do
6346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6347     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349     break 2
6350   fi
6351 done
6352   done
6353 IFS=$as_save_IFS
6354
6355 fi
6356 fi
6357 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6358 if test -n "$ac_ct_OBJDUMP"; then
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6360 $as_echo "$ac_ct_OBJDUMP" >&6; }
6361 else
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6364 fi
6365
6366   if test "x$ac_ct_OBJDUMP" = x; then
6367     OBJDUMP="false"
6368   else
6369     case $cross_compiling:$ac_tool_warned in
6370 yes:)
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373 ac_tool_warned=yes ;;
6374 esac
6375     OBJDUMP=$ac_ct_OBJDUMP
6376   fi
6377 else
6378   OBJDUMP="$ac_cv_prog_OBJDUMP"
6379 fi
6380
6381 test -z "$OBJDUMP" && OBJDUMP=objdump
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6392 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6393 if ${lt_cv_deplibs_check_method+:} false; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396   lt_cv_file_magic_cmd='$MAGIC_CMD'
6397 lt_cv_file_magic_test_file=
6398 lt_cv_deplibs_check_method='unknown'
6399 # Need to set the preceding variable on all platforms that support
6400 # interlibrary dependencies.
6401 # 'none' -- dependencies not supported.
6402 # `unknown' -- same as none, but documents that we really don't know.
6403 # 'pass_all' -- all dependencies passed with no checks.
6404 # 'test_compile' -- check by making test program.
6405 # 'file_magic [[regex]]' -- check by looking for files in library path
6406 # which responds to the $file_magic_cmd with a given extended regex.
6407 # If you have `file' or equivalent on your system and you're not sure
6408 # whether `pass_all' will *always* work, you probably want this one.
6409
6410 case $host_os in
6411 aix[4-9]*)
6412   lt_cv_deplibs_check_method=pass_all
6413   ;;
6414
6415 beos*)
6416   lt_cv_deplibs_check_method=pass_all
6417   ;;
6418
6419 bsdi[45]*)
6420   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6421   lt_cv_file_magic_cmd='/usr/bin/file -L'
6422   lt_cv_file_magic_test_file=/shlib/libc.so
6423   ;;
6424
6425 cygwin*)
6426   # func_win32_libid is a shell function defined in ltmain.sh
6427   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6428   lt_cv_file_magic_cmd='func_win32_libid'
6429   ;;
6430
6431 mingw* | pw32*)
6432   # Base MSYS/MinGW do not provide the 'file' command needed by
6433   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6434   # unless we find 'file', for example because we are cross-compiling.
6435   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6436   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6437     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6438     lt_cv_file_magic_cmd='func_win32_libid'
6439   else
6440     # Keep this pattern in sync with the one in func_win32_libid.
6441     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6442     lt_cv_file_magic_cmd='$OBJDUMP -f'
6443   fi
6444   ;;
6445
6446 cegcc*)
6447   # use the weaker test based on 'objdump'. See mingw*.
6448   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6449   lt_cv_file_magic_cmd='$OBJDUMP -f'
6450   ;;
6451
6452 darwin* | rhapsody*)
6453   lt_cv_deplibs_check_method=pass_all
6454   ;;
6455
6456 freebsd* | dragonfly*)
6457   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6458     case $host_cpu in
6459     i*86 )
6460       # Not sure whether the presence of OpenBSD here was a mistake.
6461       # Let's accept both of them until this is cleared up.
6462       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6463       lt_cv_file_magic_cmd=/usr/bin/file
6464       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6465       ;;
6466     esac
6467   else
6468     lt_cv_deplibs_check_method=pass_all
6469   fi
6470   ;;
6471
6472 gnu*)
6473   lt_cv_deplibs_check_method=pass_all
6474   ;;
6475
6476 haiku*)
6477   lt_cv_deplibs_check_method=pass_all
6478   ;;
6479
6480 hpux10.20* | hpux11*)
6481   lt_cv_file_magic_cmd=/usr/bin/file
6482   case $host_cpu in
6483   ia64*)
6484     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6485     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6486     ;;
6487   hppa*64*)
6488     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]'
6489     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6490     ;;
6491   *)
6492     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6493     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6494     ;;
6495   esac
6496   ;;
6497
6498 interix[3-9]*)
6499   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6500   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6501   ;;
6502
6503 irix5* | irix6* | nonstopux*)
6504   case $LD in
6505   *-32|*"-32 ") libmagic=32-bit;;
6506   *-n32|*"-n32 ") libmagic=N32;;
6507   *-64|*"-64 ") libmagic=64-bit;;
6508   *) libmagic=never-match;;
6509   esac
6510   lt_cv_deplibs_check_method=pass_all
6511   ;;
6512
6513 # This must be glibc/ELF.
6514 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6515   lt_cv_deplibs_check_method=pass_all
6516   ;;
6517
6518 netbsd*)
6519   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6520     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6521   else
6522     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6523   fi
6524   ;;
6525
6526 newos6*)
6527   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6528   lt_cv_file_magic_cmd=/usr/bin/file
6529   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6530   ;;
6531
6532 *nto* | *qnx*)
6533   lt_cv_deplibs_check_method=pass_all
6534   ;;
6535
6536 openbsd*)
6537   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6538     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6539   else
6540     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6541   fi
6542   ;;
6543
6544 osf3* | osf4* | osf5*)
6545   lt_cv_deplibs_check_method=pass_all
6546   ;;
6547
6548 rdos*)
6549   lt_cv_deplibs_check_method=pass_all
6550   ;;
6551
6552 solaris*)
6553   lt_cv_deplibs_check_method=pass_all
6554   ;;
6555
6556 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6557   lt_cv_deplibs_check_method=pass_all
6558   ;;
6559
6560 sysv4 | sysv4.3*)
6561   case $host_vendor in
6562   motorola)
6563     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]'
6564     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6565     ;;
6566   ncr)
6567     lt_cv_deplibs_check_method=pass_all
6568     ;;
6569   sequent)
6570     lt_cv_file_magic_cmd='/bin/file'
6571     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6572     ;;
6573   sni)
6574     lt_cv_file_magic_cmd='/bin/file'
6575     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6576     lt_cv_file_magic_test_file=/lib/libc.so
6577     ;;
6578   siemens)
6579     lt_cv_deplibs_check_method=pass_all
6580     ;;
6581   pc)
6582     lt_cv_deplibs_check_method=pass_all
6583     ;;
6584   esac
6585   ;;
6586
6587 tpf*)
6588   lt_cv_deplibs_check_method=pass_all
6589   ;;
6590 esac
6591
6592 fi
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6594 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6595
6596 file_magic_glob=
6597 want_nocaseglob=no
6598 if test "$build" = "$host"; then
6599   case $host_os in
6600   mingw* | pw32*)
6601     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6602       want_nocaseglob=yes
6603     else
6604       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6605     fi
6606     ;;
6607   esac
6608 fi
6609
6610 file_magic_cmd=$lt_cv_file_magic_cmd
6611 deplibs_check_method=$lt_cv_deplibs_check_method
6612 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635 if test -n "$ac_tool_prefix"; then
6636   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6637 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_prog_DLLTOOL+:} false; then :
6641   $as_echo_n "(cached) " >&6
6642 else
6643   if test -n "$DLLTOOL"; then
6644   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649   IFS=$as_save_IFS
6650   test -z "$as_dir" && as_dir=.
6651     for ac_exec_ext in '' $ac_executable_extensions; do
6652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655     break 2
6656   fi
6657 done
6658   done
6659 IFS=$as_save_IFS
6660
6661 fi
6662 fi
6663 DLLTOOL=$ac_cv_prog_DLLTOOL
6664 if test -n "$DLLTOOL"; then
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6666 $as_echo "$DLLTOOL" >&6; }
6667 else
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6671
6672
6673 fi
6674 if test -z "$ac_cv_prog_DLLTOOL"; then
6675   ac_ct_DLLTOOL=$DLLTOOL
6676   # Extract the first word of "dlltool", so it can be a program name with args.
6677 set dummy dlltool; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6681   $as_echo_n "(cached) " >&6
6682 else
6683   if test -n "$ac_ct_DLLTOOL"; then
6684   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691     for ac_exec_ext in '' $ac_executable_extensions; do
6692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695     break 2
6696   fi
6697 done
6698   done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6704 if test -n "$ac_ct_DLLTOOL"; then
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6706 $as_echo "$ac_ct_DLLTOOL" >&6; }
6707 else
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711
6712   if test "x$ac_ct_DLLTOOL" = x; then
6713     DLLTOOL="false"
6714   else
6715     case $cross_compiling:$ac_tool_warned in
6716 yes:)
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6719 ac_tool_warned=yes ;;
6720 esac
6721     DLLTOOL=$ac_ct_DLLTOOL
6722   fi
6723 else
6724   DLLTOOL="$ac_cv_prog_DLLTOOL"
6725 fi
6726
6727 test -z "$DLLTOOL" && DLLTOOL=dlltool
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6739 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6740 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6741   $as_echo_n "(cached) " >&6
6742 else
6743   lt_cv_sharedlib_from_linklib_cmd='unknown'
6744
6745 case $host_os in
6746 cygwin* | mingw* | pw32* | cegcc*)
6747   # two different shell functions defined in ltmain.sh
6748   # decide which to use based on capabilities of $DLLTOOL
6749   case `$DLLTOOL --help 2>&1` in
6750   *--identify-strict*)
6751     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6752     ;;
6753   *)
6754     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6755     ;;
6756   esac
6757   ;;
6758 *)
6759   # fallback: assume linklib IS sharedlib
6760   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6761   ;;
6762 esac
6763
6764 fi
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6766 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6767 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6768 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6769
6770
6771
6772
6773
6774
6775
6776 if test -n "$ac_tool_prefix"; then
6777   for ac_prog in ar
6778   do
6779     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_prog_AR+:} false; then :
6784   $as_echo_n "(cached) " >&6
6785 else
6786   if test -n "$AR"; then
6787   ac_cv_prog_AR="$AR" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794     for ac_exec_ext in '' $ac_executable_extensions; do
6795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801   done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 AR=$ac_cv_prog_AR
6807 if test -n "$AR"; then
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6809 $as_echo "$AR" >&6; }
6810 else
6811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814
6815
6816     test -n "$AR" && break
6817   done
6818 fi
6819 if test -z "$AR"; then
6820   ac_ct_AR=$AR
6821   for ac_prog in ar
6822 do
6823   # Extract the first word of "$ac_prog", so it can be a program name with args.
6824 set dummy $ac_prog; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   if test -n "$ac_ct_AR"; then
6831   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838     for ac_exec_ext in '' $ac_executable_extensions; do
6839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6840     ac_cv_prog_ac_ct_AR="$ac_prog"
6841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845   done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6851 if test -n "$ac_ct_AR"; then
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6853 $as_echo "$ac_ct_AR" >&6; }
6854 else
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859
6860   test -n "$ac_ct_AR" && break
6861 done
6862
6863   if test "x$ac_ct_AR" = x; then
6864     AR="false"
6865   else
6866     case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872     AR=$ac_ct_AR
6873   fi
6874 fi
6875
6876 : ${AR=ar}
6877 : ${AR_FLAGS=cru}
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6890 $as_echo_n "checking for archiver @FILE support... " >&6; }
6891 if ${lt_cv_ar_at_file+:} false; then :
6892   $as_echo_n "(cached) " >&6
6893 else
6894   lt_cv_ar_at_file=no
6895    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h.  */
6897
6898 int
6899 main ()
6900 {
6901
6902   ;
6903   return 0;
6904 }
6905 _ACEOF
6906 if ac_fn_c_try_compile "$LINENO"; then :
6907   echo conftest.$ac_objext > conftest.lst
6908       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6909       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6910   (eval $lt_ar_try) 2>&5
6911   ac_status=$?
6912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6913   test $ac_status = 0; }
6914       if test "$ac_status" -eq 0; then
6915         # Ensure the archiver fails upon bogus file names.
6916         rm -f conftest.$ac_objext libconftest.a
6917         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6918   (eval $lt_ar_try) 2>&5
6919   ac_status=$?
6920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6921   test $ac_status = 0; }
6922         if test "$ac_status" -ne 0; then
6923           lt_cv_ar_at_file=@
6924         fi
6925       fi
6926       rm -f conftest.* libconftest.a
6927
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930
6931 fi
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6933 $as_echo "$lt_cv_ar_at_file" >&6; }
6934
6935 if test "x$lt_cv_ar_at_file" = xno; then
6936   archiver_list_spec=
6937 else
6938   archiver_list_spec=$lt_cv_ar_at_file
6939 fi
6940
6941
6942
6943
6944
6945
6946
6947 if test -n "$ac_tool_prefix"; then
6948   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6949 set dummy ${ac_tool_prefix}strip; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if ${ac_cv_prog_STRIP+:} false; then :
6953   $as_echo_n "(cached) " >&6
6954 else
6955   if test -n "$STRIP"; then
6956   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961   IFS=$as_save_IFS
6962   test -z "$as_dir" && as_dir=.
6963     for ac_exec_ext in '' $ac_executable_extensions; do
6964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6965     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967     break 2
6968   fi
6969 done
6970   done
6971 IFS=$as_save_IFS
6972
6973 fi
6974 fi
6975 STRIP=$ac_cv_prog_STRIP
6976 if test -n "$STRIP"; then
6977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6978 $as_echo "$STRIP" >&6; }
6979 else
6980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6982 fi
6983
6984
6985 fi
6986 if test -z "$ac_cv_prog_STRIP"; then
6987   ac_ct_STRIP=$STRIP
6988   # Extract the first word of "strip", so it can be a program name with args.
6989 set dummy strip; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6993   $as_echo_n "(cached) " >&6
6994 else
6995   if test -n "$ac_ct_STRIP"; then
6996   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003     for ac_exec_ext in '' $ac_executable_extensions; do
7004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005     ac_cv_prog_ac_ct_STRIP="strip"
7006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010   done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7016 if test -n "$ac_ct_STRIP"; then
7017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7018 $as_echo "$ac_ct_STRIP" >&6; }
7019 else
7020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7022 fi
7023
7024   if test "x$ac_ct_STRIP" = x; then
7025     STRIP=":"
7026   else
7027     case $cross_compiling:$ac_tool_warned in
7028 yes:)
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7031 ac_tool_warned=yes ;;
7032 esac
7033     STRIP=$ac_ct_STRIP
7034   fi
7035 else
7036   STRIP="$ac_cv_prog_STRIP"
7037 fi
7038
7039 test -z "$STRIP" && STRIP=:
7040
7041
7042
7043
7044
7045
7046 if test -n "$ac_tool_prefix"; then
7047   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7048 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if ${ac_cv_prog_RANLIB+:} false; then :
7052   $as_echo_n "(cached) " >&6
7053 else
7054   if test -n "$RANLIB"; then
7055   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060   IFS=$as_save_IFS
7061   test -z "$as_dir" && as_dir=.
7062     for ac_exec_ext in '' $ac_executable_extensions; do
7063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066     break 2
7067   fi
7068 done
7069   done
7070 IFS=$as_save_IFS
7071
7072 fi
7073 fi
7074 RANLIB=$ac_cv_prog_RANLIB
7075 if test -n "$RANLIB"; then
7076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7077 $as_echo "$RANLIB" >&6; }
7078 else
7079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7081 fi
7082
7083
7084 fi
7085 if test -z "$ac_cv_prog_RANLIB"; then
7086   ac_ct_RANLIB=$RANLIB
7087   # Extract the first word of "ranlib", so it can be a program name with args.
7088 set dummy ranlib; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7092   $as_echo_n "(cached) " >&6
7093 else
7094   if test -n "$ac_ct_RANLIB"; then
7095   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100   IFS=$as_save_IFS
7101   test -z "$as_dir" && as_dir=.
7102     for ac_exec_ext in '' $ac_executable_extensions; do
7103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104     ac_cv_prog_ac_ct_RANLIB="ranlib"
7105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106     break 2
7107   fi
7108 done
7109   done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7115 if test -n "$ac_ct_RANLIB"; then
7116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7117 $as_echo "$ac_ct_RANLIB" >&6; }
7118 else
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123   if test "x$ac_ct_RANLIB" = x; then
7124     RANLIB=":"
7125   else
7126     case $cross_compiling:$ac_tool_warned in
7127 yes:)
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7130 ac_tool_warned=yes ;;
7131 esac
7132     RANLIB=$ac_ct_RANLIB
7133   fi
7134 else
7135   RANLIB="$ac_cv_prog_RANLIB"
7136 fi
7137
7138 test -z "$RANLIB" && RANLIB=:
7139
7140
7141
7142
7143
7144
7145 # Determine commands to create old-style static archives.
7146 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7147 old_postinstall_cmds='chmod 644 $oldlib'
7148 old_postuninstall_cmds=
7149
7150 if test -n "$RANLIB"; then
7151   case $host_os in
7152   openbsd*)
7153     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7154     ;;
7155   *)
7156     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7157     ;;
7158   esac
7159   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7160 fi
7161
7162 case $host_os in
7163   darwin*)
7164     lock_old_archive_extraction=yes ;;
7165   *)
7166     lock_old_archive_extraction=no ;;
7167 esac
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207 # If no C compiler was specified, use CC.
7208 LTCC=${LTCC-"$CC"}
7209
7210 # If no C compiler flags were specified, use CFLAGS.
7211 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7212
7213 # Allow CC to be a program name with arguments.
7214 compiler=$CC
7215
7216
7217 # Check for command to grab the raw symbol name followed by C symbol from nm.
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7219 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7220 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7221   $as_echo_n "(cached) " >&6
7222 else
7223
7224 # These are sane defaults that work on at least a few old systems.
7225 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7226
7227 # Character class describing NM global symbol codes.
7228 symcode='[BCDEGRST]'
7229
7230 # Regexp to match symbols that can be accessed directly from C.
7231 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7232
7233 # Define system-specific variables.
7234 case $host_os in
7235 aix*)
7236   symcode='[BCDT]'
7237   ;;
7238 cygwin* | mingw* | pw32* | cegcc*)
7239   symcode='[ABCDGISTW]'
7240   ;;
7241 hpux*)
7242   if test "$host_cpu" = ia64; then
7243     symcode='[ABCDEGRST]'
7244   fi
7245   ;;
7246 irix* | nonstopux*)
7247   symcode='[BCDEGRST]'
7248   ;;
7249 osf*)
7250   symcode='[BCDEGQRST]'
7251   ;;
7252 solaris*)
7253   symcode='[BDRT]'
7254   ;;
7255 sco3.2v5*)
7256   symcode='[DT]'
7257   ;;
7258 sysv4.2uw2*)
7259   symcode='[DT]'
7260   ;;
7261 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7262   symcode='[ABDT]'
7263   ;;
7264 sysv4)
7265   symcode='[DFNSTU]'
7266   ;;
7267 esac
7268
7269 # If we're using GNU nm, then use its standard symbol codes.
7270 case `$NM -V 2>&1` in
7271 *GNU* | *'with BFD'*)
7272   symcode='[ABCDGIRSTW]' ;;
7273 esac
7274
7275 # Transform an extracted symbol line into a proper C declaration.
7276 # Some systems (esp. on ia64) link data and code symbols differently,
7277 # so use this general approach.
7278 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7279
7280 # Transform an extracted symbol line into symbol name and symbol address
7281 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7282 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'"
7283
7284 # Handle CRLF in mingw tool chain
7285 opt_cr=
7286 case $build_os in
7287 mingw*)
7288   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7289   ;;
7290 esac
7291
7292 # Try without a prefix underscore, then with it.
7293 for ac_symprfx in "" "_"; do
7294
7295   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7296   symxfrm="\\1 $ac_symprfx\\2 \\2"
7297
7298   # Write the raw and C identifiers.
7299   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7300     # Fake it for dumpbin and say T for any non-static function
7301     # and D for any global variable.
7302     # Also find C++ and __fastcall symbols from MSVC++,
7303     # which start with @ or ?.
7304     lt_cv_sys_global_symbol_pipe="$AWK '"\
7305 "     {last_section=section; section=\$ 3};"\
7306 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7307 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7308 "     \$ 0!~/External *\|/{next};"\
7309 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7310 "     {if(hide[section]) next};"\
7311 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7312 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7313 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7314 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7315 "     ' prfx=^$ac_symprfx"
7316   else
7317     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7318   fi
7319   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7320
7321   # Check to see that the pipe works correctly.
7322   pipe_works=no
7323
7324   rm -f conftest*
7325   cat > conftest.$ac_ext <<_LT_EOF
7326 #ifdef __cplusplus
7327 extern "C" {
7328 #endif
7329 char nm_test_var;
7330 void nm_test_func(void);
7331 void nm_test_func(void){}
7332 #ifdef __cplusplus
7333 }
7334 #endif
7335 int main(){nm_test_var='a';nm_test_func();return(0);}
7336 _LT_EOF
7337
7338   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7339   (eval $ac_compile) 2>&5
7340   ac_status=$?
7341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7342   test $ac_status = 0; }; then
7343     # Now try to grab the symbols.
7344     nlist=conftest.nm
7345     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7346   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7347   ac_status=$?
7348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349   test $ac_status = 0; } && test -s "$nlist"; then
7350       # Try sorting and uniquifying the output.
7351       if sort "$nlist" | uniq > "$nlist"T; then
7352         mv -f "$nlist"T "$nlist"
7353       else
7354         rm -f "$nlist"T
7355       fi
7356
7357       # Make sure that we snagged all the symbols we need.
7358       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7359         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7360           cat <<_LT_EOF > conftest.$ac_ext
7361 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7362 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7363 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7364    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7365 # define LT_DLSYM_CONST
7366 #elif defined(__osf__)
7367 /* This system does not cope well with relocations in const data.  */
7368 # define LT_DLSYM_CONST
7369 #else
7370 # define LT_DLSYM_CONST const
7371 #endif
7372
7373 #ifdef __cplusplus
7374 extern "C" {
7375 #endif
7376
7377 _LT_EOF
7378           # Now generate the symbol file.
7379           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7380
7381           cat <<_LT_EOF >> conftest.$ac_ext
7382
7383 /* The mapping between symbol names and symbols.  */
7384 LT_DLSYM_CONST struct {
7385   const char *name;
7386   void       *address;
7387 }
7388 lt__PROGRAM__LTX_preloaded_symbols[] =
7389 {
7390   { "@PROGRAM@", (void *) 0 },
7391 _LT_EOF
7392           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7393           cat <<\_LT_EOF >> conftest.$ac_ext
7394   {0, (void *) 0}
7395 };
7396
7397 /* This works around a problem in FreeBSD linker */
7398 #ifdef FREEBSD_WORKAROUND
7399 static const void *lt_preloaded_setup() {
7400   return lt__PROGRAM__LTX_preloaded_symbols;
7401 }
7402 #endif
7403
7404 #ifdef __cplusplus
7405 }
7406 #endif
7407 _LT_EOF
7408           # Now try linking the two files.
7409           mv conftest.$ac_objext conftstm.$ac_objext
7410           lt_globsym_save_LIBS=$LIBS
7411           lt_globsym_save_CFLAGS=$CFLAGS
7412           LIBS="conftstm.$ac_objext"
7413           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7414           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7415   (eval $ac_link) 2>&5
7416   ac_status=$?
7417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7418   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7419             pipe_works=yes
7420           fi
7421           LIBS=$lt_globsym_save_LIBS
7422           CFLAGS=$lt_globsym_save_CFLAGS
7423         else
7424           echo "cannot find nm_test_func in $nlist" >&5
7425         fi
7426       else
7427         echo "cannot find nm_test_var in $nlist" >&5
7428       fi
7429     else
7430       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7431     fi
7432   else
7433     echo "$progname: failed program was:" >&5
7434     cat conftest.$ac_ext >&5
7435   fi
7436   rm -rf conftest* conftst*
7437
7438   # Do not use the global_symbol_pipe unless it works.
7439   if test "$pipe_works" = yes; then
7440     break
7441   else
7442     lt_cv_sys_global_symbol_pipe=
7443   fi
7444 done
7445
7446 fi
7447
7448 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7449   lt_cv_sys_global_symbol_to_cdecl=
7450 fi
7451 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7453 $as_echo "failed" >&6; }
7454 else
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7456 $as_echo "ok" >&6; }
7457 fi
7458
7459 # Response file support.
7460 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7461   nm_file_list_spec='@'
7462 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7463   nm_file_list_spec='@'
7464 fi
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7493 $as_echo_n "checking for sysroot... " >&6; }
7494
7495 # Check whether --with-sysroot was given.
7496 if test "${with_sysroot+set}" = set; then :
7497   withval=$with_sysroot;
7498 else
7499   with_sysroot=no
7500 fi
7501
7502
7503 lt_sysroot=
7504 case ${with_sysroot} in #(
7505  yes)
7506    if test "$GCC" = yes; then
7507      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7508    fi
7509    ;; #(
7510  /*)
7511    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7512    ;; #(
7513  no|'')
7514    ;; #(
7515  *)
7516    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7517 $as_echo "${with_sysroot}" >&6; }
7518    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7519    ;;
7520 esac
7521
7522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7523 $as_echo "${lt_sysroot:-no}" >&6; }
7524
7525
7526
7527
7528
7529 # Check whether --enable-libtool-lock was given.
7530 if test "${enable_libtool_lock+set}" = set; then :
7531   enableval=$enable_libtool_lock;
7532 fi
7533
7534 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7535
7536 # Some flags need to be propagated to the compiler or linker for good
7537 # libtool support.
7538 case $host in
7539 ia64-*-hpux*)
7540   # Find out which ABI we are using.
7541   echo 'int i;' > conftest.$ac_ext
7542   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7543   (eval $ac_compile) 2>&5
7544   ac_status=$?
7545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546   test $ac_status = 0; }; then
7547     case `/usr/bin/file conftest.$ac_objext` in
7548       *ELF-32*)
7549         HPUX_IA64_MODE="32"
7550         ;;
7551       *ELF-64*)
7552         HPUX_IA64_MODE="64"
7553         ;;
7554     esac
7555   fi
7556   rm -rf conftest*
7557   ;;
7558 *-*-irix6*)
7559   # Find out which ABI we are using.
7560   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7561   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7562   (eval $ac_compile) 2>&5
7563   ac_status=$?
7564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7565   test $ac_status = 0; }; then
7566     if test "$lt_cv_prog_gnu_ld" = yes; then
7567       case `/usr/bin/file conftest.$ac_objext` in
7568         *32-bit*)
7569           LD="${LD-ld} -melf32bsmip"
7570           ;;
7571         *N32*)
7572           LD="${LD-ld} -melf32bmipn32"
7573           ;;
7574         *64-bit*)
7575           LD="${LD-ld} -melf64bmip"
7576         ;;
7577       esac
7578     else
7579       case `/usr/bin/file conftest.$ac_objext` in
7580         *32-bit*)
7581           LD="${LD-ld} -32"
7582           ;;
7583         *N32*)
7584           LD="${LD-ld} -n32"
7585           ;;
7586         *64-bit*)
7587           LD="${LD-ld} -64"
7588           ;;
7589       esac
7590     fi
7591   fi
7592   rm -rf conftest*
7593   ;;
7594
7595 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7596 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7597   # Find out which ABI we are using.
7598   echo 'int i;' > conftest.$ac_ext
7599   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7600   (eval $ac_compile) 2>&5
7601   ac_status=$?
7602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603   test $ac_status = 0; }; then
7604     case `/usr/bin/file conftest.o` in
7605       *32-bit*)
7606         case $host in
7607           x86_64-*kfreebsd*-gnu)
7608             LD="${LD-ld} -m elf_i386_fbsd"
7609             ;;
7610           x86_64-*linux*)
7611             LD="${LD-ld} -m elf_i386"
7612             ;;
7613           ppc64-*linux*|powerpc64-*linux*)
7614             LD="${LD-ld} -m elf32ppclinux"
7615             ;;
7616           s390x-*linux*)
7617             LD="${LD-ld} -m elf_s390"
7618             ;;
7619           sparc64-*linux*)
7620             LD="${LD-ld} -m elf32_sparc"
7621             ;;
7622         esac
7623         ;;
7624       *64-bit*)
7625         case $host in
7626           x86_64-*kfreebsd*-gnu)
7627             LD="${LD-ld} -m elf_x86_64_fbsd"
7628             ;;
7629           x86_64-*linux*)
7630             LD="${LD-ld} -m elf_x86_64"
7631             ;;
7632           ppc*-*linux*|powerpc*-*linux*)
7633             LD="${LD-ld} -m elf64ppc"
7634             ;;
7635           s390*-*linux*|s390*-*tpf*)
7636             LD="${LD-ld} -m elf64_s390"
7637             ;;
7638           sparc*-*linux*)
7639             LD="${LD-ld} -m elf64_sparc"
7640             ;;
7641         esac
7642         ;;
7643     esac
7644   fi
7645   rm -rf conftest*
7646   ;;
7647
7648 *-*-sco3.2v5*)
7649   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7650   SAVE_CFLAGS="$CFLAGS"
7651   CFLAGS="$CFLAGS -belf"
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7653 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7654 if ${lt_cv_cc_needs_belf+:} false; then :
7655   $as_echo_n "(cached) " >&6
7656 else
7657   ac_ext=c
7658 ac_cpp='$CPP $CPPFLAGS'
7659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7662
7663      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h.  */
7665
7666 int
7667 main ()
7668 {
7669
7670   ;
7671   return 0;
7672 }
7673 _ACEOF
7674 if ac_fn_c_try_link "$LINENO"; then :
7675   lt_cv_cc_needs_belf=yes
7676 else
7677   lt_cv_cc_needs_belf=no
7678 fi
7679 rm -f core conftest.err conftest.$ac_objext \
7680     conftest$ac_exeext conftest.$ac_ext
7681      ac_ext=c
7682 ac_cpp='$CPP $CPPFLAGS'
7683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7686
7687 fi
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7689 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7690   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7691     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7692     CFLAGS="$SAVE_CFLAGS"
7693   fi
7694   ;;
7695 *-*solaris*)
7696   # Find out which ABI we are using.
7697   echo 'int i;' > conftest.$ac_ext
7698   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7699   (eval $ac_compile) 2>&5
7700   ac_status=$?
7701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7702   test $ac_status = 0; }; then
7703     case `/usr/bin/file conftest.o` in
7704     *64-bit*)
7705       case $lt_cv_prog_gnu_ld in
7706       yes*)
7707         case $host in
7708         i?86-*-solaris*)
7709           LD="${LD-ld} -m elf_x86_64"
7710           ;;
7711         sparc*-*-solaris*)
7712           LD="${LD-ld} -m elf64_sparc"
7713           ;;
7714         esac
7715         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7716         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7717           LD="${LD-ld}_sol2"
7718         fi
7719         ;;
7720       *)
7721         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7722           LD="${LD-ld} -64"
7723         fi
7724         ;;
7725       esac
7726       ;;
7727     esac
7728   fi
7729   rm -rf conftest*
7730   ;;
7731 esac
7732
7733 need_locks="$enable_libtool_lock"
7734
7735 if test -n "$ac_tool_prefix"; then
7736   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7737 set dummy ${ac_tool_prefix}mt; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   if test -n "$MANIFEST_TOOL"; then
7744   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7748 do
7749   IFS=$as_save_IFS
7750   test -z "$as_dir" && as_dir=.
7751     for ac_exec_ext in '' $ac_executable_extensions; do
7752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755     break 2
7756   fi
7757 done
7758   done
7759 IFS=$as_save_IFS
7760
7761 fi
7762 fi
7763 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7764 if test -n "$MANIFEST_TOOL"; then
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7766 $as_echo "$MANIFEST_TOOL" >&6; }
7767 else
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7770 fi
7771
7772
7773 fi
7774 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7775   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7776   # Extract the first word of "mt", so it can be a program name with args.
7777 set dummy mt; ac_word=$2
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779 $as_echo_n "checking for $ac_word... " >&6; }
7780 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7781   $as_echo_n "(cached) " >&6
7782 else
7783   if test -n "$ac_ct_MANIFEST_TOOL"; then
7784   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7785 else
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH
7788 do
7789   IFS=$as_save_IFS
7790   test -z "$as_dir" && as_dir=.
7791     for ac_exec_ext in '' $ac_executable_extensions; do
7792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795     break 2
7796   fi
7797 done
7798   done
7799 IFS=$as_save_IFS
7800
7801 fi
7802 fi
7803 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7804 if test -n "$ac_ct_MANIFEST_TOOL"; then
7805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7806 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7807 else
7808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7810 fi
7811
7812   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7813     MANIFEST_TOOL=":"
7814   else
7815     case $cross_compiling:$ac_tool_warned in
7816 yes:)
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7819 ac_tool_warned=yes ;;
7820 esac
7821     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7822   fi
7823 else
7824   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7825 fi
7826
7827 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7829 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7830 if ${lt_cv_path_mainfest_tool+:} false; then :
7831   $as_echo_n "(cached) " >&6
7832 else
7833   lt_cv_path_mainfest_tool=no
7834   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7835   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7836   cat conftest.err >&5
7837   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7838     lt_cv_path_mainfest_tool=yes
7839   fi
7840   rm -f conftest*
7841 fi
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7843 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7844 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7845   MANIFEST_TOOL=:
7846 fi
7847
7848
7849
7850
7851
7852
7853   case $host_os in
7854     rhapsody* | darwin*)
7855     if test -n "$ac_tool_prefix"; then
7856   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7857 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7861   $as_echo_n "(cached) " >&6
7862 else
7863   if test -n "$DSYMUTIL"; then
7864   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869   IFS=$as_save_IFS
7870   test -z "$as_dir" && as_dir=.
7871     for ac_exec_ext in '' $ac_executable_extensions; do
7872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875     break 2
7876   fi
7877 done
7878   done
7879 IFS=$as_save_IFS
7880
7881 fi
7882 fi
7883 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7884 if test -n "$DSYMUTIL"; then
7885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7886 $as_echo "$DSYMUTIL" >&6; }
7887 else
7888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7890 fi
7891
7892
7893 fi
7894 if test -z "$ac_cv_prog_DSYMUTIL"; then
7895   ac_ct_DSYMUTIL=$DSYMUTIL
7896   # Extract the first word of "dsymutil", so it can be a program name with args.
7897 set dummy dsymutil; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7901   $as_echo_n "(cached) " >&6
7902 else
7903   if test -n "$ac_ct_DSYMUTIL"; then
7904   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7908 do
7909   IFS=$as_save_IFS
7910   test -z "$as_dir" && as_dir=.
7911     for ac_exec_ext in '' $ac_executable_extensions; do
7912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915     break 2
7916   fi
7917 done
7918   done
7919 IFS=$as_save_IFS
7920
7921 fi
7922 fi
7923 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7924 if test -n "$ac_ct_DSYMUTIL"; then
7925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7926 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7927 else
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7930 fi
7931
7932   if test "x$ac_ct_DSYMUTIL" = x; then
7933     DSYMUTIL=":"
7934   else
7935     case $cross_compiling:$ac_tool_warned in
7936 yes:)
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7939 ac_tool_warned=yes ;;
7940 esac
7941     DSYMUTIL=$ac_ct_DSYMUTIL
7942   fi
7943 else
7944   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7945 fi
7946
7947     if test -n "$ac_tool_prefix"; then
7948   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7949 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if ${ac_cv_prog_NMEDIT+:} false; then :
7953   $as_echo_n "(cached) " >&6
7954 else
7955   if test -n "$NMEDIT"; then
7956   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961   IFS=$as_save_IFS
7962   test -z "$as_dir" && as_dir=.
7963     for ac_exec_ext in '' $ac_executable_extensions; do
7964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967     break 2
7968   fi
7969 done
7970   done
7971 IFS=$as_save_IFS
7972
7973 fi
7974 fi
7975 NMEDIT=$ac_cv_prog_NMEDIT
7976 if test -n "$NMEDIT"; then
7977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7978 $as_echo "$NMEDIT" >&6; }
7979 else
7980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982 fi
7983
7984
7985 fi
7986 if test -z "$ac_cv_prog_NMEDIT"; then
7987   ac_ct_NMEDIT=$NMEDIT
7988   # Extract the first word of "nmedit", so it can be a program name with args.
7989 set dummy nmedit; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7993   $as_echo_n "(cached) " >&6
7994 else
7995   if test -n "$ac_ct_NMEDIT"; then
7996   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001   IFS=$as_save_IFS
8002   test -z "$as_dir" && as_dir=.
8003     for ac_exec_ext in '' $ac_executable_extensions; do
8004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007     break 2
8008   fi
8009 done
8010   done
8011 IFS=$as_save_IFS
8012
8013 fi
8014 fi
8015 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8016 if test -n "$ac_ct_NMEDIT"; then
8017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8018 $as_echo "$ac_ct_NMEDIT" >&6; }
8019 else
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024   if test "x$ac_ct_NMEDIT" = x; then
8025     NMEDIT=":"
8026   else
8027     case $cross_compiling:$ac_tool_warned in
8028 yes:)
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8031 ac_tool_warned=yes ;;
8032 esac
8033     NMEDIT=$ac_ct_NMEDIT
8034   fi
8035 else
8036   NMEDIT="$ac_cv_prog_NMEDIT"
8037 fi
8038
8039     if test -n "$ac_tool_prefix"; then
8040   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if ${ac_cv_prog_LIPO+:} false; then :
8045   $as_echo_n "(cached) " >&6
8046 else
8047   if test -n "$LIPO"; then
8048   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8052 do
8053   IFS=$as_save_IFS
8054   test -z "$as_dir" && as_dir=.
8055     for ac_exec_ext in '' $ac_executable_extensions; do
8056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059     break 2
8060   fi
8061 done
8062   done
8063 IFS=$as_save_IFS
8064
8065 fi
8066 fi
8067 LIPO=$ac_cv_prog_LIPO
8068 if test -n "$LIPO"; then
8069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8070 $as_echo "$LIPO" >&6; }
8071 else
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8074 fi
8075
8076
8077 fi
8078 if test -z "$ac_cv_prog_LIPO"; then
8079   ac_ct_LIPO=$LIPO
8080   # Extract the first word of "lipo", so it can be a program name with args.
8081 set dummy lipo; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8085   $as_echo_n "(cached) " >&6
8086 else
8087   if test -n "$ac_ct_LIPO"; then
8088   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093   IFS=$as_save_IFS
8094   test -z "$as_dir" && as_dir=.
8095     for ac_exec_ext in '' $ac_executable_extensions; do
8096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097     ac_cv_prog_ac_ct_LIPO="lipo"
8098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099     break 2
8100   fi
8101 done
8102   done
8103 IFS=$as_save_IFS
8104
8105 fi
8106 fi
8107 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8108 if test -n "$ac_ct_LIPO"; then
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8110 $as_echo "$ac_ct_LIPO" >&6; }
8111 else
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8114 fi
8115
8116   if test "x$ac_ct_LIPO" = x; then
8117     LIPO=":"
8118   else
8119     case $cross_compiling:$ac_tool_warned in
8120 yes:)
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8123 ac_tool_warned=yes ;;
8124 esac
8125     LIPO=$ac_ct_LIPO
8126   fi
8127 else
8128   LIPO="$ac_cv_prog_LIPO"
8129 fi
8130
8131     if test -n "$ac_tool_prefix"; then
8132   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8133 set dummy ${ac_tool_prefix}otool; ac_word=$2
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135 $as_echo_n "checking for $ac_word... " >&6; }
8136 if ${ac_cv_prog_OTOOL+:} false; then :
8137   $as_echo_n "(cached) " >&6
8138 else
8139   if test -n "$OTOOL"; then
8140   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8144 do
8145   IFS=$as_save_IFS
8146   test -z "$as_dir" && as_dir=.
8147     for ac_exec_ext in '' $ac_executable_extensions; do
8148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151     break 2
8152   fi
8153 done
8154   done
8155 IFS=$as_save_IFS
8156
8157 fi
8158 fi
8159 OTOOL=$ac_cv_prog_OTOOL
8160 if test -n "$OTOOL"; then
8161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8162 $as_echo "$OTOOL" >&6; }
8163 else
8164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8166 fi
8167
8168
8169 fi
8170 if test -z "$ac_cv_prog_OTOOL"; then
8171   ac_ct_OTOOL=$OTOOL
8172   # Extract the first word of "otool", so it can be a program name with args.
8173 set dummy otool; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8177   $as_echo_n "(cached) " >&6
8178 else
8179   if test -n "$ac_ct_OTOOL"; then
8180   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8184 do
8185   IFS=$as_save_IFS
8186   test -z "$as_dir" && as_dir=.
8187     for ac_exec_ext in '' $ac_executable_extensions; do
8188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189     ac_cv_prog_ac_ct_OTOOL="otool"
8190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191     break 2
8192   fi
8193 done
8194   done
8195 IFS=$as_save_IFS
8196
8197 fi
8198 fi
8199 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8200 if test -n "$ac_ct_OTOOL"; then
8201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8202 $as_echo "$ac_ct_OTOOL" >&6; }
8203 else
8204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8206 fi
8207
8208   if test "x$ac_ct_OTOOL" = x; then
8209     OTOOL=":"
8210   else
8211     case $cross_compiling:$ac_tool_warned in
8212 yes:)
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8215 ac_tool_warned=yes ;;
8216 esac
8217     OTOOL=$ac_ct_OTOOL
8218   fi
8219 else
8220   OTOOL="$ac_cv_prog_OTOOL"
8221 fi
8222
8223     if test -n "$ac_tool_prefix"; then
8224   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8225 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 $as_echo_n "checking for $ac_word... " >&6; }
8228 if ${ac_cv_prog_OTOOL64+:} false; then :
8229   $as_echo_n "(cached) " >&6
8230 else
8231   if test -n "$OTOOL64"; then
8232   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8233 else
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8236 do
8237   IFS=$as_save_IFS
8238   test -z "$as_dir" && as_dir=.
8239     for ac_exec_ext in '' $ac_executable_extensions; do
8240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243     break 2
8244   fi
8245 done
8246   done
8247 IFS=$as_save_IFS
8248
8249 fi
8250 fi
8251 OTOOL64=$ac_cv_prog_OTOOL64
8252 if test -n "$OTOOL64"; then
8253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8254 $as_echo "$OTOOL64" >&6; }
8255 else
8256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8258 fi
8259
8260
8261 fi
8262 if test -z "$ac_cv_prog_OTOOL64"; then
8263   ac_ct_OTOOL64=$OTOOL64
8264   # Extract the first word of "otool64", so it can be a program name with args.
8265 set dummy otool64; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8269   $as_echo_n "(cached) " >&6
8270 else
8271   if test -n "$ac_ct_OTOOL64"; then
8272   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8273 else
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8276 do
8277   IFS=$as_save_IFS
8278   test -z "$as_dir" && as_dir=.
8279     for ac_exec_ext in '' $ac_executable_extensions; do
8280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281     ac_cv_prog_ac_ct_OTOOL64="otool64"
8282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283     break 2
8284   fi
8285 done
8286   done
8287 IFS=$as_save_IFS
8288
8289 fi
8290 fi
8291 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8292 if test -n "$ac_ct_OTOOL64"; then
8293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8294 $as_echo "$ac_ct_OTOOL64" >&6; }
8295 else
8296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8298 fi
8299
8300   if test "x$ac_ct_OTOOL64" = x; then
8301     OTOOL64=":"
8302   else
8303     case $cross_compiling:$ac_tool_warned in
8304 yes:)
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8307 ac_tool_warned=yes ;;
8308 esac
8309     OTOOL64=$ac_ct_OTOOL64
8310   fi
8311 else
8312   OTOOL64="$ac_cv_prog_OTOOL64"
8313 fi
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8342 $as_echo_n "checking for -single_module linker flag... " >&6; }
8343 if ${lt_cv_apple_cc_single_mod+:} false; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346   lt_cv_apple_cc_single_mod=no
8347       if test -z "${LT_MULTI_MODULE}"; then
8348         # By default we will add the -single_module flag. You can override
8349         # by either setting the environment variable LT_MULTI_MODULE
8350         # non-empty at configure time, or by adding -multi_module to the
8351         # link flags.
8352         rm -rf libconftest.dylib*
8353         echo "int foo(void){return 1;}" > conftest.c
8354         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8355 -dynamiclib -Wl,-single_module conftest.c" >&5
8356         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8357           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8358         _lt_result=$?
8359         # If there is a non-empty error log, and "single_module"
8360         # appears in it, assume the flag caused a linker warning
8361         if test -s conftest.err && $GREP single_module conftest.err; then
8362           cat conftest.err >&5
8363         # Otherwise, if the output was created with a 0 exit code from
8364         # the compiler, it worked.
8365         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8366           lt_cv_apple_cc_single_mod=yes
8367         else
8368           cat conftest.err >&5
8369         fi
8370         rm -rf libconftest.dylib*
8371         rm -f conftest.*
8372       fi
8373 fi
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8375 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8376
8377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8378 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8379 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8380   $as_echo_n "(cached) " >&6
8381 else
8382   lt_cv_ld_exported_symbols_list=no
8383       save_LDFLAGS=$LDFLAGS
8384       echo "_main" > conftest.sym
8385       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8386       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h.  */
8388
8389 int
8390 main ()
8391 {
8392
8393   ;
8394   return 0;
8395 }
8396 _ACEOF
8397 if ac_fn_c_try_link "$LINENO"; then :
8398   lt_cv_ld_exported_symbols_list=yes
8399 else
8400   lt_cv_ld_exported_symbols_list=no
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext \
8403     conftest$ac_exeext conftest.$ac_ext
8404         LDFLAGS="$save_LDFLAGS"
8405
8406 fi
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8408 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8409
8410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8411 $as_echo_n "checking for -force_load linker flag... " >&6; }
8412 if ${lt_cv_ld_force_load+:} false; then :
8413   $as_echo_n "(cached) " >&6
8414 else
8415   lt_cv_ld_force_load=no
8416       cat > conftest.c << _LT_EOF
8417 int forced_loaded() { return 2;}
8418 _LT_EOF
8419       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8420       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8421       echo "$AR cru libconftest.a conftest.o" >&5
8422       $AR cru libconftest.a conftest.o 2>&5
8423       echo "$RANLIB libconftest.a" >&5
8424       $RANLIB libconftest.a 2>&5
8425       cat > conftest.c << _LT_EOF
8426 int main() { return 0;}
8427 _LT_EOF
8428       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8429       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8430       _lt_result=$?
8431       if test -s conftest.err && $GREP force_load conftest.err; then
8432         cat conftest.err >&5
8433       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8434         lt_cv_ld_force_load=yes
8435       else
8436         cat conftest.err >&5
8437       fi
8438         rm -f conftest.err libconftest.a conftest conftest.c
8439         rm -rf conftest.dSYM
8440
8441 fi
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8443 $as_echo "$lt_cv_ld_force_load" >&6; }
8444     case $host_os in
8445     rhapsody* | darwin1.[012])
8446       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8447     darwin1.*)
8448       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8449     darwin*) # darwin 5.x on
8450       # if running on 10.5 or later, the deployment target defaults
8451       # to the OS version, if on x86, and 10.4, the deployment
8452       # target defaults to 10.4. Don't you love it?
8453       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8454         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8455           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8456         10.[012]*)
8457           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8458         10.*)
8459           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8460       esac
8461     ;;
8462   esac
8463     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8464       _lt_dar_single_mod='$single_module'
8465     fi
8466     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8467       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8468     else
8469       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8470     fi
8471     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8472       _lt_dsymutil='~$DSYMUTIL $lib || :'
8473     else
8474       _lt_dsymutil=
8475     fi
8476     ;;
8477   esac
8478
8479 for ac_header in dlfcn.h
8480 do :
8481   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8482 "
8483 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8484   cat >>confdefs.h <<_ACEOF
8485 #define HAVE_DLFCN_H 1
8486 _ACEOF
8487
8488 fi
8489
8490 done
8491
8492
8493
8494
8495
8496 # Set options
8497 # Check whether --enable-static was given.
8498 if test "${enable_static+set}" = set; then :
8499   enableval=$enable_static; p=${PACKAGE-default}
8500     case $enableval in
8501     yes) enable_static=yes ;;
8502     no) enable_static=no ;;
8503     *)
8504      enable_static=no
8505       # Look at the argument we got.  We use all the common list separators.
8506       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8507       for pkg in $enableval; do
8508         IFS="$lt_save_ifs"
8509         if test "X$pkg" = "X$p"; then
8510           enable_static=yes
8511         fi
8512       done
8513       IFS="$lt_save_ifs"
8514       ;;
8515     esac
8516 else
8517   enable_static=no
8518 fi
8519
8520
8521
8522
8523
8524
8525
8526
8527 # Check whether --with-pic was given.
8528 if test "${with_pic+set}" = set; then :
8529   withval=$with_pic; lt_p=${PACKAGE-default}
8530     case $withval in
8531     yes|no) pic_mode=$withval ;;
8532     *)
8533       pic_mode=default
8534       # Look at the argument we got.  We use all the common list separators.
8535       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8536       for lt_pkg in $withval; do
8537         IFS="$lt_save_ifs"
8538         if test "X$lt_pkg" = "X$lt_p"; then
8539           pic_mode=yes
8540         fi
8541       done
8542       IFS="$lt_save_ifs"
8543       ;;
8544     esac
8545 else
8546   pic_mode=default
8547 fi
8548
8549
8550 test -z "$pic_mode" && pic_mode=yes
8551
8552
8553
8554
8555
8556
8557
8558
8559         enable_dlopen=no
8560
8561
8562   enable_win32_dll=no
8563
8564
8565             # Check whether --enable-shared was given.
8566 if test "${enable_shared+set}" = set; then :
8567   enableval=$enable_shared; p=${PACKAGE-default}
8568     case $enableval in
8569     yes) enable_shared=yes ;;
8570     no) enable_shared=no ;;
8571     *)
8572       enable_shared=no
8573       # Look at the argument we got.  We use all the common list separators.
8574       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8575       for pkg in $enableval; do
8576         IFS="$lt_save_ifs"
8577         if test "X$pkg" = "X$p"; then
8578           enable_shared=yes
8579         fi
8580       done
8581       IFS="$lt_save_ifs"
8582       ;;
8583     esac
8584 else
8585   enable_shared=yes
8586 fi
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598   # Check whether --enable-fast-install was given.
8599 if test "${enable_fast_install+set}" = set; then :
8600   enableval=$enable_fast_install; p=${PACKAGE-default}
8601     case $enableval in
8602     yes) enable_fast_install=yes ;;
8603     no) enable_fast_install=no ;;
8604     *)
8605       enable_fast_install=no
8606       # Look at the argument we got.  We use all the common list separators.
8607       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8608       for pkg in $enableval; do
8609         IFS="$lt_save_ifs"
8610         if test "X$pkg" = "X$p"; then
8611           enable_fast_install=yes
8612         fi
8613       done
8614       IFS="$lt_save_ifs"
8615       ;;
8616     esac
8617 else
8618   enable_fast_install=yes
8619 fi
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631 # This can be used to rebuild libtool when needed
8632 LIBTOOL_DEPS="$ltmain"
8633
8634 # Always use our own libtool.
8635 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666 test -z "$LN_S" && LN_S="ln -s"
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681 if test -n "${ZSH_VERSION+set}" ; then
8682    setopt NO_GLOB_SUBST
8683 fi
8684
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8686 $as_echo_n "checking for objdir... " >&6; }
8687 if ${lt_cv_objdir+:} false; then :
8688   $as_echo_n "(cached) " >&6
8689 else
8690   rm -f .libs 2>/dev/null
8691 mkdir .libs 2>/dev/null
8692 if test -d .libs; then
8693   lt_cv_objdir=.libs
8694 else
8695   # MS-DOS does not allow filenames that begin with a dot.
8696   lt_cv_objdir=_libs
8697 fi
8698 rmdir .libs 2>/dev/null
8699 fi
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8701 $as_echo "$lt_cv_objdir" >&6; }
8702 objdir=$lt_cv_objdir
8703
8704
8705
8706
8707
8708 cat >>confdefs.h <<_ACEOF
8709 #define LT_OBJDIR "$lt_cv_objdir/"
8710 _ACEOF
8711
8712
8713
8714
8715 case $host_os in
8716 aix3*)
8717   # AIX sometimes has problems with the GCC collect2 program.  For some
8718   # reason, if we set the COLLECT_NAMES environment variable, the problems
8719   # vanish in a puff of smoke.
8720   if test "X${COLLECT_NAMES+set}" != Xset; then
8721     COLLECT_NAMES=
8722     export COLLECT_NAMES
8723   fi
8724   ;;
8725 esac
8726
8727 # Global variables:
8728 ofile=libtool
8729 can_build_shared=yes
8730
8731 # All known linkers require a `.a' archive for static linking (except MSVC,
8732 # which needs '.lib').
8733 libext=a
8734
8735 with_gnu_ld="$lt_cv_prog_gnu_ld"
8736
8737 old_CC="$CC"
8738 old_CFLAGS="$CFLAGS"
8739
8740 # Set sane defaults for various variables
8741 test -z "$CC" && CC=cc
8742 test -z "$LTCC" && LTCC=$CC
8743 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8744 test -z "$LD" && LD=ld
8745 test -z "$ac_objext" && ac_objext=o
8746
8747 for cc_temp in $compiler""; do
8748   case $cc_temp in
8749     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8750     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8751     \-*) ;;
8752     *) break;;
8753   esac
8754 done
8755 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8756
8757
8758 # Only perform the check for file, if the check method requires it
8759 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8760 case $deplibs_check_method in
8761 file_magic*)
8762   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8764 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8765 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8766   $as_echo_n "(cached) " >&6
8767 else
8768   case $MAGIC_CMD in
8769 [\\/*] |  ?:[\\/]*)
8770   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8771   ;;
8772 *)
8773   lt_save_MAGIC_CMD="$MAGIC_CMD"
8774   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8775   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8776   for ac_dir in $ac_dummy; do
8777     IFS="$lt_save_ifs"
8778     test -z "$ac_dir" && ac_dir=.
8779     if test -f $ac_dir/${ac_tool_prefix}file; then
8780       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8781       if test -n "$file_magic_test_file"; then
8782         case $deplibs_check_method in
8783         "file_magic "*)
8784           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8785           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8786           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8787             $EGREP "$file_magic_regex" > /dev/null; then
8788             :
8789           else
8790             cat <<_LT_EOF 1>&2
8791
8792 *** Warning: the command libtool uses to detect shared libraries,
8793 *** $file_magic_cmd, produces output that libtool cannot recognize.
8794 *** The result is that libtool may fail to recognize shared libraries
8795 *** as such.  This will affect the creation of libtool libraries that
8796 *** depend on shared libraries, but programs linked with such libtool
8797 *** libraries will work regardless of this problem.  Nevertheless, you
8798 *** may want to report the problem to your system manager and/or to
8799 *** bug-libtool@gnu.org
8800
8801 _LT_EOF
8802           fi ;;
8803         esac
8804       fi
8805       break
8806     fi
8807   done
8808   IFS="$lt_save_ifs"
8809   MAGIC_CMD="$lt_save_MAGIC_CMD"
8810   ;;
8811 esac
8812 fi
8813
8814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8815 if test -n "$MAGIC_CMD"; then
8816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8817 $as_echo "$MAGIC_CMD" >&6; }
8818 else
8819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8821 fi
8822
8823
8824
8825
8826
8827 if test -z "$lt_cv_path_MAGIC_CMD"; then
8828   if test -n "$ac_tool_prefix"; then
8829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8830 $as_echo_n "checking for file... " >&6; }
8831 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8832   $as_echo_n "(cached) " >&6
8833 else
8834   case $MAGIC_CMD in
8835 [\\/*] |  ?:[\\/]*)
8836   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8837   ;;
8838 *)
8839   lt_save_MAGIC_CMD="$MAGIC_CMD"
8840   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8841   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8842   for ac_dir in $ac_dummy; do
8843     IFS="$lt_save_ifs"
8844     test -z "$ac_dir" && ac_dir=.
8845     if test -f $ac_dir/file; then
8846       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8847       if test -n "$file_magic_test_file"; then
8848         case $deplibs_check_method in
8849         "file_magic "*)
8850           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8851           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8852           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8853             $EGREP "$file_magic_regex" > /dev/null; then
8854             :
8855           else
8856             cat <<_LT_EOF 1>&2
8857
8858 *** Warning: the command libtool uses to detect shared libraries,
8859 *** $file_magic_cmd, produces output that libtool cannot recognize.
8860 *** The result is that libtool may fail to recognize shared libraries
8861 *** as such.  This will affect the creation of libtool libraries that
8862 *** depend on shared libraries, but programs linked with such libtool
8863 *** libraries will work regardless of this problem.  Nevertheless, you
8864 *** may want to report the problem to your system manager and/or to
8865 *** bug-libtool@gnu.org
8866
8867 _LT_EOF
8868           fi ;;
8869         esac
8870       fi
8871       break
8872     fi
8873   done
8874   IFS="$lt_save_ifs"
8875   MAGIC_CMD="$lt_save_MAGIC_CMD"
8876   ;;
8877 esac
8878 fi
8879
8880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8881 if test -n "$MAGIC_CMD"; then
8882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8883 $as_echo "$MAGIC_CMD" >&6; }
8884 else
8885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886 $as_echo "no" >&6; }
8887 fi
8888
8889
8890   else
8891     MAGIC_CMD=:
8892   fi
8893 fi
8894
8895   fi
8896   ;;
8897 esac
8898
8899 # Use C for the default configuration in the libtool script
8900
8901 lt_save_CC="$CC"
8902 ac_ext=c
8903 ac_cpp='$CPP $CPPFLAGS'
8904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8907
8908
8909 # Source file extension for C test sources.
8910 ac_ext=c
8911
8912 # Object file extension for compiled C test sources.
8913 objext=o
8914 objext=$objext
8915
8916 # Code to be used in simple compile tests
8917 lt_simple_compile_test_code="int some_variable = 0;"
8918
8919 # Code to be used in simple link tests
8920 lt_simple_link_test_code='int main(){return(0);}'
8921
8922
8923
8924
8925
8926
8927
8928 # If no C compiler was specified, use CC.
8929 LTCC=${LTCC-"$CC"}
8930
8931 # If no C compiler flags were specified, use CFLAGS.
8932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8933
8934 # Allow CC to be a program name with arguments.
8935 compiler=$CC
8936
8937 # Save the default compiler, since it gets overwritten when the other
8938 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8939 compiler_DEFAULT=$CC
8940
8941 # save warnings/boilerplate of simple test code
8942 ac_outfile=conftest.$ac_objext
8943 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8944 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8945 _lt_compiler_boilerplate=`cat conftest.err`
8946 $RM conftest*
8947
8948 ac_outfile=conftest.$ac_objext
8949 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8950 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8951 _lt_linker_boilerplate=`cat conftest.err`
8952 $RM -r conftest*
8953
8954
8955 ## CAVEAT EMPTOR:
8956 ## There is no encapsulation within the following macros, do not change
8957 ## the running order or otherwise move them around unless you know exactly
8958 ## what you are doing...
8959 if test -n "$compiler"; then
8960
8961 lt_prog_compiler_no_builtin_flag=
8962
8963 if test "$GCC" = yes; then
8964   case $cc_basename in
8965   nvcc*)
8966     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8967   *)
8968     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8969   esac
8970
8971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8972 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8973 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8974   $as_echo_n "(cached) " >&6
8975 else
8976   lt_cv_prog_compiler_rtti_exceptions=no
8977    ac_outfile=conftest.$ac_objext
8978    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8979    lt_compiler_flag="-fno-rtti -fno-exceptions"
8980    # Insert the option either (1) after the last *FLAGS variable, or
8981    # (2) before a word containing "conftest.", or (3) at the end.
8982    # Note that $ac_compile itself does not contain backslashes and begins
8983    # with a dollar sign (not a hyphen), so the echo should work correctly.
8984    # The option is referenced via a variable to avoid confusing sed.
8985    lt_compile=`echo "$ac_compile" | $SED \
8986    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8987    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8988    -e 's:$: $lt_compiler_flag:'`
8989    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8990    (eval "$lt_compile" 2>conftest.err)
8991    ac_status=$?
8992    cat conftest.err >&5
8993    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994    if (exit $ac_status) && test -s "$ac_outfile"; then
8995      # The compiler can only warn and ignore the option if not recognized
8996      # So say no if there are warnings other than the usual output.
8997      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8998      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8999      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9000        lt_cv_prog_compiler_rtti_exceptions=yes
9001      fi
9002    fi
9003    $RM conftest*
9004
9005 fi
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9007 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9008
9009 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9010     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9011 else
9012     :
9013 fi
9014
9015 fi
9016
9017
9018
9019
9020
9021
9022   lt_prog_compiler_wl=
9023 lt_prog_compiler_pic=
9024 lt_prog_compiler_static=
9025
9026
9027   if test "$GCC" = yes; then
9028     lt_prog_compiler_wl='-Wl,'
9029     lt_prog_compiler_static='-static'
9030
9031     case $host_os in
9032       aix*)
9033       # All AIX code is PIC.
9034       if test "$host_cpu" = ia64; then
9035         # AIX 5 now supports IA64 processor
9036         lt_prog_compiler_static='-Bstatic'
9037       fi
9038       ;;
9039
9040     amigaos*)
9041       case $host_cpu in
9042       powerpc)
9043             # see comment about AmigaOS4 .so support
9044             lt_prog_compiler_pic='-fPIC'
9045         ;;
9046       m68k)
9047             # FIXME: we need at least 68020 code to build shared libraries, but
9048             # adding the `-m68020' flag to GCC prevents building anything better,
9049             # like `-m68040'.
9050             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9051         ;;
9052       esac
9053       ;;
9054
9055     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9056       # PIC is the default for these OSes.
9057       ;;
9058
9059     mingw* | cygwin* | pw32* | os2* | cegcc*)
9060       # This hack is so that the source file can tell whether it is being
9061       # built for inclusion in a dll (and should export symbols for example).
9062       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9063       # (--disable-auto-import) libraries
9064       lt_prog_compiler_pic='-DDLL_EXPORT'
9065       ;;
9066
9067     darwin* | rhapsody*)
9068       # PIC is the default on this platform
9069       # Common symbols not allowed in MH_DYLIB files
9070       lt_prog_compiler_pic='-fno-common'
9071       ;;
9072
9073     haiku*)
9074       # PIC is the default for Haiku.
9075       # The "-static" flag exists, but is broken.
9076       lt_prog_compiler_static=
9077       ;;
9078
9079     hpux*)
9080       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9081       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9082       # sets the default TLS model and affects inlining.
9083       case $host_cpu in
9084       hppa*64*)
9085         # +Z the default
9086         ;;
9087       *)
9088         lt_prog_compiler_pic='-fPIC'
9089         ;;
9090       esac
9091       ;;
9092
9093     interix[3-9]*)
9094       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9095       # Instead, we relocate shared libraries at runtime.
9096       ;;
9097
9098     msdosdjgpp*)
9099       # Just because we use GCC doesn't mean we suddenly get shared libraries
9100       # on systems that don't support them.
9101       lt_prog_compiler_can_build_shared=no
9102       enable_shared=no
9103       ;;
9104
9105     *nto* | *qnx*)
9106       # QNX uses GNU C++, but need to define -shared option too, otherwise
9107       # it will coredump.
9108       lt_prog_compiler_pic='-fPIC -shared'
9109       ;;
9110
9111     sysv4*MP*)
9112       if test -d /usr/nec; then
9113         lt_prog_compiler_pic=-Kconform_pic
9114       fi
9115       ;;
9116
9117     *)
9118       lt_prog_compiler_pic='-fPIC'
9119       ;;
9120     esac
9121
9122     case $cc_basename in
9123     nvcc*) # Cuda Compiler Driver 2.2
9124       lt_prog_compiler_wl='-Xlinker '
9125       if test -n "$lt_prog_compiler_pic"; then
9126         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9127       fi
9128       ;;
9129     esac
9130   else
9131     # PORTME Check for flag to pass linker flags through the system compiler.
9132     case $host_os in
9133     aix*)
9134       lt_prog_compiler_wl='-Wl,'
9135       if test "$host_cpu" = ia64; then
9136         # AIX 5 now supports IA64 processor
9137         lt_prog_compiler_static='-Bstatic'
9138       else
9139         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9140       fi
9141       ;;
9142
9143     mingw* | cygwin* | pw32* | os2* | cegcc*)
9144       # This hack is so that the source file can tell whether it is being
9145       # built for inclusion in a dll (and should export symbols for example).
9146       lt_prog_compiler_pic='-DDLL_EXPORT'
9147       ;;
9148
9149     hpux9* | hpux10* | hpux11*)
9150       lt_prog_compiler_wl='-Wl,'
9151       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9152       # not for PA HP-UX.
9153       case $host_cpu in
9154       hppa*64*|ia64*)
9155         # +Z the default
9156         ;;
9157       *)
9158         lt_prog_compiler_pic='+Z'
9159         ;;
9160       esac
9161       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9162       lt_prog_compiler_static='${wl}-a ${wl}archive'
9163       ;;
9164
9165     irix5* | irix6* | nonstopux*)
9166       lt_prog_compiler_wl='-Wl,'
9167       # PIC (with -KPIC) is the default.
9168       lt_prog_compiler_static='-non_shared'
9169       ;;
9170
9171     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9172       case $cc_basename in
9173       # old Intel for x86_64 which still supported -KPIC.
9174       ecc*)
9175         lt_prog_compiler_wl='-Wl,'
9176         lt_prog_compiler_pic='-KPIC'
9177         lt_prog_compiler_static='-static'
9178         ;;
9179       # icc used to be incompatible with GCC.
9180       # ICC 10 doesn't accept -KPIC any more.
9181       icc* | ifort*)
9182         lt_prog_compiler_wl='-Wl,'
9183         lt_prog_compiler_pic='-fPIC'
9184         lt_prog_compiler_static='-static'
9185         ;;
9186       # Lahey Fortran 8.1.
9187       lf95*)
9188         lt_prog_compiler_wl='-Wl,'
9189         lt_prog_compiler_pic='--shared'
9190         lt_prog_compiler_static='--static'
9191         ;;
9192       nagfor*)
9193         # NAG Fortran compiler
9194         lt_prog_compiler_wl='-Wl,-Wl,,'
9195         lt_prog_compiler_pic='-PIC'
9196         lt_prog_compiler_static='-Bstatic'
9197         ;;
9198       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9199         # Portland Group compilers (*not* the Pentium gcc compiler,
9200         # which looks to be a dead project)
9201         lt_prog_compiler_wl='-Wl,'
9202         lt_prog_compiler_pic='-fpic'
9203         lt_prog_compiler_static='-Bstatic'
9204         ;;
9205       ccc*)
9206         lt_prog_compiler_wl='-Wl,'
9207         # All Alpha code is PIC.
9208         lt_prog_compiler_static='-non_shared'
9209         ;;
9210       xl* | bgxl* | bgf* | mpixl*)
9211         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9212         lt_prog_compiler_wl='-Wl,'
9213         lt_prog_compiler_pic='-qpic'
9214         lt_prog_compiler_static='-qstaticlink'
9215         ;;
9216       *)
9217         case `$CC -V 2>&1 | sed 5q` in
9218         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9219           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9220           lt_prog_compiler_pic='-KPIC'
9221           lt_prog_compiler_static='-Bstatic'
9222           lt_prog_compiler_wl=''
9223           ;;
9224         *Sun\ F* | *Sun*Fortran*)
9225           lt_prog_compiler_pic='-KPIC'
9226           lt_prog_compiler_static='-Bstatic'
9227           lt_prog_compiler_wl='-Qoption ld '
9228           ;;
9229         *Sun\ C*)
9230           # Sun C 5.9
9231           lt_prog_compiler_pic='-KPIC'
9232           lt_prog_compiler_static='-Bstatic'
9233           lt_prog_compiler_wl='-Wl,'
9234           ;;
9235         *Intel*\ [CF]*Compiler*)
9236           lt_prog_compiler_wl='-Wl,'
9237           lt_prog_compiler_pic='-fPIC'
9238           lt_prog_compiler_static='-static'
9239           ;;
9240         *Portland\ Group*)
9241           lt_prog_compiler_wl='-Wl,'
9242           lt_prog_compiler_pic='-fpic'
9243           lt_prog_compiler_static='-Bstatic'
9244           ;;
9245         esac
9246         ;;
9247       esac
9248       ;;
9249
9250     newsos6)
9251       lt_prog_compiler_pic='-KPIC'
9252       lt_prog_compiler_static='-Bstatic'
9253       ;;
9254
9255     *nto* | *qnx*)
9256       # QNX uses GNU C++, but need to define -shared option too, otherwise
9257       # it will coredump.
9258       lt_prog_compiler_pic='-fPIC -shared'
9259       ;;
9260
9261     osf3* | osf4* | osf5*)
9262       lt_prog_compiler_wl='-Wl,'
9263       # All OSF/1 code is PIC.
9264       lt_prog_compiler_static='-non_shared'
9265       ;;
9266
9267     rdos*)
9268       lt_prog_compiler_static='-non_shared'
9269       ;;
9270
9271     solaris*)
9272       lt_prog_compiler_pic='-KPIC'
9273       lt_prog_compiler_static='-Bstatic'
9274       case $cc_basename in
9275       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9276         lt_prog_compiler_wl='-Qoption ld ';;
9277       *)
9278         lt_prog_compiler_wl='-Wl,';;
9279       esac
9280       ;;
9281
9282     sunos4*)
9283       lt_prog_compiler_wl='-Qoption ld '
9284       lt_prog_compiler_pic='-PIC'
9285       lt_prog_compiler_static='-Bstatic'
9286       ;;
9287
9288     sysv4 | sysv4.2uw2* | sysv4.3*)
9289       lt_prog_compiler_wl='-Wl,'
9290       lt_prog_compiler_pic='-KPIC'
9291       lt_prog_compiler_static='-Bstatic'
9292       ;;
9293
9294     sysv4*MP*)
9295       if test -d /usr/nec ;then
9296         lt_prog_compiler_pic='-Kconform_pic'
9297         lt_prog_compiler_static='-Bstatic'
9298       fi
9299       ;;
9300
9301     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9302       lt_prog_compiler_wl='-Wl,'
9303       lt_prog_compiler_pic='-KPIC'
9304       lt_prog_compiler_static='-Bstatic'
9305       ;;
9306
9307     unicos*)
9308       lt_prog_compiler_wl='-Wl,'
9309       lt_prog_compiler_can_build_shared=no
9310       ;;
9311
9312     uts4*)
9313       lt_prog_compiler_pic='-pic'
9314       lt_prog_compiler_static='-Bstatic'
9315       ;;
9316
9317     *)
9318       lt_prog_compiler_can_build_shared=no
9319       ;;
9320     esac
9321   fi
9322
9323 case $host_os in
9324   # For platforms which do not support PIC, -DPIC is meaningless:
9325   *djgpp*)
9326     lt_prog_compiler_pic=
9327     ;;
9328   *)
9329     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9330     ;;
9331 esac
9332
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9334 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9335 if ${lt_cv_prog_compiler_pic+:} false; then :
9336   $as_echo_n "(cached) " >&6
9337 else
9338   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9339 fi
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9341 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9342 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9343
9344 #
9345 # Check to make sure the PIC flag actually works.
9346 #
9347 if test -n "$lt_prog_compiler_pic"; then
9348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9349 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9350 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9351   $as_echo_n "(cached) " >&6
9352 else
9353   lt_cv_prog_compiler_pic_works=no
9354    ac_outfile=conftest.$ac_objext
9355    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9356    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9357    # Insert the option either (1) after the last *FLAGS variable, or
9358    # (2) before a word containing "conftest.", or (3) at the end.
9359    # Note that $ac_compile itself does not contain backslashes and begins
9360    # with a dollar sign (not a hyphen), so the echo should work correctly.
9361    # The option is referenced via a variable to avoid confusing sed.
9362    lt_compile=`echo "$ac_compile" | $SED \
9363    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9364    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9365    -e 's:$: $lt_compiler_flag:'`
9366    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9367    (eval "$lt_compile" 2>conftest.err)
9368    ac_status=$?
9369    cat conftest.err >&5
9370    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371    if (exit $ac_status) && test -s "$ac_outfile"; then
9372      # The compiler can only warn and ignore the option if not recognized
9373      # So say no if there are warnings other than the usual output.
9374      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9375      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9376      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9377        lt_cv_prog_compiler_pic_works=yes
9378      fi
9379    fi
9380    $RM conftest*
9381
9382 fi
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9384 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9385
9386 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9387     case $lt_prog_compiler_pic in
9388      "" | " "*) ;;
9389      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9390      esac
9391 else
9392     lt_prog_compiler_pic=
9393      lt_prog_compiler_can_build_shared=no
9394 fi
9395
9396 fi
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408 #
9409 # Check to make sure the static flag actually works.
9410 #
9411 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9413 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9414 if ${lt_cv_prog_compiler_static_works+:} false; then :
9415   $as_echo_n "(cached) " >&6
9416 else
9417   lt_cv_prog_compiler_static_works=no
9418    save_LDFLAGS="$LDFLAGS"
9419    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9420    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9421    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9422      # The linker can only warn and ignore the option if not recognized
9423      # So say no if there are warnings
9424      if test -s conftest.err; then
9425        # Append any errors to the config.log.
9426        cat conftest.err 1>&5
9427        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9428        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9429        if diff conftest.exp conftest.er2 >/dev/null; then
9430          lt_cv_prog_compiler_static_works=yes
9431        fi
9432      else
9433        lt_cv_prog_compiler_static_works=yes
9434      fi
9435    fi
9436    $RM -r conftest*
9437    LDFLAGS="$save_LDFLAGS"
9438
9439 fi
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9441 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9442
9443 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9444     :
9445 else
9446     lt_prog_compiler_static=
9447 fi
9448
9449
9450
9451
9452
9453
9454
9455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9456 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9457 if ${lt_cv_prog_compiler_c_o+:} false; then :
9458   $as_echo_n "(cached) " >&6
9459 else
9460   lt_cv_prog_compiler_c_o=no
9461    $RM -r conftest 2>/dev/null
9462    mkdir conftest
9463    cd conftest
9464    mkdir out
9465    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9466
9467    lt_compiler_flag="-o out/conftest2.$ac_objext"
9468    # Insert the option either (1) after the last *FLAGS variable, or
9469    # (2) before a word containing "conftest.", or (3) at the end.
9470    # Note that $ac_compile itself does not contain backslashes and begins
9471    # with a dollar sign (not a hyphen), so the echo should work correctly.
9472    lt_compile=`echo "$ac_compile" | $SED \
9473    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9475    -e 's:$: $lt_compiler_flag:'`
9476    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9477    (eval "$lt_compile" 2>out/conftest.err)
9478    ac_status=$?
9479    cat out/conftest.err >&5
9480    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9482    then
9483      # The compiler can only warn and ignore the option if not recognized
9484      # So say no if there are warnings
9485      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9486      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9487      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9488        lt_cv_prog_compiler_c_o=yes
9489      fi
9490    fi
9491    chmod u+w . 2>&5
9492    $RM conftest*
9493    # SGI C++ compiler will create directory out/ii_files/ for
9494    # template instantiation
9495    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9496    $RM out/* && rmdir out
9497    cd ..
9498    $RM -r conftest
9499    $RM conftest*
9500
9501 fi
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9503 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9504
9505
9506
9507
9508
9509
9510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9512 if ${lt_cv_prog_compiler_c_o+:} false; then :
9513   $as_echo_n "(cached) " >&6
9514 else
9515   lt_cv_prog_compiler_c_o=no
9516    $RM -r conftest 2>/dev/null
9517    mkdir conftest
9518    cd conftest
9519    mkdir out
9520    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9521
9522    lt_compiler_flag="-o out/conftest2.$ac_objext"
9523    # Insert the option either (1) after the last *FLAGS variable, or
9524    # (2) before a word containing "conftest.", or (3) at the end.
9525    # Note that $ac_compile itself does not contain backslashes and begins
9526    # with a dollar sign (not a hyphen), so the echo should work correctly.
9527    lt_compile=`echo "$ac_compile" | $SED \
9528    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9529    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9530    -e 's:$: $lt_compiler_flag:'`
9531    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9532    (eval "$lt_compile" 2>out/conftest.err)
9533    ac_status=$?
9534    cat out/conftest.err >&5
9535    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9537    then
9538      # The compiler can only warn and ignore the option if not recognized
9539      # So say no if there are warnings
9540      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9541      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9542      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9543        lt_cv_prog_compiler_c_o=yes
9544      fi
9545    fi
9546    chmod u+w . 2>&5
9547    $RM conftest*
9548    # SGI C++ compiler will create directory out/ii_files/ for
9549    # template instantiation
9550    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9551    $RM out/* && rmdir out
9552    cd ..
9553    $RM -r conftest
9554    $RM conftest*
9555
9556 fi
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9559
9560
9561
9562
9563 hard_links="nottested"
9564 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9565   # do not overwrite the value of need_locks provided by the user
9566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9567 $as_echo_n "checking if we can lock with hard links... " >&6; }
9568   hard_links=yes
9569   $RM conftest*
9570   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9571   touch conftest.a
9572   ln conftest.a conftest.b 2>&5 || hard_links=no
9573   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9575 $as_echo "$hard_links" >&6; }
9576   if test "$hard_links" = no; then
9577     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9578 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9579     need_locks=warn
9580   fi
9581 else
9582   need_locks=no
9583 fi
9584
9585
9586
9587
9588
9589
9590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9591 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9592
9593   runpath_var=
9594   allow_undefined_flag=
9595   always_export_symbols=no
9596   archive_cmds=
9597   archive_expsym_cmds=
9598   compiler_needs_object=no
9599   enable_shared_with_static_runtimes=no
9600   export_dynamic_flag_spec=
9601   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9602   hardcode_automatic=no
9603   hardcode_direct=no
9604   hardcode_direct_absolute=no
9605   hardcode_libdir_flag_spec=
9606   hardcode_libdir_separator=
9607   hardcode_minus_L=no
9608   hardcode_shlibpath_var=unsupported
9609   inherit_rpath=no
9610   link_all_deplibs=unknown
9611   module_cmds=
9612   module_expsym_cmds=
9613   old_archive_from_new_cmds=
9614   old_archive_from_expsyms_cmds=
9615   thread_safe_flag_spec=
9616   whole_archive_flag_spec=
9617   # include_expsyms should be a list of space-separated symbols to be *always*
9618   # included in the symbol list
9619   include_expsyms=
9620   # exclude_expsyms can be an extended regexp of symbols to exclude
9621   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9622   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9623   # as well as any symbol that contains `d'.
9624   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9625   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9626   # platforms (ab)use it in PIC code, but their linkers get confused if
9627   # the symbol is explicitly referenced.  Since portable code cannot
9628   # rely on this symbol name, it's probably fine to never include it in
9629   # preloaded symbol tables.
9630   # Exclude shared library initialization/finalization symbols.
9631   extract_expsyms_cmds=
9632
9633   case $host_os in
9634   cygwin* | mingw* | pw32* | cegcc*)
9635     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9636     # When not using gcc, we currently assume that we are using
9637     # Microsoft Visual C++.
9638     if test "$GCC" != yes; then
9639       with_gnu_ld=no
9640     fi
9641     ;;
9642   interix*)
9643     # we just hope/assume this is gcc and not c89 (= MSVC++)
9644     with_gnu_ld=yes
9645     ;;
9646   openbsd*)
9647     with_gnu_ld=no
9648     ;;
9649   esac
9650
9651   ld_shlibs=yes
9652
9653   # On some targets, GNU ld is compatible enough with the native linker
9654   # that we're better off using the native interface for both.
9655   lt_use_gnu_ld_interface=no
9656   if test "$with_gnu_ld" = yes; then
9657     case $host_os in
9658       aix*)
9659         # The AIX port of GNU ld has always aspired to compatibility
9660         # with the native linker.  However, as the warning in the GNU ld
9661         # block says, versions before 2.19.5* couldn't really create working
9662         # shared libraries, regardless of the interface used.
9663         case `$LD -v 2>&1` in
9664           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9665           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9666           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9667           *)
9668             lt_use_gnu_ld_interface=yes
9669             ;;
9670         esac
9671         ;;
9672       *)
9673         lt_use_gnu_ld_interface=yes
9674         ;;
9675     esac
9676   fi
9677
9678   if test "$lt_use_gnu_ld_interface" = yes; then
9679     # If archive_cmds runs LD, not CC, wlarc should be empty
9680     wlarc='${wl}'
9681
9682     # Set some defaults for GNU ld with shared library support. These
9683     # are reset later if shared libraries are not supported. Putting them
9684     # here allows them to be overridden if necessary.
9685     runpath_var=LD_RUN_PATH
9686     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9687     export_dynamic_flag_spec='${wl}--export-dynamic'
9688     # ancient GNU ld didn't support --whole-archive et. al.
9689     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9690       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9691     else
9692       whole_archive_flag_spec=
9693     fi
9694     supports_anon_versioning=no
9695     case `$LD -v 2>&1` in
9696       *GNU\ gold*) supports_anon_versioning=yes ;;
9697       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9698       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9699       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9700       *\ 2.11.*) ;; # other 2.11 versions
9701       *) supports_anon_versioning=yes ;;
9702     esac
9703
9704     # See if GNU ld supports shared libraries.
9705     case $host_os in
9706     aix[3-9]*)
9707       # On AIX/PPC, the GNU linker is very broken
9708       if test "$host_cpu" != ia64; then
9709         ld_shlibs=no
9710         cat <<_LT_EOF 1>&2
9711
9712 *** Warning: the GNU linker, at least up to release 2.19, is reported
9713 *** to be unable to reliably create shared libraries on AIX.
9714 *** Therefore, libtool is disabling shared libraries support.  If you
9715 *** really care for shared libraries, you may want to install binutils
9716 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9717 *** You will then need to restart the configuration process.
9718
9719 _LT_EOF
9720       fi
9721       ;;
9722
9723     amigaos*)
9724       case $host_cpu in
9725       powerpc)
9726             # see comment about AmigaOS4 .so support
9727             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728             archive_expsym_cmds=''
9729         ;;
9730       m68k)
9731             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)'
9732             hardcode_libdir_flag_spec='-L$libdir'
9733             hardcode_minus_L=yes
9734         ;;
9735       esac
9736       ;;
9737
9738     beos*)
9739       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9740         allow_undefined_flag=unsupported
9741         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9742         # support --undefined.  This deserves some investigation.  FIXME
9743         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9744       else
9745         ld_shlibs=no
9746       fi
9747       ;;
9748
9749     cygwin* | mingw* | pw32* | cegcc*)
9750       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9751       # as there is no search path for DLLs.
9752       hardcode_libdir_flag_spec='-L$libdir'
9753       export_dynamic_flag_spec='${wl}--export-all-symbols'
9754       allow_undefined_flag=unsupported
9755       always_export_symbols=no
9756       enable_shared_with_static_runtimes=yes
9757       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9758       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9759
9760       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9761         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9762         # If the export-symbols file already is a .def file (1st line
9763         # is EXPORTS), use it as is; otherwise, prepend...
9764         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9765           cp $export_symbols $output_objdir/$soname.def;
9766         else
9767           echo EXPORTS > $output_objdir/$soname.def;
9768           cat $export_symbols >> $output_objdir/$soname.def;
9769         fi~
9770         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9771       else
9772         ld_shlibs=no
9773       fi
9774       ;;
9775
9776     haiku*)
9777       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9778       link_all_deplibs=yes
9779       ;;
9780
9781     interix[3-9]*)
9782       hardcode_direct=no
9783       hardcode_shlibpath_var=no
9784       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9785       export_dynamic_flag_spec='${wl}-E'
9786       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9787       # Instead, shared libraries are loaded at an image base (0x10000000 by
9788       # default) and relocated if they conflict, which is a slow very memory
9789       # consuming and fragmenting process.  To avoid this, we pick a random,
9790       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9791       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9792       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9793       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'
9794       ;;
9795
9796     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9797       tmp_diet=no
9798       if test "$host_os" = linux-dietlibc; then
9799         case $cc_basename in
9800           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9801         esac
9802       fi
9803       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9804          && test "$tmp_diet" = no
9805       then
9806         tmp_addflag=' $pic_flag'
9807         tmp_sharedflag='-shared'
9808         case $cc_basename,$host_cpu in
9809         pgcc*)                          # Portland Group C compiler
9810           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'
9811           tmp_addflag=' $pic_flag'
9812           ;;
9813         pgf77* | pgf90* | pgf95* | pgfortran*)
9814                                         # Portland Group f77 and f90 compilers
9815           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'
9816           tmp_addflag=' $pic_flag -Mnomain' ;;
9817         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9818           tmp_addflag=' -i_dynamic' ;;
9819         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9820           tmp_addflag=' -i_dynamic -nofor_main' ;;
9821         ifc* | ifort*)                  # Intel Fortran compiler
9822           tmp_addflag=' -nofor_main' ;;
9823         lf95*)                          # Lahey Fortran 8.1
9824           whole_archive_flag_spec=
9825           tmp_sharedflag='--shared' ;;
9826         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9827           tmp_sharedflag='-qmkshrobj'
9828           tmp_addflag= ;;
9829         nvcc*)  # Cuda Compiler Driver 2.2
9830           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'
9831           compiler_needs_object=yes
9832           ;;
9833         esac
9834         case `$CC -V 2>&1 | sed 5q` in
9835         *Sun\ C*)                       # Sun C 5.9
9836           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'
9837           compiler_needs_object=yes
9838           tmp_sharedflag='-G' ;;
9839         *Sun\ F*)                       # Sun Fortran 8.3
9840           tmp_sharedflag='-G' ;;
9841         esac
9842         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9843
9844         if test "x$supports_anon_versioning" = xyes; then
9845           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9846             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9847             echo "local: *; };" >> $output_objdir/$libname.ver~
9848             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9849         fi
9850
9851         case $cc_basename in
9852         xlf* | bgf* | bgxlf* | mpixlf*)
9853           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9854           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9855           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9856           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9857           if test "x$supports_anon_versioning" = xyes; then
9858             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9859               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9860               echo "local: *; };" >> $output_objdir/$libname.ver~
9861               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9862           fi
9863           ;;
9864         esac
9865       else
9866         ld_shlibs=no
9867       fi
9868       ;;
9869
9870     netbsd*)
9871       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9872         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9873         wlarc=
9874       else
9875         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9876         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9877       fi
9878       ;;
9879
9880     solaris*)
9881       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9882         ld_shlibs=no
9883         cat <<_LT_EOF 1>&2
9884
9885 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9886 *** create shared libraries on Solaris systems.  Therefore, libtool
9887 *** is disabling shared libraries support.  We urge you to upgrade GNU
9888 *** binutils to release 2.9.1 or newer.  Another option is to modify
9889 *** your PATH or compiler configuration so that the native linker is
9890 *** used, and then restart.
9891
9892 _LT_EOF
9893       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9894         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9895         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9896       else
9897         ld_shlibs=no
9898       fi
9899       ;;
9900
9901     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9902       case `$LD -v 2>&1` in
9903         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9904         ld_shlibs=no
9905         cat <<_LT_EOF 1>&2
9906
9907 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9908 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9909 *** is disabling shared libraries support.  We urge you to upgrade GNU
9910 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9911 *** your PATH or compiler configuration so that the native linker is
9912 *** used, and then restart.
9913
9914 _LT_EOF
9915         ;;
9916         *)
9917           # For security reasons, it is highly recommended that you always
9918           # use absolute paths for naming shared libraries, and exclude the
9919           # DT_RUNPATH tag from executables and libraries.  But doing so
9920           # requires that you compile everything twice, which is a pain.
9921           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9922             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9923             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9924             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9925           else
9926             ld_shlibs=no
9927           fi
9928         ;;
9929       esac
9930       ;;
9931
9932     sunos4*)
9933       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9934       wlarc=
9935       hardcode_direct=yes
9936       hardcode_shlibpath_var=no
9937       ;;
9938
9939     *)
9940       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9941         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9942         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9943       else
9944         ld_shlibs=no
9945       fi
9946       ;;
9947     esac
9948
9949     if test "$ld_shlibs" = no; then
9950       runpath_var=
9951       hardcode_libdir_flag_spec=
9952       export_dynamic_flag_spec=
9953       whole_archive_flag_spec=
9954     fi
9955   else
9956     # PORTME fill in a description of your system's linker (not GNU ld)
9957     case $host_os in
9958     aix3*)
9959       allow_undefined_flag=unsupported
9960       always_export_symbols=yes
9961       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'
9962       # Note: this linker hardcodes the directories in LIBPATH if there
9963       # are no directories specified by -L.
9964       hardcode_minus_L=yes
9965       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9966         # Neither direct hardcoding nor static linking is supported with a
9967         # broken collect2.
9968         hardcode_direct=unsupported
9969       fi
9970       ;;
9971
9972     aix[4-9]*)
9973       if test "$host_cpu" = ia64; then
9974         # On IA64, the linker does run time linking by default, so we don't
9975         # have to do anything special.
9976         aix_use_runtimelinking=no
9977         exp_sym_flag='-Bexport'
9978         no_entry_flag=""
9979       else
9980         # If we're using GNU nm, then we don't want the "-C" option.
9981         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9982         # Also, AIX nm treats weak defined symbols like other global
9983         # defined symbols, whereas GNU nm marks them as "W".
9984         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9985           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'
9986         else
9987           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9988         fi
9989         aix_use_runtimelinking=no
9990
9991         # Test if we are trying to use run time linking or normal
9992         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9993         # need to do runtime linking.
9994         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9995           for ld_flag in $LDFLAGS; do
9996           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9997             aix_use_runtimelinking=yes
9998             break
9999           fi
10000           done
10001           ;;
10002         esac
10003
10004         exp_sym_flag='-bexport'
10005         no_entry_flag='-bnoentry'
10006       fi
10007
10008       # When large executables or shared objects are built, AIX ld can
10009       # have problems creating the table of contents.  If linking a library
10010       # or program results in "error TOC overflow" add -mminimal-toc to
10011       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10012       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10013
10014       archive_cmds=''
10015       hardcode_direct=yes
10016       hardcode_direct_absolute=yes
10017       hardcode_libdir_separator=':'
10018       link_all_deplibs=yes
10019       file_list_spec='${wl}-f,'
10020
10021       if test "$GCC" = yes; then
10022         case $host_os in aix4.[012]|aix4.[012].*)
10023         # We only want to do this on AIX 4.2 and lower, the check
10024         # below for broken collect2 doesn't work under 4.3+
10025           collect2name=`${CC} -print-prog-name=collect2`
10026           if test -f "$collect2name" &&
10027            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10028           then
10029           # We have reworked collect2
10030           :
10031           else
10032           # We have old collect2
10033           hardcode_direct=unsupported
10034           # It fails to find uninstalled libraries when the uninstalled
10035           # path is not listed in the libpath.  Setting hardcode_minus_L
10036           # to unsupported forces relinking
10037           hardcode_minus_L=yes
10038           hardcode_libdir_flag_spec='-L$libdir'
10039           hardcode_libdir_separator=
10040           fi
10041           ;;
10042         esac
10043         shared_flag='-shared'
10044         if test "$aix_use_runtimelinking" = yes; then
10045           shared_flag="$shared_flag "'${wl}-G'
10046         fi
10047       else
10048         # not using gcc
10049         if test "$host_cpu" = ia64; then
10050         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10051         # chokes on -Wl,-G. The following line is correct:
10052           shared_flag='-G'
10053         else
10054           if test "$aix_use_runtimelinking" = yes; then
10055             shared_flag='${wl}-G'
10056           else
10057             shared_flag='${wl}-bM:SRE'
10058           fi
10059         fi
10060       fi
10061
10062       export_dynamic_flag_spec='${wl}-bexpall'
10063       # It seems that -bexpall does not export symbols beginning with
10064       # underscore (_), so it is better to generate a list of symbols to export.
10065       always_export_symbols=yes
10066       if test "$aix_use_runtimelinking" = yes; then
10067         # Warning - without using the other runtime loading flags (-brtl),
10068         # -berok will link without error, but may produce a broken library.
10069         allow_undefined_flag='-berok'
10070         # Determine the default libpath from the value encoded in an
10071         # empty executable.
10072         if test "${lt_cv_aix_libpath+set}" = set; then
10073   aix_libpath=$lt_cv_aix_libpath
10074 else
10075   if ${lt_cv_aix_libpath_+:} false; then :
10076   $as_echo_n "(cached) " >&6
10077 else
10078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h.  */
10080
10081 int
10082 main ()
10083 {
10084
10085   ;
10086   return 0;
10087 }
10088 _ACEOF
10089 if ac_fn_c_try_link "$LINENO"; then :
10090
10091   lt_aix_libpath_sed='
10092       /Import File Strings/,/^$/ {
10093           /^0/ {
10094               s/^0  *\([^ ]*\) *$/\1/
10095               p
10096           }
10097       }'
10098   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10099   # Check for a 64-bit object if we didn't find anything.
10100   if test -z "$lt_cv_aix_libpath_"; then
10101     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10102   fi
10103 fi
10104 rm -f core conftest.err conftest.$ac_objext \
10105     conftest$ac_exeext conftest.$ac_ext
10106   if test -z "$lt_cv_aix_libpath_"; then
10107     lt_cv_aix_libpath_="/usr/lib:/lib"
10108   fi
10109
10110 fi
10111
10112   aix_libpath=$lt_cv_aix_libpath_
10113 fi
10114
10115         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10116         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"
10117       else
10118         if test "$host_cpu" = ia64; then
10119           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10120           allow_undefined_flag="-z nodefs"
10121           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"
10122         else
10123          # Determine the default libpath from the value encoded in an
10124          # empty executable.
10125          if test "${lt_cv_aix_libpath+set}" = set; then
10126   aix_libpath=$lt_cv_aix_libpath
10127 else
10128   if ${lt_cv_aix_libpath_+:} false; then :
10129   $as_echo_n "(cached) " >&6
10130 else
10131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h.  */
10133
10134 int
10135 main ()
10136 {
10137
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 if ac_fn_c_try_link "$LINENO"; then :
10143
10144   lt_aix_libpath_sed='
10145       /Import File Strings/,/^$/ {
10146           /^0/ {
10147               s/^0  *\([^ ]*\) *$/\1/
10148               p
10149           }
10150       }'
10151   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10152   # Check for a 64-bit object if we didn't find anything.
10153   if test -z "$lt_cv_aix_libpath_"; then
10154     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10155   fi
10156 fi
10157 rm -f core conftest.err conftest.$ac_objext \
10158     conftest$ac_exeext conftest.$ac_ext
10159   if test -z "$lt_cv_aix_libpath_"; then
10160     lt_cv_aix_libpath_="/usr/lib:/lib"
10161   fi
10162
10163 fi
10164
10165   aix_libpath=$lt_cv_aix_libpath_
10166 fi
10167
10168          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10169           # Warning - without using the other run time loading flags,
10170           # -berok will link without error, but may produce a broken library.
10171           no_undefined_flag=' ${wl}-bernotok'
10172           allow_undefined_flag=' ${wl}-berok'
10173           if test "$with_gnu_ld" = yes; then
10174             # We only use this code for GNU lds that support --whole-archive.
10175             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10176           else
10177             # Exported symbols can be pulled into shared objects from archives
10178             whole_archive_flag_spec='$convenience'
10179           fi
10180           archive_cmds_need_lc=yes
10181           # This is similar to how AIX traditionally builds its shared libraries.
10182           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'
10183         fi
10184       fi
10185       ;;
10186
10187     amigaos*)
10188       case $host_cpu in
10189       powerpc)
10190             # see comment about AmigaOS4 .so support
10191             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10192             archive_expsym_cmds=''
10193         ;;
10194       m68k)
10195             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)'
10196             hardcode_libdir_flag_spec='-L$libdir'
10197             hardcode_minus_L=yes
10198         ;;
10199       esac
10200       ;;
10201
10202     bsdi[45]*)
10203       export_dynamic_flag_spec=-rdynamic
10204       ;;
10205
10206     cygwin* | mingw* | pw32* | cegcc*)
10207       # When not using gcc, we currently assume that we are using
10208       # Microsoft Visual C++.
10209       # hardcode_libdir_flag_spec is actually meaningless, as there is
10210       # no search path for DLLs.
10211       case $cc_basename in
10212       cl*)
10213         # Native MSVC
10214         hardcode_libdir_flag_spec=' '
10215         allow_undefined_flag=unsupported
10216         always_export_symbols=yes
10217         file_list_spec='@'
10218         # Tell ltmain to make .lib files, not .a files.
10219         libext=lib
10220         # Tell ltmain to make .dll files, not .so files.
10221         shrext_cmds=".dll"
10222         # FIXME: Setting linknames here is a bad hack.
10223         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10224         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10225             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10226           else
10227             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10228           fi~
10229           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10230           linknames='
10231         # The linker will not automatically build a static lib if we build a DLL.
10232         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10233         enable_shared_with_static_runtimes=yes
10234         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10235         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10236         # Don't use ranlib
10237         old_postinstall_cmds='chmod 644 $oldlib'
10238         postlink_cmds='lt_outputfile="@OUTPUT@"~
10239           lt_tool_outputfile="@TOOL_OUTPUT@"~
10240           case $lt_outputfile in
10241             *.exe|*.EXE) ;;
10242             *)
10243               lt_outputfile="$lt_outputfile.exe"
10244               lt_tool_outputfile="$lt_tool_outputfile.exe"
10245               ;;
10246           esac~
10247           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10248             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10249             $RM "$lt_outputfile.manifest";
10250           fi'
10251         ;;
10252       *)
10253         # Assume MSVC wrapper
10254         hardcode_libdir_flag_spec=' '
10255         allow_undefined_flag=unsupported
10256         # Tell ltmain to make .lib files, not .a files.
10257         libext=lib
10258         # Tell ltmain to make .dll files, not .so files.
10259         shrext_cmds=".dll"
10260         # FIXME: Setting linknames here is a bad hack.
10261         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10262         # The linker will automatically build a .lib file if we build a DLL.
10263         old_archive_from_new_cmds='true'
10264         # FIXME: Should let the user specify the lib program.
10265         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10266         enable_shared_with_static_runtimes=yes
10267         ;;
10268       esac
10269       ;;
10270
10271     darwin* | rhapsody*)
10272
10273
10274   archive_cmds_need_lc=no
10275   hardcode_direct=no
10276   hardcode_automatic=yes
10277   hardcode_shlibpath_var=unsupported
10278   if test "$lt_cv_ld_force_load" = "yes"; then
10279     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\"`'
10280
10281   else
10282     whole_archive_flag_spec=''
10283   fi
10284   link_all_deplibs=yes
10285   allow_undefined_flag="$_lt_dar_allow_undefined"
10286   case $cc_basename in
10287      ifort*) _lt_dar_can_shared=yes ;;
10288      *) _lt_dar_can_shared=$GCC ;;
10289   esac
10290   if test "$_lt_dar_can_shared" = "yes"; then
10291     output_verbose_link_cmd=func_echo_all
10292     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10293     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10294     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}"
10295     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}"
10296
10297   else
10298   ld_shlibs=no
10299   fi
10300
10301       ;;
10302
10303     dgux*)
10304       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10305       hardcode_libdir_flag_spec='-L$libdir'
10306       hardcode_shlibpath_var=no
10307       ;;
10308
10309     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10310     # support.  Future versions do this automatically, but an explicit c++rt0.o
10311     # does not break anything, and helps significantly (at the cost of a little
10312     # extra space).
10313     freebsd2.2*)
10314       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10315       hardcode_libdir_flag_spec='-R$libdir'
10316       hardcode_direct=yes
10317       hardcode_shlibpath_var=no
10318       ;;
10319
10320     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10321     freebsd2.*)
10322       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10323       hardcode_direct=yes
10324       hardcode_minus_L=yes
10325       hardcode_shlibpath_var=no
10326       ;;
10327
10328     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10329     freebsd* | dragonfly*)
10330       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10331       hardcode_libdir_flag_spec='-R$libdir'
10332       hardcode_direct=yes
10333       hardcode_shlibpath_var=no
10334       ;;
10335
10336     hpux9*)
10337       if test "$GCC" = yes; then
10338         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10339       else
10340         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'
10341       fi
10342       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10343       hardcode_libdir_separator=:
10344       hardcode_direct=yes
10345
10346       # hardcode_minus_L: Not really in the search PATH,
10347       # but as the default location of the library.
10348       hardcode_minus_L=yes
10349       export_dynamic_flag_spec='${wl}-E'
10350       ;;
10351
10352     hpux10*)
10353       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10354         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10355       else
10356         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10357       fi
10358       if test "$with_gnu_ld" = no; then
10359         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10360         hardcode_libdir_separator=:
10361         hardcode_direct=yes
10362         hardcode_direct_absolute=yes
10363         export_dynamic_flag_spec='${wl}-E'
10364         # hardcode_minus_L: Not really in the search PATH,
10365         # but as the default location of the library.
10366         hardcode_minus_L=yes
10367       fi
10368       ;;
10369
10370     hpux11*)
10371       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10372         case $host_cpu in
10373         hppa*64*)
10374           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10375           ;;
10376         ia64*)
10377           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10378           ;;
10379         *)
10380           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10381           ;;
10382         esac
10383       else
10384         case $host_cpu in
10385         hppa*64*)
10386           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10387           ;;
10388         ia64*)
10389           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10390           ;;
10391         *)
10392
10393           # Older versions of the 11.00 compiler do not understand -b yet
10394           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10395           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10396 $as_echo_n "checking if $CC understands -b... " >&6; }
10397 if ${lt_cv_prog_compiler__b+:} false; then :
10398   $as_echo_n "(cached) " >&6
10399 else
10400   lt_cv_prog_compiler__b=no
10401    save_LDFLAGS="$LDFLAGS"
10402    LDFLAGS="$LDFLAGS -b"
10403    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10404    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10405      # The linker can only warn and ignore the option if not recognized
10406      # So say no if there are warnings
10407      if test -s conftest.err; then
10408        # Append any errors to the config.log.
10409        cat conftest.err 1>&5
10410        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10411        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10412        if diff conftest.exp conftest.er2 >/dev/null; then
10413          lt_cv_prog_compiler__b=yes
10414        fi
10415      else
10416        lt_cv_prog_compiler__b=yes
10417      fi
10418    fi
10419    $RM -r conftest*
10420    LDFLAGS="$save_LDFLAGS"
10421
10422 fi
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10424 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10425
10426 if test x"$lt_cv_prog_compiler__b" = xyes; then
10427     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10428 else
10429     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10430 fi
10431
10432           ;;
10433         esac
10434       fi
10435       if test "$with_gnu_ld" = no; then
10436         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10437         hardcode_libdir_separator=:
10438
10439         case $host_cpu in
10440         hppa*64*|ia64*)
10441           hardcode_direct=no
10442           hardcode_shlibpath_var=no
10443           ;;
10444         *)
10445           hardcode_direct=yes
10446           hardcode_direct_absolute=yes
10447           export_dynamic_flag_spec='${wl}-E'
10448
10449           # hardcode_minus_L: Not really in the search PATH,
10450           # but as the default location of the library.
10451           hardcode_minus_L=yes
10452           ;;
10453         esac
10454       fi
10455       ;;
10456
10457     irix5* | irix6* | nonstopux*)
10458       if test "$GCC" = yes; then
10459         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10460         # Try to use the -exported_symbol ld option, if it does not
10461         # work, assume that -exports_file does not work either and
10462         # implicitly export all symbols.
10463         # This should be the same for all languages, so no per-tag cache variable.
10464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10465 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10466 if ${lt_cv_irix_exported_symbol+:} false; then :
10467   $as_echo_n "(cached) " >&6
10468 else
10469   save_LDFLAGS="$LDFLAGS"
10470            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10471            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h.  */
10473 int foo (void) { return 0; }
10474 _ACEOF
10475 if ac_fn_c_try_link "$LINENO"; then :
10476   lt_cv_irix_exported_symbol=yes
10477 else
10478   lt_cv_irix_exported_symbol=no
10479 fi
10480 rm -f core conftest.err conftest.$ac_objext \
10481     conftest$ac_exeext conftest.$ac_ext
10482            LDFLAGS="$save_LDFLAGS"
10483 fi
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10485 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10486         if test "$lt_cv_irix_exported_symbol" = yes; then
10487           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10488         fi
10489       else
10490         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'
10491         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'
10492       fi
10493       archive_cmds_need_lc='no'
10494       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10495       hardcode_libdir_separator=:
10496       inherit_rpath=yes
10497       link_all_deplibs=yes
10498       ;;
10499
10500     netbsd*)
10501       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10502         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10503       else
10504         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10505       fi
10506       hardcode_libdir_flag_spec='-R$libdir'
10507       hardcode_direct=yes
10508       hardcode_shlibpath_var=no
10509       ;;
10510
10511     newsos6)
10512       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513       hardcode_direct=yes
10514       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10515       hardcode_libdir_separator=:
10516       hardcode_shlibpath_var=no
10517       ;;
10518
10519     *nto* | *qnx*)
10520       ;;
10521
10522     openbsd*)
10523       if test -f /usr/libexec/ld.so; then
10524         hardcode_direct=yes
10525         hardcode_shlibpath_var=no
10526         hardcode_direct_absolute=yes
10527         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10528           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10529           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10530           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10531           export_dynamic_flag_spec='${wl}-E'
10532         else
10533           case $host_os in
10534            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10535              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10536              hardcode_libdir_flag_spec='-R$libdir'
10537              ;;
10538            *)
10539              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10540              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10541              ;;
10542           esac
10543         fi
10544       else
10545         ld_shlibs=no
10546       fi
10547       ;;
10548
10549     os2*)
10550       hardcode_libdir_flag_spec='-L$libdir'
10551       hardcode_minus_L=yes
10552       allow_undefined_flag=unsupported
10553       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'
10554       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10555       ;;
10556
10557     osf3*)
10558       if test "$GCC" = yes; then
10559         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10560         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'
10561       else
10562         allow_undefined_flag=' -expect_unresolved \*'
10563         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'
10564       fi
10565       archive_cmds_need_lc='no'
10566       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10567       hardcode_libdir_separator=:
10568       ;;
10569
10570     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10571       if test "$GCC" = yes; then
10572         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10573         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10574         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10575       else
10576         allow_undefined_flag=' -expect_unresolved \*'
10577         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'
10578         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~
10579         $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'
10580
10581         # Both c and cxx compiler support -rpath directly
10582         hardcode_libdir_flag_spec='-rpath $libdir'
10583       fi
10584       archive_cmds_need_lc='no'
10585       hardcode_libdir_separator=:
10586       ;;
10587
10588     solaris*)
10589       no_undefined_flag=' -z defs'
10590       if test "$GCC" = yes; then
10591         wlarc='${wl}'
10592         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10593         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10594           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10595       else
10596         case `$CC -V 2>&1` in
10597         *"Compilers 5.0"*)
10598           wlarc=''
10599           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10600           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10601           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10602           ;;
10603         *)
10604           wlarc='${wl}'
10605           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10606           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10607           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10608           ;;
10609         esac
10610       fi
10611       hardcode_libdir_flag_spec='-R$libdir'
10612       hardcode_shlibpath_var=no
10613       case $host_os in
10614       solaris2.[0-5] | solaris2.[0-5].*) ;;
10615       *)
10616         # The compiler driver will combine and reorder linker options,
10617         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10618         # but is careful enough not to reorder.
10619         # Supported since Solaris 2.6 (maybe 2.5.1?)
10620         if test "$GCC" = yes; then
10621           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10622         else
10623           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10624         fi
10625         ;;
10626       esac
10627       link_all_deplibs=yes
10628       ;;
10629
10630     sunos4*)
10631       if test "x$host_vendor" = xsequent; then
10632         # Use $CC to link under sequent, because it throws in some extra .o
10633         # files that make .init and .fini sections work.
10634         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10635       else
10636         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10637       fi
10638       hardcode_libdir_flag_spec='-L$libdir'
10639       hardcode_direct=yes
10640       hardcode_minus_L=yes
10641       hardcode_shlibpath_var=no
10642       ;;
10643
10644     sysv4)
10645       case $host_vendor in
10646         sni)
10647           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10648           hardcode_direct=yes # is this really true???
10649         ;;
10650         siemens)
10651           ## LD is ld it makes a PLAMLIB
10652           ## CC just makes a GrossModule.
10653           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10654           reload_cmds='$CC -r -o $output$reload_objs'
10655           hardcode_direct=no
10656         ;;
10657         motorola)
10658           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10659           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10660         ;;
10661       esac
10662       runpath_var='LD_RUN_PATH'
10663       hardcode_shlibpath_var=no
10664       ;;
10665
10666     sysv4.3*)
10667       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10668       hardcode_shlibpath_var=no
10669       export_dynamic_flag_spec='-Bexport'
10670       ;;
10671
10672     sysv4*MP*)
10673       if test -d /usr/nec; then
10674         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10675         hardcode_shlibpath_var=no
10676         runpath_var=LD_RUN_PATH
10677         hardcode_runpath_var=yes
10678         ld_shlibs=yes
10679       fi
10680       ;;
10681
10682     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10683       no_undefined_flag='${wl}-z,text'
10684       archive_cmds_need_lc=no
10685       hardcode_shlibpath_var=no
10686       runpath_var='LD_RUN_PATH'
10687
10688       if test "$GCC" = yes; then
10689         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10690         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10691       else
10692         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10693         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694       fi
10695       ;;
10696
10697     sysv5* | sco3.2v5* | sco5v6*)
10698       # Note: We can NOT use -z defs as we might desire, because we do not
10699       # link with -lc, and that would cause any symbols used from libc to
10700       # always be unresolved, which means just about no library would
10701       # ever link correctly.  If we're not using GNU ld we use -z text
10702       # though, which does catch some bad symbols but isn't as heavy-handed
10703       # as -z defs.
10704       no_undefined_flag='${wl}-z,text'
10705       allow_undefined_flag='${wl}-z,nodefs'
10706       archive_cmds_need_lc=no
10707       hardcode_shlibpath_var=no
10708       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10709       hardcode_libdir_separator=':'
10710       link_all_deplibs=yes
10711       export_dynamic_flag_spec='${wl}-Bexport'
10712       runpath_var='LD_RUN_PATH'
10713
10714       if test "$GCC" = yes; then
10715         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10716         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10717       else
10718         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10719         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10720       fi
10721       ;;
10722
10723     uts4*)
10724       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10725       hardcode_libdir_flag_spec='-L$libdir'
10726       hardcode_shlibpath_var=no
10727       ;;
10728
10729     *)
10730       ld_shlibs=no
10731       ;;
10732     esac
10733
10734     if test x$host_vendor = xsni; then
10735       case $host in
10736       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10737         export_dynamic_flag_spec='${wl}-Blargedynsym'
10738         ;;
10739       esac
10740     fi
10741   fi
10742
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10744 $as_echo "$ld_shlibs" >&6; }
10745 test "$ld_shlibs" = no && can_build_shared=no
10746
10747 with_gnu_ld=$with_gnu_ld
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763 #
10764 # Do we need to explicitly link libc?
10765 #
10766 case "x$archive_cmds_need_lc" in
10767 x|xyes)
10768   # Assume -lc should be added
10769   archive_cmds_need_lc=yes
10770
10771   if test "$enable_shared" = yes && test "$GCC" = yes; then
10772     case $archive_cmds in
10773     *'~'*)
10774       # FIXME: we may have to deal with multi-command sequences.
10775       ;;
10776     '$CC '*)
10777       # Test whether the compiler implicitly links with -lc since on some
10778       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10779       # to ld, don't add -lc before -lgcc.
10780       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10781 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10782 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10783   $as_echo_n "(cached) " >&6
10784 else
10785   $RM conftest*
10786         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10787
10788         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10789   (eval $ac_compile) 2>&5
10790   ac_status=$?
10791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10792   test $ac_status = 0; } 2>conftest.err; then
10793           soname=conftest
10794           lib=conftest
10795           libobjs=conftest.$ac_objext
10796           deplibs=
10797           wl=$lt_prog_compiler_wl
10798           pic_flag=$lt_prog_compiler_pic
10799           compiler_flags=-v
10800           linker_flags=-v
10801           verstring=
10802           output_objdir=.
10803           libname=conftest
10804           lt_save_allow_undefined_flag=$allow_undefined_flag
10805           allow_undefined_flag=
10806           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10807   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10808   ac_status=$?
10809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10810   test $ac_status = 0; }
10811           then
10812             lt_cv_archive_cmds_need_lc=no
10813           else
10814             lt_cv_archive_cmds_need_lc=yes
10815           fi
10816           allow_undefined_flag=$lt_save_allow_undefined_flag
10817         else
10818           cat conftest.err 1>&5
10819         fi
10820         $RM conftest*
10821
10822 fi
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10824 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10825       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10826       ;;
10827     esac
10828   fi
10829   ;;
10830 esac
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10984 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10985
10986 if test "$GCC" = yes; then
10987   case $host_os in
10988     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10989     *) lt_awk_arg="/^libraries:/" ;;
10990   esac
10991   case $host_os in
10992     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10993     *) lt_sed_strip_eq="s,=/,/,g" ;;
10994   esac
10995   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10996   case $lt_search_path_spec in
10997   *\;*)
10998     # if the path contains ";" then we assume it to be the separator
10999     # otherwise default to the standard path separator (i.e. ":") - it is
11000     # assumed that no part of a normal pathname contains ";" but that should
11001     # okay in the real world where ";" in dirpaths is itself problematic.
11002     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11003     ;;
11004   *)
11005     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11006     ;;
11007   esac
11008   # Ok, now we have the path, separated by spaces, we can step through it
11009   # and add multilib dir if necessary.
11010   lt_tmp_lt_search_path_spec=
11011   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11012   for lt_sys_path in $lt_search_path_spec; do
11013     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11014       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11015     else
11016       test -d "$lt_sys_path" && \
11017         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11018     fi
11019   done
11020   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11021 BEGIN {RS=" "; FS="/|\n";} {
11022   lt_foo="";
11023   lt_count=0;
11024   for (lt_i = NF; lt_i > 0; lt_i--) {
11025     if ($lt_i != "" && $lt_i != ".") {
11026       if ($lt_i == "..") {
11027         lt_count++;
11028       } else {
11029         if (lt_count == 0) {
11030           lt_foo="/" $lt_i lt_foo;
11031         } else {
11032           lt_count--;
11033         }
11034       }
11035     }
11036   }
11037   if (lt_foo != "") { lt_freq[lt_foo]++; }
11038   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11039 }'`
11040   # AWK program above erroneously prepends '/' to C:/dos/paths
11041   # for these hosts.
11042   case $host_os in
11043     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11044       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11045   esac
11046   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11047 else
11048   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11049 fi
11050 library_names_spec=
11051 libname_spec='lib$name'
11052 soname_spec=
11053 shrext_cmds=".so"
11054 postinstall_cmds=
11055 postuninstall_cmds=
11056 finish_cmds=
11057 finish_eval=
11058 shlibpath_var=
11059 shlibpath_overrides_runpath=unknown
11060 version_type=none
11061 dynamic_linker="$host_os ld.so"
11062 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11063 need_lib_prefix=unknown
11064 hardcode_into_libs=no
11065
11066 # when you set need_version to no, make sure it does not cause -set_version
11067 # flags to be left without arguments
11068 need_version=unknown
11069
11070 case $host_os in
11071 aix3*)
11072   version_type=linux # correct to gnu/linux during the next big refactor
11073   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11074   shlibpath_var=LIBPATH
11075
11076   # AIX 3 has no versioning support, so we append a major version to the name.
11077   soname_spec='${libname}${release}${shared_ext}$major'
11078   ;;
11079
11080 aix[4-9]*)
11081   version_type=linux # correct to gnu/linux during the next big refactor
11082   need_lib_prefix=no
11083   need_version=no
11084   hardcode_into_libs=yes
11085   if test "$host_cpu" = ia64; then
11086     # AIX 5 supports IA64
11087     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11088     shlibpath_var=LD_LIBRARY_PATH
11089   else
11090     # With GCC up to 2.95.x, collect2 would create an import file
11091     # for dependence libraries.  The import file would start with
11092     # the line `#! .'.  This would cause the generated library to
11093     # depend on `.', always an invalid library.  This was fixed in
11094     # development snapshots of GCC prior to 3.0.
11095     case $host_os in
11096       aix4 | aix4.[01] | aix4.[01].*)
11097       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11098            echo ' yes '
11099            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11100         :
11101       else
11102         can_build_shared=no
11103       fi
11104       ;;
11105     esac
11106     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11107     # soname into executable. Probably we can add versioning support to
11108     # collect2, so additional links can be useful in future.
11109     if test "$aix_use_runtimelinking" = yes; then
11110       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11111       # instead of lib<name>.a to let people know that these are not
11112       # typical AIX shared libraries.
11113       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114     else
11115       # We preserve .a as extension for shared libraries through AIX4.2
11116       # and later when we are not doing run time linking.
11117       library_names_spec='${libname}${release}.a $libname.a'
11118       soname_spec='${libname}${release}${shared_ext}$major'
11119     fi
11120     shlibpath_var=LIBPATH
11121   fi
11122   ;;
11123
11124 amigaos*)
11125   case $host_cpu in
11126   powerpc)
11127     # Since July 2007 AmigaOS4 officially supports .so libraries.
11128     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11130     ;;
11131   m68k)
11132     library_names_spec='$libname.ixlibrary $libname.a'
11133     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11134     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'
11135     ;;
11136   esac
11137   ;;
11138
11139 beos*)
11140   library_names_spec='${libname}${shared_ext}'
11141   dynamic_linker="$host_os ld.so"
11142   shlibpath_var=LIBRARY_PATH
11143   ;;
11144
11145 bsdi[45]*)
11146   version_type=linux # correct to gnu/linux during the next big refactor
11147   need_version=no
11148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149   soname_spec='${libname}${release}${shared_ext}$major'
11150   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11151   shlibpath_var=LD_LIBRARY_PATH
11152   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11153   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11154   # the default ld.so.conf also contains /usr/contrib/lib and
11155   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11156   # libtool to hard-code these into programs
11157   ;;
11158
11159 cygwin* | mingw* | pw32* | cegcc*)
11160   version_type=windows
11161   shrext_cmds=".dll"
11162   need_version=no
11163   need_lib_prefix=no
11164
11165   case $GCC,$cc_basename in
11166   yes,*)
11167     # gcc
11168     library_names_spec='$libname.dll.a'
11169     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11170     postinstall_cmds='base_file=`basename \${file}`~
11171       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11172       dldir=$destdir/`dirname \$dlpath`~
11173       test -d \$dldir || mkdir -p \$dldir~
11174       $install_prog $dir/$dlname \$dldir/$dlname~
11175       chmod a+x \$dldir/$dlname~
11176       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11177         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11178       fi'
11179     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11180       dlpath=$dir/\$dldll~
11181        $RM \$dlpath'
11182     shlibpath_overrides_runpath=yes
11183
11184     case $host_os in
11185     cygwin*)
11186       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11187       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11188
11189       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11190       ;;
11191     mingw* | cegcc*)
11192       # MinGW DLLs use traditional 'lib' prefix
11193       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11194       ;;
11195     pw32*)
11196       # pw32 DLLs use 'pw' prefix rather than 'lib'
11197       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11198       ;;
11199     esac
11200     dynamic_linker='Win32 ld.exe'
11201     ;;
11202
11203   *,cl*)
11204     # Native MSVC
11205     libname_spec='$name'
11206     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11207     library_names_spec='${libname}.dll.lib'
11208
11209     case $build_os in
11210     mingw*)
11211       sys_lib_search_path_spec=
11212       lt_save_ifs=$IFS
11213       IFS=';'
11214       for lt_path in $LIB
11215       do
11216         IFS=$lt_save_ifs
11217         # Let DOS variable expansion print the short 8.3 style file name.
11218         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11219         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11220       done
11221       IFS=$lt_save_ifs
11222       # Convert to MSYS style.
11223       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11224       ;;
11225     cygwin*)
11226       # Convert to unix form, then to dos form, then back to unix form
11227       # but this time dos style (no spaces!) so that the unix form looks
11228       # like /cygdrive/c/PROGRA~1:/cygdr...
11229       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11230       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11231       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11232       ;;
11233     *)
11234       sys_lib_search_path_spec="$LIB"
11235       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11236         # It is most probably a Windows format PATH.
11237         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11238       else
11239         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11240       fi
11241       # FIXME: find the short name or the path components, as spaces are
11242       # common. (e.g. "Program Files" -> "PROGRA~1")
11243       ;;
11244     esac
11245
11246     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11247     postinstall_cmds='base_file=`basename \${file}`~
11248       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11249       dldir=$destdir/`dirname \$dlpath`~
11250       test -d \$dldir || mkdir -p \$dldir~
11251       $install_prog $dir/$dlname \$dldir/$dlname'
11252     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11253       dlpath=$dir/\$dldll~
11254        $RM \$dlpath'
11255     shlibpath_overrides_runpath=yes
11256     dynamic_linker='Win32 link.exe'
11257     ;;
11258
11259   *)
11260     # Assume MSVC wrapper
11261     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11262     dynamic_linker='Win32 ld.exe'
11263     ;;
11264   esac
11265   # FIXME: first we should search . and the directory the executable is in
11266   shlibpath_var=PATH
11267   ;;
11268
11269 darwin* | rhapsody*)
11270   dynamic_linker="$host_os dyld"
11271   version_type=darwin
11272   need_lib_prefix=no
11273   need_version=no
11274   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11275   soname_spec='${libname}${release}${major}$shared_ext'
11276   shlibpath_overrides_runpath=yes
11277   shlibpath_var=DYLD_LIBRARY_PATH
11278   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11279
11280   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11281   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11282   ;;
11283
11284 dgux*)
11285   version_type=linux # correct to gnu/linux during the next big refactor
11286   need_lib_prefix=no
11287   need_version=no
11288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11289   soname_spec='${libname}${release}${shared_ext}$major'
11290   shlibpath_var=LD_LIBRARY_PATH
11291   ;;
11292
11293 freebsd* | dragonfly*)
11294   # DragonFly does not have aout.  When/if they implement a new
11295   # versioning mechanism, adjust this.
11296   if test -x /usr/bin/objformat; then
11297     objformat=`/usr/bin/objformat`
11298   else
11299     case $host_os in
11300     freebsd[23].*) objformat=aout ;;
11301     *) objformat=elf ;;
11302     esac
11303   fi
11304   version_type=freebsd-$objformat
11305   case $version_type in
11306     freebsd-elf*)
11307       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11308       need_version=no
11309       need_lib_prefix=no
11310       ;;
11311     freebsd-*)
11312       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11313       need_version=yes
11314       ;;
11315   esac
11316   shlibpath_var=LD_LIBRARY_PATH
11317   case $host_os in
11318   freebsd2.*)
11319     shlibpath_overrides_runpath=yes
11320     ;;
11321   freebsd3.[01]* | freebsdelf3.[01]*)
11322     shlibpath_overrides_runpath=yes
11323     hardcode_into_libs=yes
11324     ;;
11325   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11326   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11327     shlibpath_overrides_runpath=no
11328     hardcode_into_libs=yes
11329     ;;
11330   *) # from 4.6 on, and DragonFly
11331     shlibpath_overrides_runpath=yes
11332     hardcode_into_libs=yes
11333     ;;
11334   esac
11335   ;;
11336
11337 gnu*)
11338   version_type=linux # correct to gnu/linux during the next big refactor
11339   need_lib_prefix=no
11340   need_version=no
11341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11342   soname_spec='${libname}${release}${shared_ext}$major'
11343   shlibpath_var=LD_LIBRARY_PATH
11344   shlibpath_overrides_runpath=no
11345   hardcode_into_libs=yes
11346   ;;
11347
11348 haiku*)
11349   version_type=linux # correct to gnu/linux during the next big refactor
11350   need_lib_prefix=no
11351   need_version=no
11352   dynamic_linker="$host_os runtime_loader"
11353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11354   soname_spec='${libname}${release}${shared_ext}$major'
11355   shlibpath_var=LIBRARY_PATH
11356   shlibpath_overrides_runpath=yes
11357   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11358   hardcode_into_libs=yes
11359   ;;
11360
11361 hpux9* | hpux10* | hpux11*)
11362   # Give a soname corresponding to the major version so that dld.sl refuses to
11363   # link against other versions.
11364   version_type=sunos
11365   need_lib_prefix=no
11366   need_version=no
11367   case $host_cpu in
11368   ia64*)
11369     shrext_cmds='.so'
11370     hardcode_into_libs=yes
11371     dynamic_linker="$host_os dld.so"
11372     shlibpath_var=LD_LIBRARY_PATH
11373     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11374     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375     soname_spec='${libname}${release}${shared_ext}$major'
11376     if test "X$HPUX_IA64_MODE" = X32; then
11377       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11378     else
11379       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11380     fi
11381     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11382     ;;
11383   hppa*64*)
11384     shrext_cmds='.sl'
11385     hardcode_into_libs=yes
11386     dynamic_linker="$host_os dld.sl"
11387     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11388     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390     soname_spec='${libname}${release}${shared_ext}$major'
11391     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11392     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11393     ;;
11394   *)
11395     shrext_cmds='.sl'
11396     dynamic_linker="$host_os dld.sl"
11397     shlibpath_var=SHLIB_PATH
11398     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11400     soname_spec='${libname}${release}${shared_ext}$major'
11401     ;;
11402   esac
11403   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11404   postinstall_cmds='chmod 555 $lib'
11405   # or fails outright, so override atomically:
11406   install_override_mode=555
11407   ;;
11408
11409 interix[3-9]*)
11410   version_type=linux # correct to gnu/linux during the next big refactor
11411   need_lib_prefix=no
11412   need_version=no
11413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11414   soname_spec='${libname}${release}${shared_ext}$major'
11415   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11416   shlibpath_var=LD_LIBRARY_PATH
11417   shlibpath_overrides_runpath=no
11418   hardcode_into_libs=yes
11419   ;;
11420
11421 irix5* | irix6* | nonstopux*)
11422   case $host_os in
11423     nonstopux*) version_type=nonstopux ;;
11424     *)
11425         if test "$lt_cv_prog_gnu_ld" = yes; then
11426                 version_type=linux # correct to gnu/linux during the next big refactor
11427         else
11428                 version_type=irix
11429         fi ;;
11430   esac
11431   need_lib_prefix=no
11432   need_version=no
11433   soname_spec='${libname}${release}${shared_ext}$major'
11434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11435   case $host_os in
11436   irix5* | nonstopux*)
11437     libsuff= shlibsuff=
11438     ;;
11439   *)
11440     case $LD in # libtool.m4 will add one of these switches to LD
11441     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11442       libsuff= shlibsuff= libmagic=32-bit;;
11443     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11444       libsuff=32 shlibsuff=N32 libmagic=N32;;
11445     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11446       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11447     *) libsuff= shlibsuff= libmagic=never-match;;
11448     esac
11449     ;;
11450   esac
11451   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11452   shlibpath_overrides_runpath=no
11453   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11454   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11455   hardcode_into_libs=yes
11456   ;;
11457
11458 # No shared lib support for Linux oldld, aout, or coff.
11459 linux*oldld* | linux*aout* | linux*coff*)
11460   dynamic_linker=no
11461   ;;
11462
11463 # This must be glibc/ELF.
11464 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11465   version_type=linux # correct to gnu/linux during the next big refactor
11466   need_lib_prefix=no
11467   need_version=no
11468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11469   soname_spec='${libname}${release}${shared_ext}$major'
11470   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11471   shlibpath_var=LD_LIBRARY_PATH
11472   shlibpath_overrides_runpath=no
11473
11474   # Some binutils ld are patched to set DT_RUNPATH
11475   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11476   $as_echo_n "(cached) " >&6
11477 else
11478   lt_cv_shlibpath_overrides_runpath=no
11479     save_LDFLAGS=$LDFLAGS
11480     save_libdir=$libdir
11481     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11482          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11483     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h.  */
11485
11486 int
11487 main ()
11488 {
11489
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 if ac_fn_c_try_link "$LINENO"; then :
11495   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11496   lt_cv_shlibpath_overrides_runpath=yes
11497 fi
11498 fi
11499 rm -f core conftest.err conftest.$ac_objext \
11500     conftest$ac_exeext conftest.$ac_ext
11501     LDFLAGS=$save_LDFLAGS
11502     libdir=$save_libdir
11503
11504 fi
11505
11506   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11507
11508   # This implies no fast_install, which is unacceptable.
11509   # Some rework will be needed to allow for fast_install
11510   # before this can be enabled.
11511   hardcode_into_libs=yes
11512
11513   # Append ld.so.conf contents to the search path
11514   if test -f /etc/ld.so.conf; then
11515     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' ' '`
11516     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11517   fi
11518
11519   # We used to test for /lib/ld.so.1 and disable shared libraries on
11520   # powerpc, because MkLinux only supported shared libraries with the
11521   # GNU dynamic linker.  Since this was broken with cross compilers,
11522   # most powerpc-linux boxes support dynamic linking these days and
11523   # people can always --disable-shared, the test was removed, and we
11524   # assume the GNU/Linux dynamic linker is in use.
11525   dynamic_linker='GNU/Linux ld.so'
11526   ;;
11527
11528 netbsd*)
11529   version_type=sunos
11530   need_lib_prefix=no
11531   need_version=no
11532   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11534     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11535     dynamic_linker='NetBSD (a.out) ld.so'
11536   else
11537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11538     soname_spec='${libname}${release}${shared_ext}$major'
11539     dynamic_linker='NetBSD ld.elf_so'
11540   fi
11541   shlibpath_var=LD_LIBRARY_PATH
11542   shlibpath_overrides_runpath=yes
11543   hardcode_into_libs=yes
11544   ;;
11545
11546 newsos6)
11547   version_type=linux # correct to gnu/linux during the next big refactor
11548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549   shlibpath_var=LD_LIBRARY_PATH
11550   shlibpath_overrides_runpath=yes
11551   ;;
11552
11553 *nto* | *qnx*)
11554   version_type=qnx
11555   need_lib_prefix=no
11556   need_version=no
11557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558   soname_spec='${libname}${release}${shared_ext}$major'
11559   shlibpath_var=LD_LIBRARY_PATH
11560   shlibpath_overrides_runpath=no
11561   hardcode_into_libs=yes
11562   dynamic_linker='ldqnx.so'
11563   ;;
11564
11565 openbsd*)
11566   version_type=sunos
11567   sys_lib_dlsearch_path_spec="/usr/lib"
11568   need_lib_prefix=no
11569   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11570   case $host_os in
11571     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11572     *)                          need_version=no  ;;
11573   esac
11574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11575   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11576   shlibpath_var=LD_LIBRARY_PATH
11577   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11578     case $host_os in
11579       openbsd2.[89] | openbsd2.[89].*)
11580         shlibpath_overrides_runpath=no
11581         ;;
11582       *)
11583         shlibpath_overrides_runpath=yes
11584         ;;
11585       esac
11586   else
11587     shlibpath_overrides_runpath=yes
11588   fi
11589   ;;
11590
11591 os2*)
11592   libname_spec='$name'
11593   shrext_cmds=".dll"
11594   need_lib_prefix=no
11595   library_names_spec='$libname${shared_ext} $libname.a'
11596   dynamic_linker='OS/2 ld.exe'
11597   shlibpath_var=LIBPATH
11598   ;;
11599
11600 osf3* | osf4* | osf5*)
11601   version_type=osf
11602   need_lib_prefix=no
11603   need_version=no
11604   soname_spec='${libname}${release}${shared_ext}$major'
11605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606   shlibpath_var=LD_LIBRARY_PATH
11607   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11608   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11609   ;;
11610
11611 rdos*)
11612   dynamic_linker=no
11613   ;;
11614
11615 solaris*)
11616   version_type=linux # correct to gnu/linux during the next big refactor
11617   need_lib_prefix=no
11618   need_version=no
11619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620   soname_spec='${libname}${release}${shared_ext}$major'
11621   shlibpath_var=LD_LIBRARY_PATH
11622   shlibpath_overrides_runpath=yes
11623   hardcode_into_libs=yes
11624   # ldd complains unless libraries are executable
11625   postinstall_cmds='chmod +x $lib'
11626   ;;
11627
11628 sunos4*)
11629   version_type=sunos
11630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11631   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11632   shlibpath_var=LD_LIBRARY_PATH
11633   shlibpath_overrides_runpath=yes
11634   if test "$with_gnu_ld" = yes; then
11635     need_lib_prefix=no
11636   fi
11637   need_version=yes
11638   ;;
11639
11640 sysv4 | sysv4.3*)
11641   version_type=linux # correct to gnu/linux during the next big refactor
11642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11643   soname_spec='${libname}${release}${shared_ext}$major'
11644   shlibpath_var=LD_LIBRARY_PATH
11645   case $host_vendor in
11646     sni)
11647       shlibpath_overrides_runpath=no
11648       need_lib_prefix=no
11649       runpath_var=LD_RUN_PATH
11650       ;;
11651     siemens)
11652       need_lib_prefix=no
11653       ;;
11654     motorola)
11655       need_lib_prefix=no
11656       need_version=no
11657       shlibpath_overrides_runpath=no
11658       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11659       ;;
11660   esac
11661   ;;
11662
11663 sysv4*MP*)
11664   if test -d /usr/nec ;then
11665     version_type=linux # correct to gnu/linux during the next big refactor
11666     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11667     soname_spec='$libname${shared_ext}.$major'
11668     shlibpath_var=LD_LIBRARY_PATH
11669   fi
11670   ;;
11671
11672 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11673   version_type=freebsd-elf
11674   need_lib_prefix=no
11675   need_version=no
11676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11677   soname_spec='${libname}${release}${shared_ext}$major'
11678   shlibpath_var=LD_LIBRARY_PATH
11679   shlibpath_overrides_runpath=yes
11680   hardcode_into_libs=yes
11681   if test "$with_gnu_ld" = yes; then
11682     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11683   else
11684     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11685     case $host_os in
11686       sco3.2v5*)
11687         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11688         ;;
11689     esac
11690   fi
11691   sys_lib_dlsearch_path_spec='/usr/lib'
11692   ;;
11693
11694 tpf*)
11695   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11696   version_type=linux # correct to gnu/linux during the next big refactor
11697   need_lib_prefix=no
11698   need_version=no
11699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700   shlibpath_var=LD_LIBRARY_PATH
11701   shlibpath_overrides_runpath=no
11702   hardcode_into_libs=yes
11703   ;;
11704
11705 uts4*)
11706   version_type=linux # correct to gnu/linux during the next big refactor
11707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708   soname_spec='${libname}${release}${shared_ext}$major'
11709   shlibpath_var=LD_LIBRARY_PATH
11710   ;;
11711
11712 *)
11713   dynamic_linker=no
11714   ;;
11715 esac
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11717 $as_echo "$dynamic_linker" >&6; }
11718 test "$dynamic_linker" = no && can_build_shared=no
11719
11720 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11721 if test "$GCC" = yes; then
11722   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11723 fi
11724
11725 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11726   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11727 fi
11728 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11729   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11730 fi
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11824 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11825 hardcode_action=
11826 if test -n "$hardcode_libdir_flag_spec" ||
11827    test -n "$runpath_var" ||
11828    test "X$hardcode_automatic" = "Xyes" ; then
11829
11830   # We can hardcode non-existent directories.
11831   if test "$hardcode_direct" != no &&
11832      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11833      # have to relink, otherwise we might link with an installed library
11834      # when we should be linking with a yet-to-be-installed one
11835      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11836      test "$hardcode_minus_L" != no; then
11837     # Linking always hardcodes the temporary library directory.
11838     hardcode_action=relink
11839   else
11840     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11841     hardcode_action=immediate
11842   fi
11843 else
11844   # We cannot hardcode anything, or else we can only hardcode existing
11845   # directories.
11846   hardcode_action=unsupported
11847 fi
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11849 $as_echo "$hardcode_action" >&6; }
11850
11851 if test "$hardcode_action" = relink ||
11852    test "$inherit_rpath" = yes; then
11853   # Fast installation is not supported
11854   enable_fast_install=no
11855 elif test "$shlibpath_overrides_runpath" = yes ||
11856      test "$enable_shared" = no; then
11857   # Fast installation is not necessary
11858   enable_fast_install=needless
11859 fi
11860
11861
11862
11863
11864
11865
11866   if test "x$enable_dlopen" != xyes; then
11867   enable_dlopen=unknown
11868   enable_dlopen_self=unknown
11869   enable_dlopen_self_static=unknown
11870 else
11871   lt_cv_dlopen=no
11872   lt_cv_dlopen_libs=
11873
11874   case $host_os in
11875   beos*)
11876     lt_cv_dlopen="load_add_on"
11877     lt_cv_dlopen_libs=
11878     lt_cv_dlopen_self=yes
11879     ;;
11880
11881   mingw* | pw32* | cegcc*)
11882     lt_cv_dlopen="LoadLibrary"
11883     lt_cv_dlopen_libs=
11884     ;;
11885
11886   cygwin*)
11887     lt_cv_dlopen="dlopen"
11888     lt_cv_dlopen_libs=
11889     ;;
11890
11891   darwin*)
11892   # if libdl is installed we need to link against it
11893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11895 if ${ac_cv_lib_dl_dlopen+:} false; then :
11896   $as_echo_n "(cached) " >&6
11897 else
11898   ac_check_lib_save_LIBS=$LIBS
11899 LIBS="-ldl  $LIBS"
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h.  */
11902
11903 /* Override any GCC internal prototype to avoid an error.
11904    Use char because int might match the return type of a GCC
11905    builtin and then its argument prototype would still apply.  */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 char dlopen ();
11910 int
11911 main ()
11912 {
11913 return dlopen ();
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_link "$LINENO"; then :
11919   ac_cv_lib_dl_dlopen=yes
11920 else
11921   ac_cv_lib_dl_dlopen=no
11922 fi
11923 rm -f core conftest.err conftest.$ac_objext \
11924     conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11928 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11929 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11930   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11931 else
11932
11933     lt_cv_dlopen="dyld"
11934     lt_cv_dlopen_libs=
11935     lt_cv_dlopen_self=yes
11936
11937 fi
11938
11939     ;;
11940
11941   *)
11942     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11943 if test "x$ac_cv_func_shl_load" = xyes; then :
11944   lt_cv_dlopen="shl_load"
11945 else
11946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11947 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11948 if ${ac_cv_lib_dld_shl_load+:} false; then :
11949   $as_echo_n "(cached) " >&6
11950 else
11951   ac_check_lib_save_LIBS=$LIBS
11952 LIBS="-ldld  $LIBS"
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h.  */
11955
11956 /* Override any GCC internal prototype to avoid an error.
11957    Use char because int might match the return type of a GCC
11958    builtin and then its argument prototype would still apply.  */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 char shl_load ();
11963 int
11964 main ()
11965 {
11966 return shl_load ();
11967   ;
11968   return 0;
11969 }
11970 _ACEOF
11971 if ac_fn_c_try_link "$LINENO"; then :
11972   ac_cv_lib_dld_shl_load=yes
11973 else
11974   ac_cv_lib_dld_shl_load=no
11975 fi
11976 rm -f core conftest.err conftest.$ac_objext \
11977     conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11979 fi
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11981 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11982 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11983   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11984 else
11985   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11986 if test "x$ac_cv_func_dlopen" = xyes; then :
11987   lt_cv_dlopen="dlopen"
11988 else
11989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11990 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11991 if ${ac_cv_lib_dl_dlopen+:} false; then :
11992   $as_echo_n "(cached) " >&6
11993 else
11994   ac_check_lib_save_LIBS=$LIBS
11995 LIBS="-ldl  $LIBS"
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h.  */
11998
11999 /* Override any GCC internal prototype to avoid an error.
12000    Use char because int might match the return type of a GCC
12001    builtin and then its argument prototype would still apply.  */
12002 #ifdef __cplusplus
12003 extern "C"
12004 #endif
12005 char dlopen ();
12006 int
12007 main ()
12008 {
12009 return dlopen ();
12010   ;
12011   return 0;
12012 }
12013 _ACEOF
12014 if ac_fn_c_try_link "$LINENO"; then :
12015   ac_cv_lib_dl_dlopen=yes
12016 else
12017   ac_cv_lib_dl_dlopen=no
12018 fi
12019 rm -f core conftest.err conftest.$ac_objext \
12020     conftest$ac_exeext conftest.$ac_ext
12021 LIBS=$ac_check_lib_save_LIBS
12022 fi
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12024 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12025 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12026   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12027 else
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12029 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12030 if ${ac_cv_lib_svld_dlopen+:} false; then :
12031   $as_echo_n "(cached) " >&6
12032 else
12033   ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-lsvld  $LIBS"
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h.  */
12037
12038 /* Override any GCC internal prototype to avoid an error.
12039    Use char because int might match the return type of a GCC
12040    builtin and then its argument prototype would still apply.  */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char dlopen ();
12045 int
12046 main ()
12047 {
12048 return dlopen ();
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 if ac_fn_c_try_link "$LINENO"; then :
12054   ac_cv_lib_svld_dlopen=yes
12055 else
12056   ac_cv_lib_svld_dlopen=no
12057 fi
12058 rm -f core conftest.err conftest.$ac_objext \
12059     conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12063 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12064 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12065   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12066 else
12067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12068 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12069 if ${ac_cv_lib_dld_dld_link+:} false; then :
12070   $as_echo_n "(cached) " >&6
12071 else
12072   ac_check_lib_save_LIBS=$LIBS
12073 LIBS="-ldld  $LIBS"
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h.  */
12076
12077 /* Override any GCC internal prototype to avoid an error.
12078    Use char because int might match the return type of a GCC
12079    builtin and then its argument prototype would still apply.  */
12080 #ifdef __cplusplus
12081 extern "C"
12082 #endif
12083 char dld_link ();
12084 int
12085 main ()
12086 {
12087 return dld_link ();
12088   ;
12089   return 0;
12090 }
12091 _ACEOF
12092 if ac_fn_c_try_link "$LINENO"; then :
12093   ac_cv_lib_dld_dld_link=yes
12094 else
12095   ac_cv_lib_dld_dld_link=no
12096 fi
12097 rm -f core conftest.err conftest.$ac_objext \
12098     conftest$ac_exeext conftest.$ac_ext
12099 LIBS=$ac_check_lib_save_LIBS
12100 fi
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12102 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12103 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12104   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12105 fi
12106
12107
12108 fi
12109
12110
12111 fi
12112
12113
12114 fi
12115
12116
12117 fi
12118
12119
12120 fi
12121
12122     ;;
12123   esac
12124
12125   if test "x$lt_cv_dlopen" != xno; then
12126     enable_dlopen=yes
12127   else
12128     enable_dlopen=no
12129   fi
12130
12131   case $lt_cv_dlopen in
12132   dlopen)
12133     save_CPPFLAGS="$CPPFLAGS"
12134     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12135
12136     save_LDFLAGS="$LDFLAGS"
12137     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12138
12139     save_LIBS="$LIBS"
12140     LIBS="$lt_cv_dlopen_libs $LIBS"
12141
12142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12143 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12144 if ${lt_cv_dlopen_self+:} false; then :
12145   $as_echo_n "(cached) " >&6
12146 else
12147           if test "$cross_compiling" = yes; then :
12148   lt_cv_dlopen_self=cross
12149 else
12150   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12151   lt_status=$lt_dlunknown
12152   cat > conftest.$ac_ext <<_LT_EOF
12153 #line $LINENO "configure"
12154 #include "confdefs.h"
12155
12156 #if HAVE_DLFCN_H
12157 #include <dlfcn.h>
12158 #endif
12159
12160 #include <stdio.h>
12161
12162 #ifdef RTLD_GLOBAL
12163 #  define LT_DLGLOBAL           RTLD_GLOBAL
12164 #else
12165 #  ifdef DL_GLOBAL
12166 #    define LT_DLGLOBAL         DL_GLOBAL
12167 #  else
12168 #    define LT_DLGLOBAL         0
12169 #  endif
12170 #endif
12171
12172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12173    find out it does not work in some platform. */
12174 #ifndef LT_DLLAZY_OR_NOW
12175 #  ifdef RTLD_LAZY
12176 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12177 #  else
12178 #    ifdef DL_LAZY
12179 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12180 #    else
12181 #      ifdef RTLD_NOW
12182 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12183 #      else
12184 #        ifdef DL_NOW
12185 #          define LT_DLLAZY_OR_NOW      DL_NOW
12186 #        else
12187 #          define LT_DLLAZY_OR_NOW      0
12188 #        endif
12189 #      endif
12190 #    endif
12191 #  endif
12192 #endif
12193
12194 /* When -fvisbility=hidden is used, assume the code has been annotated
12195    correspondingly for the symbols needed.  */
12196 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12197 int fnord () __attribute__((visibility("default")));
12198 #endif
12199
12200 int fnord () { return 42; }
12201 int main ()
12202 {
12203   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12204   int status = $lt_dlunknown;
12205
12206   if (self)
12207     {
12208       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12209       else
12210         {
12211           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12212           else puts (dlerror ());
12213         }
12214       /* dlclose (self); */
12215     }
12216   else
12217     puts (dlerror ());
12218
12219   return status;
12220 }
12221 _LT_EOF
12222   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12223   (eval $ac_link) 2>&5
12224   ac_status=$?
12225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12226   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12227     (./conftest; exit; ) >&5 2>/dev/null
12228     lt_status=$?
12229     case x$lt_status in
12230       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12231       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12232       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12233     esac
12234   else :
12235     # compilation failed
12236     lt_cv_dlopen_self=no
12237   fi
12238 fi
12239 rm -fr conftest*
12240
12241
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12244 $as_echo "$lt_cv_dlopen_self" >&6; }
12245
12246     if test "x$lt_cv_dlopen_self" = xyes; then
12247       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12248       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12249 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12250 if ${lt_cv_dlopen_self_static+:} false; then :
12251   $as_echo_n "(cached) " >&6
12252 else
12253           if test "$cross_compiling" = yes; then :
12254   lt_cv_dlopen_self_static=cross
12255 else
12256   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12257   lt_status=$lt_dlunknown
12258   cat > conftest.$ac_ext <<_LT_EOF
12259 #line $LINENO "configure"
12260 #include "confdefs.h"
12261
12262 #if HAVE_DLFCN_H
12263 #include <dlfcn.h>
12264 #endif
12265
12266 #include <stdio.h>
12267
12268 #ifdef RTLD_GLOBAL
12269 #  define LT_DLGLOBAL           RTLD_GLOBAL
12270 #else
12271 #  ifdef DL_GLOBAL
12272 #    define LT_DLGLOBAL         DL_GLOBAL
12273 #  else
12274 #    define LT_DLGLOBAL         0
12275 #  endif
12276 #endif
12277
12278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12279    find out it does not work in some platform. */
12280 #ifndef LT_DLLAZY_OR_NOW
12281 #  ifdef RTLD_LAZY
12282 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12283 #  else
12284 #    ifdef DL_LAZY
12285 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12286 #    else
12287 #      ifdef RTLD_NOW
12288 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12289 #      else
12290 #        ifdef DL_NOW
12291 #          define LT_DLLAZY_OR_NOW      DL_NOW
12292 #        else
12293 #          define LT_DLLAZY_OR_NOW      0
12294 #        endif
12295 #      endif
12296 #    endif
12297 #  endif
12298 #endif
12299
12300 /* When -fvisbility=hidden is used, assume the code has been annotated
12301    correspondingly for the symbols needed.  */
12302 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12303 int fnord () __attribute__((visibility("default")));
12304 #endif
12305
12306 int fnord () { return 42; }
12307 int main ()
12308 {
12309   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12310   int status = $lt_dlunknown;
12311
12312   if (self)
12313     {
12314       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12315       else
12316         {
12317           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12318           else puts (dlerror ());
12319         }
12320       /* dlclose (self); */
12321     }
12322   else
12323     puts (dlerror ());
12324
12325   return status;
12326 }
12327 _LT_EOF
12328   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12329   (eval $ac_link) 2>&5
12330   ac_status=$?
12331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12332   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12333     (./conftest; exit; ) >&5 2>/dev/null
12334     lt_status=$?
12335     case x$lt_status in
12336       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12337       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12338       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12339     esac
12340   else :
12341     # compilation failed
12342     lt_cv_dlopen_self_static=no
12343   fi
12344 fi
12345 rm -fr conftest*
12346
12347
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12350 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12351     fi
12352
12353     CPPFLAGS="$save_CPPFLAGS"
12354     LDFLAGS="$save_LDFLAGS"
12355     LIBS="$save_LIBS"
12356     ;;
12357   esac
12358
12359   case $lt_cv_dlopen_self in
12360   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12361   *) enable_dlopen_self=unknown ;;
12362   esac
12363
12364   case $lt_cv_dlopen_self_static in
12365   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12366   *) enable_dlopen_self_static=unknown ;;
12367   esac
12368 fi
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386 striplib=
12387 old_striplib=
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12389 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12390 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12391   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12392   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12394 $as_echo "yes" >&6; }
12395 else
12396 # FIXME - insert some real tests, host_os isn't really good enough
12397   case $host_os in
12398   darwin*)
12399     if test -n "$STRIP" ; then
12400       striplib="$STRIP -x"
12401       old_striplib="$STRIP -S"
12402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12403 $as_echo "yes" >&6; }
12404     else
12405       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12407     fi
12408     ;;
12409   *)
12410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12412     ;;
12413   esac
12414 fi
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427   # Report which library types will actually be built
12428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12429 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12431 $as_echo "$can_build_shared" >&6; }
12432
12433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12434 $as_echo_n "checking whether to build shared libraries... " >&6; }
12435   test "$can_build_shared" = "no" && enable_shared=no
12436
12437   # On AIX, shared libraries and static libraries use the same namespace, and
12438   # are all built from PIC.
12439   case $host_os in
12440   aix3*)
12441     test "$enable_shared" = yes && enable_static=no
12442     if test -n "$RANLIB"; then
12443       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12444       postinstall_cmds='$RANLIB $lib'
12445     fi
12446     ;;
12447
12448   aix[4-9]*)
12449     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12450       test "$enable_shared" = yes && enable_static=no
12451     fi
12452     ;;
12453   esac
12454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12455 $as_echo "$enable_shared" >&6; }
12456
12457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12458 $as_echo_n "checking whether to build static libraries... " >&6; }
12459   # Make sure either enable_shared or enable_static is yes.
12460   test "$enable_shared" = yes || enable_static=yes
12461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12462 $as_echo "$enable_static" >&6; }
12463
12464
12465
12466
12467 fi
12468 ac_ext=c
12469 ac_cpp='$CPP $CPPFLAGS'
12470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12473
12474 CC="$lt_save_CC"
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490         ac_config_commands="$ac_config_commands libtool"
12491
12492
12493
12494
12495 # Only expand once:
12496
12497
12498
12499
12500   CFLAG_VISIBILITY=
12501   HAVE_VISIBILITY=0
12502   if test -n "$GCC"; then
12503                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
12504 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
12505     if ${gl_cv_cc_vis_werror+:} false; then :
12506   $as_echo_n "(cached) " >&6
12507 else
12508
12509       gl_save_CFLAGS="$CFLAGS"
12510       CFLAGS="$CFLAGS -Werror"
12511       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h.  */
12513
12514 int
12515 main ()
12516 {
12517
12518   ;
12519   return 0;
12520 }
12521 _ACEOF
12522 if ac_fn_c_try_compile "$LINENO"; then :
12523   gl_cv_cc_vis_werror=yes
12524 else
12525   gl_cv_cc_vis_werror=no
12526 fi
12527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12528       CFLAGS="$gl_save_CFLAGS"
12529 fi
12530
12531     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
12532 $as_echo "$gl_cv_cc_vis_werror" >&6; }
12533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
12534 $as_echo_n "checking for simple visibility declarations... " >&6; }
12535     if ${gl_cv_cc_visibility+:} false; then :
12536   $as_echo_n "(cached) " >&6
12537 else
12538
12539       gl_save_CFLAGS="$CFLAGS"
12540       CFLAGS="$CFLAGS -fvisibility=hidden"
12541                                     if test $gl_cv_cc_vis_werror = yes; then
12542         CFLAGS="$CFLAGS -Werror"
12543       fi
12544       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h.  */
12546 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
12547              extern __attribute__((__visibility__("default"))) int exportedvar;
12548              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
12549              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
12550              void dummyfunc (void) {}
12551
12552 int
12553 main ()
12554 {
12555
12556   ;
12557   return 0;
12558 }
12559 _ACEOF
12560 if ac_fn_c_try_compile "$LINENO"; then :
12561   gl_cv_cc_visibility=yes
12562 else
12563   gl_cv_cc_visibility=no
12564 fi
12565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12566       CFLAGS="$gl_save_CFLAGS"
12567 fi
12568
12569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
12570 $as_echo "$gl_cv_cc_visibility" >&6; }
12571     if test $gl_cv_cc_visibility = yes; then
12572       CFLAG_VISIBILITY="-fvisibility=hidden"
12573       HAVE_VISIBILITY=1
12574     fi
12575   fi
12576
12577
12578
12579 cat >>confdefs.h <<_ACEOF
12580 #define HAVE_VISIBILITY $HAVE_VISIBILITY
12581 _ACEOF
12582
12583
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12585 $as_echo_n "checking for ANSI C header files... " >&6; }
12586 if ${ac_cv_header_stdc+:} false; then :
12587   $as_echo_n "(cached) " >&6
12588 else
12589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h.  */
12591 #include <stdlib.h>
12592 #include <stdarg.h>
12593 #include <string.h>
12594 #include <float.h>
12595
12596 int
12597 main ()
12598 {
12599
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 if ac_fn_c_try_compile "$LINENO"; then :
12605   ac_cv_header_stdc=yes
12606 else
12607   ac_cv_header_stdc=no
12608 fi
12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12610
12611 if test $ac_cv_header_stdc = yes; then
12612   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h.  */
12615 #include <string.h>
12616
12617 _ACEOF
12618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12619   $EGREP "memchr" >/dev/null 2>&1; then :
12620
12621 else
12622   ac_cv_header_stdc=no
12623 fi
12624 rm -f conftest*
12625
12626 fi
12627
12628 if test $ac_cv_header_stdc = yes; then
12629   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h.  */
12632 #include <stdlib.h>
12633
12634 _ACEOF
12635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12636   $EGREP "free" >/dev/null 2>&1; then :
12637
12638 else
12639   ac_cv_header_stdc=no
12640 fi
12641 rm -f conftest*
12642
12643 fi
12644
12645 if test $ac_cv_header_stdc = yes; then
12646   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12647   if test "$cross_compiling" = yes; then :
12648   :
12649 else
12650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h.  */
12652 #include <ctype.h>
12653 #include <stdlib.h>
12654 #if ((' ' & 0x0FF) == 0x020)
12655 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12656 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12657 #else
12658 # define ISLOWER(c) \
12659                    (('a' <= (c) && (c) <= 'i') \
12660                      || ('j' <= (c) && (c) <= 'r') \
12661                      || ('s' <= (c) && (c) <= 'z'))
12662 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12663 #endif
12664
12665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12666 int
12667 main ()
12668 {
12669   int i;
12670   for (i = 0; i < 256; i++)
12671     if (XOR (islower (i), ISLOWER (i))
12672         || toupper (i) != TOUPPER (i))
12673       return 2;
12674   return 0;
12675 }
12676 _ACEOF
12677 if ac_fn_c_try_run "$LINENO"; then :
12678
12679 else
12680   ac_cv_header_stdc=no
12681 fi
12682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12683   conftest.$ac_objext conftest.beam conftest.$ac_ext
12684 fi
12685
12686 fi
12687 fi
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12689 $as_echo "$ac_cv_header_stdc" >&6; }
12690 if test $ac_cv_header_stdc = yes; then
12691
12692 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12693
12694 fi
12695
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
12697 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
12698 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
12699   $as_echo_n "(cached) " >&6
12700 else
12701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h.  */
12703 #include <sys/types.h>
12704 int
12705 main ()
12706 {
12707 return makedev(0, 0);
12708   ;
12709   return 0;
12710 }
12711 _ACEOF
12712 if ac_fn_c_try_link "$LINENO"; then :
12713   ac_cv_header_sys_types_h_makedev=yes
12714 else
12715   ac_cv_header_sys_types_h_makedev=no
12716 fi
12717 rm -f core conftest.err conftest.$ac_objext \
12718     conftest$ac_exeext conftest.$ac_ext
12719
12720 fi
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
12722 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
12723
12724 if test $ac_cv_header_sys_types_h_makedev = no; then
12725 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12726 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
12727
12728 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
12729
12730 fi
12731
12732
12733
12734   if test $ac_cv_header_sys_mkdev_h = no; then
12735     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12736 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
12737
12738 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
12739
12740 fi
12741
12742
12743   fi
12744 fi
12745
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12747 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12748 if ${ac_cv_header_sys_wait_h+:} false; then :
12749   $as_echo_n "(cached) " >&6
12750 else
12751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h.  */
12753 #include <sys/types.h>
12754 #include <sys/wait.h>
12755 #ifndef WEXITSTATUS
12756 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12757 #endif
12758 #ifndef WIFEXITED
12759 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12760 #endif
12761
12762 int
12763 main ()
12764 {
12765   int s;
12766   wait (&s);
12767   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12768   ;
12769   return 0;
12770 }
12771 _ACEOF
12772 if ac_fn_c_try_compile "$LINENO"; then :
12773   ac_cv_header_sys_wait_h=yes
12774 else
12775   ac_cv_header_sys_wait_h=no
12776 fi
12777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12778 fi
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12780 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12781 if test $ac_cv_header_sys_wait_h = yes; then
12782
12783 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12784
12785 fi
12786
12787 for ac_header in stdint.h fcntl.h inttypes.h unistd.h
12788 do :
12789   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12790 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12791 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12792   cat >>confdefs.h <<_ACEOF
12793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12794 _ACEOF
12795
12796 fi
12797
12798 done
12799
12800 for ac_header in utime.h wchar.h wctype.h
12801 do :
12802   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12803 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12804 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12805   cat >>confdefs.h <<_ACEOF
12806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12807 _ACEOF
12808
12809 fi
12810
12811 done
12812
12813 for ac_header in getopt.h err.h xlocale.h
12814 do :
12815   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12816 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12817 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12818   cat >>confdefs.h <<_ACEOF
12819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12820 _ACEOF
12821
12822 fi
12823
12824 done
12825
12826 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h
12827 do :
12828   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12829 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12830 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12831   cat >>confdefs.h <<_ACEOF
12832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12833 _ACEOF
12834
12835 fi
12836
12837 done
12838
12839 if test "$enable_zlib" != "no"; then
12840   for ac_header in zlib.h
12841 do :
12842   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12843 if test "x$ac_cv_header_zlib_h" = xyes; then :
12844   cat >>confdefs.h <<_ACEOF
12845 #define HAVE_ZLIB_H 1
12846 _ACEOF
12847
12848 fi
12849
12850 done
12851
12852 fi
12853 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
12854 "
12855 if test "x$ac_cv_type_sig_t" = xyes; then :
12856
12857 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
12858
12859 fi
12860
12861
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12863 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12864 if ${ac_cv_c_const+:} false; then :
12865   $as_echo_n "(cached) " >&6
12866 else
12867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h.  */
12869
12870 int
12871 main ()
12872 {
12873
12874 #ifndef __cplusplus
12875   /* Ultrix mips cc rejects this sort of thing.  */
12876   typedef int charset[2];
12877   const charset cs = { 0, 0 };
12878   /* SunOS 4.1.1 cc rejects this.  */
12879   char const *const *pcpcc;
12880   char **ppc;
12881   /* NEC SVR4.0.2 mips cc rejects this.  */
12882   struct point {int x, y;};
12883   static struct point const zero = {0,0};
12884   /* AIX XL C 1.02.0.0 rejects this.
12885      It does not let you subtract one const X* pointer from another in
12886      an arm of an if-expression whose if-part is not a constant
12887      expression */
12888   const char *g = "string";
12889   pcpcc = &g + (g ? g-g : 0);
12890   /* HPUX 7.0 cc rejects these. */
12891   ++pcpcc;
12892   ppc = (char**) pcpcc;
12893   pcpcc = (char const *const *) ppc;
12894   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12895     char tx;
12896     char *t = &tx;
12897     char const *s = 0 ? (char *) 0 : (char const *) 0;
12898
12899     *t++ = 0;
12900     if (s) return 0;
12901   }
12902   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12903     int x[] = {25, 17};
12904     const int *foo = &x[0];
12905     ++foo;
12906   }
12907   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12908     typedef const int *iptr;
12909     iptr p = 0;
12910     ++p;
12911   }
12912   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12913        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12914     struct s { int j; const int *ap[3]; } bx;
12915     struct s *b = &bx; b->j = 5;
12916   }
12917   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12918     const int foo = 10;
12919     if (!foo) return 0;
12920   }
12921   return !cs[0] && !zero.x;
12922 #endif
12923
12924   ;
12925   return 0;
12926 }
12927 _ACEOF
12928 if ac_fn_c_try_compile "$LINENO"; then :
12929   ac_cv_c_const=yes
12930 else
12931   ac_cv_c_const=no
12932 fi
12933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12934 fi
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12936 $as_echo "$ac_cv_c_const" >&6; }
12937 if test $ac_cv_c_const = no; then
12938
12939 $as_echo "#define const /**/" >>confdefs.h
12940
12941 fi
12942
12943 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12944 if test "x$ac_cv_type_off_t" = xyes; then :
12945
12946 else
12947
12948 cat >>confdefs.h <<_ACEOF
12949 #define off_t long int
12950 _ACEOF
12951
12952 fi
12953
12954 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12955 if test "x$ac_cv_type_size_t" = xyes; then :
12956
12957 else
12958
12959 cat >>confdefs.h <<_ACEOF
12960 #define size_t unsigned int
12961 _ACEOF
12962
12963 fi
12964
12965 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12966 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12967
12968 cat >>confdefs.h <<_ACEOF
12969 #define HAVE_STRUCT_STAT_ST_RDEV 1
12970 _ACEOF
12971
12972
12973 fi
12974
12975
12976 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
12977 "
12978 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
12979
12980 cat >>confdefs.h <<_ACEOF
12981 #define HAVE_STRUCT_TM_TM_GMTOFF 1
12982 _ACEOF
12983
12984
12985 fi
12986
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12988 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12989 if ${ac_cv_struct_tm+:} false; then :
12990   $as_echo_n "(cached) " >&6
12991 else
12992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h.  */
12994 #include <sys/types.h>
12995 #include <time.h>
12996
12997 int
12998 main ()
12999 {
13000 struct tm tm;
13001                                      int *p = &tm.tm_sec;
13002                                      return !p;
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 if ac_fn_c_try_compile "$LINENO"; then :
13008   ac_cv_struct_tm=time.h
13009 else
13010   ac_cv_struct_tm=sys/time.h
13011 fi
13012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13013 fi
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13015 $as_echo "$ac_cv_struct_tm" >&6; }
13016 if test $ac_cv_struct_tm = sys/time.h; then
13017
13018 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13019
13020 fi
13021
13022 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13023 #include <$ac_cv_struct_tm>
13024
13025 "
13026 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13027
13028 cat >>confdefs.h <<_ACEOF
13029 #define HAVE_STRUCT_TM_TM_ZONE 1
13030 _ACEOF
13031
13032
13033 fi
13034
13035 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13036
13037 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13038
13039 else
13040   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13041 "
13042 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13043   ac_have_decl=1
13044 else
13045   ac_have_decl=0
13046 fi
13047
13048 cat >>confdefs.h <<_ACEOF
13049 #define HAVE_DECL_TZNAME $ac_have_decl
13050 _ACEOF
13051
13052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13053 $as_echo_n "checking for tzname... " >&6; }
13054 if ${ac_cv_var_tzname+:} false; then :
13055   $as_echo_n "(cached) " >&6
13056 else
13057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13058 /* end confdefs.h.  */
13059 #include <time.h>
13060 #if !HAVE_DECL_TZNAME
13061 extern char *tzname[];
13062 #endif
13063
13064 int
13065 main ()
13066 {
13067 return tzname[0][0];
13068   ;
13069   return 0;
13070 }
13071 _ACEOF
13072 if ac_fn_c_try_link "$LINENO"; then :
13073   ac_cv_var_tzname=yes
13074 else
13075   ac_cv_var_tzname=no
13076 fi
13077 rm -f core conftest.err conftest.$ac_objext \
13078     conftest$ac_exeext conftest.$ac_ext
13079 fi
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13081 $as_echo "$ac_cv_var_tzname" >&6; }
13082   if test $ac_cv_var_tzname = yes; then
13083
13084 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13085
13086   fi
13087 fi
13088
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13090 $as_echo_n "checking for tm_zone in struct tm... " >&6; }
13091 if ${ac_cv_struct_tm_zone+:} false; then :
13092   $as_echo_n "(cached) " >&6
13093 else
13094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h.  */
13096 #include <sys/types.h>
13097 #include <$ac_cv_struct_tm>
13098 int
13099 main ()
13100 {
13101 struct tm tm; tm.tm_zone;
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106 if ac_fn_c_try_compile "$LINENO"; then :
13107   ac_cv_struct_tm_zone=yes
13108 else
13109   ac_cv_struct_tm_zone=no
13110 fi
13111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13112 fi
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
13114 $as_echo "$ac_cv_struct_tm_zone" >&6; }
13115 if test "$ac_cv_struct_tm_zone" = yes; then
13116
13117 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13118
13119 fi
13120
13121 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13122 # consider it declared and we won't give our own extern.
13123 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13124 "
13125 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13126   ac_have_decl=1
13127 else
13128   ac_have_decl=0
13129 fi
13130
13131 cat >>confdefs.h <<_ACEOF
13132 #define HAVE_DECL_TZNAME $ac_have_decl
13133 _ACEOF
13134
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13136 $as_echo_n "checking for tzname... " >&6; }
13137 if ${ac_cv_var_tzname+:} false; then :
13138   $as_echo_n "(cached) " >&6
13139 else
13140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h.  */
13142 #include <time.h>
13143 #if !HAVE_DECL_TZNAME
13144 extern char *tzname[];
13145 #endif
13146 int
13147 main ()
13148 {
13149 return tzname[0][0];
13150   ;
13151   return 0;
13152 }
13153 _ACEOF
13154 if ac_fn_c_try_link "$LINENO"; then :
13155   ac_cv_var_tzname=yes
13156 else
13157   ac_cv_var_tzname=no
13158 fi
13159 rm -f core conftest.err conftest.$ac_objext \
13160     conftest$ac_exeext conftest.$ac_ext
13161 fi
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13163 $as_echo "$ac_cv_var_tzname" >&6; }
13164   if test $ac_cv_var_tzname = yes; then
13165
13166 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13167
13168   fi
13169
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
13171 $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
13172 if ${ac_cv_struct_tm_isdst+:} false; then :
13173   $as_echo_n "(cached) " >&6
13174 else
13175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h.  */
13177 #include <sys/types.h>
13178 #include <$ac_cv_struct_tm>
13179 int
13180 main ()
13181 {
13182 struct tm tm; tm.tm_isdst;
13183   ;
13184   return 0;
13185 }
13186 _ACEOF
13187 if ac_fn_c_try_compile "$LINENO"; then :
13188   ac_cv_struct_tm_isdst=yes
13189 else
13190   ac_cv_struct_tm_isdst=no
13191 fi
13192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193 fi
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
13195 $as_echo "$ac_cv_struct_tm_isdst" >&6; }
13196 if test "$ac_cv_struct_tm_isdst" = yes; then
13197
13198 $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
13199
13200 fi
13201
13202
13203 ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
13204 "
13205 if test "x$ac_cv_have_decl_daylight" = xyes; then :
13206   ac_have_decl=1
13207 else
13208   ac_have_decl=0
13209 fi
13210
13211 cat >>confdefs.h <<_ACEOF
13212 #define HAVE_DECL_DAYLIGHT $ac_have_decl
13213 _ACEOF
13214
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
13216 $as_echo_n "checking for daylight... " >&6; }
13217 if ${ac_cv_var_daylight+:} false; then :
13218   $as_echo_n "(cached) " >&6
13219 else
13220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h.  */
13222 #include <time.h>
13223 #if !HAVE_DECL_DAYLIGHT
13224 extern int daylight;
13225 #endif
13226 int
13227 main ()
13228 {
13229 atoi(daylight);
13230   ;
13231   return 0;
13232 }
13233 _ACEOF
13234 if ac_fn_c_try_link "$LINENO"; then :
13235   ac_cv_var_daylight=yes
13236 else
13237   ac_cv_var_daylight=no
13238 fi
13239 rm -f core conftest.err conftest.$ac_objext \
13240     conftest$ac_exeext conftest.$ac_ext
13241 fi
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
13243 $as_echo "$ac_cv_var_daylight" >&6; }
13244   if test $ac_cv_var_daylight = yes; then
13245
13246 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13247
13248   fi
13249
13250 # Check whether --enable-largefile was given.
13251 if test "${enable_largefile+set}" = set; then :
13252   enableval=$enable_largefile;
13253 fi
13254
13255 if test "$enable_largefile" != no; then
13256
13257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13258 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13259 if ${ac_cv_sys_largefile_CC+:} false; then :
13260   $as_echo_n "(cached) " >&6
13261 else
13262   ac_cv_sys_largefile_CC=no
13263      if test "$GCC" != yes; then
13264        ac_save_CC=$CC
13265        while :; do
13266          # IRIX 6.2 and later do not support large files by default,
13267          # so use the C compiler's -n32 option if that helps.
13268          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h.  */
13270 #include <sys/types.h>
13271  /* Check that off_t can represent 2**63 - 1 correctly.
13272     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13273     since some C++ compilers masquerading as C compilers
13274     incorrectly reject 9223372036854775807.  */
13275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13276   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13277                        && LARGE_OFF_T % 2147483647 == 1)
13278                       ? 1 : -1];
13279 int
13280 main ()
13281 {
13282
13283   ;
13284   return 0;
13285 }
13286 _ACEOF
13287          if ac_fn_c_try_compile "$LINENO"; then :
13288   break
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext
13291          CC="$CC -n32"
13292          if ac_fn_c_try_compile "$LINENO"; then :
13293   ac_cv_sys_largefile_CC=' -n32'; break
13294 fi
13295 rm -f core conftest.err conftest.$ac_objext
13296          break
13297        done
13298        CC=$ac_save_CC
13299        rm -f conftest.$ac_ext
13300     fi
13301 fi
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13303 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13304   if test "$ac_cv_sys_largefile_CC" != no; then
13305     CC=$CC$ac_cv_sys_largefile_CC
13306   fi
13307
13308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13309 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13310 if ${ac_cv_sys_file_offset_bits+:} false; then :
13311   $as_echo_n "(cached) " >&6
13312 else
13313   while :; do
13314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h.  */
13316 #include <sys/types.h>
13317  /* Check that off_t can represent 2**63 - 1 correctly.
13318     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13319     since some C++ compilers masquerading as C compilers
13320     incorrectly reject 9223372036854775807.  */
13321 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13322   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13323                        && LARGE_OFF_T % 2147483647 == 1)
13324                       ? 1 : -1];
13325 int
13326 main ()
13327 {
13328
13329   ;
13330   return 0;
13331 }
13332 _ACEOF
13333 if ac_fn_c_try_compile "$LINENO"; then :
13334   ac_cv_sys_file_offset_bits=no; break
13335 fi
13336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h.  */
13339 #define _FILE_OFFSET_BITS 64
13340 #include <sys/types.h>
13341  /* Check that off_t can represent 2**63 - 1 correctly.
13342     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13343     since some C++ compilers masquerading as C compilers
13344     incorrectly reject 9223372036854775807.  */
13345 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13346   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13347                        && LARGE_OFF_T % 2147483647 == 1)
13348                       ? 1 : -1];
13349 int
13350 main ()
13351 {
13352
13353   ;
13354   return 0;
13355 }
13356 _ACEOF
13357 if ac_fn_c_try_compile "$LINENO"; then :
13358   ac_cv_sys_file_offset_bits=64; break
13359 fi
13360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13361   ac_cv_sys_file_offset_bits=unknown
13362   break
13363 done
13364 fi
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13366 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13367 case $ac_cv_sys_file_offset_bits in #(
13368   no | unknown) ;;
13369   *)
13370 cat >>confdefs.h <<_ACEOF
13371 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13372 _ACEOF
13373 ;;
13374 esac
13375 rm -rf conftest*
13376   if test $ac_cv_sys_file_offset_bits = unknown; then
13377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13378 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13379 if ${ac_cv_sys_large_files+:} false; then :
13380   $as_echo_n "(cached) " >&6
13381 else
13382   while :; do
13383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h.  */
13385 #include <sys/types.h>
13386  /* Check that off_t can represent 2**63 - 1 correctly.
13387     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13388     since some C++ compilers masquerading as C compilers
13389     incorrectly reject 9223372036854775807.  */
13390 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13391   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13392                        && LARGE_OFF_T % 2147483647 == 1)
13393                       ? 1 : -1];
13394 int
13395 main ()
13396 {
13397
13398   ;
13399   return 0;
13400 }
13401 _ACEOF
13402 if ac_fn_c_try_compile "$LINENO"; then :
13403   ac_cv_sys_large_files=no; break
13404 fi
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h.  */
13408 #define _LARGE_FILES 1
13409 #include <sys/types.h>
13410  /* Check that off_t can represent 2**63 - 1 correctly.
13411     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13412     since some C++ compilers masquerading as C compilers
13413     incorrectly reject 9223372036854775807.  */
13414 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13415   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13416                        && LARGE_OFF_T % 2147483647 == 1)
13417                       ? 1 : -1];
13418 int
13419 main ()
13420 {
13421
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 if ac_fn_c_try_compile "$LINENO"; then :
13427   ac_cv_sys_large_files=1; break
13428 fi
13429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13430   ac_cv_sys_large_files=unknown
13431   break
13432 done
13433 fi
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13435 $as_echo "$ac_cv_sys_large_files" >&6; }
13436 case $ac_cv_sys_large_files in #(
13437   no | unknown) ;;
13438   *)
13439 cat >>confdefs.h <<_ACEOF
13440 #define _LARGE_FILES $ac_cv_sys_large_files
13441 _ACEOF
13442 ;;
13443 esac
13444 rm -rf conftest*
13445   fi
13446
13447
13448 fi
13449
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13451 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13452 if ${ac_cv_sys_largefile_source+:} false; then :
13453   $as_echo_n "(cached) " >&6
13454 else
13455   while :; do
13456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h.  */
13458 #include <sys/types.h> /* for off_t */
13459      #include <stdio.h>
13460 int
13461 main ()
13462 {
13463 int (*fp) (FILE *, off_t, int) = fseeko;
13464      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13465   ;
13466   return 0;
13467 }
13468 _ACEOF
13469 if ac_fn_c_try_link "$LINENO"; then :
13470   ac_cv_sys_largefile_source=no; break
13471 fi
13472 rm -f core conftest.err conftest.$ac_objext \
13473     conftest$ac_exeext conftest.$ac_ext
13474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h.  */
13476 #define _LARGEFILE_SOURCE 1
13477 #include <sys/types.h> /* for off_t */
13478      #include <stdio.h>
13479 int
13480 main ()
13481 {
13482 int (*fp) (FILE *, off_t, int) = fseeko;
13483      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13484   ;
13485   return 0;
13486 }
13487 _ACEOF
13488 if ac_fn_c_try_link "$LINENO"; then :
13489   ac_cv_sys_largefile_source=1; break
13490 fi
13491 rm -f core conftest.err conftest.$ac_objext \
13492     conftest$ac_exeext conftest.$ac_ext
13493   ac_cv_sys_largefile_source=unknown
13494   break
13495 done
13496 fi
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13498 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13499 case $ac_cv_sys_largefile_source in #(
13500   no | unknown) ;;
13501   *)
13502 cat >>confdefs.h <<_ACEOF
13503 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13504 _ACEOF
13505 ;;
13506 esac
13507 rm -rf conftest*
13508
13509 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13510 # in glibc 2.1.3, but that breaks too many other things.
13511 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13512 if test $ac_cv_sys_largefile_source != unknown; then
13513
13514 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13515
13516 fi
13517
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13519 $as_echo_n "checking for mbstate_t... " >&6; }
13520 if ${ac_cv_type_mbstate_t+:} false; then :
13521   $as_echo_n "(cached) " >&6
13522 else
13523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h.  */
13525 $ac_includes_default
13526 #           include <wchar.h>
13527 int
13528 main ()
13529 {
13530 mbstate_t x; return sizeof x;
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 if ac_fn_c_try_compile "$LINENO"; then :
13536   ac_cv_type_mbstate_t=yes
13537 else
13538   ac_cv_type_mbstate_t=no
13539 fi
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13541 fi
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13543 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13544    if test $ac_cv_type_mbstate_t = yes; then
13545
13546 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13547
13548    else
13549
13550 $as_echo "#define mbstate_t int" >>confdefs.h
13551
13552    fi
13553
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
13555 $as_echo_n "checking for struct option in getopt... " >&6; }
13556 if ${ac_cv_struct_option_getopt_h+:} false; then :
13557   $as_echo_n "(cached) " >&6
13558 else
13559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h.  */
13561 #include <getopt.h>
13562 int
13563 main ()
13564 {
13565 struct option op; op.name;
13566   ;
13567   return 0;
13568 }
13569 _ACEOF
13570 if ac_fn_c_try_compile "$LINENO"; then :
13571   ac_cv_struct_option_getopt_h=yes
13572 else
13573   ac_cv_struct_option_getopt_h=no
13574 fi
13575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13576 fi
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
13578 $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
13579 if test "$ac_cv_struct_option_getopt_h" = yes; then
13580
13581 $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
13582
13583 fi
13584
13585 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13586 if test "x$ac_cv_type_pid_t" = xyes; then :
13587
13588 else
13589
13590 cat >>confdefs.h <<_ACEOF
13591 #define pid_t int
13592 _ACEOF
13593
13594 fi
13595
13596 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13597 case $ac_cv_c_uint8_t in #(
13598   no|yes) ;; #(
13599   *)
13600
13601 $as_echo "#define _UINT8_T 1" >>confdefs.h
13602
13603
13604 cat >>confdefs.h <<_ACEOF
13605 #define uint8_t $ac_cv_c_uint8_t
13606 _ACEOF
13607 ;;
13608   esac
13609
13610 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13611 case $ac_cv_c_uint16_t in #(
13612   no|yes) ;; #(
13613   *)
13614
13615
13616 cat >>confdefs.h <<_ACEOF
13617 #define uint16_t $ac_cv_c_uint16_t
13618 _ACEOF
13619 ;;
13620   esac
13621
13622 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13623 case $ac_cv_c_uint32_t in #(
13624   no|yes) ;; #(
13625   *)
13626
13627 $as_echo "#define _UINT32_T 1" >>confdefs.h
13628
13629
13630 cat >>confdefs.h <<_ACEOF
13631 #define uint32_t $ac_cv_c_uint32_t
13632 _ACEOF
13633 ;;
13634   esac
13635
13636 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
13637 case $ac_cv_c_int32_t in #(
13638   no|yes) ;; #(
13639   *)
13640
13641 cat >>confdefs.h <<_ACEOF
13642 #define int32_t $ac_cv_c_int32_t
13643 _ACEOF
13644 ;;
13645 esac
13646
13647 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13648 case $ac_cv_c_uint64_t in #(
13649   no|yes) ;; #(
13650   *)
13651
13652 $as_echo "#define _UINT64_T 1" >>confdefs.h
13653
13654
13655 cat >>confdefs.h <<_ACEOF
13656 #define uint64_t $ac_cv_c_uint64_t
13657 _ACEOF
13658 ;;
13659   esac
13660
13661 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13662 case $ac_cv_c_int64_t in #(
13663   no|yes) ;; #(
13664   *)
13665
13666 cat >>confdefs.h <<_ACEOF
13667 #define int64_t $ac_cv_c_int64_t
13668 _ACEOF
13669 ;;
13670 esac
13671
13672
13673   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13674 if test "x$ac_cv_type_intptr_t" = xyes; then :
13675
13676 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
13677
13678 else
13679   for ac_type in 'int' 'long int' 'long long int'; do
13680        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h.  */
13682 $ac_includes_default
13683 int
13684 main ()
13685 {
13686 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13687 test_array [0] = 0;
13688 return test_array [0];
13689
13690   ;
13691   return 0;
13692 }
13693 _ACEOF
13694 if ac_fn_c_try_compile "$LINENO"; then :
13695
13696 cat >>confdefs.h <<_ACEOF
13697 #define intptr_t $ac_type
13698 _ACEOF
13699
13700           ac_type=
13701 fi
13702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13703        test -z "$ac_type" && break
13704      done
13705 fi
13706
13707
13708
13709   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13710 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13711
13712 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13713
13714 else
13715   for ac_type in 'unsigned int' 'unsigned long int' \
13716         'unsigned long long int'; do
13717        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h.  */
13719 $ac_includes_default
13720 int
13721 main ()
13722 {
13723 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13724 test_array [0] = 0;
13725 return test_array [0];
13726
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 if ac_fn_c_try_compile "$LINENO"; then :
13732
13733 cat >>confdefs.h <<_ACEOF
13734 #define uintptr_t $ac_type
13735 _ACEOF
13736
13737           ac_type=
13738 fi
13739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13740        test -z "$ac_type" && break
13741      done
13742 fi
13743
13744
13745
13746
13747
13748   for ac_header in $ac_header_list
13749 do :
13750   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13751 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13752 "
13753 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13754   cat >>confdefs.h <<_ACEOF
13755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13756 _ACEOF
13757
13758 fi
13759
13760 done
13761
13762
13763
13764
13765
13766
13767
13768
13769 for ac_func in getpagesize
13770 do :
13771   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13772 if test "x$ac_cv_func_getpagesize" = xyes; then :
13773   cat >>confdefs.h <<_ACEOF
13774 #define HAVE_GETPAGESIZE 1
13775 _ACEOF
13776
13777 fi
13778 done
13779
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13781 $as_echo_n "checking for working mmap... " >&6; }
13782 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13783   $as_echo_n "(cached) " >&6
13784 else
13785   if test "$cross_compiling" = yes; then :
13786   ac_cv_func_mmap_fixed_mapped=no
13787 else
13788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h.  */
13790 $ac_includes_default
13791 /* malloc might have been renamed as rpl_malloc. */
13792 #undef malloc
13793
13794 /* Thanks to Mike Haertel and Jim Avera for this test.
13795    Here is a matrix of mmap possibilities:
13796         mmap private not fixed
13797         mmap private fixed at somewhere currently unmapped
13798         mmap private fixed at somewhere already mapped
13799         mmap shared not fixed
13800         mmap shared fixed at somewhere currently unmapped
13801         mmap shared fixed at somewhere already mapped
13802    For private mappings, we should verify that changes cannot be read()
13803    back from the file, nor mmap's back from the file at a different
13804    address.  (There have been systems where private was not correctly
13805    implemented like the infamous i386 svr4.0, and systems where the
13806    VM page cache was not coherent with the file system buffer cache
13807    like early versions of FreeBSD and possibly contemporary NetBSD.)
13808    For shared mappings, we should conversely verify that changes get
13809    propagated back to all the places they're supposed to be.
13810
13811    Grep wants private fixed already mapped.
13812    The main things grep needs to know about mmap are:
13813    * does it exist and is it safe to write into the mmap'd area
13814    * how to use it (BSD variants)  */
13815
13816 #include <fcntl.h>
13817 #include <sys/mman.h>
13818
13819 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13820 char *malloc ();
13821 #endif
13822
13823 /* This mess was copied from the GNU getpagesize.h.  */
13824 #ifndef HAVE_GETPAGESIZE
13825 # ifdef _SC_PAGESIZE
13826 #  define getpagesize() sysconf(_SC_PAGESIZE)
13827 # else /* no _SC_PAGESIZE */
13828 #  ifdef HAVE_SYS_PARAM_H
13829 #   include <sys/param.h>
13830 #   ifdef EXEC_PAGESIZE
13831 #    define getpagesize() EXEC_PAGESIZE
13832 #   else /* no EXEC_PAGESIZE */
13833 #    ifdef NBPG
13834 #     define getpagesize() NBPG * CLSIZE
13835 #     ifndef CLSIZE
13836 #      define CLSIZE 1
13837 #     endif /* no CLSIZE */
13838 #    else /* no NBPG */
13839 #     ifdef NBPC
13840 #      define getpagesize() NBPC
13841 #     else /* no NBPC */
13842 #      ifdef PAGESIZE
13843 #       define getpagesize() PAGESIZE
13844 #      endif /* PAGESIZE */
13845 #     endif /* no NBPC */
13846 #    endif /* no NBPG */
13847 #   endif /* no EXEC_PAGESIZE */
13848 #  else /* no HAVE_SYS_PARAM_H */
13849 #   define getpagesize() 8192   /* punt totally */
13850 #  endif /* no HAVE_SYS_PARAM_H */
13851 # endif /* no _SC_PAGESIZE */
13852
13853 #endif /* no HAVE_GETPAGESIZE */
13854
13855 int
13856 main ()
13857 {
13858   char *data, *data2, *data3;
13859   const char *cdata2;
13860   int i, pagesize;
13861   int fd, fd2;
13862
13863   pagesize = getpagesize ();
13864
13865   /* First, make a file with some known garbage in it. */
13866   data = (char *) malloc (pagesize);
13867   if (!data)
13868     return 1;
13869   for (i = 0; i < pagesize; ++i)
13870     *(data + i) = rand ();
13871   umask (0);
13872   fd = creat ("conftest.mmap", 0600);
13873   if (fd < 0)
13874     return 2;
13875   if (write (fd, data, pagesize) != pagesize)
13876     return 3;
13877   close (fd);
13878
13879   /* Next, check that the tail of a page is zero-filled.  File must have
13880      non-zero length, otherwise we risk SIGBUS for entire page.  */
13881   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13882   if (fd2 < 0)
13883     return 4;
13884   cdata2 = "";
13885   if (write (fd2, cdata2, 1) != 1)
13886     return 5;
13887   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13888   if (data2 == MAP_FAILED)
13889     return 6;
13890   for (i = 0; i < pagesize; ++i)
13891     if (*(data2 + i))
13892       return 7;
13893   close (fd2);
13894   if (munmap (data2, pagesize))
13895     return 8;
13896
13897   /* Next, try to mmap the file at a fixed address which already has
13898      something else allocated at it.  If we can, also make sure that
13899      we see the same garbage.  */
13900   fd = open ("conftest.mmap", O_RDWR);
13901   if (fd < 0)
13902     return 9;
13903   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13904                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
13905     return 10;
13906   for (i = 0; i < pagesize; ++i)
13907     if (*(data + i) != *(data2 + i))
13908       return 11;
13909
13910   /* Finally, make sure that changes to the mapped area do not
13911      percolate back to the file as seen by read().  (This is a bug on
13912      some variants of i386 svr4.0.)  */
13913   for (i = 0; i < pagesize; ++i)
13914     *(data2 + i) = *(data2 + i) + 1;
13915   data3 = (char *) malloc (pagesize);
13916   if (!data3)
13917     return 12;
13918   if (read (fd, data3, pagesize) != pagesize)
13919     return 13;
13920   for (i = 0; i < pagesize; ++i)
13921     if (*(data + i) != *(data3 + i))
13922       return 14;
13923   close (fd);
13924   return 0;
13925 }
13926 _ACEOF
13927 if ac_fn_c_try_run "$LINENO"; then :
13928   ac_cv_func_mmap_fixed_mapped=yes
13929 else
13930   ac_cv_func_mmap_fixed_mapped=no
13931 fi
13932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13933   conftest.$ac_objext conftest.beam conftest.$ac_ext
13934 fi
13935
13936 fi
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13938 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13939 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13940
13941 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13942
13943 fi
13944 rm -f conftest.mmap conftest.txt
13945
13946 for ac_header in vfork.h
13947 do :
13948   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13949 if test "x$ac_cv_header_vfork_h" = xyes; then :
13950   cat >>confdefs.h <<_ACEOF
13951 #define HAVE_VFORK_H 1
13952 _ACEOF
13953
13954 fi
13955
13956 done
13957
13958 for ac_func in fork vfork
13959 do :
13960   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13961 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13962 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13963   cat >>confdefs.h <<_ACEOF
13964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13965 _ACEOF
13966
13967 fi
13968 done
13969
13970 if test "x$ac_cv_func_fork" = xyes; then
13971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13972 $as_echo_n "checking for working fork... " >&6; }
13973 if ${ac_cv_func_fork_works+:} false; then :
13974   $as_echo_n "(cached) " >&6
13975 else
13976   if test "$cross_compiling" = yes; then :
13977   ac_cv_func_fork_works=cross
13978 else
13979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h.  */
13981 $ac_includes_default
13982 int
13983 main ()
13984 {
13985
13986           /* By Ruediger Kuhlmann. */
13987           return fork () < 0;
13988
13989   ;
13990   return 0;
13991 }
13992 _ACEOF
13993 if ac_fn_c_try_run "$LINENO"; then :
13994   ac_cv_func_fork_works=yes
13995 else
13996   ac_cv_func_fork_works=no
13997 fi
13998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13999   conftest.$ac_objext conftest.beam conftest.$ac_ext
14000 fi
14001
14002 fi
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14004 $as_echo "$ac_cv_func_fork_works" >&6; }
14005
14006 else
14007   ac_cv_func_fork_works=$ac_cv_func_fork
14008 fi
14009 if test "x$ac_cv_func_fork_works" = xcross; then
14010   case $host in
14011     *-*-amigaos* | *-*-msdosdjgpp*)
14012       # Override, as these systems have only a dummy fork() stub
14013       ac_cv_func_fork_works=no
14014       ;;
14015     *)
14016       ac_cv_func_fork_works=yes
14017       ;;
14018   esac
14019   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14020 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14021 fi
14022 ac_cv_func_vfork_works=$ac_cv_func_vfork
14023 if test "x$ac_cv_func_vfork" = xyes; then
14024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14025 $as_echo_n "checking for working vfork... " >&6; }
14026 if ${ac_cv_func_vfork_works+:} false; then :
14027   $as_echo_n "(cached) " >&6
14028 else
14029   if test "$cross_compiling" = yes; then :
14030   ac_cv_func_vfork_works=cross
14031 else
14032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h.  */
14034 /* Thanks to Paul Eggert for this test.  */
14035 $ac_includes_default
14036 #include <sys/wait.h>
14037 #ifdef HAVE_VFORK_H
14038 # include <vfork.h>
14039 #endif
14040 /* On some sparc systems, changes by the child to local and incoming
14041    argument registers are propagated back to the parent.  The compiler
14042    is told about this with #include <vfork.h>, but some compilers
14043    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14044    static variable whose address is put into a register that is
14045    clobbered by the vfork.  */
14046 static void
14047 #ifdef __cplusplus
14048 sparc_address_test (int arg)
14049 # else
14050 sparc_address_test (arg) int arg;
14051 #endif
14052 {
14053   static pid_t child;
14054   if (!child) {
14055     child = vfork ();
14056     if (child < 0) {
14057       perror ("vfork");
14058       _exit(2);
14059     }
14060     if (!child) {
14061       arg = getpid();
14062       write(-1, "", 0);
14063       _exit (arg);
14064     }
14065   }
14066 }
14067
14068 int
14069 main ()
14070 {
14071   pid_t parent = getpid ();
14072   pid_t child;
14073
14074   sparc_address_test (0);
14075
14076   child = vfork ();
14077
14078   if (child == 0) {
14079     /* Here is another test for sparc vfork register problems.  This
14080        test uses lots of local variables, at least as many local
14081        variables as main has allocated so far including compiler
14082        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14083        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14084        reuse the register of parent for one of the local variables,
14085        since it will think that parent can't possibly be used any more
14086        in this routine.  Assigning to the local variable will thus
14087        munge parent in the parent process.  */
14088     pid_t
14089       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14090       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14091     /* Convince the compiler that p..p7 are live; otherwise, it might
14092        use the same hardware register for all 8 local variables.  */
14093     if (p != p1 || p != p2 || p != p3 || p != p4
14094         || p != p5 || p != p6 || p != p7)
14095       _exit(1);
14096
14097     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14098        from child file descriptors.  If the child closes a descriptor
14099        before it execs or exits, this munges the parent's descriptor
14100        as well.  Test for this by closing stdout in the child.  */
14101     _exit(close(fileno(stdout)) != 0);
14102   } else {
14103     int status;
14104     struct stat st;
14105
14106     while (wait(&status) != child)
14107       ;
14108     return (
14109          /* Was there some problem with vforking?  */
14110          child < 0
14111
14112          /* Did the child fail?  (This shouldn't happen.)  */
14113          || status
14114
14115          /* Did the vfork/compiler bug occur?  */
14116          || parent != getpid()
14117
14118          /* Did the file descriptor bug occur?  */
14119          || fstat(fileno(stdout), &st) != 0
14120          );
14121   }
14122 }
14123 _ACEOF
14124 if ac_fn_c_try_run "$LINENO"; then :
14125   ac_cv_func_vfork_works=yes
14126 else
14127   ac_cv_func_vfork_works=no
14128 fi
14129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14130   conftest.$ac_objext conftest.beam conftest.$ac_ext
14131 fi
14132
14133 fi
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14135 $as_echo "$ac_cv_func_vfork_works" >&6; }
14136
14137 fi;
14138 if test "x$ac_cv_func_fork_works" = xcross; then
14139   ac_cv_func_vfork_works=$ac_cv_func_vfork
14140   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14141 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14142 fi
14143
14144 if test "x$ac_cv_func_vfork_works" = xyes; then
14145
14146 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14147
14148 else
14149
14150 $as_echo "#define vfork fork" >>confdefs.h
14151
14152 fi
14153 if test "x$ac_cv_func_fork_works" = xyes; then
14154
14155 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14156
14157 fi
14158
14159
14160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14161 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14162 if ${ac_cv_func_mbrtowc+:} false; then :
14163   $as_echo_n "(cached) " >&6
14164 else
14165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h.  */
14167 #include <wchar.h>
14168 int
14169 main ()
14170 {
14171 wchar_t wc;
14172               char const s[] = "";
14173               size_t n = 1;
14174               mbstate_t state;
14175               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14176   ;
14177   return 0;
14178 }
14179 _ACEOF
14180 if ac_fn_c_try_link "$LINENO"; then :
14181   ac_cv_func_mbrtowc=yes
14182 else
14183   ac_cv_func_mbrtowc=no
14184 fi
14185 rm -f core conftest.err conftest.$ac_objext \
14186     conftest$ac_exeext conftest.$ac_ext
14187 fi
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
14189 $as_echo "$ac_cv_func_mbrtowc" >&6; }
14190   if test $ac_cv_func_mbrtowc = yes; then
14191
14192 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
14193
14194   fi
14195
14196
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
14198 $as_echo_n "checking for gcc compiler warnings... " >&6; }
14199 # Check whether --enable-warnings was given.
14200 if test "${enable_warnings+set}" = set; then :
14201   enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
14202    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203 $as_echo "no" >&6; }
14204    WARNINGS=
14205 else
14206    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14207 $as_echo "yes" >&6; }
14208    WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14209        -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14210        -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14211        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14212 fi
14213 else
14214
14215 if test "$GCC" = yes; then
14216    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14217 $as_echo "yes" >&6; }
14218    WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14219        -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14220        -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14221        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14222 else
14223    WARNINGS=
14224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14226 fi
14227 fi
14228
14229
14230 for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem
14231 do :
14232   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14233 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14234 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14235   cat >>confdefs.h <<_ACEOF
14236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14237 _ACEOF
14238
14239 fi
14240 done
14241
14242
14243 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
14244 if test "x$ac_cv_func_getopt_long" = xyes; then :
14245   $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
14246
14247 else
14248   case " $LIBOBJS " in
14249   *" getopt_long.$ac_objext "* ) ;;
14250   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
14251  ;;
14252 esac
14253
14254 fi
14255
14256 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
14257 if test "x$ac_cv_func_asprintf" = xyes; then :
14258   $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
14259
14260 else
14261   case " $LIBOBJS " in
14262   *" asprintf.$ac_objext "* ) ;;
14263   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
14264  ;;
14265 esac
14266
14267 fi
14268
14269 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14270 if test "x$ac_cv_func_vasprintf" = xyes; then :
14271   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14272
14273 else
14274   case " $LIBOBJS " in
14275   *" vasprintf.$ac_objext "* ) ;;
14276   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14277  ;;
14278 esac
14279
14280 fi
14281
14282 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
14283 if test "x$ac_cv_func_strlcpy" = xyes; then :
14284   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
14285
14286 else
14287   case " $LIBOBJS " in
14288   *" strlcpy.$ac_objext "* ) ;;
14289   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
14290  ;;
14291 esac
14292
14293 fi
14294
14295 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
14296 if test "x$ac_cv_func_strlcat" = xyes; then :
14297   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
14298
14299 else
14300   case " $LIBOBJS " in
14301   *" strlcat.$ac_objext "* ) ;;
14302   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
14303  ;;
14304 esac
14305
14306 fi
14307
14308 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14309 if test "x$ac_cv_func_getline" = xyes; then :
14310   $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
14311
14312 else
14313   case " $LIBOBJS " in
14314   *" getline.$ac_objext "* ) ;;
14315   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14316  ;;
14317 esac
14318
14319 fi
14320
14321 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
14322 if test "x$ac_cv_func_ctime_r" = xyes; then :
14323   $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
14324
14325 else
14326   case " $LIBOBJS " in
14327   *" ctime_r.$ac_objext "* ) ;;
14328   *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
14329  ;;
14330 esac
14331
14332 fi
14333
14334 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
14335 if test "x$ac_cv_func_asctime_r" = xyes; then :
14336   $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
14337
14338 else
14339   case " $LIBOBJS " in
14340   *" asctime_r.$ac_objext "* ) ;;
14341   *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
14342  ;;
14343 esac
14344
14345 fi
14346
14347 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
14348 if test "x$ac_cv_func_localtime_r" = xyes; then :
14349   $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
14350
14351 else
14352   case " $LIBOBJS " in
14353   *" localtime_r.$ac_objext "* ) ;;
14354   *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
14355  ;;
14356 esac
14357
14358 fi
14359
14360 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
14361 if test "x$ac_cv_func_gmtime_r" = xyes; then :
14362   $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
14363
14364 else
14365   case " $LIBOBJS " in
14366   *" gmtime_r.$ac_objext "* ) ;;
14367   *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
14368  ;;
14369 esac
14370
14371 fi
14372
14373 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14374 if test "x$ac_cv_func_pread" = xyes; then :
14375   $as_echo "#define HAVE_PREAD 1" >>confdefs.h
14376
14377 else
14378   case " $LIBOBJS " in
14379   *" pread.$ac_objext "* ) ;;
14380   *) LIBOBJS="$LIBOBJS pread.$ac_objext"
14381  ;;
14382 esac
14383
14384 fi
14385
14386 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14387 if test "x$ac_cv_func_strcasestr" = xyes; then :
14388   $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
14389
14390 else
14391   case " $LIBOBJS " in
14392   *" strcasestr.$ac_objext "* ) ;;
14393   *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
14394  ;;
14395 esac
14396
14397 fi
14398
14399 ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
14400 if test "x$ac_cv_func_fmtcheck" = xyes; then :
14401   $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
14402
14403 else
14404   case " $LIBOBJS " in
14405   *" fmtcheck.$ac_objext "* ) ;;
14406   *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
14407  ;;
14408 esac
14409
14410 fi
14411
14412 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
14413 if test "x$ac_cv_func_dprintf" = xyes; then :
14414   $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
14415
14416 else
14417   case " $LIBOBJS " in
14418   *" dprintf.$ac_objext "* ) ;;
14419   *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
14420  ;;
14421 esac
14422
14423 fi
14424
14425
14426
14427 if test "$enable_zlib" != "no"; then
14428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
14429 $as_echo_n "checking for gzopen in -lz... " >&6; }
14430 if ${ac_cv_lib_z_gzopen+:} false; then :
14431   $as_echo_n "(cached) " >&6
14432 else
14433   ac_check_lib_save_LIBS=$LIBS
14434 LIBS="-lz  $LIBS"
14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436 /* end confdefs.h.  */
14437
14438 /* Override any GCC internal prototype to avoid an error.
14439    Use char because int might match the return type of a GCC
14440    builtin and then its argument prototype would still apply.  */
14441 #ifdef __cplusplus
14442 extern "C"
14443 #endif
14444 char gzopen ();
14445 int
14446 main ()
14447 {
14448 return gzopen ();
14449   ;
14450   return 0;
14451 }
14452 _ACEOF
14453 if ac_fn_c_try_link "$LINENO"; then :
14454   ac_cv_lib_z_gzopen=yes
14455 else
14456   ac_cv_lib_z_gzopen=no
14457 fi
14458 rm -f core conftest.err conftest.$ac_objext \
14459     conftest$ac_exeext conftest.$ac_ext
14460 LIBS=$ac_check_lib_save_LIBS
14461 fi
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
14463 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
14464 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
14465   cat >>confdefs.h <<_ACEOF
14466 #define HAVE_LIBZ 1
14467 _ACEOF
14468
14469   LIBS="-lz $LIBS"
14470
14471 fi
14472
14473 fi
14474 if test "$enable_libseccomp" != "no"; then
14475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
14476 $as_echo_n "checking for seccomp_init in -lseccomp... " >&6; }
14477 if ${ac_cv_lib_seccomp_seccomp_init+:} false; then :
14478   $as_echo_n "(cached) " >&6
14479 else
14480   ac_check_lib_save_LIBS=$LIBS
14481 LIBS="-lseccomp  $LIBS"
14482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14483 /* end confdefs.h.  */
14484
14485 /* Override any GCC internal prototype to avoid an error.
14486    Use char because int might match the return type of a GCC
14487    builtin and then its argument prototype would still apply.  */
14488 #ifdef __cplusplus
14489 extern "C"
14490 #endif
14491 char seccomp_init ();
14492 int
14493 main ()
14494 {
14495 return seccomp_init ();
14496   ;
14497   return 0;
14498 }
14499 _ACEOF
14500 if ac_fn_c_try_link "$LINENO"; then :
14501   ac_cv_lib_seccomp_seccomp_init=yes
14502 else
14503   ac_cv_lib_seccomp_seccomp_init=no
14504 fi
14505 rm -f core conftest.err conftest.$ac_objext \
14506     conftest$ac_exeext conftest.$ac_ext
14507 LIBS=$ac_check_lib_save_LIBS
14508 fi
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
14510 $as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; }
14511 if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then :
14512   cat >>confdefs.h <<_ACEOF
14513 #define HAVE_LIBSECCOMP 1
14514 _ACEOF
14515
14516   LIBS="-lseccomp $LIBS"
14517
14518 fi
14519
14520 fi
14521 if test "$MINGW" = 1; then
14522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
14523 $as_echo_n "checking for regexec in -lgnurx... " >&6; }
14524 if ${ac_cv_lib_gnurx_regexec+:} false; then :
14525   $as_echo_n "(cached) " >&6
14526 else
14527   ac_check_lib_save_LIBS=$LIBS
14528 LIBS="-lgnurx  $LIBS"
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h.  */
14531
14532 /* Override any GCC internal prototype to avoid an error.
14533    Use char because int might match the return type of a GCC
14534    builtin and then its argument prototype would still apply.  */
14535 #ifdef __cplusplus
14536 extern "C"
14537 #endif
14538 char regexec ();
14539 int
14540 main ()
14541 {
14542 return regexec ();
14543   ;
14544   return 0;
14545 }
14546 _ACEOF
14547 if ac_fn_c_try_link "$LINENO"; then :
14548   ac_cv_lib_gnurx_regexec=yes
14549 else
14550   ac_cv_lib_gnurx_regexec=no
14551 fi
14552 rm -f core conftest.err conftest.$ac_objext \
14553     conftest$ac_exeext conftest.$ac_ext
14554 LIBS=$ac_check_lib_save_LIBS
14555 fi
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
14557 $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
14558 if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
14559   cat >>confdefs.h <<_ACEOF
14560 #define HAVE_LIBGNURX 1
14561 _ACEOF
14562
14563   LIBS="-lgnurx $LIBS"
14564
14565 else
14566   as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
14567 fi
14568
14569 fi
14570
14571  if test "$cross_compiling" = yes; then
14572   IS_CROSS_COMPILE_TRUE=
14573   IS_CROSS_COMPILE_FALSE='#'
14574 else
14575   IS_CROSS_COMPILE_TRUE='#'
14576   IS_CROSS_COMPILE_FALSE=
14577 fi
14578
14579
14580 if test "$enable_zlib" = "yes"; then
14581   if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
14582     as_fn_error $? "zlib support requested but not found" "$LINENO" 5
14583   fi
14584 fi
14585 if  test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
14586
14587 $as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
14588
14589 fi
14590
14591 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
14592
14593 cat >confcache <<\_ACEOF
14594 # This file is a shell script that caches the results of configure
14595 # tests run on this system so they can be shared between configure
14596 # scripts and configure runs, see configure's option --config-cache.
14597 # It is not useful on other systems.  If it contains results you don't
14598 # want to keep, you may remove or edit it.
14599 #
14600 # config.status only pays attention to the cache file if you give it
14601 # the --recheck option to rerun configure.
14602 #
14603 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14604 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14605 # following values.
14606
14607 _ACEOF
14608
14609 # The following way of writing the cache mishandles newlines in values,
14610 # but we know of no workaround that is simple, portable, and efficient.
14611 # So, we kill variables containing newlines.
14612 # Ultrix sh set writes to stderr and can't be redirected directly,
14613 # and sets the high bit in the cache file unless we assign to the vars.
14614 (
14615   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14616     eval ac_val=\$$ac_var
14617     case $ac_val in #(
14618     *${as_nl}*)
14619       case $ac_var in #(
14620       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14621 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14622       esac
14623       case $ac_var in #(
14624       _ | IFS | as_nl) ;; #(
14625       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14626       *) { eval $ac_var=; unset $ac_var;} ;;
14627       esac ;;
14628     esac
14629   done
14630
14631   (set) 2>&1 |
14632     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14633     *${as_nl}ac_space=\ *)
14634       # `set' does not quote correctly, so add quotes: double-quote
14635       # substitution turns \\\\ into \\, and sed turns \\ into \.
14636       sed -n \
14637         "s/'/'\\\\''/g;
14638           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14639       ;; #(
14640     *)
14641       # `set' quotes correctly as required by POSIX, so do not add quotes.
14642       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14643       ;;
14644     esac |
14645     sort
14646 ) |
14647   sed '
14648      /^ac_cv_env_/b end
14649      t clear
14650      :clear
14651      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14652      t end
14653      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14654      :end' >>confcache
14655 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14656   if test -w "$cache_file"; then
14657     if test "x$cache_file" != "x/dev/null"; then
14658       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14659 $as_echo "$as_me: updating cache $cache_file" >&6;}
14660       if test ! -f "$cache_file" || test -h "$cache_file"; then
14661         cat confcache >"$cache_file"
14662       else
14663         case $cache_file in #(
14664         */* | ?:*)
14665           mv -f confcache "$cache_file"$$ &&
14666           mv -f "$cache_file"$$ "$cache_file" ;; #(
14667         *)
14668           mv -f confcache "$cache_file" ;;
14669         esac
14670       fi
14671     fi
14672   else
14673     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14674 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14675   fi
14676 fi
14677 rm -f confcache
14678
14679 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14680 # Let make expand exec_prefix.
14681 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14682
14683 DEFS=-DHAVE_CONFIG_H
14684
14685 ac_libobjs=
14686 ac_ltlibobjs=
14687 U=
14688 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14689   # 1. Remove the extension, and $U if already installed.
14690   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14691   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14692   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14693   #    will be set to the directory where LIBOBJS objects are built.
14694   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14695   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14696 done
14697 LIBOBJS=$ac_libobjs
14698
14699 LTLIBOBJS=$ac_ltlibobjs
14700
14701
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14703 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14704    if test -n "$am_sleep_pid"; then
14705      # Hide warnings about reused PIDs.
14706      wait $am_sleep_pid 2>/dev/null
14707    fi
14708    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14709 $as_echo "done" >&6; }
14710  if test -n "$EXEEXT"; then
14711   am__EXEEXT_TRUE=
14712   am__EXEEXT_FALSE='#'
14713 else
14714   am__EXEEXT_TRUE='#'
14715   am__EXEEXT_FALSE=
14716 fi
14717
14718 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14719   as_fn_error $? "conditional \"MINGW\" was never defined.
14720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14721 fi
14722 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
14723   as_fn_error $? "conditional \"FSECT5\" was never defined.
14724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14725 fi
14726 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14727   as_fn_error $? "conditional \"AMDEP\" was never defined.
14728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14729 fi
14730 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14731   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14733 fi
14734
14735 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
14736   as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
14737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14738 fi
14739
14740 : "${CONFIG_STATUS=./config.status}"
14741 ac_write_fail=0
14742 ac_clean_files_save=$ac_clean_files
14743 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14745 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14746 as_write_fail=0
14747 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14748 #! $SHELL
14749 # Generated by $as_me.
14750 # Run this file to recreate the current configuration.
14751 # Compiler output produced by configure, useful for debugging
14752 # configure, is in config.log if it exists.
14753
14754 debug=false
14755 ac_cs_recheck=false
14756 ac_cs_silent=false
14757
14758 SHELL=\${CONFIG_SHELL-$SHELL}
14759 export SHELL
14760 _ASEOF
14761 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14762 ## -------------------- ##
14763 ## M4sh Initialization. ##
14764 ## -------------------- ##
14765
14766 # Be more Bourne compatible
14767 DUALCASE=1; export DUALCASE # for MKS sh
14768 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14769   emulate sh
14770   NULLCMD=:
14771   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14772   # is contrary to our usage.  Disable this feature.
14773   alias -g '${1+"$@"}'='"$@"'
14774   setopt NO_GLOB_SUBST
14775 else
14776   case `(set -o) 2>/dev/null` in #(
14777   *posix*) :
14778     set -o posix ;; #(
14779   *) :
14780      ;;
14781 esac
14782 fi
14783
14784
14785 as_nl='
14786 '
14787 export as_nl
14788 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14789 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14790 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14791 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14792 # Prefer a ksh shell builtin over an external printf program on Solaris,
14793 # but without wasting forks for bash or zsh.
14794 if test -z "$BASH_VERSION$ZSH_VERSION" \
14795     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14796   as_echo='print -r --'
14797   as_echo_n='print -rn --'
14798 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14799   as_echo='printf %s\n'
14800   as_echo_n='printf %s'
14801 else
14802   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14803     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14804     as_echo_n='/usr/ucb/echo -n'
14805   else
14806     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14807     as_echo_n_body='eval
14808       arg=$1;
14809       case $arg in #(
14810       *"$as_nl"*)
14811         expr "X$arg" : "X\\(.*\\)$as_nl";
14812         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14813       esac;
14814       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14815     '
14816     export as_echo_n_body
14817     as_echo_n='sh -c $as_echo_n_body as_echo'
14818   fi
14819   export as_echo_body
14820   as_echo='sh -c $as_echo_body as_echo'
14821 fi
14822
14823 # The user is always right.
14824 if test "${PATH_SEPARATOR+set}" != set; then
14825   PATH_SEPARATOR=:
14826   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14827     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14828       PATH_SEPARATOR=';'
14829   }
14830 fi
14831
14832
14833 # IFS
14834 # We need space, tab and new line, in precisely that order.  Quoting is
14835 # there to prevent editors from complaining about space-tab.
14836 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14837 # splitting by setting IFS to empty value.)
14838 IFS=" ""        $as_nl"
14839
14840 # Find who we are.  Look in the path if we contain no directory separator.
14841 as_myself=
14842 case $0 in #((
14843   *[\\/]* ) as_myself=$0 ;;
14844   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14845 for as_dir in $PATH
14846 do
14847   IFS=$as_save_IFS
14848   test -z "$as_dir" && as_dir=.
14849     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14850   done
14851 IFS=$as_save_IFS
14852
14853      ;;
14854 esac
14855 # We did not find ourselves, most probably we were run as `sh COMMAND'
14856 # in which case we are not to be found in the path.
14857 if test "x$as_myself" = x; then
14858   as_myself=$0
14859 fi
14860 if test ! -f "$as_myself"; then
14861   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14862   exit 1
14863 fi
14864
14865 # Unset variables that we do not need and which cause bugs (e.g. in
14866 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14867 # suppresses any "Segmentation fault" message there.  '((' could
14868 # trigger a bug in pdksh 5.2.14.
14869 for as_var in BASH_ENV ENV MAIL MAILPATH
14870 do eval test x\${$as_var+set} = xset \
14871   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14872 done
14873 PS1='$ '
14874 PS2='> '
14875 PS4='+ '
14876
14877 # NLS nuisances.
14878 LC_ALL=C
14879 export LC_ALL
14880 LANGUAGE=C
14881 export LANGUAGE
14882
14883 # CDPATH.
14884 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14885
14886
14887 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14888 # ----------------------------------------
14889 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14890 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14891 # script with STATUS, using 1 if that was 0.
14892 as_fn_error ()
14893 {
14894   as_status=$1; test $as_status -eq 0 && as_status=1
14895   if test "$4"; then
14896     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14897     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14898   fi
14899   $as_echo "$as_me: error: $2" >&2
14900   as_fn_exit $as_status
14901 } # as_fn_error
14902
14903
14904 # as_fn_set_status STATUS
14905 # -----------------------
14906 # Set $? to STATUS, without forking.
14907 as_fn_set_status ()
14908 {
14909   return $1
14910 } # as_fn_set_status
14911
14912 # as_fn_exit STATUS
14913 # -----------------
14914 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14915 as_fn_exit ()
14916 {
14917   set +e
14918   as_fn_set_status $1
14919   exit $1
14920 } # as_fn_exit
14921
14922 # as_fn_unset VAR
14923 # ---------------
14924 # Portably unset VAR.
14925 as_fn_unset ()
14926 {
14927   { eval $1=; unset $1;}
14928 }
14929 as_unset=as_fn_unset
14930 # as_fn_append VAR VALUE
14931 # ----------------------
14932 # Append the text in VALUE to the end of the definition contained in VAR. Take
14933 # advantage of any shell optimizations that allow amortized linear growth over
14934 # repeated appends, instead of the typical quadratic growth present in naive
14935 # implementations.
14936 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14937   eval 'as_fn_append ()
14938   {
14939     eval $1+=\$2
14940   }'
14941 else
14942   as_fn_append ()
14943   {
14944     eval $1=\$$1\$2
14945   }
14946 fi # as_fn_append
14947
14948 # as_fn_arith ARG...
14949 # ------------------
14950 # Perform arithmetic evaluation on the ARGs, and store the result in the
14951 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14952 # must be portable across $(()) and expr.
14953 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14954   eval 'as_fn_arith ()
14955   {
14956     as_val=$(( $* ))
14957   }'
14958 else
14959   as_fn_arith ()
14960   {
14961     as_val=`expr "$@" || test $? -eq 1`
14962   }
14963 fi # as_fn_arith
14964
14965
14966 if expr a : '\(a\)' >/dev/null 2>&1 &&
14967    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14968   as_expr=expr
14969 else
14970   as_expr=false
14971 fi
14972
14973 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14974   as_basename=basename
14975 else
14976   as_basename=false
14977 fi
14978
14979 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14980   as_dirname=dirname
14981 else
14982   as_dirname=false
14983 fi
14984
14985 as_me=`$as_basename -- "$0" ||
14986 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14987          X"$0" : 'X\(//\)$' \| \
14988          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14989 $as_echo X/"$0" |
14990     sed '/^.*\/\([^/][^/]*\)\/*$/{
14991             s//\1/
14992             q
14993           }
14994           /^X\/\(\/\/\)$/{
14995             s//\1/
14996             q
14997           }
14998           /^X\/\(\/\).*/{
14999             s//\1/
15000             q
15001           }
15002           s/.*/./; q'`
15003
15004 # Avoid depending upon Character Ranges.
15005 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15006 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15007 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15008 as_cr_digits='0123456789'
15009 as_cr_alnum=$as_cr_Letters$as_cr_digits
15010
15011 ECHO_C= ECHO_N= ECHO_T=
15012 case `echo -n x` in #(((((
15013 -n*)
15014   case `echo 'xy\c'` in
15015   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15016   xy)  ECHO_C='\c';;
15017   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15018        ECHO_T=' ';;
15019   esac;;
15020 *)
15021   ECHO_N='-n';;
15022 esac
15023
15024 rm -f conf$$ conf$$.exe conf$$.file
15025 if test -d conf$$.dir; then
15026   rm -f conf$$.dir/conf$$.file
15027 else
15028   rm -f conf$$.dir
15029   mkdir conf$$.dir 2>/dev/null
15030 fi
15031 if (echo >conf$$.file) 2>/dev/null; then
15032   if ln -s conf$$.file conf$$ 2>/dev/null; then
15033     as_ln_s='ln -s'
15034     # ... but there are two gotchas:
15035     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15036     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15037     # In both cases, we have to default to `cp -pR'.
15038     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15039       as_ln_s='cp -pR'
15040   elif ln conf$$.file conf$$ 2>/dev/null; then
15041     as_ln_s=ln
15042   else
15043     as_ln_s='cp -pR'
15044   fi
15045 else
15046   as_ln_s='cp -pR'
15047 fi
15048 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15049 rmdir conf$$.dir 2>/dev/null
15050
15051
15052 # as_fn_mkdir_p
15053 # -------------
15054 # Create "$as_dir" as a directory, including parents if necessary.
15055 as_fn_mkdir_p ()
15056 {
15057
15058   case $as_dir in #(
15059   -*) as_dir=./$as_dir;;
15060   esac
15061   test -d "$as_dir" || eval $as_mkdir_p || {
15062     as_dirs=
15063     while :; do
15064       case $as_dir in #(
15065       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15066       *) as_qdir=$as_dir;;
15067       esac
15068       as_dirs="'$as_qdir' $as_dirs"
15069       as_dir=`$as_dirname -- "$as_dir" ||
15070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15071          X"$as_dir" : 'X\(//\)[^/]' \| \
15072          X"$as_dir" : 'X\(//\)$' \| \
15073          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15074 $as_echo X"$as_dir" |
15075     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15076             s//\1/
15077             q
15078           }
15079           /^X\(\/\/\)[^/].*/{
15080             s//\1/
15081             q
15082           }
15083           /^X\(\/\/\)$/{
15084             s//\1/
15085             q
15086           }
15087           /^X\(\/\).*/{
15088             s//\1/
15089             q
15090           }
15091           s/.*/./; q'`
15092       test -d "$as_dir" && break
15093     done
15094     test -z "$as_dirs" || eval "mkdir $as_dirs"
15095   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15096
15097
15098 } # as_fn_mkdir_p
15099 if mkdir -p . 2>/dev/null; then
15100   as_mkdir_p='mkdir -p "$as_dir"'
15101 else
15102   test -d ./-p && rmdir ./-p
15103   as_mkdir_p=false
15104 fi
15105
15106
15107 # as_fn_executable_p FILE
15108 # -----------------------
15109 # Test if FILE is an executable regular file.
15110 as_fn_executable_p ()
15111 {
15112   test -f "$1" && test -x "$1"
15113 } # as_fn_executable_p
15114 as_test_x='test -x'
15115 as_executable_p=as_fn_executable_p
15116
15117 # Sed expression to map a string onto a valid CPP name.
15118 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15119
15120 # Sed expression to map a string onto a valid variable name.
15121 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15122
15123
15124 exec 6>&1
15125 ## ----------------------------------- ##
15126 ## Main body of $CONFIG_STATUS script. ##
15127 ## ----------------------------------- ##
15128 _ASEOF
15129 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15130
15131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15132 # Save the log message, to keep $0 and so on meaningful, and to
15133 # report actual input values of CONFIG_FILES etc. instead of their
15134 # values after options handling.
15135 ac_log="
15136 This file was extended by file $as_me 5.37, which was
15137 generated by GNU Autoconf 2.69.  Invocation command line was
15138
15139   CONFIG_FILES    = $CONFIG_FILES
15140   CONFIG_HEADERS  = $CONFIG_HEADERS
15141   CONFIG_LINKS    = $CONFIG_LINKS
15142   CONFIG_COMMANDS = $CONFIG_COMMANDS
15143   $ $0 $@
15144
15145 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15146 "
15147
15148 _ACEOF
15149
15150 case $ac_config_files in *"
15151 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15152 esac
15153
15154 case $ac_config_headers in *"
15155 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15156 esac
15157
15158
15159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15160 # Files that config.status was made for.
15161 config_files="$ac_config_files"
15162 config_headers="$ac_config_headers"
15163 config_commands="$ac_config_commands"
15164
15165 _ACEOF
15166
15167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168 ac_cs_usage="\
15169 \`$as_me' instantiates files and other configuration actions
15170 from templates according to the current configuration.  Unless the files
15171 and actions are specified as TAGs, all are instantiated by default.
15172
15173 Usage: $0 [OPTION]... [TAG]...
15174
15175   -h, --help       print this help, then exit
15176   -V, --version    print version number and configuration settings, then exit
15177       --config     print configuration, then exit
15178   -q, --quiet, --silent
15179                    do not print progress messages
15180   -d, --debug      don't remove temporary files
15181       --recheck    update $as_me by reconfiguring in the same conditions
15182       --file=FILE[:TEMPLATE]
15183                    instantiate the configuration file FILE
15184       --header=FILE[:TEMPLATE]
15185                    instantiate the configuration header FILE
15186
15187 Configuration files:
15188 $config_files
15189
15190 Configuration headers:
15191 $config_headers
15192
15193 Configuration commands:
15194 $config_commands
15195
15196 Report bugs to <christos@astron.com>."
15197
15198 _ACEOF
15199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15200 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15201 ac_cs_version="\\
15202 file config.status 5.37
15203 configured by $0, generated by GNU Autoconf 2.69,
15204   with options \\"\$ac_cs_config\\"
15205
15206 Copyright (C) 2012 Free Software Foundation, Inc.
15207 This config.status script is free software; the Free Software Foundation
15208 gives unlimited permission to copy, distribute and modify it."
15209
15210 ac_pwd='$ac_pwd'
15211 srcdir='$srcdir'
15212 INSTALL='$INSTALL'
15213 MKDIR_P='$MKDIR_P'
15214 AWK='$AWK'
15215 test -n "\$AWK" || AWK=awk
15216 _ACEOF
15217
15218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15219 # The default lists apply if the user does not specify any file.
15220 ac_need_defaults=:
15221 while test $# != 0
15222 do
15223   case $1 in
15224   --*=?*)
15225     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15226     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15227     ac_shift=:
15228     ;;
15229   --*=)
15230     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15231     ac_optarg=
15232     ac_shift=:
15233     ;;
15234   *)
15235     ac_option=$1
15236     ac_optarg=$2
15237     ac_shift=shift
15238     ;;
15239   esac
15240
15241   case $ac_option in
15242   # Handling of the options.
15243   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15244     ac_cs_recheck=: ;;
15245   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15246     $as_echo "$ac_cs_version"; exit ;;
15247   --config | --confi | --conf | --con | --co | --c )
15248     $as_echo "$ac_cs_config"; exit ;;
15249   --debug | --debu | --deb | --de | --d | -d )
15250     debug=: ;;
15251   --file | --fil | --fi | --f )
15252     $ac_shift
15253     case $ac_optarg in
15254     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15255     '') as_fn_error $? "missing file argument" ;;
15256     esac
15257     as_fn_append CONFIG_FILES " '$ac_optarg'"
15258     ac_need_defaults=false;;
15259   --header | --heade | --head | --hea )
15260     $ac_shift
15261     case $ac_optarg in
15262     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15263     esac
15264     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15265     ac_need_defaults=false;;
15266   --he | --h)
15267     # Conflict between --help and --header
15268     as_fn_error $? "ambiguous option: \`$1'
15269 Try \`$0 --help' for more information.";;
15270   --help | --hel | -h )
15271     $as_echo "$ac_cs_usage"; exit ;;
15272   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15273   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15274     ac_cs_silent=: ;;
15275
15276   # This is an error.
15277   -*) as_fn_error $? "unrecognized option: \`$1'
15278 Try \`$0 --help' for more information." ;;
15279
15280   *) as_fn_append ac_config_targets " $1"
15281      ac_need_defaults=false ;;
15282
15283   esac
15284   shift
15285 done
15286
15287 ac_configure_extra_args=
15288
15289 if $ac_cs_silent; then
15290   exec 6>/dev/null
15291   ac_configure_extra_args="$ac_configure_extra_args --silent"
15292 fi
15293
15294 _ACEOF
15295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15296 if \$ac_cs_recheck; then
15297   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15298   shift
15299   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15300   CONFIG_SHELL='$SHELL'
15301   export CONFIG_SHELL
15302   exec "\$@"
15303 fi
15304
15305 _ACEOF
15306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15307 exec 5>>config.log
15308 {
15309   echo
15310   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15311 ## Running $as_me. ##
15312 _ASBOX
15313   $as_echo "$ac_log"
15314 } >&5
15315
15316 _ACEOF
15317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15318 #
15319 # INIT-COMMANDS
15320 #
15321 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15322
15323
15324 # The HP-UX ksh and POSIX shell print the target directory to stdout
15325 # if CDPATH is set.
15326 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15327
15328 sed_quote_subst='$sed_quote_subst'
15329 double_quote_subst='$double_quote_subst'
15330 delay_variable_subst='$delay_variable_subst'
15331 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15332 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15333 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15334 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15335 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15336 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15337 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15338 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15339 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15340 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15341 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15342 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15343 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15344 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15345 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15346 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15347 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15348 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15349 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15350 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15351 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15352 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15353 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15354 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15355 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15356 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15357 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15358 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15359 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15360 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15361 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15362 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15363 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15364 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15365 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15366 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15367 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15368 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15369 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15370 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15371 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15372 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15373 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15374 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15375 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15376 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15377 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15378 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15379 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15380 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15381 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15382 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15383 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15384 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15385 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15386 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15387 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"`'
15388 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15389 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15390 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15391 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15392 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15393 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15394 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15395 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15396 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15397 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15398 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15399 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15400 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15401 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15402 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15403 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15404 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15405 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15406 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15407 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15408 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15409 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15410 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15411 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15412 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15413 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15414 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15415 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15416 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15417 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15418 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15419 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15420 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15421 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15422 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15423 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15424 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15425 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15426 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15427 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15428 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15429 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15430 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15431 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15432 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15433 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15434 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15435 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15436 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15437 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15438 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15439 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15440 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15441 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15442 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15443 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15444 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15445 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15446 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15447 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15448 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15449 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15450 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15451 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15452 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15453 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15454 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15455 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15456 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15457 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15458 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15459 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15460 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15461
15462 LTCC='$LTCC'
15463 LTCFLAGS='$LTCFLAGS'
15464 compiler='$compiler_DEFAULT'
15465
15466 # A function that is used when there is no print builtin or printf.
15467 func_fallback_echo ()
15468 {
15469   eval 'cat <<_LTECHO_EOF
15470 \$1
15471 _LTECHO_EOF'
15472 }
15473
15474 # Quote evaled strings.
15475 for var in SHELL \
15476 ECHO \
15477 PATH_SEPARATOR \
15478 SED \
15479 GREP \
15480 EGREP \
15481 FGREP \
15482 LD \
15483 NM \
15484 LN_S \
15485 lt_SP2NL \
15486 lt_NL2SP \
15487 reload_flag \
15488 OBJDUMP \
15489 deplibs_check_method \
15490 file_magic_cmd \
15491 file_magic_glob \
15492 want_nocaseglob \
15493 DLLTOOL \
15494 sharedlib_from_linklib_cmd \
15495 AR \
15496 AR_FLAGS \
15497 archiver_list_spec \
15498 STRIP \
15499 RANLIB \
15500 CC \
15501 CFLAGS \
15502 compiler \
15503 lt_cv_sys_global_symbol_pipe \
15504 lt_cv_sys_global_symbol_to_cdecl \
15505 lt_cv_sys_global_symbol_to_c_name_address \
15506 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15507 nm_file_list_spec \
15508 lt_prog_compiler_no_builtin_flag \
15509 lt_prog_compiler_pic \
15510 lt_prog_compiler_wl \
15511 lt_prog_compiler_static \
15512 lt_cv_prog_compiler_c_o \
15513 need_locks \
15514 MANIFEST_TOOL \
15515 DSYMUTIL \
15516 NMEDIT \
15517 LIPO \
15518 OTOOL \
15519 OTOOL64 \
15520 shrext_cmds \
15521 export_dynamic_flag_spec \
15522 whole_archive_flag_spec \
15523 compiler_needs_object \
15524 with_gnu_ld \
15525 allow_undefined_flag \
15526 no_undefined_flag \
15527 hardcode_libdir_flag_spec \
15528 hardcode_libdir_separator \
15529 exclude_expsyms \
15530 include_expsyms \
15531 file_list_spec \
15532 variables_saved_for_relink \
15533 libname_spec \
15534 library_names_spec \
15535 soname_spec \
15536 install_override_mode \
15537 finish_eval \
15538 old_striplib \
15539 striplib; do
15540     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15541     *[\\\\\\\`\\"\\\$]*)
15542       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15543       ;;
15544     *)
15545       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15546       ;;
15547     esac
15548 done
15549
15550 # Double-quote double-evaled strings.
15551 for var in reload_cmds \
15552 old_postinstall_cmds \
15553 old_postuninstall_cmds \
15554 old_archive_cmds \
15555 extract_expsyms_cmds \
15556 old_archive_from_new_cmds \
15557 old_archive_from_expsyms_cmds \
15558 archive_cmds \
15559 archive_expsym_cmds \
15560 module_cmds \
15561 module_expsym_cmds \
15562 export_symbols_cmds \
15563 prelink_cmds \
15564 postlink_cmds \
15565 postinstall_cmds \
15566 postuninstall_cmds \
15567 finish_cmds \
15568 sys_lib_search_path_spec \
15569 sys_lib_dlsearch_path_spec; do
15570     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15571     *[\\\\\\\`\\"\\\$]*)
15572       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15573       ;;
15574     *)
15575       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15576       ;;
15577     esac
15578 done
15579
15580 ac_aux_dir='$ac_aux_dir'
15581 xsi_shell='$xsi_shell'
15582 lt_shell_append='$lt_shell_append'
15583
15584 # See if we are running on zsh, and set the options which allow our
15585 # commands through without removal of \ escapes INIT.
15586 if test -n "\${ZSH_VERSION+set}" ; then
15587    setopt NO_GLOB_SUBST
15588 fi
15589
15590
15591     PACKAGE='$PACKAGE'
15592     VERSION='$VERSION'
15593     TIMESTAMP='$TIMESTAMP'
15594     RM='$RM'
15595     ofile='$ofile'
15596
15597
15598
15599
15600 _ACEOF
15601
15602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15603
15604 # Handling of arguments.
15605 for ac_config_target in $ac_config_targets
15606 do
15607   case $ac_config_target in
15608     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15609     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15610     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15611     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15612     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15613     "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
15614     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15615     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15616     "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15617
15618   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15619   esac
15620 done
15621
15622
15623 # If the user did not use the arguments to specify the items to instantiate,
15624 # then the envvar interface is used.  Set only those that are not.
15625 # We use the long form for the default assignment because of an extremely
15626 # bizarre bug on SunOS 4.1.3.
15627 if $ac_need_defaults; then
15628   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15629   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15630   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15631 fi
15632
15633 # Have a temporary directory for convenience.  Make it in the build tree
15634 # simply because there is no reason against having it here, and in addition,
15635 # creating and moving files from /tmp can sometimes cause problems.
15636 # Hook for its removal unless debugging.
15637 # Note that there is a small window in which the directory will not be cleaned:
15638 # after its creation but before its name has been assigned to `$tmp'.
15639 $debug ||
15640 {
15641   tmp= ac_tmp=
15642   trap 'exit_status=$?
15643   : "${ac_tmp:=$tmp}"
15644   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15645 ' 0
15646   trap 'as_fn_exit 1' 1 2 13 15
15647 }
15648 # Create a (secure) tmp directory for tmp files.
15649
15650 {
15651   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15652   test -d "$tmp"
15653 }  ||
15654 {
15655   tmp=./conf$$-$RANDOM
15656   (umask 077 && mkdir "$tmp")
15657 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15658 ac_tmp=$tmp
15659
15660 # Set up the scripts for CONFIG_FILES section.
15661 # No need to generate them if there are no CONFIG_FILES.
15662 # This happens for instance with `./config.status config.h'.
15663 if test -n "$CONFIG_FILES"; then
15664
15665
15666 ac_cr=`echo X | tr X '\015'`
15667 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15668 # But we know of no other shell where ac_cr would be empty at this
15669 # point, so we can use a bashism as a fallback.
15670 if test "x$ac_cr" = x; then
15671   eval ac_cr=\$\'\\r\'
15672 fi
15673 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15674 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15675   ac_cs_awk_cr='\\r'
15676 else
15677   ac_cs_awk_cr=$ac_cr
15678 fi
15679
15680 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15681 _ACEOF
15682
15683
15684 {
15685   echo "cat >conf$$subs.awk <<_ACEOF" &&
15686   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15687   echo "_ACEOF"
15688 } >conf$$subs.sh ||
15689   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15690 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15691 ac_delim='%!_!# '
15692 for ac_last_try in false false false false false :; do
15693   . ./conf$$subs.sh ||
15694     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15695
15696   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15697   if test $ac_delim_n = $ac_delim_num; then
15698     break
15699   elif $ac_last_try; then
15700     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15701   else
15702     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15703   fi
15704 done
15705 rm -f conf$$subs.sh
15706
15707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15708 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15709 _ACEOF
15710 sed -n '
15711 h
15712 s/^/S["/; s/!.*/"]=/
15713 p
15714 g
15715 s/^[^!]*!//
15716 :repl
15717 t repl
15718 s/'"$ac_delim"'$//
15719 t delim
15720 :nl
15721 h
15722 s/\(.\{148\}\)..*/\1/
15723 t more1
15724 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15725 p
15726 n
15727 b repl
15728 :more1
15729 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15730 p
15731 g
15732 s/.\{148\}//
15733 t nl
15734 :delim
15735 h
15736 s/\(.\{148\}\)..*/\1/
15737 t more2
15738 s/["\\]/\\&/g; s/^/"/; s/$/"/
15739 p
15740 b
15741 :more2
15742 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15743 p
15744 g
15745 s/.\{148\}//
15746 t delim
15747 ' <conf$$subs.awk | sed '
15748 /^[^""]/{
15749   N
15750   s/\n//
15751 }
15752 ' >>$CONFIG_STATUS || ac_write_fail=1
15753 rm -f conf$$subs.awk
15754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15755 _ACAWK
15756 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15757   for (key in S) S_is_set[key] = 1
15758   FS = "\a"
15759
15760 }
15761 {
15762   line = $ 0
15763   nfields = split(line, field, "@")
15764   substed = 0
15765   len = length(field[1])
15766   for (i = 2; i < nfields; i++) {
15767     key = field[i]
15768     keylen = length(key)
15769     if (S_is_set[key]) {
15770       value = S[key]
15771       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15772       len += length(value) + length(field[++i])
15773       substed = 1
15774     } else
15775       len += 1 + keylen
15776   }
15777
15778   print line
15779 }
15780
15781 _ACAWK
15782 _ACEOF
15783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15784 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15785   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15786 else
15787   cat
15788 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15789   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15790 _ACEOF
15791
15792 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15793 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15794 # trailing colons and then remove the whole line if VPATH becomes empty
15795 # (actually we leave an empty line to preserve line numbers).
15796 if test "x$srcdir" = x.; then
15797   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15798 h
15799 s///
15800 s/^/:/
15801 s/[      ]*$/:/
15802 s/:\$(srcdir):/:/g
15803 s/:\${srcdir}:/:/g
15804 s/:@srcdir@:/:/g
15805 s/^:*//
15806 s/:*$//
15807 x
15808 s/\(=[   ]*\).*/\1/
15809 G
15810 s/\n//
15811 s/^[^=]*=[       ]*$//
15812 }'
15813 fi
15814
15815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15816 fi # test -n "$CONFIG_FILES"
15817
15818 # Set up the scripts for CONFIG_HEADERS section.
15819 # No need to generate them if there are no CONFIG_HEADERS.
15820 # This happens for instance with `./config.status Makefile'.
15821 if test -n "$CONFIG_HEADERS"; then
15822 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15823 BEGIN {
15824 _ACEOF
15825
15826 # Transform confdefs.h into an awk script `defines.awk', embedded as
15827 # here-document in config.status, that substitutes the proper values into
15828 # config.h.in to produce config.h.
15829
15830 # Create a delimiter string that does not exist in confdefs.h, to ease
15831 # handling of long lines.
15832 ac_delim='%!_!# '
15833 for ac_last_try in false false :; do
15834   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15835   if test -z "$ac_tt"; then
15836     break
15837   elif $ac_last_try; then
15838     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15839   else
15840     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15841   fi
15842 done
15843
15844 # For the awk script, D is an array of macro values keyed by name,
15845 # likewise P contains macro parameters if any.  Preserve backslash
15846 # newline sequences.
15847
15848 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15849 sed -n '
15850 s/.\{148\}/&'"$ac_delim"'/g
15851 t rset
15852 :rset
15853 s/^[     ]*#[    ]*define[       ][      ]*/ /
15854 t def
15855 d
15856 :def
15857 s/\\$//
15858 t bsnl
15859 s/["\\]/\\&/g
15860 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15861 D["\1"]=" \3"/p
15862 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15863 d
15864 :bsnl
15865 s/["\\]/\\&/g
15866 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15867 D["\1"]=" \3\\\\\\n"\\/p
15868 t cont
15869 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15870 t cont
15871 d
15872 :cont
15873 n
15874 s/.\{148\}/&'"$ac_delim"'/g
15875 t clear
15876 :clear
15877 s/\\$//
15878 t bsnlc
15879 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15880 d
15881 :bsnlc
15882 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15883 b cont
15884 ' <confdefs.h | sed '
15885 s/'"$ac_delim"'/"\\\
15886 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15887
15888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15889   for (key in D) D_is_set[key] = 1
15890   FS = "\a"
15891 }
15892 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15893   line = \$ 0
15894   split(line, arg, " ")
15895   if (arg[1] == "#") {
15896     defundef = arg[2]
15897     mac1 = arg[3]
15898   } else {
15899     defundef = substr(arg[1], 2)
15900     mac1 = arg[2]
15901   }
15902   split(mac1, mac2, "(") #)
15903   macro = mac2[1]
15904   prefix = substr(line, 1, index(line, defundef) - 1)
15905   if (D_is_set[macro]) {
15906     # Preserve the white space surrounding the "#".
15907     print prefix "define", macro P[macro] D[macro]
15908     next
15909   } else {
15910     # Replace #undef with comments.  This is necessary, for example,
15911     # in the case of _POSIX_SOURCE, which is predefined and required
15912     # on some systems where configure will not decide to define it.
15913     if (defundef == "undef") {
15914       print "/*", prefix defundef, macro, "*/"
15915       next
15916     }
15917   }
15918 }
15919 { print }
15920 _ACAWK
15921 _ACEOF
15922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15923   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15924 fi # test -n "$CONFIG_HEADERS"
15925
15926
15927 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15928 shift
15929 for ac_tag
15930 do
15931   case $ac_tag in
15932   :[FHLC]) ac_mode=$ac_tag; continue;;
15933   esac
15934   case $ac_mode$ac_tag in
15935   :[FHL]*:*);;
15936   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15937   :[FH]-) ac_tag=-:-;;
15938   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15939   esac
15940   ac_save_IFS=$IFS
15941   IFS=:
15942   set x $ac_tag
15943   IFS=$ac_save_IFS
15944   shift
15945   ac_file=$1
15946   shift
15947
15948   case $ac_mode in
15949   :L) ac_source=$1;;
15950   :[FH])
15951     ac_file_inputs=
15952     for ac_f
15953     do
15954       case $ac_f in
15955       -) ac_f="$ac_tmp/stdin";;
15956       *) # Look for the file first in the build tree, then in the source tree
15957          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15958          # because $ac_f cannot contain `:'.
15959          test -f "$ac_f" ||
15960            case $ac_f in
15961            [\\/$]*) false;;
15962            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15963            esac ||
15964            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15965       esac
15966       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15967       as_fn_append ac_file_inputs " '$ac_f'"
15968     done
15969
15970     # Let's still pretend it is `configure' which instantiates (i.e., don't
15971     # use $as_me), people would be surprised to read:
15972     #    /* config.h.  Generated by config.status.  */
15973     configure_input='Generated from '`
15974           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15975         `' by configure.'
15976     if test x"$ac_file" != x-; then
15977       configure_input="$ac_file.  $configure_input"
15978       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15979 $as_echo "$as_me: creating $ac_file" >&6;}
15980     fi
15981     # Neutralize special characters interpreted by sed in replacement strings.
15982     case $configure_input in #(
15983     *\&* | *\|* | *\\* )
15984        ac_sed_conf_input=`$as_echo "$configure_input" |
15985        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15986     *) ac_sed_conf_input=$configure_input;;
15987     esac
15988
15989     case $ac_tag in
15990     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15991       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15992     esac
15993     ;;
15994   esac
15995
15996   ac_dir=`$as_dirname -- "$ac_file" ||
15997 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15998          X"$ac_file" : 'X\(//\)[^/]' \| \
15999          X"$ac_file" : 'X\(//\)$' \| \
16000          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16001 $as_echo X"$ac_file" |
16002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16003             s//\1/
16004             q
16005           }
16006           /^X\(\/\/\)[^/].*/{
16007             s//\1/
16008             q
16009           }
16010           /^X\(\/\/\)$/{
16011             s//\1/
16012             q
16013           }
16014           /^X\(\/\).*/{
16015             s//\1/
16016             q
16017           }
16018           s/.*/./; q'`
16019   as_dir="$ac_dir"; as_fn_mkdir_p
16020   ac_builddir=.
16021
16022 case "$ac_dir" in
16023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16024 *)
16025   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16026   # A ".." for each directory in $ac_dir_suffix.
16027   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16028   case $ac_top_builddir_sub in
16029   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16030   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16031   esac ;;
16032 esac
16033 ac_abs_top_builddir=$ac_pwd
16034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16035 # for backward compatibility:
16036 ac_top_builddir=$ac_top_build_prefix
16037
16038 case $srcdir in
16039   .)  # We are building in place.
16040     ac_srcdir=.
16041     ac_top_srcdir=$ac_top_builddir_sub
16042     ac_abs_top_srcdir=$ac_pwd ;;
16043   [\\/]* | ?:[\\/]* )  # Absolute name.
16044     ac_srcdir=$srcdir$ac_dir_suffix;
16045     ac_top_srcdir=$srcdir
16046     ac_abs_top_srcdir=$srcdir ;;
16047   *) # Relative name.
16048     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16049     ac_top_srcdir=$ac_top_build_prefix$srcdir
16050     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16051 esac
16052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16053
16054
16055   case $ac_mode in
16056   :F)
16057   #
16058   # CONFIG_FILE
16059   #
16060
16061   case $INSTALL in
16062   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16063   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16064   esac
16065   ac_MKDIR_P=$MKDIR_P
16066   case $MKDIR_P in
16067   [\\/$]* | ?:[\\/]* ) ;;
16068   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16069   esac
16070 _ACEOF
16071
16072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16073 # If the template does not know about datarootdir, expand it.
16074 # FIXME: This hack should be removed a few years after 2.60.
16075 ac_datarootdir_hack=; ac_datarootdir_seen=
16076 ac_sed_dataroot='
16077 /datarootdir/ {
16078   p
16079   q
16080 }
16081 /@datadir@/p
16082 /@docdir@/p
16083 /@infodir@/p
16084 /@localedir@/p
16085 /@mandir@/p'
16086 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16087 *datarootdir*) ac_datarootdir_seen=yes;;
16088 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16089   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16090 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16091 _ACEOF
16092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16093   ac_datarootdir_hack='
16094   s&@datadir@&$datadir&g
16095   s&@docdir@&$docdir&g
16096   s&@infodir@&$infodir&g
16097   s&@localedir@&$localedir&g
16098   s&@mandir@&$mandir&g
16099   s&\\\${datarootdir}&$datarootdir&g' ;;
16100 esac
16101 _ACEOF
16102
16103 # Neutralize VPATH when `$srcdir' = `.'.
16104 # Shell code in configure.ac might set extrasub.
16105 # FIXME: do we really want to maintain this feature?
16106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16107 ac_sed_extra="$ac_vpsub
16108 $extrasub
16109 _ACEOF
16110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16111 :t
16112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16113 s|@configure_input@|$ac_sed_conf_input|;t t
16114 s&@top_builddir@&$ac_top_builddir_sub&;t t
16115 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16116 s&@srcdir@&$ac_srcdir&;t t
16117 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16118 s&@top_srcdir@&$ac_top_srcdir&;t t
16119 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16120 s&@builddir@&$ac_builddir&;t t
16121 s&@abs_builddir@&$ac_abs_builddir&;t t
16122 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16123 s&@INSTALL@&$ac_INSTALL&;t t
16124 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16125 $ac_datarootdir_hack
16126 "
16127 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16128   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16129
16130 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16131   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16132   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16133       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16134   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16135 which seems to be undefined.  Please make sure it is defined" >&5
16136 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16137 which seems to be undefined.  Please make sure it is defined" >&2;}
16138
16139   rm -f "$ac_tmp/stdin"
16140   case $ac_file in
16141   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16142   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16143   esac \
16144   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16145  ;;
16146   :H)
16147   #
16148   # CONFIG_HEADER
16149   #
16150   if test x"$ac_file" != x-; then
16151     {
16152       $as_echo "/* $configure_input  */" \
16153       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16154     } >"$ac_tmp/config.h" \
16155       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16156     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16157       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16158 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16159     else
16160       rm -f "$ac_file"
16161       mv "$ac_tmp/config.h" "$ac_file" \
16162         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16163     fi
16164   else
16165     $as_echo "/* $configure_input  */" \
16166       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16167       || as_fn_error $? "could not create -" "$LINENO" 5
16168   fi
16169 # Compute "$ac_file"'s index in $config_headers.
16170 _am_arg="$ac_file"
16171 _am_stamp_count=1
16172 for _am_header in $config_headers :; do
16173   case $_am_header in
16174     $_am_arg | $_am_arg:* )
16175       break ;;
16176     * )
16177       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16178   esac
16179 done
16180 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16181 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16182          X"$_am_arg" : 'X\(//\)[^/]' \| \
16183          X"$_am_arg" : 'X\(//\)$' \| \
16184          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16185 $as_echo X"$_am_arg" |
16186     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16187             s//\1/
16188             q
16189           }
16190           /^X\(\/\/\)[^/].*/{
16191             s//\1/
16192             q
16193           }
16194           /^X\(\/\/\)$/{
16195             s//\1/
16196             q
16197           }
16198           /^X\(\/\).*/{
16199             s//\1/
16200             q
16201           }
16202           s/.*/./; q'`/stamp-h$_am_stamp_count
16203  ;;
16204
16205   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16206 $as_echo "$as_me: executing $ac_file commands" >&6;}
16207  ;;
16208   esac
16209
16210
16211   case $ac_file$ac_mode in
16212     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16213   # Older Autoconf quotes --file arguments for eval, but not when files
16214   # are listed without --file.  Let's play safe and only enable the eval
16215   # if we detect the quoting.
16216   case $CONFIG_FILES in
16217   *\'*) eval set x "$CONFIG_FILES" ;;
16218   *)   set x $CONFIG_FILES ;;
16219   esac
16220   shift
16221   for mf
16222   do
16223     # Strip MF so we end up with the name of the file.
16224     mf=`echo "$mf" | sed -e 's/:.*$//'`
16225     # Check whether this is an Automake generated Makefile or not.
16226     # We used to match only the files named 'Makefile.in', but
16227     # some people rename them; so instead we look at the file content.
16228     # Grep'ing the first line is not enough: some people post-process
16229     # each Makefile.in and add a new line on top of each file to say so.
16230     # Grep'ing the whole file is not good either: AIX grep has a line
16231     # limit of 2048, but all sed's we know have understand at least 4000.
16232     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16233       dirpart=`$as_dirname -- "$mf" ||
16234 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16235          X"$mf" : 'X\(//\)[^/]' \| \
16236          X"$mf" : 'X\(//\)$' \| \
16237          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16238 $as_echo X"$mf" |
16239     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16240             s//\1/
16241             q
16242           }
16243           /^X\(\/\/\)[^/].*/{
16244             s//\1/
16245             q
16246           }
16247           /^X\(\/\/\)$/{
16248             s//\1/
16249             q
16250           }
16251           /^X\(\/\).*/{
16252             s//\1/
16253             q
16254           }
16255           s/.*/./; q'`
16256     else
16257       continue
16258     fi
16259     # Extract the definition of DEPDIR, am__include, and am__quote
16260     # from the Makefile without running 'make'.
16261     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16262     test -z "$DEPDIR" && continue
16263     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16264     test -z "$am__include" && continue
16265     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16266     # Find all dependency output files, they are included files with
16267     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16268     # simplest approach to changing $(DEPDIR) to its actual value in the
16269     # expansion.
16270     for file in `sed -n "
16271       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16272          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16273       # Make sure the directory exists.
16274       test -f "$dirpart/$file" && continue
16275       fdir=`$as_dirname -- "$file" ||
16276 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16277          X"$file" : 'X\(//\)[^/]' \| \
16278          X"$file" : 'X\(//\)$' \| \
16279          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16280 $as_echo X"$file" |
16281     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16282             s//\1/
16283             q
16284           }
16285           /^X\(\/\/\)[^/].*/{
16286             s//\1/
16287             q
16288           }
16289           /^X\(\/\/\)$/{
16290             s//\1/
16291             q
16292           }
16293           /^X\(\/\).*/{
16294             s//\1/
16295             q
16296           }
16297           s/.*/./; q'`
16298       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16299       # echo "creating $dirpart/$file"
16300       echo '# dummy' > "$dirpart/$file"
16301     done
16302   done
16303 }
16304  ;;
16305     "libtool":C)
16306
16307     # See if we are running on zsh, and set the options which allow our
16308     # commands through without removal of \ escapes.
16309     if test -n "${ZSH_VERSION+set}" ; then
16310       setopt NO_GLOB_SUBST
16311     fi
16312
16313     cfgfile="${ofile}T"
16314     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16315     $RM "$cfgfile"
16316
16317     cat <<_LT_EOF >> "$cfgfile"
16318 #! $SHELL
16319
16320 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16321 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16322 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16323 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16324 #
16325 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16326 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16327 #                 Foundation, Inc.
16328 #   Written by Gordon Matzigkeit, 1996
16329 #
16330 #   This file is part of GNU Libtool.
16331 #
16332 # GNU Libtool is free software; you can redistribute it and/or
16333 # modify it under the terms of the GNU General Public License as
16334 # published by the Free Software Foundation; either version 2 of
16335 # the License, or (at your option) any later version.
16336 #
16337 # As a special exception to the GNU General Public License,
16338 # if you distribute this file as part of a program or library that
16339 # is built using GNU Libtool, you may include this file under the
16340 # same distribution terms that you use for the rest of that program.
16341 #
16342 # GNU Libtool is distributed in the hope that it will be useful,
16343 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16344 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16345 # GNU General Public License for more details.
16346 #
16347 # You should have received a copy of the GNU General Public License
16348 # along with GNU Libtool; see the file COPYING.  If not, a copy
16349 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16350 # obtained by writing to the Free Software Foundation, Inc.,
16351 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16352
16353
16354 # The names of the tagged configurations supported by this script.
16355 available_tags=""
16356
16357 # ### BEGIN LIBTOOL CONFIG
16358
16359 # Which release of libtool.m4 was used?
16360 macro_version=$macro_version
16361 macro_revision=$macro_revision
16362
16363 # Whether or not to build static libraries.
16364 build_old_libs=$enable_static
16365
16366 # What type of objects to build.
16367 pic_mode=$pic_mode
16368
16369 # Whether or not to build shared libraries.
16370 build_libtool_libs=$enable_shared
16371
16372 # Whether or not to optimize for fast installation.
16373 fast_install=$enable_fast_install
16374
16375 # Shell to use when invoking shell scripts.
16376 SHELL=$lt_SHELL
16377
16378 # An echo program that protects backslashes.
16379 ECHO=$lt_ECHO
16380
16381 # The PATH separator for the build system.
16382 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16383
16384 # The host system.
16385 host_alias=$host_alias
16386 host=$host
16387 host_os=$host_os
16388
16389 # The build system.
16390 build_alias=$build_alias
16391 build=$build
16392 build_os=$build_os
16393
16394 # A sed program that does not truncate output.
16395 SED=$lt_SED
16396
16397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16398 Xsed="\$SED -e 1s/^X//"
16399
16400 # A grep program that handles long lines.
16401 GREP=$lt_GREP
16402
16403 # An ERE matcher.
16404 EGREP=$lt_EGREP
16405
16406 # A literal string matcher.
16407 FGREP=$lt_FGREP
16408
16409 # A BSD- or MS-compatible name lister.
16410 NM=$lt_NM
16411
16412 # Whether we need soft or hard links.
16413 LN_S=$lt_LN_S
16414
16415 # What is the maximum length of a command?
16416 max_cmd_len=$max_cmd_len
16417
16418 # Object file suffix (normally "o").
16419 objext=$ac_objext
16420
16421 # Executable file suffix (normally "").
16422 exeext=$exeext
16423
16424 # whether the shell understands "unset".
16425 lt_unset=$lt_unset
16426
16427 # turn spaces into newlines.
16428 SP2NL=$lt_lt_SP2NL
16429
16430 # turn newlines into spaces.
16431 NL2SP=$lt_lt_NL2SP
16432
16433 # convert \$build file names to \$host format.
16434 to_host_file_cmd=$lt_cv_to_host_file_cmd
16435
16436 # convert \$build files to toolchain format.
16437 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16438
16439 # An object symbol dumper.
16440 OBJDUMP=$lt_OBJDUMP
16441
16442 # Method to check whether dependent libraries are shared objects.
16443 deplibs_check_method=$lt_deplibs_check_method
16444
16445 # Command to use when deplibs_check_method = "file_magic".
16446 file_magic_cmd=$lt_file_magic_cmd
16447
16448 # How to find potential files when deplibs_check_method = "file_magic".
16449 file_magic_glob=$lt_file_magic_glob
16450
16451 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16452 want_nocaseglob=$lt_want_nocaseglob
16453
16454 # DLL creation program.
16455 DLLTOOL=$lt_DLLTOOL
16456
16457 # Command to associate shared and link libraries.
16458 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16459
16460 # The archiver.
16461 AR=$lt_AR
16462
16463 # Flags to create an archive.
16464 AR_FLAGS=$lt_AR_FLAGS
16465
16466 # How to feed a file listing to the archiver.
16467 archiver_list_spec=$lt_archiver_list_spec
16468
16469 # A symbol stripping program.
16470 STRIP=$lt_STRIP
16471
16472 # Commands used to install an old-style archive.
16473 RANLIB=$lt_RANLIB
16474 old_postinstall_cmds=$lt_old_postinstall_cmds
16475 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16476
16477 # Whether to use a lock for old archive extraction.
16478 lock_old_archive_extraction=$lock_old_archive_extraction
16479
16480 # A C compiler.
16481 LTCC=$lt_CC
16482
16483 # LTCC compiler flags.
16484 LTCFLAGS=$lt_CFLAGS
16485
16486 # Take the output of nm and produce a listing of raw symbols and C names.
16487 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16488
16489 # Transform the output of nm in a proper C declaration.
16490 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16491
16492 # Transform the output of nm in a C name address pair.
16493 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16494
16495 # Transform the output of nm in a C name address pair when lib prefix is needed.
16496 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16497
16498 # Specify filename containing input files for \$NM.
16499 nm_file_list_spec=$lt_nm_file_list_spec
16500
16501 # The root where to search for dependent libraries,and in which our libraries should be installed.
16502 lt_sysroot=$lt_sysroot
16503
16504 # The name of the directory that contains temporary libtool files.
16505 objdir=$objdir
16506
16507 # Used to examine libraries when file_magic_cmd begins with "file".
16508 MAGIC_CMD=$MAGIC_CMD
16509
16510 # Must we lock files when doing compilation?
16511 need_locks=$lt_need_locks
16512
16513 # Manifest tool.
16514 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16515
16516 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16517 DSYMUTIL=$lt_DSYMUTIL
16518
16519 # Tool to change global to local symbols on Mac OS X.
16520 NMEDIT=$lt_NMEDIT
16521
16522 # Tool to manipulate fat objects and archives on Mac OS X.
16523 LIPO=$lt_LIPO
16524
16525 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16526 OTOOL=$lt_OTOOL
16527
16528 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16529 OTOOL64=$lt_OTOOL64
16530
16531 # Old archive suffix (normally "a").
16532 libext=$libext
16533
16534 # Shared library suffix (normally ".so").
16535 shrext_cmds=$lt_shrext_cmds
16536
16537 # The commands to extract the exported symbol list from a shared archive.
16538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16539
16540 # Variables whose values should be saved in libtool wrapper scripts and
16541 # restored at link time.
16542 variables_saved_for_relink=$lt_variables_saved_for_relink
16543
16544 # Do we need the "lib" prefix for modules?
16545 need_lib_prefix=$need_lib_prefix
16546
16547 # Do we need a version for libraries?
16548 need_version=$need_version
16549
16550 # Library versioning type.
16551 version_type=$version_type
16552
16553 # Shared library runtime path variable.
16554 runpath_var=$runpath_var
16555
16556 # Shared library path variable.
16557 shlibpath_var=$shlibpath_var
16558
16559 # Is shlibpath searched before the hard-coded library search path?
16560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16561
16562 # Format of library name prefix.
16563 libname_spec=$lt_libname_spec
16564
16565 # List of archive names.  First name is the real one, the rest are links.
16566 # The last name is the one that the linker finds with -lNAME
16567 library_names_spec=$lt_library_names_spec
16568
16569 # The coded name of the library, if different from the real name.
16570 soname_spec=$lt_soname_spec
16571
16572 # Permission mode override for installation of shared libraries.
16573 install_override_mode=$lt_install_override_mode
16574
16575 # Command to use after installation of a shared archive.
16576 postinstall_cmds=$lt_postinstall_cmds
16577
16578 # Command to use after uninstallation of a shared archive.
16579 postuninstall_cmds=$lt_postuninstall_cmds
16580
16581 # Commands used to finish a libtool library installation in a directory.
16582 finish_cmds=$lt_finish_cmds
16583
16584 # As "finish_cmds", except a single script fragment to be evaled but
16585 # not shown.
16586 finish_eval=$lt_finish_eval
16587
16588 # Whether we should hardcode library paths into libraries.
16589 hardcode_into_libs=$hardcode_into_libs
16590
16591 # Compile-time system search path for libraries.
16592 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16593
16594 # Run-time system search path for libraries.
16595 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16596
16597 # Whether dlopen is supported.
16598 dlopen_support=$enable_dlopen
16599
16600 # Whether dlopen of programs is supported.
16601 dlopen_self=$enable_dlopen_self
16602
16603 # Whether dlopen of statically linked programs is supported.
16604 dlopen_self_static=$enable_dlopen_self_static
16605
16606 # Commands to strip libraries.
16607 old_striplib=$lt_old_striplib
16608 striplib=$lt_striplib
16609
16610
16611 # The linker used to build libraries.
16612 LD=$lt_LD
16613
16614 # How to create reloadable object files.
16615 reload_flag=$lt_reload_flag
16616 reload_cmds=$lt_reload_cmds
16617
16618 # Commands used to build an old-style archive.
16619 old_archive_cmds=$lt_old_archive_cmds
16620
16621 # A language specific compiler.
16622 CC=$lt_compiler
16623
16624 # Is the compiler the GNU compiler?
16625 with_gcc=$GCC
16626
16627 # Compiler flag to turn off builtin functions.
16628 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16629
16630 # Additional compiler flags for building library objects.
16631 pic_flag=$lt_lt_prog_compiler_pic
16632
16633 # How to pass a linker flag through the compiler.
16634 wl=$lt_lt_prog_compiler_wl
16635
16636 # Compiler flag to prevent dynamic linking.
16637 link_static_flag=$lt_lt_prog_compiler_static
16638
16639 # Does compiler simultaneously support -c and -o options?
16640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16641
16642 # Whether or not to add -lc for building shared libraries.
16643 build_libtool_need_lc=$archive_cmds_need_lc
16644
16645 # Whether or not to disallow shared libs when runtime libs are static.
16646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16647
16648 # Compiler flag to allow reflexive dlopens.
16649 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16650
16651 # Compiler flag to generate shared objects directly from archives.
16652 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16653
16654 # Whether the compiler copes with passing no objects directly.
16655 compiler_needs_object=$lt_compiler_needs_object
16656
16657 # Create an old-style archive from a shared archive.
16658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16659
16660 # Create a temporary old-style archive to link instead of a shared archive.
16661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16662
16663 # Commands used to build a shared archive.
16664 archive_cmds=$lt_archive_cmds
16665 archive_expsym_cmds=$lt_archive_expsym_cmds
16666
16667 # Commands used to build a loadable module if different from building
16668 # a shared archive.
16669 module_cmds=$lt_module_cmds
16670 module_expsym_cmds=$lt_module_expsym_cmds
16671
16672 # Whether we are building with GNU ld or not.
16673 with_gnu_ld=$lt_with_gnu_ld
16674
16675 # Flag that allows shared libraries with undefined symbols to be built.
16676 allow_undefined_flag=$lt_allow_undefined_flag
16677
16678 # Flag that enforces no undefined symbols.
16679 no_undefined_flag=$lt_no_undefined_flag
16680
16681 # Flag to hardcode \$libdir into a binary during linking.
16682 # This must work even if \$libdir does not exist
16683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16684
16685 # Whether we need a single "-rpath" flag with a separated argument.
16686 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16687
16688 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16689 # DIR into the resulting binary.
16690 hardcode_direct=$hardcode_direct
16691
16692 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16693 # DIR into the resulting binary and the resulting library dependency is
16694 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16695 # library is relocated.
16696 hardcode_direct_absolute=$hardcode_direct_absolute
16697
16698 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16699 # into the resulting binary.
16700 hardcode_minus_L=$hardcode_minus_L
16701
16702 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16703 # into the resulting binary.
16704 hardcode_shlibpath_var=$hardcode_shlibpath_var
16705
16706 # Set to "yes" if building a shared library automatically hardcodes DIR
16707 # into the library and all subsequent libraries and executables linked
16708 # against it.
16709 hardcode_automatic=$hardcode_automatic
16710
16711 # Set to yes if linker adds runtime paths of dependent libraries
16712 # to runtime path list.
16713 inherit_rpath=$inherit_rpath
16714
16715 # Whether libtool must link a program against all its dependency libraries.
16716 link_all_deplibs=$link_all_deplibs
16717
16718 # Set to "yes" if exported symbols are required.
16719 always_export_symbols=$always_export_symbols
16720
16721 # The commands to list exported symbols.
16722 export_symbols_cmds=$lt_export_symbols_cmds
16723
16724 # Symbols that should not be listed in the preloaded symbols.
16725 exclude_expsyms=$lt_exclude_expsyms
16726
16727 # Symbols that must always be exported.
16728 include_expsyms=$lt_include_expsyms
16729
16730 # Commands necessary for linking programs (against libraries) with templates.
16731 prelink_cmds=$lt_prelink_cmds
16732
16733 # Commands necessary for finishing linking programs.
16734 postlink_cmds=$lt_postlink_cmds
16735
16736 # Specify filename containing input files.
16737 file_list_spec=$lt_file_list_spec
16738
16739 # How to hardcode a shared library path into an executable.
16740 hardcode_action=$hardcode_action
16741
16742 # ### END LIBTOOL CONFIG
16743
16744 _LT_EOF
16745
16746   case $host_os in
16747   aix3*)
16748     cat <<\_LT_EOF >> "$cfgfile"
16749 # AIX sometimes has problems with the GCC collect2 program.  For some
16750 # reason, if we set the COLLECT_NAMES environment variable, the problems
16751 # vanish in a puff of smoke.
16752 if test "X${COLLECT_NAMES+set}" != Xset; then
16753   COLLECT_NAMES=
16754   export COLLECT_NAMES
16755 fi
16756 _LT_EOF
16757     ;;
16758   esac
16759
16760
16761 ltmain="$ac_aux_dir/ltmain.sh"
16762
16763
16764   # We use sed instead of cat because bash on DJGPP gets confused if
16765   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16766   # text mode, it properly converts lines to CR/LF.  This bash problem
16767   # is reportedly fixed, but why not run on old versions too?
16768   sed '$q' "$ltmain" >> "$cfgfile" \
16769      || (rm -f "$cfgfile"; exit 1)
16770
16771   if test x"$xsi_shell" = xyes; then
16772   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16773 func_dirname ()\
16774 {\
16775 \    case ${1} in\
16776 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16777 \      *  ) func_dirname_result="${3}" ;;\
16778 \    esac\
16779 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16780   && mv -f "$cfgfile.tmp" "$cfgfile" \
16781     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16782 test 0 -eq $? || _lt_function_replace_fail=:
16783
16784
16785   sed -e '/^func_basename ()$/,/^} # func_basename /c\
16786 func_basename ()\
16787 {\
16788 \    func_basename_result="${1##*/}"\
16789 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16790   && mv -f "$cfgfile.tmp" "$cfgfile" \
16791     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16792 test 0 -eq $? || _lt_function_replace_fail=:
16793
16794
16795   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16796 func_dirname_and_basename ()\
16797 {\
16798 \    case ${1} in\
16799 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16800 \      *  ) func_dirname_result="${3}" ;;\
16801 \    esac\
16802 \    func_basename_result="${1##*/}"\
16803 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16804   && mv -f "$cfgfile.tmp" "$cfgfile" \
16805     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16806 test 0 -eq $? || _lt_function_replace_fail=:
16807
16808
16809   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16810 func_stripname ()\
16811 {\
16812 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16813 \    # positional parameters, so assign one to ordinary parameter first.\
16814 \    func_stripname_result=${3}\
16815 \    func_stripname_result=${func_stripname_result#"${1}"}\
16816 \    func_stripname_result=${func_stripname_result%"${2}"}\
16817 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16818   && mv -f "$cfgfile.tmp" "$cfgfile" \
16819     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16820 test 0 -eq $? || _lt_function_replace_fail=:
16821
16822
16823   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16824 func_split_long_opt ()\
16825 {\
16826 \    func_split_long_opt_name=${1%%=*}\
16827 \    func_split_long_opt_arg=${1#*=}\
16828 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16829   && mv -f "$cfgfile.tmp" "$cfgfile" \
16830     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16831 test 0 -eq $? || _lt_function_replace_fail=:
16832
16833
16834   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16835 func_split_short_opt ()\
16836 {\
16837 \    func_split_short_opt_arg=${1#??}\
16838 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16839 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16840   && mv -f "$cfgfile.tmp" "$cfgfile" \
16841     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16842 test 0 -eq $? || _lt_function_replace_fail=:
16843
16844
16845   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16846 func_lo2o ()\
16847 {\
16848 \    case ${1} in\
16849 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16850 \      *)    func_lo2o_result=${1} ;;\
16851 \    esac\
16852 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16853   && mv -f "$cfgfile.tmp" "$cfgfile" \
16854     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16855 test 0 -eq $? || _lt_function_replace_fail=:
16856
16857
16858   sed -e '/^func_xform ()$/,/^} # func_xform /c\
16859 func_xform ()\
16860 {\
16861     func_xform_result=${1%.*}.lo\
16862 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16863   && mv -f "$cfgfile.tmp" "$cfgfile" \
16864     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16865 test 0 -eq $? || _lt_function_replace_fail=:
16866
16867
16868   sed -e '/^func_arith ()$/,/^} # func_arith /c\
16869 func_arith ()\
16870 {\
16871     func_arith_result=$(( $* ))\
16872 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16873   && mv -f "$cfgfile.tmp" "$cfgfile" \
16874     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16875 test 0 -eq $? || _lt_function_replace_fail=:
16876
16877
16878   sed -e '/^func_len ()$/,/^} # func_len /c\
16879 func_len ()\
16880 {\
16881     func_len_result=${#1}\
16882 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16883   && mv -f "$cfgfile.tmp" "$cfgfile" \
16884     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16885 test 0 -eq $? || _lt_function_replace_fail=:
16886
16887 fi
16888
16889 if test x"$lt_shell_append" = xyes; then
16890   sed -e '/^func_append ()$/,/^} # func_append /c\
16891 func_append ()\
16892 {\
16893     eval "${1}+=\\${2}"\
16894 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16895   && mv -f "$cfgfile.tmp" "$cfgfile" \
16896     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16897 test 0 -eq $? || _lt_function_replace_fail=:
16898
16899
16900   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16901 func_append_quoted ()\
16902 {\
16903 \    func_quote_for_eval "${2}"\
16904 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16905 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16906   && mv -f "$cfgfile.tmp" "$cfgfile" \
16907     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16908 test 0 -eq $? || _lt_function_replace_fail=:
16909
16910
16911   # Save a `func_append' function call where possible by direct use of '+='
16912   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16913     && mv -f "$cfgfile.tmp" "$cfgfile" \
16914       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16915   test 0 -eq $? || _lt_function_replace_fail=:
16916 else
16917   # Save a `func_append' function call even when '+=' is not available
16918   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16919     && mv -f "$cfgfile.tmp" "$cfgfile" \
16920       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16921   test 0 -eq $? || _lt_function_replace_fail=:
16922 fi
16923
16924 if test x"$_lt_function_replace_fail" = x":"; then
16925   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16926 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16927 fi
16928
16929
16930    mv -f "$cfgfile" "$ofile" ||
16931     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16932   chmod +x "$ofile"
16933
16934  ;;
16935
16936   esac
16937 done # for ac_tag
16938
16939
16940 as_fn_exit 0
16941 _ACEOF
16942 ac_clean_files=$ac_clean_files_save
16943
16944 test $ac_write_fail = 0 ||
16945   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16946
16947
16948 # configure is writing to config.log, and then calls config.status.
16949 # config.status does its own redirection, appending to config.log.
16950 # Unfortunately, on DOS this fails, as config.log is still kept open
16951 # by configure, so config.status won't be able to write to it; its
16952 # output is simply discarded.  So we exec the FD to /dev/null,
16953 # effectively closing config.log, so it can be properly (re)opened and
16954 # appended to by config.status.  When coming back to configure, we
16955 # need to make the FD available again.
16956 if test "$no_create" != yes; then
16957   ac_cs_success=:
16958   ac_config_status_args=
16959   test "$silent" = yes &&
16960     ac_config_status_args="$ac_config_status_args --quiet"
16961   exec 5>/dev/null
16962   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16963   exec 5>>config.log
16964   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16965   # would make configure fail if this is the last instruction.
16966   $ac_cs_success || as_fn_exit 1
16967 fi
16968 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16969   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16970 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16971 fi
16972