]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/file/configure
MFV: zstd 1.5.2
[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.71 for file 5.43.
4 #
5 # Report bugs to <christos@astron.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191     PATH=/empty FPATH=/empty; export PATH FPATH
192     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195   if (eval "$as_required") 2>/dev/null
196 then :
197   as_have_required=yes
198 else $as_nop
199   as_have_required=no
200 fi
201   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209   IFS=$as_save_IFS
210   case $as_dir in #(((
211     '') as_dir=./ ;;
212     */) ;;
213     *) as_dir=$as_dir/ ;;
214   esac
215   as_found=:
216   case $as_dir in #(
217          /*)
218            for as_base in sh bash ksh sh5; do
219              # Try only shells that exist, to save several forks.
220              as_shell=$as_dir$as_base
221              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227   break 2
228 fi
229 fi
230            done;;
231        esac
232   as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242   CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247       if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno
271 then :
272   printf "%s\n" "$0: This script requires a shell more modern than all"
273   printf "%s\n" "$0: the shells that I found on your system."
274   if test ${ZSH_VERSION+y} ; then
275     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277   else
278     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: christos@astron.com about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312   return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320   set +e
321   as_fn_set_status $1
322   exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329   return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339   case $as_dir in #(
340   -*) as_dir=./$as_dir;;
341   esac
342   test -d "$as_dir" || eval $as_mkdir_p || {
343     as_dirs=
344     while :; do
345       case $as_dir in #(
346       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347       *) as_qdir=$as_dir;;
348       esac
349       as_dirs="'$as_qdir' $as_dirs"
350       as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352          X"$as_dir" : 'X\(//\)[^/]' \| \
353          X"$as_dir" : 'X\(//\)$' \| \
354          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357             s//\1/
358             q
359           }
360           /^X\(\/\/\)[^/].*/{
361             s//\1/
362             q
363           }
364           /^X\(\/\/\)$/{
365             s//\1/
366             q
367           }
368           /^X\(\/\).*/{
369             s//\1/
370             q
371           }
372           s/.*/./; q'`
373       test -d "$as_dir" && break
374     done
375     test -z "$as_dirs" || eval "mkdir $as_dirs"
376   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386   test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396   eval 'as_fn_append ()
397   {
398     eval $1+=\$2
399   }'
400 else $as_nop
401   as_fn_append ()
402   {
403     eval $1=\$$1\$2
404   }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414   eval 'as_fn_arith ()
415   {
416     as_val=$(( $* ))
417   }'
418 else $as_nop
419   as_fn_arith ()
420   {
421     as_val=`expr "$@" || test $? -eq 1`
422   }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430   return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441   as_status=$1; test $as_status -eq 0 && as_status=1
442   if test "$4"; then
443     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445   fi
446   printf "%s\n" "$as_me: error: $2" >&2
447   as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451    test "X`expr 00001 : '.*\(...\)'`" = X001; then
452   as_expr=expr
453 else
454   as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458   as_basename=basename
459 else
460   as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471          X"$0" : 'X\(//\)$' \| \
472          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474     sed '/^.*\/\([^/][^/]*\)\/*$/{
475             s//\1/
476             q
477           }
478           /^X\/\(\/\/\)$/{
479             s//\1/
480             q
481           }
482           /^X\/\(\/\).*/{
483             s//\1/
484             q
485           }
486           s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496   as_lineno_1=$LINENO as_lineno_1a=$LINENO
497   as_lineno_2=$LINENO as_lineno_2a=$LINENO
498   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501   sed -n '
502     p
503     /[$]LINENO/=
504   ' <$as_myself |
505     sed '
506       s/[$]LINENO.*/&-/
507       t lineno
508       b
509       :lineno
510       N
511       :loop
512       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513       t loop
514       s/-\n.*//
515     ' >$as_me.lineno &&
516   chmod +x "$as_me.lineno" ||
517     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520   # already done that, so ensure we don't try to do so again and fall
521   # in an infinite loop.  This has already happened in practice.
522   _as_can_reexec=no; export _as_can_reexec
523   # Don't try to exec as it changes $[0], causing all sort of problems
524   # (the dirname of $[0] is not the place where we might find the
525   # original and so on.  Autoconf is especially sensitive to this).
526   . "./$as_me.lineno"
527   # Exit status is that of the last command.
528   exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538   case `echo 'xy\c'` in
539   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
540   xy)  ECHO_C='\c';;
541   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542        ECHO_T=' ';;
543   esac;;
544 *)
545   ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n.  New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557   rm -f conf$$.dir/conf$$.file
558 else
559   rm -f conf$$.dir
560   mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563   if ln -s conf$$.file conf$$ 2>/dev/null; then
564     as_ln_s='ln -s'
565     # ... but there are two gotchas:
566     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568     # In both cases, we have to default to `cp -pR'.
569     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570       as_ln_s='cp -pR'
571   elif ln conf$$.file conf$$ 2>/dev/null; then
572     as_ln_s=ln
573   else
574     as_ln_s='cp -pR'
575   fi
576 else
577   as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583   as_mkdir_p='mkdir -p "$as_dir"'
584 else
585   test -d ./-p && rmdir ./-p
586   as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='file'
623 PACKAGE_TARNAME='file'
624 PACKAGE_VERSION='5.43'
625 PACKAGE_STRING='file 5.43'
626 PACKAGE_BUGREPORT='christos@astron.com'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_func_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 IS_CROSS_COMPILE_FALSE
666 IS_CROSS_COMPILE_TRUE
667 LIBOBJS
668 HAVE_VISIBILITY
669 CFLAG_VISIBILITY
670 LT_SYS_LIBRARY_PATH
671 OTOOL64
672 OTOOL
673 LIPO
674 NMEDIT
675 DSYMUTIL
676 MANIFEST_TOOL
677 RANLIB
678 ac_ct_AR
679 AR
680 DLLTOOL
681 OBJDUMP
682 NM
683 ac_ct_DUMPBIN
684 DUMPBIN
685 LD
686 FGREP
687 EGREP
688 GREP
689 SED
690 LIBTOOL
691 LN_S
692 am__fastdepCC_FALSE
693 am__fastdepCC_TRUE
694 CCDEPMODE
695 am__nodep
696 AMDEPBACKSLASH
697 AMDEP_FALSE
698 AMDEP_TRUE
699 am__include
700 DEPDIR
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 WARNINGS
709 FSECT5_FALSE
710 FSECT5_TRUE
711 fsect
712 pkgdatadir
713 MINGW_FALSE
714 MINGW_TRUE
715 MINGW
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 CSCOPE
729 ETAGS
730 CTAGS
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 runstatedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL
793 am__quote'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_silent_rules
798 enable_elf
799 enable_elf_core
800 enable_zlib
801 enable_bzlib
802 enable_xzlib
803 enable_libseccomp
804 enable_fsect_man5
805 enable_dependency_tracking
806 enable_static
807 with_pic
808 enable_shared
809 enable_fast_install
810 with_aix_soname
811 with_gnu_ld
812 with_sysroot
813 enable_libtool_lock
814 enable_largefile
815 enable_warnings
816 '
817       ac_precious_vars='build_alias
818 host_alias
819 target_alias
820 CC
821 CFLAGS
822 LDFLAGS
823 LIBS
824 CPPFLAGS
825 LT_SYS_LIBRARY_PATH'
826
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 runstatedir='${localstatedir}/run'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
876
877 ac_prev=
878 ac_dashdash=
879 for ac_option
880 do
881   # If the previous option needs an argument, assign it.
882   if test -n "$ac_prev"; then
883     eval $ac_prev=\$ac_option
884     ac_prev=
885     continue
886   fi
887
888   case $ac_option in
889   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890   *=)   ac_optarg= ;;
891   *)    ac_optarg=yes ;;
892   esac
893
894   case $ac_dashdash$ac_option in
895   --)
896     ac_dashdash=yes ;;
897
898   -bindir | --bindir | --bindi | --bind | --bin | --bi)
899     ac_prev=bindir ;;
900   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901     bindir=$ac_optarg ;;
902
903   -build | --build | --buil | --bui | --bu)
904     ac_prev=build_alias ;;
905   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906     build_alias=$ac_optarg ;;
907
908   -cache-file | --cache-file | --cache-fil | --cache-fi \
909   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910     ac_prev=cache_file ;;
911   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913     cache_file=$ac_optarg ;;
914
915   --config-cache | -C)
916     cache_file=config.cache ;;
917
918   -datadir | --datadir | --datadi | --datad)
919     ac_prev=datadir ;;
920   -datadir=* | --datadir=* | --datadi=* | --datad=*)
921     datadir=$ac_optarg ;;
922
923   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924   | --dataroo | --dataro | --datar)
925     ac_prev=datarootdir ;;
926   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928     datarootdir=$ac_optarg ;;
929
930   -disable-* | --disable-*)
931     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932     # Reject names that are not valid shell variable names.
933     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934       as_fn_error $? "invalid feature name: \`$ac_useropt'"
935     ac_useropt_orig=$ac_useropt
936     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
937     case $ac_user_opts in
938       *"
939 "enable_$ac_useropt"
940 "*) ;;
941       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942          ac_unrecognized_sep=', ';;
943     esac
944     eval enable_$ac_useropt=no ;;
945
946   -docdir | --docdir | --docdi | --doc | --do)
947     ac_prev=docdir ;;
948   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949     docdir=$ac_optarg ;;
950
951   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952     ac_prev=dvidir ;;
953   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954     dvidir=$ac_optarg ;;
955
956   -enable-* | --enable-*)
957     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958     # Reject names that are not valid shell variable names.
959     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960       as_fn_error $? "invalid feature name: \`$ac_useropt'"
961     ac_useropt_orig=$ac_useropt
962     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
963     case $ac_user_opts in
964       *"
965 "enable_$ac_useropt"
966 "*) ;;
967       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968          ac_unrecognized_sep=', ';;
969     esac
970     eval enable_$ac_useropt=\$ac_optarg ;;
971
972   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974   | --exec | --exe | --ex)
975     ac_prev=exec_prefix ;;
976   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978   | --exec=* | --exe=* | --ex=*)
979     exec_prefix=$ac_optarg ;;
980
981   -gas | --gas | --ga | --g)
982     # Obsolete; use --with-gas.
983     with_gas=yes ;;
984
985   -help | --help | --hel | --he | -h)
986     ac_init_help=long ;;
987   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988     ac_init_help=recursive ;;
989   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990     ac_init_help=short ;;
991
992   -host | --host | --hos | --ho)
993     ac_prev=host_alias ;;
994   -host=* | --host=* | --hos=* | --ho=*)
995     host_alias=$ac_optarg ;;
996
997   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998     ac_prev=htmldir ;;
999   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000   | --ht=*)
1001     htmldir=$ac_optarg ;;
1002
1003   -includedir | --includedir | --includedi | --included | --include \
1004   | --includ | --inclu | --incl | --inc)
1005     ac_prev=includedir ;;
1006   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007   | --includ=* | --inclu=* | --incl=* | --inc=*)
1008     includedir=$ac_optarg ;;
1009
1010   -infodir | --infodir | --infodi | --infod | --info | --inf)
1011     ac_prev=infodir ;;
1012   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013     infodir=$ac_optarg ;;
1014
1015   -libdir | --libdir | --libdi | --libd)
1016     ac_prev=libdir ;;
1017   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018     libdir=$ac_optarg ;;
1019
1020   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021   | --libexe | --libex | --libe)
1022     ac_prev=libexecdir ;;
1023   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024   | --libexe=* | --libex=* | --libe=*)
1025     libexecdir=$ac_optarg ;;
1026
1027   -localedir | --localedir | --localedi | --localed | --locale)
1028     ac_prev=localedir ;;
1029   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030     localedir=$ac_optarg ;;
1031
1032   -localstatedir | --localstatedir | --localstatedi | --localstated \
1033   | --localstate | --localstat | --localsta | --localst | --locals)
1034     ac_prev=localstatedir ;;
1035   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037     localstatedir=$ac_optarg ;;
1038
1039   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040     ac_prev=mandir ;;
1041   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042     mandir=$ac_optarg ;;
1043
1044   -nfp | --nfp | --nf)
1045     # Obsolete; use --without-fp.
1046     with_fp=no ;;
1047
1048   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049   | --no-cr | --no-c | -n)
1050     no_create=yes ;;
1051
1052   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054     no_recursion=yes ;;
1055
1056   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058   | --oldin | --oldi | --old | --ol | --o)
1059     ac_prev=oldincludedir ;;
1060   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063     oldincludedir=$ac_optarg ;;
1064
1065   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066     ac_prev=prefix ;;
1067   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068     prefix=$ac_optarg ;;
1069
1070   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071   | --program-pre | --program-pr | --program-p)
1072     ac_prev=program_prefix ;;
1073   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075     program_prefix=$ac_optarg ;;
1076
1077   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078   | --program-suf | --program-su | --program-s)
1079     ac_prev=program_suffix ;;
1080   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082     program_suffix=$ac_optarg ;;
1083
1084   -program-transform-name | --program-transform-name \
1085   | --program-transform-nam | --program-transform-na \
1086   | --program-transform-n | --program-transform- \
1087   | --program-transform | --program-transfor \
1088   | --program-transfo | --program-transf \
1089   | --program-trans | --program-tran \
1090   | --progr-tra | --program-tr | --program-t)
1091     ac_prev=program_transform_name ;;
1092   -program-transform-name=* | --program-transform-name=* \
1093   | --program-transform-nam=* | --program-transform-na=* \
1094   | --program-transform-n=* | --program-transform-=* \
1095   | --program-transform=* | --program-transfor=* \
1096   | --program-transfo=* | --program-transf=* \
1097   | --program-trans=* | --program-tran=* \
1098   | --progr-tra=* | --program-tr=* | --program-t=*)
1099     program_transform_name=$ac_optarg ;;
1100
1101   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102     ac_prev=pdfdir ;;
1103   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104     pdfdir=$ac_optarg ;;
1105
1106   -psdir | --psdir | --psdi | --psd | --ps)
1107     ac_prev=psdir ;;
1108   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109     psdir=$ac_optarg ;;
1110
1111   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112   | -silent | --silent | --silen | --sile | --sil)
1113     silent=yes ;;
1114
1115   -runstatedir | --runstatedir | --runstatedi | --runstated \
1116   | --runstate | --runstat | --runsta | --runst | --runs \
1117   | --run | --ru | --r)
1118     ac_prev=runstatedir ;;
1119   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1120   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1121   | --run=* | --ru=* | --r=*)
1122     runstatedir=$ac_optarg ;;
1123
1124   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125     ac_prev=sbindir ;;
1126   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127   | --sbi=* | --sb=*)
1128     sbindir=$ac_optarg ;;
1129
1130   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132   | --sharedst | --shareds | --shared | --share | --shar \
1133   | --sha | --sh)
1134     ac_prev=sharedstatedir ;;
1135   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138   | --sha=* | --sh=*)
1139     sharedstatedir=$ac_optarg ;;
1140
1141   -site | --site | --sit)
1142     ac_prev=site ;;
1143   -site=* | --site=* | --sit=*)
1144     site=$ac_optarg ;;
1145
1146   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147     ac_prev=srcdir ;;
1148   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149     srcdir=$ac_optarg ;;
1150
1151   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152   | --syscon | --sysco | --sysc | --sys | --sy)
1153     ac_prev=sysconfdir ;;
1154   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156     sysconfdir=$ac_optarg ;;
1157
1158   -target | --target | --targe | --targ | --tar | --ta | --t)
1159     ac_prev=target_alias ;;
1160   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161     target_alias=$ac_optarg ;;
1162
1163   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164     verbose=yes ;;
1165
1166   -version | --version | --versio | --versi | --vers | -V)
1167     ac_init_version=: ;;
1168
1169   -with-* | --with-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid package name: \`$ac_useropt'"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=\$ac_optarg ;;
1184
1185   -without-* | --without-*)
1186     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187     # Reject names that are not valid shell variable names.
1188     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189       as_fn_error $? "invalid package name: \`$ac_useropt'"
1190     ac_useropt_orig=$ac_useropt
1191     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192     case $ac_user_opts in
1193       *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197          ac_unrecognized_sep=', ';;
1198     esac
1199     eval with_$ac_useropt=no ;;
1200
1201   --x)
1202     # Obsolete; use --with-x.
1203     with_x=yes ;;
1204
1205   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206   | --x-incl | --x-inc | --x-in | --x-i)
1207     ac_prev=x_includes ;;
1208   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210     x_includes=$ac_optarg ;;
1211
1212   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214     ac_prev=x_libraries ;;
1215   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217     x_libraries=$ac_optarg ;;
1218
1219   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1221     ;;
1222
1223   *=*)
1224     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225     # Reject names that are not valid shell variable names.
1226     case $ac_envvar in #(
1227       '' | [0-9]* | *[!_$as_cr_alnum]* )
1228       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229     esac
1230     eval $ac_envvar=\$ac_optarg
1231     export $ac_envvar ;;
1232
1233   *)
1234     # FIXME: should be removed in autoconf 3.0.
1235     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1236     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1238     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239     ;;
1240
1241   esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246   as_fn_error $? "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250   case $enable_option_checking in
1251     no) ;;
1252     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254   esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259                 datadir sysconfdir sharedstatedir localstatedir includedir \
1260                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261                 libdir localedir mandir runstatedir
1262 do
1263   eval ac_val=\$$ac_var
1264   # Remove trailing slashes.
1265   case $ac_val in
1266     */ )
1267       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268       eval $ac_var=\$ac_val;;
1269   esac
1270   # Be sure to have absolute directory names.
1271   case $ac_val in
1272     [\\/$]* | ?:[\\/]* )  continue;;
1273     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274   esac
1275   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287   if test "x$build_alias" = x; then
1288     cross_compiling=maybe
1289   elif test "x$build_alias" != "x$host_alias"; then
1290     cross_compiling=yes
1291   fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303   as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305   as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310   ac_srcdir_defaulted=yes
1311   # Try the directory containing this script, then the parent directory.
1312   ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314          X"$as_myself" : 'X\(//\)[^/]' \| \
1315          X"$as_myself" : 'X\(//\)$' \| \
1316          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 printf "%s\n" X"$as_myself" |
1318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319             s//\1/
1320             q
1321           }
1322           /^X\(\/\/\)[^/].*/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)$/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\).*/{
1331             s//\1/
1332             q
1333           }
1334           s/.*/./; q'`
1335   srcdir=$ac_confdir
1336   if test ! -r "$srcdir/$ac_unique_file"; then
1337     srcdir=..
1338   fi
1339 else
1340   ac_srcdir_defaulted=no
1341 fi
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 fi
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349         pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352   srcdir=.
1353 fi
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362   eval ac_env_${ac_var}_value=\$${ac_var}
1363   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1366
1367 #
1368 # Report the --help message.
1369 #
1370 if test "$ac_init_help" = "long"; then
1371   # Omit some internal or obsolete options to make the list less imposing.
1372   # This message is too long to be a string in the A/UX 3.1 sh.
1373   cat <<_ACEOF
1374 \`configure' configures file 5.43 to adapt to many kinds of systems.
1375
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE.  See below for descriptions of some of the useful variables.
1380
1381 Defaults for the options are specified in brackets.
1382
1383 Configuration:
1384   -h, --help              display this help and exit
1385       --help=short        display options specific to this package
1386       --help=recursive    display the short help of all the included packages
1387   -V, --version           display version information and exit
1388   -q, --quiet, --silent   do not print \`checking ...' messages
1389       --cache-file=FILE   cache test results in FILE [disabled]
1390   -C, --config-cache      alias for \`--cache-file=config.cache'
1391   -n, --no-create         do not create output files
1392       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1393
1394 Installation directories:
1395   --prefix=PREFIX         install architecture-independent files in PREFIX
1396                           [$ac_default_prefix]
1397   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1398                           [PREFIX]
1399
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1404
1405 For better control, use the options below.
1406
1407 Fine tuning of the installation directories:
1408   --bindir=DIR            user executables [EPREFIX/bin]
1409   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1410   --libexecdir=DIR        program executables [EPREFIX/libexec]
1411   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1412   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1413   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1414   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1415   --libdir=DIR            object code libraries [EPREFIX/lib]
1416   --includedir=DIR        C header files [PREFIX/include]
1417   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1418   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1419   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1420   --infodir=DIR           info documentation [DATAROOTDIR/info]
1421   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1422   --mandir=DIR            man documentation [DATAROOTDIR/man]
1423   --docdir=DIR            documentation root [DATAROOTDIR/doc/file]
1424   --htmldir=DIR           html documentation [DOCDIR]
1425   --dvidir=DIR            dvi documentation [DOCDIR]
1426   --pdfdir=DIR            pdf documentation [DOCDIR]
1427   --psdir=DIR             ps documentation [DOCDIR]
1428 _ACEOF
1429
1430   cat <<\_ACEOF
1431
1432 Program names:
1433   --program-prefix=PREFIX            prepend PREFIX to installed program names
1434   --program-suffix=SUFFIX            append SUFFIX to installed program names
1435   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1436
1437 System types:
1438   --build=BUILD     configure for building on BUILD [guessed]
1439   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444   case $ac_init_help in
1445      short | recursive ) echo "Configuration of file 5.43:";;
1446    esac
1447   cat <<\_ACEOF
1448
1449 Optional Features:
1450   --disable-option-checking  ignore unrecognized --enable/--with options
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --enable-silent-rules   less verbose build output (undo: "make V=1")
1454   --disable-silent-rules  verbose build output (undo: "make V=0")
1455   --disable-elf            disable builtin ELF support
1456   --disable-elf-core       disable ELF core file support
1457   --disable-zlib          disable zlib compression support [default=auto]
1458   --disable-bzlib         disable bz2lib compression support [default=auto]
1459   --disable-xzlib         disable liblzma/xz compression support
1460                           [default=auto]
1461   --disable-libseccomp    disable libseccomp sandboxing [default=auto]
1462   --enable-fsect-man5      enable file formats in man section 5
1463   --enable-dependency-tracking
1464                           do not reject slow dependency extractors
1465   --disable-dependency-tracking
1466                           speeds up one-time build
1467   --enable-static[=PKGS]  build static libraries [default=no]
1468   --enable-shared[=PKGS]  build shared libraries [default=yes]
1469   --enable-fast-install[=PKGS]
1470                           optimize for fast installation [default=yes]
1471   --disable-libtool-lock  avoid locking (might break parallel builds)
1472   --disable-largefile     omit support for large files
1473   --disable-warnings    disable compiler warnings
1474
1475 Optional Packages:
1476   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1477   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1478   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1479                           both]
1480   --with-aix-soname=aix|svr4|both
1481                           shared library versioning (aka "SONAME") variant to
1482                           provide on AIX, [default=aix].
1483   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1484   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1485                           compiler's sysroot if not specified).
1486
1487 Some influential environment variables:
1488   CC          C compiler command
1489   CFLAGS      C compiler flags
1490   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1491               nonstandard directory <lib dir>
1492   LIBS        libraries to pass to the linker, e.g. -l<library>
1493   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494               you have headers in a nonstandard directory <include dir>
1495   LT_SYS_LIBRARY_PATH
1496               User-defined run-time library search path.
1497
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1500
1501 Report bugs to <christos@astron.com>.
1502 _ACEOF
1503 ac_status=$?
1504 fi
1505
1506 if test "$ac_init_help" = "recursive"; then
1507   # If there are subdirs, report their specific --help.
1508   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509     test -d "$ac_dir" ||
1510       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511       continue
1512     ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1518   # A ".." for each directory in $ac_dir_suffix.
1519   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520   case $ac_top_builddir_sub in
1521   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523   esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531   .)  # We are building in place.
1532     ac_srcdir=.
1533     ac_top_srcdir=$ac_top_builddir_sub
1534     ac_abs_top_srcdir=$ac_pwd ;;
1535   [\\/]* | ?:[\\/]* )  # Absolute name.
1536     ac_srcdir=$srcdir$ac_dir_suffix;
1537     ac_top_srcdir=$srcdir
1538     ac_abs_top_srcdir=$srcdir ;;
1539   *) # Relative name.
1540     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541     ac_top_srcdir=$ac_top_build_prefix$srcdir
1542     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546     cd "$ac_dir" || { ac_status=$?; continue; }
1547     # Check for configure.gnu first; this name is used for a wrapper for
1548     # Metaconfig's "Configure" on case-insensitive file systems.
1549     if test -f "$ac_srcdir/configure.gnu"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552     elif test -f "$ac_srcdir/configure"; then
1553       echo &&
1554       $SHELL "$ac_srcdir/configure" --help=recursive
1555     else
1556       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557     fi || ac_status=$?
1558     cd "$ac_pwd" || { ac_status=$?; break; }
1559   done
1560 fi
1561
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1564   cat <<\_ACEOF
1565 file configure 5.43
1566 generated by GNU Autoconf 2.71
1567
1568 Copyright (C) 2021 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571 _ACEOF
1572   exit
1573 fi
1574
1575 ## ------------------------ ##
1576 ## Autoconf initialization. ##
1577 ## ------------------------ ##
1578
1579 # ac_fn_c_try_compile LINENO
1580 # --------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_compile ()
1583 {
1584   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585   rm -f conftest.$ac_objext conftest.beam
1586   if { { ac_try="$ac_compile"
1587 case "(($ac_try" in
1588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589   *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 printf "%s\n" "$ac_try_echo"; } >&5
1593   (eval "$ac_compile") 2>conftest.err
1594   ac_status=$?
1595   if test -s conftest.err; then
1596     grep -v '^ *+' conftest.err >conftest.er1
1597     cat conftest.er1 >&5
1598     mv -f conftest.er1 conftest.err
1599   fi
1600   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601   test $ac_status = 0; } && {
1602          test -z "$ac_c_werror_flag" ||
1603          test ! -s conftest.err
1604        } && test -s conftest.$ac_objext
1605 then :
1606   ac_retval=0
1607 else $as_nop
1608   printf "%s\n" "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611         ac_retval=1
1612 fi
1613   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614   as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_compile
1617
1618 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists and can be compiled using the include files in
1621 # INCLUDES, setting the cache variable VAR accordingly.
1622 ac_fn_c_check_header_compile ()
1623 {
1624   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 printf %s "checking for $2... " >&6; }
1627 if eval test \${$3+y}
1628 then :
1629   printf %s "(cached) " >&6
1630 else $as_nop
1631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632 /* end confdefs.h.  */
1633 $4
1634 #include <$2>
1635 _ACEOF
1636 if ac_fn_c_try_compile "$LINENO"
1637 then :
1638   eval "$3=yes"
1639 else $as_nop
1640   eval "$3=no"
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1643 fi
1644 eval ac_res=\$$3
1645                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 printf "%s\n" "$ac_res" >&6; }
1647   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648
1649 } # ac_fn_c_check_header_compile
1650
1651 # ac_fn_c_try_run LINENO
1652 # ----------------------
1653 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1654 # executables *can* be run.
1655 ac_fn_c_try_run ()
1656 {
1657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658   if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 printf "%s\n" "$ac_try_echo"; } >&5
1665   (eval "$ac_link") 2>&5
1666   ac_status=$?
1667   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669   { { case "(($ac_try" in
1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671   *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 printf "%s\n" "$ac_try_echo"; } >&5
1675   (eval "$ac_try") 2>&5
1676   ac_status=$?
1677   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678   test $ac_status = 0; }; }
1679 then :
1680   ac_retval=0
1681 else $as_nop
1682   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1683        printf "%s\n" "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686        ac_retval=$ac_status
1687 fi
1688   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690   as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_run
1693
1694 # ac_fn_c_try_link LINENO
1695 # -----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_link ()
1698 {
1699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
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 printf "%s\n" "$ac_try_echo"; } >&5
1708   (eval "$ac_link") 2>conftest.err
1709   ac_status=$?
1710   if test -s conftest.err; then
1711     grep -v '^ *+' conftest.err >conftest.er1
1712     cat conftest.er1 >&5
1713     mv -f conftest.er1 conftest.err
1714   fi
1715   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716   test $ac_status = 0; } && {
1717          test -z "$ac_c_werror_flag" ||
1718          test ! -s conftest.err
1719        } && test -s conftest$ac_exeext && {
1720          test "$cross_compiling" = yes ||
1721          test -x conftest$ac_exeext
1722        }
1723 then :
1724   ac_retval=0
1725 else $as_nop
1726   printf "%s\n" "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729         ac_retval=1
1730 fi
1731   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733   # interfere with the next link command; also delete a directory that is
1734   # left behind by Apple's compiler.  We do this before executing the actions.
1735   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737   as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_link
1740
1741 # ac_fn_c_check_func LINENO FUNC VAR
1742 # ----------------------------------
1743 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1744 ac_fn_c_check_func ()
1745 {
1746   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 printf %s "checking for $2... " >&6; }
1749 if eval test \${$3+y}
1750 then :
1751   printf %s "(cached) " >&6
1752 else $as_nop
1753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h.  */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1757 #define $2 innocuous_$2
1758
1759 /* System header to define __stub macros and hopefully few prototypes,
1760    which can conflict with char $2 (); below.  */
1761
1762 #include <limits.h>
1763 #undef $2
1764
1765 /* Override any GCC internal prototype to avoid an error.
1766    Use char because int might match the return type of a GCC
1767    builtin and then its argument prototype would still apply.  */
1768 #ifdef __cplusplus
1769 extern "C"
1770 #endif
1771 char $2 ();
1772 /* The GNU C library defines this for functions which it implements
1773     to always fail with ENOSYS.  Some functions are actually named
1774     something starting with __ and the normal name is an alias.  */
1775 #if defined __stub_$2 || defined __stub___$2
1776 choke me
1777 #endif
1778
1779 int
1780 main (void)
1781 {
1782 return $2 ();
1783   ;
1784   return 0;
1785 }
1786 _ACEOF
1787 if ac_fn_c_try_link "$LINENO"
1788 then :
1789   eval "$3=yes"
1790 else $as_nop
1791   eval "$3=no"
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1794     conftest$ac_exeext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 printf "%s\n" "$ac_res" >&6; }
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801 } # ac_fn_c_check_func
1802
1803 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1804 # -------------------------------------------
1805 # Tests whether TYPE exists after having included INCLUDES, setting cache
1806 # variable VAR accordingly.
1807 ac_fn_c_check_type ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 printf %s "checking for $2... " >&6; }
1812 if eval test \${$3+y}
1813 then :
1814   printf %s "(cached) " >&6
1815 else $as_nop
1816   eval "$3=no"
1817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h.  */
1819 $4
1820 int
1821 main (void)
1822 {
1823 if (sizeof ($2))
1824          return 0;
1825   ;
1826   return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_compile "$LINENO"
1830 then :
1831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h.  */
1833 $4
1834 int
1835 main (void)
1836 {
1837 if (sizeof (($2)))
1838             return 0;
1839   ;
1840   return 0;
1841 }
1842 _ACEOF
1843 if ac_fn_c_try_compile "$LINENO"
1844 then :
1845
1846 else $as_nop
1847   eval "$3=yes"
1848 fi
1849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1852 fi
1853 eval ac_res=\$$3
1854                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 printf "%s\n" "$ac_res" >&6; }
1856   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_type
1859
1860 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1861 # ----------------------------------------------------
1862 # Tries to find if the field MEMBER exists in type AGGR, after including
1863 # INCLUDES, setting cache variable VAR accordingly.
1864 ac_fn_c_check_member ()
1865 {
1866   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1868 printf %s "checking for $2.$3... " >&6; }
1869 if eval test \${$4+y}
1870 then :
1871   printf %s "(cached) " >&6
1872 else $as_nop
1873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h.  */
1875 $5
1876 int
1877 main (void)
1878 {
1879 static $2 ac_aggr;
1880 if (ac_aggr.$3)
1881 return 0;
1882   ;
1883   return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_compile "$LINENO"
1887 then :
1888   eval "$4=yes"
1889 else $as_nop
1890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h.  */
1892 $5
1893 int
1894 main (void)
1895 {
1896 static $2 ac_aggr;
1897 if (sizeof ac_aggr.$3)
1898 return 0;
1899   ;
1900   return 0;
1901 }
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"
1904 then :
1905   eval "$4=yes"
1906 else $as_nop
1907   eval "$4=no"
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1912 fi
1913 eval ac_res=\$$4
1914                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 printf "%s\n" "$ac_res" >&6; }
1916   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918 } # ac_fn_c_check_member
1919
1920 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1921 # ------------------------------------------------------------------
1922 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1923 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1924 ac_fn_check_decl ()
1925 {
1926   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927   as_decl_name=`echo $2|sed 's/ *(.*//'`
1928   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1929 printf %s "checking whether $as_decl_name is declared... " >&6; }
1930 if eval test \${$3+y}
1931 then :
1932   printf %s "(cached) " >&6
1933 else $as_nop
1934   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1935   eval ac_save_FLAGS=\$$6
1936   as_fn_append $6 " $5"
1937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h.  */
1939 $4
1940 int
1941 main (void)
1942 {
1943 #ifndef $as_decl_name
1944 #ifdef __cplusplus
1945   (void) $as_decl_use;
1946 #else
1947   (void) $as_decl_name;
1948 #endif
1949 #endif
1950
1951   ;
1952   return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"
1956 then :
1957   eval "$3=yes"
1958 else $as_nop
1959   eval "$3=no"
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1962   eval $6=\$ac_save_FLAGS
1963
1964 fi
1965 eval ac_res=\$$3
1966                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 printf "%s\n" "$ac_res" >&6; }
1968   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970 } # ac_fn_check_decl
1971
1972 # ac_fn_c_find_uintX_t LINENO BITS VAR
1973 # ------------------------------------
1974 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1975 # accordingly.
1976 ac_fn_c_find_uintX_t ()
1977 {
1978   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1980 printf %s "checking for uint$2_t... " >&6; }
1981 if eval test \${$3+y}
1982 then :
1983   printf %s "(cached) " >&6
1984 else $as_nop
1985   eval "$3=no"
1986      # Order is important - never check a type that is potentially smaller
1987      # than half of the expected target width.
1988      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1989          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1990        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h.  */
1992 $ac_includes_default
1993 int
1994 main (void)
1995 {
1996 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1997 test_array [0] = 0;
1998 return test_array [0];
1999
2000   ;
2001   return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"
2005 then :
2006   case $ac_type in #(
2007   uint$2_t) :
2008     eval "$3=yes" ;; #(
2009   *) :
2010     eval "$3=\$ac_type" ;;
2011 esac
2012 fi
2013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2014        if eval test \"x\$"$3"\" = x"no"
2015 then :
2016
2017 else $as_nop
2018   break
2019 fi
2020      done
2021 fi
2022 eval ac_res=\$$3
2023                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 printf "%s\n" "$ac_res" >&6; }
2025   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027 } # ac_fn_c_find_uintX_t
2028
2029 # ac_fn_c_find_intX_t LINENO BITS VAR
2030 # -----------------------------------
2031 # Finds a signed integer type with width BITS, setting cache variable VAR
2032 # accordingly.
2033 ac_fn_c_find_intX_t ()
2034 {
2035   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2037 printf %s "checking for int$2_t... " >&6; }
2038 if eval test \${$3+y}
2039 then :
2040   printf %s "(cached) " >&6
2041 else $as_nop
2042   eval "$3=no"
2043      # Order is important - never check a type that is potentially smaller
2044      # than half of the expected target width.
2045      for ac_type in int$2_t 'int' 'long int' \
2046          'long long int' 'short int' 'signed char'; do
2047        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h.  */
2049 $ac_includes_default
2050              enum { N = $2 / 2 - 1 };
2051 int
2052 main (void)
2053 {
2054 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2055 test_array [0] = 0;
2056 return test_array [0];
2057
2058   ;
2059   return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"
2063 then :
2064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h.  */
2066 $ac_includes_default
2067                 enum { N = $2 / 2 - 1 };
2068 int
2069 main (void)
2070 {
2071 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2072                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2073 test_array [0] = 0;
2074 return test_array [0];
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"
2081 then :
2082
2083 else $as_nop
2084   case $ac_type in #(
2085   int$2_t) :
2086     eval "$3=yes" ;; #(
2087   *) :
2088     eval "$3=\$ac_type" ;;
2089 esac
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2094        if eval test \"x\$"$3"\" = x"no"
2095 then :
2096
2097 else $as_nop
2098   break
2099 fi
2100      done
2101 fi
2102 eval ac_res=\$$3
2103                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 printf "%s\n" "$ac_res" >&6; }
2105   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
2107 } # ac_fn_c_find_intX_t
2108 ac_configure_args_raw=
2109 for ac_arg
2110 do
2111   case $ac_arg in
2112   *\'*)
2113     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2114   esac
2115   as_fn_append ac_configure_args_raw " '$ac_arg'"
2116 done
2117
2118 case $ac_configure_args_raw in
2119   *$as_nl*)
2120     ac_safe_unquote= ;;
2121   *)
2122     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2123     ac_unsafe_a="$ac_unsafe_z#~"
2124     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2125     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2126 esac
2127
2128 cat >config.log <<_ACEOF
2129 This file contains any messages produced by compilers while
2130 running configure, to aid debugging if configure makes a mistake.
2131
2132 It was created by file $as_me 5.43, which was
2133 generated by GNU Autoconf 2.71.  Invocation command line was
2134
2135   $ $0$ac_configure_args_raw
2136
2137 _ACEOF
2138 exec 5>>config.log
2139 {
2140 cat <<_ASUNAME
2141 ## --------- ##
2142 ## Platform. ##
2143 ## --------- ##
2144
2145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2150
2151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2152 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2153
2154 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2155 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2157 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2158 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2159 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2160 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2161
2162 _ASUNAME
2163
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167   IFS=$as_save_IFS
2168   case $as_dir in #(((
2169     '') as_dir=./ ;;
2170     */) ;;
2171     *) as_dir=$as_dir/ ;;
2172   esac
2173     printf "%s\n" "PATH: $as_dir"
2174   done
2175 IFS=$as_save_IFS
2176
2177 } >&5
2178
2179 cat >&5 <<_ACEOF
2180
2181
2182 ## ----------- ##
2183 ## Core tests. ##
2184 ## ----------- ##
2185
2186 _ACEOF
2187
2188
2189 # Keep a trace of the command line.
2190 # Strip out --no-create and --no-recursion so they do not pile up.
2191 # Strip out --silent because we don't want to record it for future runs.
2192 # Also quote any args containing shell meta-characters.
2193 # Make two passes to allow for proper duplicate-argument suppression.
2194 ac_configure_args=
2195 ac_configure_args0=
2196 ac_configure_args1=
2197 ac_must_keep_next=false
2198 for ac_pass in 1 2
2199 do
2200   for ac_arg
2201   do
2202     case $ac_arg in
2203     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2204     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2205     | -silent | --silent | --silen | --sile | --sil)
2206       continue ;;
2207     *\'*)
2208       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2209     esac
2210     case $ac_pass in
2211     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2212     2)
2213       as_fn_append ac_configure_args1 " '$ac_arg'"
2214       if test $ac_must_keep_next = true; then
2215         ac_must_keep_next=false # Got value, back to normal.
2216       else
2217         case $ac_arg in
2218           *=* | --config-cache | -C | -disable-* | --disable-* \
2219           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2220           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2221           | -with-* | --with-* | -without-* | --without-* | --x)
2222             case "$ac_configure_args0 " in
2223               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2224             esac
2225             ;;
2226           -* ) ac_must_keep_next=true ;;
2227         esac
2228       fi
2229       as_fn_append ac_configure_args " '$ac_arg'"
2230       ;;
2231     esac
2232   done
2233 done
2234 { ac_configure_args0=; unset ac_configure_args0;}
2235 { ac_configure_args1=; unset ac_configure_args1;}
2236
2237 # When interrupted or exit'd, cleanup temporary files, and complete
2238 # config.log.  We remove comments because anyway the quotes in there
2239 # would cause problems or look ugly.
2240 # WARNING: Use '\'' to represent an apostrophe within the trap.
2241 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2242 trap 'exit_status=$?
2243   # Sanitize IFS.
2244   IFS=" ""      $as_nl"
2245   # Save into config.log some information that might help in debugging.
2246   {
2247     echo
2248
2249     printf "%s\n" "## ---------------- ##
2250 ## Cache variables. ##
2251 ## ---------------- ##"
2252     echo
2253     # The following way of writing the cache mishandles newlines in values,
2254 (
2255   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256     eval ac_val=\$$ac_var
2257     case $ac_val in #(
2258     *${as_nl}*)
2259       case $ac_var in #(
2260       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2262       esac
2263       case $ac_var in #(
2264       _ | IFS | as_nl) ;; #(
2265       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266       *) { eval $ac_var=; unset $ac_var;} ;;
2267       esac ;;
2268     esac
2269   done
2270   (set) 2>&1 |
2271     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272     *${as_nl}ac_space=\ *)
2273       sed -n \
2274         "s/'\''/'\''\\\\'\'''\''/g;
2275           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2276       ;; #(
2277     *)
2278       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2279       ;;
2280     esac |
2281     sort
2282 )
2283     echo
2284
2285     printf "%s\n" "## ----------------- ##
2286 ## Output variables. ##
2287 ## ----------------- ##"
2288     echo
2289     for ac_var in $ac_subst_vars
2290     do
2291       eval ac_val=\$$ac_var
2292       case $ac_val in
2293       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294       esac
2295       printf "%s\n" "$ac_var='\''$ac_val'\''"
2296     done | sort
2297     echo
2298
2299     if test -n "$ac_subst_files"; then
2300       printf "%s\n" "## ------------------- ##
2301 ## File substitutions. ##
2302 ## ------------------- ##"
2303       echo
2304       for ac_var in $ac_subst_files
2305       do
2306         eval ac_val=\$$ac_var
2307         case $ac_val in
2308         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2309         esac
2310         printf "%s\n" "$ac_var='\''$ac_val'\''"
2311       done | sort
2312       echo
2313     fi
2314
2315     if test -s confdefs.h; then
2316       printf "%s\n" "## ----------- ##
2317 ## confdefs.h. ##
2318 ## ----------- ##"
2319       echo
2320       cat confdefs.h
2321       echo
2322     fi
2323     test "$ac_signal" != 0 &&
2324       printf "%s\n" "$as_me: caught signal $ac_signal"
2325     printf "%s\n" "$as_me: exit $exit_status"
2326   } >&5
2327   rm -f core *.core core.conftest.* &&
2328     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2329     exit $exit_status
2330 ' 0
2331 for ac_signal in 1 2 13 15; do
2332   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2333 done
2334 ac_signal=0
2335
2336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2337 rm -f -r conftest* confdefs.h
2338
2339 printf "%s\n" "/* confdefs.h */" > confdefs.h
2340
2341 # Predefined preprocessor variables.
2342
2343 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2344
2345 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2346
2347 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2348
2349 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2350
2351 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2352
2353 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2354
2355
2356 # Let the site file select an alternate cache file if it wants to.
2357 # Prefer an explicitly selected file to automatically selected ones.
2358 if test -n "$CONFIG_SITE"; then
2359   ac_site_files="$CONFIG_SITE"
2360 elif test "x$prefix" != xNONE; then
2361   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2362 else
2363   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2364 fi
2365
2366 for ac_site_file in $ac_site_files
2367 do
2368   case $ac_site_file in #(
2369   */*) :
2370      ;; #(
2371   *) :
2372     ac_site_file=./$ac_site_file ;;
2373 esac
2374   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2375     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2376 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2377     sed 's/^/| /' "$ac_site_file" >&5
2378     . "$ac_site_file" \
2379       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2381 as_fn_error $? "failed to load site script $ac_site_file
2382 See \`config.log' for more details" "$LINENO" 5; }
2383   fi
2384 done
2385
2386 if test -r "$cache_file"; then
2387   # Some versions of bash will fail to source /dev/null (special files
2388   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2389   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2390     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2391 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2392     case $cache_file in
2393       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2394       *)                      . "./$cache_file";;
2395     esac
2396   fi
2397 else
2398   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2399 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2400   >$cache_file
2401 fi
2402
2403 # Test code for whether the C compiler supports C89 (global declarations)
2404 ac_c_conftest_c89_globals='
2405 /* Does the compiler advertise C89 conformance?
2406    Do not test the value of __STDC__, because some compilers set it to 0
2407    while being otherwise adequately conformant. */
2408 #if !defined __STDC__
2409 # error "Compiler does not advertise C89 conformance"
2410 #endif
2411
2412 #include <stddef.h>
2413 #include <stdarg.h>
2414 struct stat;
2415 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2416 struct buf { int x; };
2417 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2418 static char *e (p, i)
2419      char **p;
2420      int i;
2421 {
2422   return p[i];
2423 }
2424 static char *f (char * (*g) (char **, int), char **p, ...)
2425 {
2426   char *s;
2427   va_list v;
2428   va_start (v,p);
2429   s = g (p, va_arg (v,int));
2430   va_end (v);
2431   return s;
2432 }
2433
2434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2435    function prototypes and stuff, but not \xHH hex character constants.
2436    These do not provoke an error unfortunately, instead are silently treated
2437    as an "x".  The following induces an error, until -std is added to get
2438    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2439    array size at least.  It is necessary to write \x00 == 0 to get something
2440    that is true only with -std.  */
2441 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2442
2443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2444    inside strings and character constants.  */
2445 #define FOO(x) '\''x'\''
2446 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2447
2448 int test (int i, double x);
2449 struct s1 {int (*f) (int a);};
2450 struct s2 {int (*f) (double a);};
2451 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2452                int, int);'
2453
2454 # Test code for whether the C compiler supports C89 (body of main).
2455 ac_c_conftest_c89_main='
2456 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2457 '
2458
2459 # Test code for whether the C compiler supports C99 (global declarations)
2460 ac_c_conftest_c99_globals='
2461 // Does the compiler advertise C99 conformance?
2462 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2463 # error "Compiler does not advertise C99 conformance"
2464 #endif
2465
2466 #include <stdbool.h>
2467 extern int puts (const char *);
2468 extern int printf (const char *, ...);
2469 extern int dprintf (int, const char *, ...);
2470 extern void *malloc (size_t);
2471
2472 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2473 // dprintf is used instead of fprintf to avoid needing to declare
2474 // FILE and stderr.
2475 #define debug(...) dprintf (2, __VA_ARGS__)
2476 #define showlist(...) puts (#__VA_ARGS__)
2477 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2478 static void
2479 test_varargs_macros (void)
2480 {
2481   int x = 1234;
2482   int y = 5678;
2483   debug ("Flag");
2484   debug ("X = %d\n", x);
2485   showlist (The first, second, and third items.);
2486   report (x>y, "x is %d but y is %d", x, y);
2487 }
2488
2489 // Check long long types.
2490 #define BIG64 18446744073709551615ull
2491 #define BIG32 4294967295ul
2492 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2493 #if !BIG_OK
2494   #error "your preprocessor is broken"
2495 #endif
2496 #if BIG_OK
2497 #else
2498   #error "your preprocessor is broken"
2499 #endif
2500 static long long int bignum = -9223372036854775807LL;
2501 static unsigned long long int ubignum = BIG64;
2502
2503 struct incomplete_array
2504 {
2505   int datasize;
2506   double data[];
2507 };
2508
2509 struct named_init {
2510   int number;
2511   const wchar_t *name;
2512   double average;
2513 };
2514
2515 typedef const char *ccp;
2516
2517 static inline int
2518 test_restrict (ccp restrict text)
2519 {
2520   // See if C++-style comments work.
2521   // Iterate through items via the restricted pointer.
2522   // Also check for declarations in for loops.
2523   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2524     continue;
2525   return 0;
2526 }
2527
2528 // Check varargs and va_copy.
2529 static bool
2530 test_varargs (const char *format, ...)
2531 {
2532   va_list args;
2533   va_start (args, format);
2534   va_list args_copy;
2535   va_copy (args_copy, args);
2536
2537   const char *str = "";
2538   int number = 0;
2539   float fnumber = 0;
2540
2541   while (*format)
2542     {
2543       switch (*format++)
2544         {
2545         case '\''s'\'': // string
2546           str = va_arg (args_copy, const char *);
2547           break;
2548         case '\''d'\'': // int
2549           number = va_arg (args_copy, int);
2550           break;
2551         case '\''f'\'': // float
2552           fnumber = va_arg (args_copy, double);
2553           break;
2554         default:
2555           break;
2556         }
2557     }
2558   va_end (args_copy);
2559   va_end (args);
2560
2561   return *str && number && fnumber;
2562 }
2563 '
2564
2565 # Test code for whether the C compiler supports C99 (body of main).
2566 ac_c_conftest_c99_main='
2567   // Check bool.
2568   _Bool success = false;
2569   success |= (argc != 0);
2570
2571   // Check restrict.
2572   if (test_restrict ("String literal") == 0)
2573     success = true;
2574   char *restrict newvar = "Another string";
2575
2576   // Check varargs.
2577   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2578   test_varargs_macros ();
2579
2580   // Check flexible array members.
2581   struct incomplete_array *ia =
2582     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2583   ia->datasize = 10;
2584   for (int i = 0; i < ia->datasize; ++i)
2585     ia->data[i] = i * 1.234;
2586
2587   // Check named initializers.
2588   struct named_init ni = {
2589     .number = 34,
2590     .name = L"Test wide string",
2591     .average = 543.34343,
2592   };
2593
2594   ni.number = 58;
2595
2596   int dynamic_array[ni.number];
2597   dynamic_array[0] = argv[0][0];
2598   dynamic_array[ni.number - 1] = 543;
2599
2600   // work around unused variable warnings
2601   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2602          || dynamic_array[ni.number - 1] != 543);
2603 '
2604
2605 # Test code for whether the C compiler supports C11 (global declarations)
2606 ac_c_conftest_c11_globals='
2607 // Does the compiler advertise C11 conformance?
2608 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2609 # error "Compiler does not advertise C11 conformance"
2610 #endif
2611
2612 // Check _Alignas.
2613 char _Alignas (double) aligned_as_double;
2614 char _Alignas (0) no_special_alignment;
2615 extern char aligned_as_int;
2616 char _Alignas (0) _Alignas (int) aligned_as_int;
2617
2618 // Check _Alignof.
2619 enum
2620 {
2621   int_alignment = _Alignof (int),
2622   int_array_alignment = _Alignof (int[100]),
2623   char_alignment = _Alignof (char)
2624 };
2625 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2626
2627 // Check _Noreturn.
2628 int _Noreturn does_not_return (void) { for (;;) continue; }
2629
2630 // Check _Static_assert.
2631 struct test_static_assert
2632 {
2633   int x;
2634   _Static_assert (sizeof (int) <= sizeof (long int),
2635                   "_Static_assert does not work in struct");
2636   long int y;
2637 };
2638
2639 // Check UTF-8 literals.
2640 #define u8 syntax error!
2641 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2642
2643 // Check duplicate typedefs.
2644 typedef long *long_ptr;
2645 typedef long int *long_ptr;
2646 typedef long_ptr long_ptr;
2647
2648 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2649 struct anonymous
2650 {
2651   union {
2652     struct { int i; int j; };
2653     struct { int k; long int l; } w;
2654   };
2655   int m;
2656 } v1;
2657 '
2658
2659 # Test code for whether the C compiler supports C11 (body of main).
2660 ac_c_conftest_c11_main='
2661   _Static_assert ((offsetof (struct anonymous, i)
2662                    == offsetof (struct anonymous, w.k)),
2663                   "Anonymous union alignment botch");
2664   v1.i = 2;
2665   v1.w.k = 5;
2666   ok |= v1.i != 5;
2667 '
2668
2669 # Test code for whether the C compiler supports C11 (complete).
2670 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2671 ${ac_c_conftest_c99_globals}
2672 ${ac_c_conftest_c11_globals}
2673
2674 int
2675 main (int argc, char **argv)
2676 {
2677   int ok = 0;
2678   ${ac_c_conftest_c89_main}
2679   ${ac_c_conftest_c99_main}
2680   ${ac_c_conftest_c11_main}
2681   return ok;
2682 }
2683 "
2684
2685 # Test code for whether the C compiler supports C99 (complete).
2686 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2687 ${ac_c_conftest_c99_globals}
2688
2689 int
2690 main (int argc, char **argv)
2691 {
2692   int ok = 0;
2693   ${ac_c_conftest_c89_main}
2694   ${ac_c_conftest_c99_main}
2695   return ok;
2696 }
2697 "
2698
2699 # Test code for whether the C compiler supports C89 (complete).
2700 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2701
2702 int
2703 main (int argc, char **argv)
2704 {
2705   int ok = 0;
2706   ${ac_c_conftest_c89_main}
2707   return ok;
2708 }
2709 "
2710
2711 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2712 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2713 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2714 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2715 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2716 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2717 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2718 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2719 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2720 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2721 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2722 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2723 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2724 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2725 as_fn_append ac_func_c_list " fork HAVE_FORK"
2726 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2727
2728 # Auxiliary files required by this configure script.
2729 ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
2730
2731 # Locations in which to look for auxiliary files.
2732 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2733
2734 # Search for a directory containing all of the required auxiliary files,
2735 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2736 # If we don't find one directory that contains all the files we need,
2737 # we report the set of missing files from the *first* directory in
2738 # $ac_aux_dir_candidates and give up.
2739 ac_missing_aux_files=""
2740 ac_first_candidate=:
2741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 as_found=false
2744 for as_dir in $ac_aux_dir_candidates
2745 do
2746   IFS=$as_save_IFS
2747   case $as_dir in #(((
2748     '') as_dir=./ ;;
2749     */) ;;
2750     *) as_dir=$as_dir/ ;;
2751   esac
2752   as_found=:
2753
2754   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2755   ac_aux_dir_found=yes
2756   ac_install_sh=
2757   for ac_aux in $ac_aux_files
2758   do
2759     # As a special case, if "install-sh" is required, that requirement
2760     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2761     # and $ac_install_sh is set appropriately for whichever one is found.
2762     if test x"$ac_aux" = x"install-sh"
2763     then
2764       if test -f "${as_dir}install-sh"; then
2765         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2766         ac_install_sh="${as_dir}install-sh -c"
2767       elif test -f "${as_dir}install.sh"; then
2768         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2769         ac_install_sh="${as_dir}install.sh -c"
2770       elif test -f "${as_dir}shtool"; then
2771         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2772         ac_install_sh="${as_dir}shtool install -c"
2773       else
2774         ac_aux_dir_found=no
2775         if $ac_first_candidate; then
2776           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2777         else
2778           break
2779         fi
2780       fi
2781     else
2782       if test -f "${as_dir}${ac_aux}"; then
2783         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2784       else
2785         ac_aux_dir_found=no
2786         if $ac_first_candidate; then
2787           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2788         else
2789           break
2790         fi
2791       fi
2792     fi
2793   done
2794   if test "$ac_aux_dir_found" = yes; then
2795     ac_aux_dir="$as_dir"
2796     break
2797   fi
2798   ac_first_candidate=false
2799
2800   as_found=false
2801 done
2802 IFS=$as_save_IFS
2803 if $as_found
2804 then :
2805
2806 else $as_nop
2807   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2808 fi
2809
2810
2811 # These three variables are undocumented and unsupported,
2812 # and are intended to be withdrawn in a future Autoconf release.
2813 # They can cause serious problems if a builder's source tree is in a directory
2814 # whose full name contains unusual characters.
2815 if test -f "${ac_aux_dir}config.guess"; then
2816   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2817 fi
2818 if test -f "${ac_aux_dir}config.sub"; then
2819   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2820 fi
2821 if test -f "$ac_aux_dir/configure"; then
2822   ac_configure="$SHELL ${ac_aux_dir}configure"
2823 fi
2824
2825 # Check that the precious variables saved in the cache have kept the same
2826 # value.
2827 ac_cache_corrupted=false
2828 for ac_var in $ac_precious_vars; do
2829   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2830   eval ac_new_set=\$ac_env_${ac_var}_set
2831   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2832   eval ac_new_val=\$ac_env_${ac_var}_value
2833   case $ac_old_set,$ac_new_set in
2834     set,)
2835       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2836 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2837       ac_cache_corrupted=: ;;
2838     ,set)
2839       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2840 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2841       ac_cache_corrupted=: ;;
2842     ,);;
2843     *)
2844       if test "x$ac_old_val" != "x$ac_new_val"; then
2845         # differences in whitespace do not lead to failure.
2846         ac_old_val_w=`echo x $ac_old_val`
2847         ac_new_val_w=`echo x $ac_new_val`
2848         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2849           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2850 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2851           ac_cache_corrupted=:
2852         else
2853           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2854 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2855           eval $ac_var=\$ac_old_val
2856         fi
2857         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2858 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2859         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2860 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2861       fi;;
2862   esac
2863   # Pass precious variables to config.status.
2864   if test "$ac_new_set" = set; then
2865     case $ac_new_val in
2866     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2867     *) ac_arg=$ac_var=$ac_new_val ;;
2868     esac
2869     case " $ac_configure_args " in
2870       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2871       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2872     esac
2873   fi
2874 done
2875 if $ac_cache_corrupted; then
2876   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2877 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2878   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2879 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2880   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2881             and start over" "$LINENO" 5
2882 fi
2883 ## -------------------- ##
2884 ## Main body of script. ##
2885 ## -------------------- ##
2886
2887 ac_ext=c
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892
2893
2894 am__api_version='1.16'
2895
2896
2897
2898   # Find a good install program.  We prefer a C program (faster),
2899 # so one script is as good as another.  But avoid the broken or
2900 # incompatible versions:
2901 # SysV /etc/install, /usr/sbin/install
2902 # SunOS /usr/etc/install
2903 # IRIX /sbin/install
2904 # AIX /bin/install
2905 # AmigaOS /C/install, which installs bootblocks on floppy discs
2906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2909 # OS/2's system install, which has a completely different semantic
2910 # ./install, which can be erroneously created by make from ./install.sh.
2911 # Reject install programs that cannot install multiple files.
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2913 printf %s "checking for a BSD-compatible install... " >&6; }
2914 if test -z "$INSTALL"; then
2915 if test ${ac_cv_path_install+y}
2916 then :
2917   printf %s "(cached) " >&6
2918 else $as_nop
2919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922   IFS=$as_save_IFS
2923   case $as_dir in #(((
2924     '') as_dir=./ ;;
2925     */) ;;
2926     *) as_dir=$as_dir/ ;;
2927   esac
2928     # Account for fact that we put trailing slashes in our PATH walk.
2929 case $as_dir in #((
2930   ./ | /[cC]/* | \
2931   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2932   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2933   /usr/ucb/* ) ;;
2934   *)
2935     # OSF1 and SCO ODT 3.0 have their own names for install.
2936     # Don't use installbsd from OSF since it installs stuff as root
2937     # by default.
2938     for ac_prog in ginstall scoinst install; do
2939       for ac_exec_ext in '' $ac_executable_extensions; do
2940         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2941           if test $ac_prog = install &&
2942             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2943             # AIX install.  It has an incompatible calling convention.
2944             :
2945           elif test $ac_prog = install &&
2946             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2947             # program-specific install script used by HP pwplus--don't use.
2948             :
2949           else
2950             rm -rf conftest.one conftest.two conftest.dir
2951             echo one > conftest.one
2952             echo two > conftest.two
2953             mkdir conftest.dir
2954             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2955               test -s conftest.one && test -s conftest.two &&
2956               test -s conftest.dir/conftest.one &&
2957               test -s conftest.dir/conftest.two
2958             then
2959               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2960               break 3
2961             fi
2962           fi
2963         fi
2964       done
2965     done
2966     ;;
2967 esac
2968
2969   done
2970 IFS=$as_save_IFS
2971
2972 rm -rf conftest.one conftest.two conftest.dir
2973
2974 fi
2975   if test ${ac_cv_path_install+y}; then
2976     INSTALL=$ac_cv_path_install
2977   else
2978     # As a last resort, use the slow shell script.  Don't cache a
2979     # value for INSTALL within a source directory, because that will
2980     # break other packages using the cache if that directory is
2981     # removed, or if the value is a relative name.
2982     INSTALL=$ac_install_sh
2983   fi
2984 fi
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2986 printf "%s\n" "$INSTALL" >&6; }
2987
2988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2989 # It thinks the first close brace ends the variable substitution.
2990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2991
2992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2993
2994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2995
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2997 printf %s "checking whether build environment is sane... " >&6; }
2998 # Reject unsafe characters in $srcdir or the absolute working directory
2999 # name.  Accept space and tab only in the latter.
3000 am_lf='
3001 '
3002 case `pwd` in
3003   *[\\\"\#\$\&\'\`$am_lf]*)
3004     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3005 esac
3006 case $srcdir in
3007   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3008     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3009 esac
3010
3011 # Do 'set' in a subshell so we don't clobber the current shell's
3012 # arguments.  Must try -L first in case configure is actually a
3013 # symlink; some systems play weird games with the mod time of symlinks
3014 # (eg FreeBSD returns the mod time of the symlink's containing
3015 # directory).
3016 if (
3017    am_has_slept=no
3018    for am_try in 1 2; do
3019      echo "timestamp, slept: $am_has_slept" > conftest.file
3020      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3021      if test "$*" = "X"; then
3022         # -L didn't work.
3023         set X `ls -t "$srcdir/configure" conftest.file`
3024      fi
3025      if test "$*" != "X $srcdir/configure conftest.file" \
3026         && test "$*" != "X conftest.file $srcdir/configure"; then
3027
3028         # If neither matched, then we have a broken ls.  This can happen
3029         # if, for instance, CONFIG_SHELL is bash and it inherits a
3030         # broken ls alias from the environment.  This has actually
3031         # happened.  Such a system could not be considered "sane".
3032         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3033   alias in your environment" "$LINENO" 5
3034      fi
3035      if test "$2" = conftest.file || test $am_try -eq 2; then
3036        break
3037      fi
3038      # Just in case.
3039      sleep 1
3040      am_has_slept=yes
3041    done
3042    test "$2" = conftest.file
3043    )
3044 then
3045    # Ok.
3046    :
3047 else
3048    as_fn_error $? "newly created file is older than distributed files!
3049 Check your system clock" "$LINENO" 5
3050 fi
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052 printf "%s\n" "yes" >&6; }
3053 # If we didn't sleep, we still need to ensure time stamps of config.status and
3054 # generated files are strictly newer.
3055 am_sleep_pid=
3056 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3057   ( sleep 1 ) &
3058   am_sleep_pid=$!
3059 fi
3060
3061 rm -f conftest.file
3062
3063 test "$program_prefix" != NONE &&
3064   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3065 # Use a double $ so make ignores it.
3066 test "$program_suffix" != NONE &&
3067   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3068 # Double any \ or $.
3069 # By default was `s,x,x', remove it if useless.
3070 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3071 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3072
3073
3074 # Expand $ac_aux_dir to an absolute path.
3075 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3076
3077
3078   if test x"${MISSING+set}" != xset; then
3079   MISSING="\${SHELL} '$am_aux_dir/missing'"
3080 fi
3081 # Use eval to expand $SHELL
3082 if eval "$MISSING --is-lightweight"; then
3083   am_missing_run="$MISSING "
3084 else
3085   am_missing_run=
3086   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3087 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3088 fi
3089
3090 if test x"${install_sh+set}" != xset; then
3091   case $am_aux_dir in
3092   *\ * | *\     *)
3093     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3094   *)
3095     install_sh="\${SHELL} $am_aux_dir/install-sh"
3096   esac
3097 fi
3098
3099 # Installed binaries are usually stripped using 'strip' when the user
3100 # run "make install-strip".  However 'strip' might not be the right
3101 # tool to use in cross-compilation environments, therefore Automake
3102 # will honor the 'STRIP' environment variable to overrule this program.
3103 if test "$cross_compiling" != no; then
3104   if test -n "$ac_tool_prefix"; then
3105   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3106 set dummy ${ac_tool_prefix}strip; ac_word=$2
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 printf %s "checking for $ac_word... " >&6; }
3109 if test ${ac_cv_prog_STRIP+y}
3110 then :
3111   printf %s "(cached) " >&6
3112 else $as_nop
3113   if test -n "$STRIP"; then
3114   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119   IFS=$as_save_IFS
3120   case $as_dir in #(((
3121     '') as_dir=./ ;;
3122     */) ;;
3123     *) as_dir=$as_dir/ ;;
3124   esac
3125     for ac_exec_ext in '' $ac_executable_extensions; do
3126   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3127     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3128     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132   done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 STRIP=$ac_cv_prog_STRIP
3138 if test -n "$STRIP"; then
3139   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3140 printf "%s\n" "$STRIP" >&6; }
3141 else
3142   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 printf "%s\n" "no" >&6; }
3144 fi
3145
3146
3147 fi
3148 if test -z "$ac_cv_prog_STRIP"; then
3149   ac_ct_STRIP=$STRIP
3150   # Extract the first word of "strip", so it can be a program name with args.
3151 set dummy strip; ac_word=$2
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 printf %s "checking for $ac_word... " >&6; }
3154 if test ${ac_cv_prog_ac_ct_STRIP+y}
3155 then :
3156   printf %s "(cached) " >&6
3157 else $as_nop
3158   if test -n "$ac_ct_STRIP"; then
3159   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164   IFS=$as_save_IFS
3165   case $as_dir in #(((
3166     '') as_dir=./ ;;
3167     */) ;;
3168     *) as_dir=$as_dir/ ;;
3169   esac
3170     for ac_exec_ext in '' $ac_executable_extensions; do
3171   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3172     ac_cv_prog_ac_ct_STRIP="strip"
3173     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3174     break 2
3175   fi
3176 done
3177   done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3183 if test -n "$ac_ct_STRIP"; then
3184   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3185 printf "%s\n" "$ac_ct_STRIP" >&6; }
3186 else
3187   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 printf "%s\n" "no" >&6; }
3189 fi
3190
3191   if test "x$ac_ct_STRIP" = x; then
3192     STRIP=":"
3193   else
3194     case $cross_compiling:$ac_tool_warned in
3195 yes:)
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3197 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3198 ac_tool_warned=yes ;;
3199 esac
3200     STRIP=$ac_ct_STRIP
3201   fi
3202 else
3203   STRIP="$ac_cv_prog_STRIP"
3204 fi
3205
3206 fi
3207 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3208
3209
3210   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3211 printf %s "checking for a race-free mkdir -p... " >&6; }
3212 if test -z "$MKDIR_P"; then
3213   if test ${ac_cv_path_mkdir+y}
3214 then :
3215   printf %s "(cached) " >&6
3216 else $as_nop
3217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3219 do
3220   IFS=$as_save_IFS
3221   case $as_dir in #(((
3222     '') as_dir=./ ;;
3223     */) ;;
3224     *) as_dir=$as_dir/ ;;
3225   esac
3226     for ac_prog in mkdir gmkdir; do
3227          for ac_exec_ext in '' $ac_executable_extensions; do
3228            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3229            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3230              'mkdir ('*'coreutils) '* | \
3231              'BusyBox '* | \
3232              'mkdir (fileutils) '4.1*)
3233                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3234                break 3;;
3235            esac
3236          done
3237        done
3238   done
3239 IFS=$as_save_IFS
3240
3241 fi
3242
3243   test -d ./--version && rmdir ./--version
3244   if test ${ac_cv_path_mkdir+y}; then
3245     MKDIR_P="$ac_cv_path_mkdir -p"
3246   else
3247     # As a last resort, use the slow shell script.  Don't cache a
3248     # value for MKDIR_P within a source directory, because that will
3249     # break other packages using the cache if that directory is
3250     # removed, or if the value is a relative name.
3251     MKDIR_P="$ac_install_sh -d"
3252   fi
3253 fi
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3255 printf "%s\n" "$MKDIR_P" >&6; }
3256
3257 for ac_prog in gawk mawk nawk awk
3258 do
3259   # Extract the first word of "$ac_prog", so it can be a program name with args.
3260 set dummy $ac_prog; ac_word=$2
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 printf %s "checking for $ac_word... " >&6; }
3263 if test ${ac_cv_prog_AWK+y}
3264 then :
3265   printf %s "(cached) " >&6
3266 else $as_nop
3267   if test -n "$AWK"; then
3268   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   case $as_dir in #(((
3275     '') as_dir=./ ;;
3276     */) ;;
3277     *) as_dir=$as_dir/ ;;
3278   esac
3279     for ac_exec_ext in '' $ac_executable_extensions; do
3280   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3281     ac_cv_prog_AWK="$ac_prog"
3282     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3283     break 2
3284   fi
3285 done
3286   done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 AWK=$ac_cv_prog_AWK
3292 if test -n "$AWK"; then
3293   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3294 printf "%s\n" "$AWK" >&6; }
3295 else
3296   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 printf "%s\n" "no" >&6; }
3298 fi
3299
3300
3301   test -n "$AWK" && break
3302 done
3303
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3305 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3306 set x ${MAKE-make}
3307 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3308 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3309 then :
3310   printf %s "(cached) " >&6
3311 else $as_nop
3312   cat >conftest.make <<\_ACEOF
3313 SHELL = /bin/sh
3314 all:
3315         @echo '@@@%%%=$(MAKE)=@@@%%%'
3316 _ACEOF
3317 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3319   *@@@%%%=?*=@@@%%%*)
3320     eval ac_cv_prog_make_${ac_make}_set=yes;;
3321   *)
3322     eval ac_cv_prog_make_${ac_make}_set=no;;
3323 esac
3324 rm -f conftest.make
3325 fi
3326 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3327   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 printf "%s\n" "yes" >&6; }
3329   SET_MAKE=
3330 else
3331   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 printf "%s\n" "no" >&6; }
3333   SET_MAKE="MAKE=${MAKE-make}"
3334 fi
3335
3336 rm -rf .tst 2>/dev/null
3337 mkdir .tst 2>/dev/null
3338 if test -d .tst; then
3339   am__leading_dot=.
3340 else
3341   am__leading_dot=_
3342 fi
3343 rmdir .tst 2>/dev/null
3344
3345 # Check whether --enable-silent-rules was given.
3346 if test ${enable_silent_rules+y}
3347 then :
3348   enableval=$enable_silent_rules;
3349 fi
3350
3351 case $enable_silent_rules in # (((
3352   yes) AM_DEFAULT_VERBOSITY=0;;
3353    no) AM_DEFAULT_VERBOSITY=1;;
3354     *) AM_DEFAULT_VERBOSITY=1;;
3355 esac
3356 am_make=${MAKE-make}
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3358 printf %s "checking whether $am_make supports nested variables... " >&6; }
3359 if test ${am_cv_make_support_nested_variables+y}
3360 then :
3361   printf %s "(cached) " >&6
3362 else $as_nop
3363   if printf "%s\n" 'TRUE=$(BAR$(V))
3364 BAR0=false
3365 BAR1=true
3366 V=1
3367 am__doit:
3368         @$(TRUE)
3369 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3370   am_cv_make_support_nested_variables=yes
3371 else
3372   am_cv_make_support_nested_variables=no
3373 fi
3374 fi
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3376 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3377 if test $am_cv_make_support_nested_variables = yes; then
3378     AM_V='$(V)'
3379   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3380 else
3381   AM_V=$AM_DEFAULT_VERBOSITY
3382   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3383 fi
3384 AM_BACKSLASH='\'
3385
3386 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3387   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3388   # is not polluted with repeated "-I."
3389   am__isrc=' -I$(srcdir)'
3390   # test to see if srcdir already configured
3391   if test -f $srcdir/config.status; then
3392     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3393   fi
3394 fi
3395
3396 # test whether we have cygpath
3397 if test -z "$CYGPATH_W"; then
3398   if (cygpath --version) >/dev/null 2>/dev/null; then
3399     CYGPATH_W='cygpath -w'
3400   else
3401     CYGPATH_W=echo
3402   fi
3403 fi
3404
3405
3406 # Define the identity of the package.
3407  PACKAGE='file'
3408  VERSION='5.43'
3409
3410
3411 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3412
3413
3414 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3415
3416 # Some tools Automake needs.
3417
3418 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3419
3420
3421 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3422
3423
3424 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3425
3426
3427 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3428
3429
3430 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3431
3432 # For better backward compatibility.  To be removed once Automake 1.9.x
3433 # dies out for good.  For more background, see:
3434 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3435 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3436 mkdir_p='$(MKDIR_P)'
3437
3438 # We need awk for the "check" target (and possibly the TAP driver).  The
3439 # system "awk" is bad on some platforms.
3440 # Always define AMTAR for backward compatibility.  Yes, it's still used
3441 # in the wild :-(  We should find a proper way to deprecate it ...
3442 AMTAR='$${TAR-tar}'
3443
3444
3445 # We'll loop over all known methods to create a tar archive until one works.
3446 _am_tools='gnutar  pax cpio none'
3447
3448 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3449
3450
3451
3452
3453
3454 # Variables for tags utilities; see am/tags.am
3455 if test -z "$CTAGS"; then
3456   CTAGS=ctags
3457 fi
3458
3459 if test -z "$ETAGS"; then
3460   ETAGS=etags
3461 fi
3462
3463 if test -z "$CSCOPE"; then
3464   CSCOPE=cscope
3465 fi
3466
3467
3468
3469 # POSIX will say in a future version that running "rm -f" with no argument
3470 # is OK; and we want to be able to make that assumption in our Makefile
3471 # recipes.  So use an aggressive probe to check that the usage we want is
3472 # actually supported "in the wild" to an acceptable degree.
3473 # See automake bug#10828.
3474 # To make any issue more visible, cause the running configure to be aborted
3475 # by default if the 'rm' program in use doesn't match our expectations; the
3476 # user can still override this though.
3477 if rm -f && rm -fr && rm -rf; then : OK; else
3478   cat >&2 <<'END'
3479 Oops!
3480
3481 Your 'rm' program seems unable to run without file operands specified
3482 on the command line, even when the '-f' option is present.  This is contrary
3483 to the behaviour of most rm programs out there, and not conforming with
3484 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3485
3486 Please tell bug-automake@gnu.org about your system, including the value
3487 of your $PATH and any error possibly output before this message.  This
3488 can help us improve future automake versions.
3489
3490 END
3491   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3492     echo 'Configuration will proceed anyway, since you have set the' >&2
3493     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3494     echo >&2
3495   else
3496     cat >&2 <<'END'
3497 Aborting the configuration process, to ensure you take notice of the issue.
3498
3499 You can download and install GNU coreutils to get an 'rm' implementation
3500 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3501
3502 If you want to complete the configuration process using your problematic
3503 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3504 to "yes", and re-run configure.
3505
3506 END
3507     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3508   fi
3509 fi
3510
3511 # Check whether --enable-silent-rules was given.
3512 if test ${enable_silent_rules+y}
3513 then :
3514   enableval=$enable_silent_rules;
3515 fi
3516
3517 case $enable_silent_rules in # (((
3518   yes) AM_DEFAULT_VERBOSITY=0;;
3519    no) AM_DEFAULT_VERBOSITY=1;;
3520     *) AM_DEFAULT_VERBOSITY=0;;
3521 esac
3522 am_make=${MAKE-make}
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3524 printf %s "checking whether $am_make supports nested variables... " >&6; }
3525 if test ${am_cv_make_support_nested_variables+y}
3526 then :
3527   printf %s "(cached) " >&6
3528 else $as_nop
3529   if printf "%s\n" 'TRUE=$(BAR$(V))
3530 BAR0=false
3531 BAR1=true
3532 V=1
3533 am__doit:
3534         @$(TRUE)
3535 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3536   am_cv_make_support_nested_variables=yes
3537 else
3538   am_cv_make_support_nested_variables=no
3539 fi
3540 fi
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3542 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3543 if test $am_cv_make_support_nested_variables = yes; then
3544     AM_V='$(V)'
3545   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3546 else
3547   AM_V=$AM_DEFAULT_VERBOSITY
3548   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3549 fi
3550 AM_BACKSLASH='\'
3551
3552
3553 ac_config_headers="$ac_config_headers config.h"
3554
3555
3556
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3558 printf %s "checking for builtin ELF support... " >&6; }
3559 # Check whether --enable-elf was given.
3560 if test ${enable_elf+y}
3561 then :
3562   enableval=$enable_elf; if test "${enableval}" = yes; then
3563   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564 printf "%s\n" "yes" >&6; }
3565
3566 printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
3567
3568 else
3569   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 printf "%s\n" "no" >&6; }
3571 fi
3572 else $as_nop
3573
3574   # enable by default
3575   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3576 printf "%s\n" "yes" >&6; }
3577
3578 printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
3579
3580
3581 fi
3582
3583
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3585 printf %s "checking for ELF core file support... " >&6; }
3586 # Check whether --enable-elf-core was given.
3587 if test ${enable_elf_core+y}
3588 then :
3589   enableval=$enable_elf_core; if test "${enableval}" = yes; then
3590   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3591 printf "%s\n" "yes" >&6; }
3592
3593 printf "%s\n" "#define ELFCORE 1" >>confdefs.h
3594
3595 else
3596   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 printf "%s\n" "no" >&6; }
3598 fi
3599 else $as_nop
3600
3601   # enable by default
3602   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3603 printf "%s\n" "yes" >&6; }
3604
3605 printf "%s\n" "#define ELFCORE 1" >>confdefs.h
3606
3607
3608 fi
3609
3610
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
3612 printf %s "checking for zlib support... " >&6; }
3613 # Check whether --enable-zlib was given.
3614 if test ${enable_zlib+y}
3615 then :
3616   enableval=$enable_zlib;
3617 fi
3618
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
3620 printf "%s\n" "$enable_zlib" >&6; }
3621
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5
3623 printf %s "checking for bzlib support... " >&6; }
3624 # Check whether --enable-bzlib was given.
3625 if test ${enable_bzlib+y}
3626 then :
3627   enableval=$enable_bzlib;
3628 fi
3629
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5
3631 printf "%s\n" "$enable_bzlib" >&6; }
3632
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5
3634 printf %s "checking for xzlib support... " >&6; }
3635 # Check whether --enable-xzlib was given.
3636 if test ${enable_xzlib+y}
3637 then :
3638   enableval=$enable_xzlib;
3639 fi
3640
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5
3642 printf "%s\n" "$enable_xzlib" >&6; }
3643
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
3645 printf %s "checking for libseccomp support... " >&6; }
3646 # Check whether --enable-libseccomp was given.
3647 if test ${enable_libseccomp+y}
3648 then :
3649   enableval=$enable_libseccomp;
3650 fi
3651
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
3653 printf "%s\n" "$enable_libseccomp" >&6; }
3654
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3656 printf %s "checking for file formats in man section 5... " >&6; }
3657 # Check whether --enable-fsect-man5 was given.
3658 if test ${enable_fsect_man5+y}
3659 then :
3660   enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3661   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3662 printf "%s\n" "yes" >&6; }
3663   fsect=5
3664 else
3665   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 printf "%s\n" "no" >&6; }
3667   fsect=4
3668 fi
3669 else $as_nop
3670
3671   # disable by default
3672   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 printf "%s\n" "no" >&6; }
3674   fsect=4
3675
3676 fi
3677
3678
3679
3680
3681   # Make sure we can run config.sub.
3682 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3683   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3684
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3686 printf %s "checking build system type... " >&6; }
3687 if test ${ac_cv_build+y}
3688 then :
3689   printf %s "(cached) " >&6
3690 else $as_nop
3691   ac_build_alias=$build_alias
3692 test "x$ac_build_alias" = x &&
3693   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3694 test "x$ac_build_alias" = x &&
3695   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3696 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3697   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3698
3699 fi
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3701 printf "%s\n" "$ac_cv_build" >&6; }
3702 case $ac_cv_build in
3703 *-*-*) ;;
3704 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3705 esac
3706 build=$ac_cv_build
3707 ac_save_IFS=$IFS; IFS='-'
3708 set x $ac_cv_build
3709 shift
3710 build_cpu=$1
3711 build_vendor=$2
3712 shift; shift
3713 # Remember, the first character of IFS is used to create $*,
3714 # except with old shells:
3715 build_os=$*
3716 IFS=$ac_save_IFS
3717 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3718
3719
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3721 printf %s "checking host system type... " >&6; }
3722 if test ${ac_cv_host+y}
3723 then :
3724   printf %s "(cached) " >&6
3725 else $as_nop
3726   if test "x$host_alias" = x; then
3727   ac_cv_host=$ac_cv_build
3728 else
3729   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3730     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3731 fi
3732
3733 fi
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3735 printf "%s\n" "$ac_cv_host" >&6; }
3736 case $ac_cv_host in
3737 *-*-*) ;;
3738 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3739 esac
3740 host=$ac_cv_host
3741 ac_save_IFS=$IFS; IFS='-'
3742 set x $ac_cv_host
3743 shift
3744 host_cpu=$1
3745 host_vendor=$2
3746 shift; shift
3747 # Remember, the first character of IFS is used to create $*,
3748 # except with old shells:
3749 host_os=$*
3750 IFS=$ac_save_IFS
3751 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3752
3753
3754 case "$host_os" in
3755    mingw32*)
3756       MINGW=1
3757       ;;
3758    *)
3759       MINGW=0
3760       ;;
3761 esac
3762
3763  if test "$MINGW" = 1; then
3764   MINGW_TRUE=
3765   MINGW_FALSE='#'
3766 else
3767   MINGW_TRUE='#'
3768   MINGW_FALSE=
3769 fi
3770
3771
3772 pkgdatadir='$(datadir)/misc'
3773
3774
3775  if test x$fsect = x5; then
3776   FSECT5_TRUE=
3777   FSECT5_FALSE='#'
3778 else
3779   FSECT5_TRUE='#'
3780   FSECT5_FALSE=
3781 fi
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795 ac_ext=c
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800 if test -n "$ac_tool_prefix"; then
3801   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 printf %s "checking for $ac_word... " >&6; }
3805 if test ${ac_cv_prog_CC+y}
3806 then :
3807   printf %s "(cached) " >&6
3808 else $as_nop
3809   if test -n "$CC"; then
3810   ac_cv_prog_CC="$CC" # Let the user override the test.
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815   IFS=$as_save_IFS
3816   case $as_dir in #(((
3817     '') as_dir=./ ;;
3818     */) ;;
3819     *) as_dir=$as_dir/ ;;
3820   esac
3821     for ac_exec_ext in '' $ac_executable_extensions; do
3822   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3823     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3824     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3825     break 2
3826   fi
3827 done
3828   done
3829 IFS=$as_save_IFS
3830
3831 fi
3832 fi
3833 CC=$ac_cv_prog_CC
3834 if test -n "$CC"; then
3835   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3836 printf "%s\n" "$CC" >&6; }
3837 else
3838   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 printf "%s\n" "no" >&6; }
3840 fi
3841
3842
3843 fi
3844 if test -z "$ac_cv_prog_CC"; then
3845   ac_ct_CC=$CC
3846   # Extract the first word of "gcc", so it can be a program name with args.
3847 set dummy gcc; ac_word=$2
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 printf %s "checking for $ac_word... " >&6; }
3850 if test ${ac_cv_prog_ac_ct_CC+y}
3851 then :
3852   printf %s "(cached) " >&6
3853 else $as_nop
3854   if test -n "$ac_ct_CC"; then
3855   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860   IFS=$as_save_IFS
3861   case $as_dir in #(((
3862     '') as_dir=./ ;;
3863     */) ;;
3864     *) as_dir=$as_dir/ ;;
3865   esac
3866     for ac_exec_ext in '' $ac_executable_extensions; do
3867   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3868     ac_cv_prog_ac_ct_CC="gcc"
3869     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3870     break 2
3871   fi
3872 done
3873   done
3874 IFS=$as_save_IFS
3875
3876 fi
3877 fi
3878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3879 if test -n "$ac_ct_CC"; then
3880   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3881 printf "%s\n" "$ac_ct_CC" >&6; }
3882 else
3883   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 printf "%s\n" "no" >&6; }
3885 fi
3886
3887   if test "x$ac_ct_CC" = x; then
3888     CC=""
3889   else
3890     case $cross_compiling:$ac_tool_warned in
3891 yes:)
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned=yes ;;
3895 esac
3896     CC=$ac_ct_CC
3897   fi
3898 else
3899   CC="$ac_cv_prog_CC"
3900 fi
3901
3902 if test -z "$CC"; then
3903           if test -n "$ac_tool_prefix"; then
3904     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3905 set dummy ${ac_tool_prefix}cc; ac_word=$2
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 printf %s "checking for $ac_word... " >&6; }
3908 if test ${ac_cv_prog_CC+y}
3909 then :
3910   printf %s "(cached) " >&6
3911 else $as_nop
3912   if test -n "$CC"; then
3913   ac_cv_prog_CC="$CC" # Let the user override the test.
3914 else
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918   IFS=$as_save_IFS
3919   case $as_dir in #(((
3920     '') as_dir=./ ;;
3921     */) ;;
3922     *) as_dir=$as_dir/ ;;
3923   esac
3924     for ac_exec_ext in '' $ac_executable_extensions; do
3925   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3926     ac_cv_prog_CC="${ac_tool_prefix}cc"
3927     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3928     break 2
3929   fi
3930 done
3931   done
3932 IFS=$as_save_IFS
3933
3934 fi
3935 fi
3936 CC=$ac_cv_prog_CC
3937 if test -n "$CC"; then
3938   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 printf "%s\n" "$CC" >&6; }
3940 else
3941   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 printf "%s\n" "no" >&6; }
3943 fi
3944
3945
3946   fi
3947 fi
3948 if test -z "$CC"; then
3949   # Extract the first word of "cc", so it can be a program name with args.
3950 set dummy cc; ac_word=$2
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 printf %s "checking for $ac_word... " >&6; }
3953 if test ${ac_cv_prog_CC+y}
3954 then :
3955   printf %s "(cached) " >&6
3956 else $as_nop
3957   if test -n "$CC"; then
3958   ac_cv_prog_CC="$CC" # Let the user override the test.
3959 else
3960   ac_prog_rejected=no
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   case $as_dir in #(((
3966     '') as_dir=./ ;;
3967     */) ;;
3968     *) as_dir=$as_dir/ ;;
3969   esac
3970     for ac_exec_ext in '' $ac_executable_extensions; do
3971   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3972     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3973        ac_prog_rejected=yes
3974        continue
3975      fi
3976     ac_cv_prog_CC="cc"
3977     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3978     break 2
3979   fi
3980 done
3981   done
3982 IFS=$as_save_IFS
3983
3984 if test $ac_prog_rejected = yes; then
3985   # We found a bogon in the path, so make sure we never use it.
3986   set dummy $ac_cv_prog_CC
3987   shift
3988   if test $# != 0; then
3989     # We chose a different compiler from the bogus one.
3990     # However, it has the same basename, so the bogon will be chosen
3991     # first if we set CC to just the basename; use the full file name.
3992     shift
3993     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3994   fi
3995 fi
3996 fi
3997 fi
3998 CC=$ac_cv_prog_CC
3999 if test -n "$CC"; then
4000   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4001 printf "%s\n" "$CC" >&6; }
4002 else
4003   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 printf "%s\n" "no" >&6; }
4005 fi
4006
4007
4008 fi
4009 if test -z "$CC"; then
4010   if test -n "$ac_tool_prefix"; then
4011   for ac_prog in cl.exe
4012   do
4013     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 printf %s "checking for $ac_word... " >&6; }
4017 if test ${ac_cv_prog_CC+y}
4018 then :
4019   printf %s "(cached) " >&6
4020 else $as_nop
4021   if test -n "$CC"; then
4022   ac_cv_prog_CC="$CC" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027   IFS=$as_save_IFS
4028   case $as_dir in #(((
4029     '') as_dir=./ ;;
4030     */) ;;
4031     *) as_dir=$as_dir/ ;;
4032   esac
4033     for ac_exec_ext in '' $ac_executable_extensions; do
4034   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4035     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4036     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4037     break 2
4038   fi
4039 done
4040   done
4041 IFS=$as_save_IFS
4042
4043 fi
4044 fi
4045 CC=$ac_cv_prog_CC
4046 if test -n "$CC"; then
4047   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4048 printf "%s\n" "$CC" >&6; }
4049 else
4050   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 printf "%s\n" "no" >&6; }
4052 fi
4053
4054
4055     test -n "$CC" && break
4056   done
4057 fi
4058 if test -z "$CC"; then
4059   ac_ct_CC=$CC
4060   for ac_prog in cl.exe
4061 do
4062   # Extract the first word of "$ac_prog", so it can be a program name with args.
4063 set dummy $ac_prog; ac_word=$2
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 printf %s "checking for $ac_word... " >&6; }
4066 if test ${ac_cv_prog_ac_ct_CC+y}
4067 then :
4068   printf %s "(cached) " >&6
4069 else $as_nop
4070   if test -n "$ac_ct_CC"; then
4071   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4075 do
4076   IFS=$as_save_IFS
4077   case $as_dir in #(((
4078     '') as_dir=./ ;;
4079     */) ;;
4080     *) as_dir=$as_dir/ ;;
4081   esac
4082     for ac_exec_ext in '' $ac_executable_extensions; do
4083   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4084     ac_cv_prog_ac_ct_CC="$ac_prog"
4085     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4086     break 2
4087   fi
4088 done
4089   done
4090 IFS=$as_save_IFS
4091
4092 fi
4093 fi
4094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4095 if test -n "$ac_ct_CC"; then
4096   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4097 printf "%s\n" "$ac_ct_CC" >&6; }
4098 else
4099   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 printf "%s\n" "no" >&6; }
4101 fi
4102
4103
4104   test -n "$ac_ct_CC" && break
4105 done
4106
4107   if test "x$ac_ct_CC" = x; then
4108     CC=""
4109   else
4110     case $cross_compiling:$ac_tool_warned in
4111 yes:)
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4114 ac_tool_warned=yes ;;
4115 esac
4116     CC=$ac_ct_CC
4117   fi
4118 fi
4119
4120 fi
4121 if test -z "$CC"; then
4122   if test -n "$ac_tool_prefix"; then
4123   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4124 set dummy ${ac_tool_prefix}clang; ac_word=$2
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 printf %s "checking for $ac_word... " >&6; }
4127 if test ${ac_cv_prog_CC+y}
4128 then :
4129   printf %s "(cached) " >&6
4130 else $as_nop
4131   if test -n "$CC"; then
4132   ac_cv_prog_CC="$CC" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   case $as_dir in #(((
4139     '') as_dir=./ ;;
4140     */) ;;
4141     *) as_dir=$as_dir/ ;;
4142   esac
4143     for ac_exec_ext in '' $ac_executable_extensions; do
4144   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4145     ac_cv_prog_CC="${ac_tool_prefix}clang"
4146     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150   done
4151 IFS=$as_save_IFS
4152
4153 fi
4154 fi
4155 CC=$ac_cv_prog_CC
4156 if test -n "$CC"; then
4157   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4158 printf "%s\n" "$CC" >&6; }
4159 else
4160   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 printf "%s\n" "no" >&6; }
4162 fi
4163
4164
4165 fi
4166 if test -z "$ac_cv_prog_CC"; then
4167   ac_ct_CC=$CC
4168   # Extract the first word of "clang", so it can be a program name with args.
4169 set dummy clang; ac_word=$2
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 printf %s "checking for $ac_word... " >&6; }
4172 if test ${ac_cv_prog_ac_ct_CC+y}
4173 then :
4174   printf %s "(cached) " >&6
4175 else $as_nop
4176   if test -n "$ac_ct_CC"; then
4177   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182   IFS=$as_save_IFS
4183   case $as_dir in #(((
4184     '') as_dir=./ ;;
4185     */) ;;
4186     *) as_dir=$as_dir/ ;;
4187   esac
4188     for ac_exec_ext in '' $ac_executable_extensions; do
4189   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4190     ac_cv_prog_ac_ct_CC="clang"
4191     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4192     break 2
4193   fi
4194 done
4195   done
4196 IFS=$as_save_IFS
4197
4198 fi
4199 fi
4200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4201 if test -n "$ac_ct_CC"; then
4202   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4203 printf "%s\n" "$ac_ct_CC" >&6; }
4204 else
4205   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 printf "%s\n" "no" >&6; }
4207 fi
4208
4209   if test "x$ac_ct_CC" = x; then
4210     CC=""
4211   else
4212     case $cross_compiling:$ac_tool_warned in
4213 yes:)
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4215 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4216 ac_tool_warned=yes ;;
4217 esac
4218     CC=$ac_ct_CC
4219   fi
4220 else
4221   CC="$ac_cv_prog_CC"
4222 fi
4223
4224 fi
4225
4226
4227 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error $? "no acceptable C compiler found in \$PATH
4230 See \`config.log' for more details" "$LINENO" 5; }
4231
4232 # Provide some information about the compiler.
4233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4234 set X $ac_compile
4235 ac_compiler=$2
4236 for ac_option in --version -v -V -qversion -version; do
4237   { { ac_try="$ac_compiler $ac_option >&5"
4238 case "(($ac_try" in
4239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240   *) ac_try_echo=$ac_try;;
4241 esac
4242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243 printf "%s\n" "$ac_try_echo"; } >&5
4244   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4245   ac_status=$?
4246   if test -s conftest.err; then
4247     sed '10a\
4248 ... rest of stderr output deleted ...
4249          10q' conftest.err >conftest.er1
4250     cat conftest.er1 >&5
4251   fi
4252   rm -f conftest.er1 conftest.err
4253   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254   test $ac_status = 0; }
4255 done
4256
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h.  */
4259
4260 int
4261 main (void)
4262 {
4263
4264   ;
4265   return 0;
4266 }
4267 _ACEOF
4268 ac_clean_files_save=$ac_clean_files
4269 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4270 # Try to create an executable without -o first, disregard a.out.
4271 # It will help us diagnose broken compilers, and finding out an intuition
4272 # of exeext.
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4274 printf %s "checking whether the C compiler works... " >&6; }
4275 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4276
4277 # The possible output files:
4278 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4279
4280 ac_rmfiles=
4281 for ac_file in $ac_files
4282 do
4283   case $ac_file in
4284     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4285     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4286   esac
4287 done
4288 rm -f $ac_rmfiles
4289
4290 if { { ac_try="$ac_link_default"
4291 case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 printf "%s\n" "$ac_try_echo"; } >&5
4297   (eval "$ac_link_default") 2>&5
4298   ac_status=$?
4299   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300   test $ac_status = 0; }
4301 then :
4302   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4303 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4304 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4305 # so that the user can short-circuit this test for compilers unknown to
4306 # Autoconf.
4307 for ac_file in $ac_files ''
4308 do
4309   test -f "$ac_file" || continue
4310   case $ac_file in
4311     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4312         ;;
4313     [ab].out )
4314         # We found the default executable, but exeext='' is most
4315         # certainly right.
4316         break;;
4317     *.* )
4318         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4319         then :; else
4320            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4321         fi
4322         # We set ac_cv_exeext here because the later test for it is not
4323         # safe: cross compilers may not add the suffix if given an `-o'
4324         # argument, so we may need to know it at that point already.
4325         # Even if this section looks crufty: it has the advantage of
4326         # actually working.
4327         break;;
4328     * )
4329         break;;
4330   esac
4331 done
4332 test "$ac_cv_exeext" = no && ac_cv_exeext=
4333
4334 else $as_nop
4335   ac_file=''
4336 fi
4337 if test -z "$ac_file"
4338 then :
4339   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 printf "%s\n" "no" >&6; }
4341 printf "%s\n" "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4345 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4346 as_fn_error 77 "C compiler cannot create executables
4347 See \`config.log' for more details" "$LINENO" 5; }
4348 else $as_nop
4349   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4350 printf "%s\n" "yes" >&6; }
4351 fi
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4353 printf %s "checking for C compiler default output file name... " >&6; }
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4355 printf "%s\n" "$ac_file" >&6; }
4356 ac_exeext=$ac_cv_exeext
4357
4358 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4359 ac_clean_files=$ac_clean_files_save
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4361 printf %s "checking for suffix of executables... " >&6; }
4362 if { { ac_try="$ac_link"
4363 case "(($ac_try" in
4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365   *) ac_try_echo=$ac_try;;
4366 esac
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 printf "%s\n" "$ac_try_echo"; } >&5
4369   (eval "$ac_link") 2>&5
4370   ac_status=$?
4371   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372   test $ac_status = 0; }
4373 then :
4374   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4375 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4376 # work properly (i.e., refer to `conftest.exe'), while it won't with
4377 # `rm'.
4378 for ac_file in conftest.exe conftest conftest.*; do
4379   test -f "$ac_file" || continue
4380   case $ac_file in
4381     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4382     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4383           break;;
4384     * ) break;;
4385   esac
4386 done
4387 else $as_nop
4388   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4389 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4390 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4391 See \`config.log' for more details" "$LINENO" 5; }
4392 fi
4393 rm -f conftest conftest$ac_cv_exeext
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4395 printf "%s\n" "$ac_cv_exeext" >&6; }
4396
4397 rm -f conftest.$ac_ext
4398 EXEEXT=$ac_cv_exeext
4399 ac_exeext=$EXEEXT
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h.  */
4402 #include <stdio.h>
4403 int
4404 main (void)
4405 {
4406 FILE *f = fopen ("conftest.out", "w");
4407  return ferror (f) || fclose (f) != 0;
4408
4409   ;
4410   return 0;
4411 }
4412 _ACEOF
4413 ac_clean_files="$ac_clean_files conftest.out"
4414 # Check that the compiler produces executables we can run.  If not, either
4415 # the compiler is broken, or we cross compile.
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4417 printf %s "checking whether we are cross compiling... " >&6; }
4418 if test "$cross_compiling" != yes; then
4419   { { ac_try="$ac_link"
4420 case "(($ac_try" in
4421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422   *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 printf "%s\n" "$ac_try_echo"; } >&5
4426   (eval "$ac_link") 2>&5
4427   ac_status=$?
4428   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429   test $ac_status = 0; }
4430   if { ac_try='./conftest$ac_cv_exeext'
4431   { { case "(($ac_try" in
4432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433   *) ac_try_echo=$ac_try;;
4434 esac
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 printf "%s\n" "$ac_try_echo"; } >&5
4437   (eval "$ac_try") 2>&5
4438   ac_status=$?
4439   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4440   test $ac_status = 0; }; }; then
4441     cross_compiling=no
4442   else
4443     if test "$cross_compiling" = maybe; then
4444         cross_compiling=yes
4445     else
4446         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4447 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4448 as_fn_error 77 "cannot run C compiled programs.
4449 If you meant to cross compile, use \`--host'.
4450 See \`config.log' for more details" "$LINENO" 5; }
4451     fi
4452   fi
4453 fi
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4455 printf "%s\n" "$cross_compiling" >&6; }
4456
4457 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4458 ac_clean_files=$ac_clean_files_save
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4460 printf %s "checking for suffix of object files... " >&6; }
4461 if test ${ac_cv_objext+y}
4462 then :
4463   printf %s "(cached) " >&6
4464 else $as_nop
4465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h.  */
4467
4468 int
4469 main (void)
4470 {
4471
4472   ;
4473   return 0;
4474 }
4475 _ACEOF
4476 rm -f conftest.o conftest.obj
4477 if { { ac_try="$ac_compile"
4478 case "(($ac_try" in
4479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480   *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 printf "%s\n" "$ac_try_echo"; } >&5
4484   (eval "$ac_compile") 2>&5
4485   ac_status=$?
4486   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487   test $ac_status = 0; }
4488 then :
4489   for ac_file in conftest.o conftest.obj conftest.*; do
4490   test -f "$ac_file" || continue;
4491   case $ac_file in
4492     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4493     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4494        break;;
4495   esac
4496 done
4497 else $as_nop
4498   printf "%s\n" "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4500
4501 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error $? "cannot compute suffix of object files: cannot compile
4504 See \`config.log' for more details" "$LINENO" 5; }
4505 fi
4506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4507 fi
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4509 printf "%s\n" "$ac_cv_objext" >&6; }
4510 OBJEXT=$ac_cv_objext
4511 ac_objext=$OBJEXT
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4513 printf %s "checking whether the compiler supports GNU C... " >&6; }
4514 if test ${ac_cv_c_compiler_gnu+y}
4515 then :
4516   printf %s "(cached) " >&6
4517 else $as_nop
4518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h.  */
4520
4521 int
4522 main (void)
4523 {
4524 #ifndef __GNUC__
4525        choke me
4526 #endif
4527
4528   ;
4529   return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_c_try_compile "$LINENO"
4533 then :
4534   ac_compiler_gnu=yes
4535 else $as_nop
4536   ac_compiler_gnu=no
4537 fi
4538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4540
4541 fi
4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4543 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546 if test $ac_compiler_gnu = yes; then
4547   GCC=yes
4548 else
4549   GCC=
4550 fi
4551 ac_test_CFLAGS=${CFLAGS+y}
4552 ac_save_CFLAGS=$CFLAGS
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4554 printf %s "checking whether $CC accepts -g... " >&6; }
4555 if test ${ac_cv_prog_cc_g+y}
4556 then :
4557   printf %s "(cached) " >&6
4558 else $as_nop
4559   ac_save_c_werror_flag=$ac_c_werror_flag
4560    ac_c_werror_flag=yes
4561    ac_cv_prog_cc_g=no
4562    CFLAGS="-g"
4563    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h.  */
4565
4566 int
4567 main (void)
4568 {
4569
4570   ;
4571   return 0;
4572 }
4573 _ACEOF
4574 if ac_fn_c_try_compile "$LINENO"
4575 then :
4576   ac_cv_prog_cc_g=yes
4577 else $as_nop
4578   CFLAGS=""
4579       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h.  */
4581
4582 int
4583 main (void)
4584 {
4585
4586   ;
4587   return 0;
4588 }
4589 _ACEOF
4590 if ac_fn_c_try_compile "$LINENO"
4591 then :
4592
4593 else $as_nop
4594   ac_c_werror_flag=$ac_save_c_werror_flag
4595          CFLAGS="-g"
4596          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598
4599 int
4600 main (void)
4601 {
4602
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_c_try_compile "$LINENO"
4608 then :
4609   ac_cv_prog_cc_g=yes
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4616    ac_c_werror_flag=$ac_save_c_werror_flag
4617 fi
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4619 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4620 if test $ac_test_CFLAGS; then
4621   CFLAGS=$ac_save_CFLAGS
4622 elif test $ac_cv_prog_cc_g = yes; then
4623   if test "$GCC" = yes; then
4624     CFLAGS="-g -O2"
4625   else
4626     CFLAGS="-g"
4627   fi
4628 else
4629   if test "$GCC" = yes; then
4630     CFLAGS="-O2"
4631   else
4632     CFLAGS=
4633   fi
4634 fi
4635 ac_prog_cc_stdc=no
4636 if test x$ac_prog_cc_stdc = xno
4637 then :
4638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4639 printf %s "checking for $CC option to enable C11 features... " >&6; }
4640 if test ${ac_cv_prog_cc_c11+y}
4641 then :
4642   printf %s "(cached) " >&6
4643 else $as_nop
4644   ac_cv_prog_cc_c11=no
4645 ac_save_CC=$CC
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h.  */
4648 $ac_c_conftest_c11_program
4649 _ACEOF
4650 for ac_arg in '' -std=gnu11
4651 do
4652   CC="$ac_save_CC $ac_arg"
4653   if ac_fn_c_try_compile "$LINENO"
4654 then :
4655   ac_cv_prog_cc_c11=$ac_arg
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext conftest.beam
4658   test "x$ac_cv_prog_cc_c11" != "xno" && break
4659 done
4660 rm -f conftest.$ac_ext
4661 CC=$ac_save_CC
4662 fi
4663
4664 if test "x$ac_cv_prog_cc_c11" = xno
4665 then :
4666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4667 printf "%s\n" "unsupported" >&6; }
4668 else $as_nop
4669   if test "x$ac_cv_prog_cc_c11" = x
4670 then :
4671   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4672 printf "%s\n" "none needed" >&6; }
4673 else $as_nop
4674   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4675 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4676      CC="$CC $ac_cv_prog_cc_c11"
4677 fi
4678   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4679   ac_prog_cc_stdc=c11
4680 fi
4681 fi
4682 if test x$ac_prog_cc_stdc = xno
4683 then :
4684   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4685 printf %s "checking for $CC option to enable C99 features... " >&6; }
4686 if test ${ac_cv_prog_cc_c99+y}
4687 then :
4688   printf %s "(cached) " >&6
4689 else $as_nop
4690   ac_cv_prog_cc_c99=no
4691 ac_save_CC=$CC
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h.  */
4694 $ac_c_conftest_c99_program
4695 _ACEOF
4696 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4697 do
4698   CC="$ac_save_CC $ac_arg"
4699   if ac_fn_c_try_compile "$LINENO"
4700 then :
4701   ac_cv_prog_cc_c99=$ac_arg
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext conftest.beam
4704   test "x$ac_cv_prog_cc_c99" != "xno" && break
4705 done
4706 rm -f conftest.$ac_ext
4707 CC=$ac_save_CC
4708 fi
4709
4710 if test "x$ac_cv_prog_cc_c99" = xno
4711 then :
4712   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4713 printf "%s\n" "unsupported" >&6; }
4714 else $as_nop
4715   if test "x$ac_cv_prog_cc_c99" = x
4716 then :
4717   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4718 printf "%s\n" "none needed" >&6; }
4719 else $as_nop
4720   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4721 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4722      CC="$CC $ac_cv_prog_cc_c99"
4723 fi
4724   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4725   ac_prog_cc_stdc=c99
4726 fi
4727 fi
4728 if test x$ac_prog_cc_stdc = xno
4729 then :
4730   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4731 printf %s "checking for $CC option to enable C89 features... " >&6; }
4732 if test ${ac_cv_prog_cc_c89+y}
4733 then :
4734   printf %s "(cached) " >&6
4735 else $as_nop
4736   ac_cv_prog_cc_c89=no
4737 ac_save_CC=$CC
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h.  */
4740 $ac_c_conftest_c89_program
4741 _ACEOF
4742 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4743 do
4744   CC="$ac_save_CC $ac_arg"
4745   if ac_fn_c_try_compile "$LINENO"
4746 then :
4747   ac_cv_prog_cc_c89=$ac_arg
4748 fi
4749 rm -f core conftest.err conftest.$ac_objext conftest.beam
4750   test "x$ac_cv_prog_cc_c89" != "xno" && break
4751 done
4752 rm -f conftest.$ac_ext
4753 CC=$ac_save_CC
4754 fi
4755
4756 if test "x$ac_cv_prog_cc_c89" = xno
4757 then :
4758   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4759 printf "%s\n" "unsupported" >&6; }
4760 else $as_nop
4761   if test "x$ac_cv_prog_cc_c89" = x
4762 then :
4763   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4764 printf "%s\n" "none needed" >&6; }
4765 else $as_nop
4766   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4767 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4768      CC="$CC $ac_cv_prog_cc_c89"
4769 fi
4770   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4771   ac_prog_cc_stdc=c89
4772 fi
4773 fi
4774
4775 ac_ext=c
4776 ac_cpp='$CPP $CPPFLAGS'
4777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4780
4781
4782   ac_ext=c
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4788 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4789 if test ${am_cv_prog_cc_c_o+y}
4790 then :
4791   printf %s "(cached) " >&6
4792 else $as_nop
4793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h.  */
4795
4796 int
4797 main (void)
4798 {
4799
4800   ;
4801   return 0;
4802 }
4803 _ACEOF
4804   # Make sure it works both with $CC and with simple cc.
4805   # Following AC_PROG_CC_C_O, we do the test twice because some
4806   # compilers refuse to overwrite an existing .o file with -o,
4807   # though they will create one.
4808   am_cv_prog_cc_c_o=yes
4809   for am_i in 1 2; do
4810     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4811    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4812    ac_status=$?
4813    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814    (exit $ac_status); } \
4815          && test -f conftest2.$ac_objext; then
4816       : OK
4817     else
4818       am_cv_prog_cc_c_o=no
4819       break
4820     fi
4821   done
4822   rm -f core conftest*
4823   unset am_i
4824 fi
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4826 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4827 if test "$am_cv_prog_cc_c_o" != yes; then
4828    # Losing compiler, so override with the script.
4829    # FIXME: It is wrong to rewrite CC.
4830    # But if we don't then we get into trouble of one sort or another.
4831    # A longer-term fix would be to have automake use am__CC in this case,
4832    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4833    CC="$am_aux_dir/compile $CC"
4834 fi
4835 ac_ext=c
4836 ac_cpp='$CPP $CPPFLAGS'
4837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840
4841 DEPDIR="${am__leading_dot}deps"
4842
4843 ac_config_commands="$ac_config_commands depfiles"
4844
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4846 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4847 cat > confinc.mk << 'END'
4848 am__doit:
4849         @echo this is the am__doit target >confinc.out
4850 .PHONY: am__doit
4851 END
4852 am__include="#"
4853 am__quote=
4854 # BSD make does it like this.
4855 echo '.include "confinc.mk" # ignored' > confmf.BSD
4856 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4857 echo 'include confinc.mk # ignored' > confmf.GNU
4858 _am_result=no
4859 for s in GNU BSD; do
4860   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4861    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4862    ac_status=$?
4863    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864    (exit $ac_status); }
4865   case $?:`cat confinc.out 2>/dev/null` in #(
4866   '0:this is the am__doit target') :
4867     case $s in #(
4868   BSD) :
4869     am__include='.include' am__quote='"' ;; #(
4870   *) :
4871     am__include='include' am__quote='' ;;
4872 esac ;; #(
4873   *) :
4874      ;;
4875 esac
4876   if test "$am__include" != "#"; then
4877     _am_result="yes ($s style)"
4878     break
4879   fi
4880 done
4881 rm -f confinc.* confmf.*
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4883 printf "%s\n" "${_am_result}" >&6; }
4884
4885 # Check whether --enable-dependency-tracking was given.
4886 if test ${enable_dependency_tracking+y}
4887 then :
4888   enableval=$enable_dependency_tracking;
4889 fi
4890
4891 if test "x$enable_dependency_tracking" != xno; then
4892   am_depcomp="$ac_aux_dir/depcomp"
4893   AMDEPBACKSLASH='\'
4894   am__nodep='_no'
4895 fi
4896  if test "x$enable_dependency_tracking" != xno; then
4897   AMDEP_TRUE=
4898   AMDEP_FALSE='#'
4899 else
4900   AMDEP_TRUE='#'
4901   AMDEP_FALSE=
4902 fi
4903
4904
4905
4906 depcc="$CC"   am_compiler_list=
4907
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4909 printf %s "checking dependency style of $depcc... " >&6; }
4910 if test ${am_cv_CC_dependencies_compiler_type+y}
4911 then :
4912   printf %s "(cached) " >&6
4913 else $as_nop
4914   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4915   # We make a subdir and do the tests there.  Otherwise we can end up
4916   # making bogus files that we don't know about and never remove.  For
4917   # instance it was reported that on HP-UX the gcc test will end up
4918   # making a dummy file named 'D' -- because '-MD' means "put the output
4919   # in D".
4920   rm -rf conftest.dir
4921   mkdir conftest.dir
4922   # Copy depcomp to subdir because otherwise we won't find it if we're
4923   # using a relative directory.
4924   cp "$am_depcomp" conftest.dir
4925   cd conftest.dir
4926   # We will build objects and dependencies in a subdirectory because
4927   # it helps to detect inapplicable dependency modes.  For instance
4928   # both Tru64's cc and ICC support -MD to output dependencies as a
4929   # side effect of compilation, but ICC will put the dependencies in
4930   # the current directory while Tru64 will put them in the object
4931   # directory.
4932   mkdir sub
4933
4934   am_cv_CC_dependencies_compiler_type=none
4935   if test "$am_compiler_list" = ""; then
4936      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4937   fi
4938   am__universal=false
4939   case " $depcc " in #(
4940      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4941      esac
4942
4943   for depmode in $am_compiler_list; do
4944     # Setup a source with many dependencies, because some compilers
4945     # like to wrap large dependency lists on column 80 (with \), and
4946     # we should not choose a depcomp mode which is confused by this.
4947     #
4948     # We need to recreate these files for each test, as the compiler may
4949     # overwrite some of them when testing with obscure command lines.
4950     # This happens at least with the AIX C compiler.
4951     : > sub/conftest.c
4952     for i in 1 2 3 4 5 6; do
4953       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4954       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4955       # Solaris 10 /bin/sh.
4956       echo '/* dummy */' > sub/conftst$i.h
4957     done
4958     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4959
4960     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4961     # mode.  It turns out that the SunPro C++ compiler does not properly
4962     # handle '-M -o', and we need to detect this.  Also, some Intel
4963     # versions had trouble with output in subdirs.
4964     am__obj=sub/conftest.${OBJEXT-o}
4965     am__minus_obj="-o $am__obj"
4966     case $depmode in
4967     gcc)
4968       # This depmode causes a compiler race in universal mode.
4969       test "$am__universal" = false || continue
4970       ;;
4971     nosideeffect)
4972       # After this tag, mechanisms are not by side-effect, so they'll
4973       # only be used when explicitly requested.
4974       if test "x$enable_dependency_tracking" = xyes; then
4975         continue
4976       else
4977         break
4978       fi
4979       ;;
4980     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4981       # This compiler won't grok '-c -o', but also, the minuso test has
4982       # not run yet.  These depmodes are late enough in the game, and
4983       # so weak that their functioning should not be impacted.
4984       am__obj=conftest.${OBJEXT-o}
4985       am__minus_obj=
4986       ;;
4987     none) break ;;
4988     esac
4989     if depmode=$depmode \
4990        source=sub/conftest.c object=$am__obj \
4991        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4992        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4993          >/dev/null 2>conftest.err &&
4994        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4995        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4996        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4997        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4998       # icc doesn't choke on unknown options, it will just issue warnings
4999       # or remarks (even with -Werror).  So we grep stderr for any message
5000       # that says an option was ignored or not supported.
5001       # When given -MP, icc 7.0 and 7.1 complain thusly:
5002       #   icc: Command line warning: ignoring option '-M'; no argument required
5003       # The diagnosis changed in icc 8.0:
5004       #   icc: Command line remark: option '-MP' not supported
5005       if (grep 'ignoring option' conftest.err ||
5006           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5007         am_cv_CC_dependencies_compiler_type=$depmode
5008         break
5009       fi
5010     fi
5011   done
5012
5013   cd ..
5014   rm -rf conftest.dir
5015 else
5016   am_cv_CC_dependencies_compiler_type=none
5017 fi
5018
5019 fi
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5021 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5022 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5023
5024  if
5025   test "x$enable_dependency_tracking" != xno \
5026   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5027   am__fastdepCC_TRUE=
5028   am__fastdepCC_FALSE='#'
5029 else
5030   am__fastdepCC_TRUE='#'
5031   am__fastdepCC_FALSE=
5032 fi
5033
5034
5035
5036 ac_header= ac_cache=
5037 for ac_item in $ac_header_c_list
5038 do
5039   if test $ac_cache; then
5040     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5041     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5042       printf "%s\n" "#define $ac_item 1" >> confdefs.h
5043     fi
5044     ac_header= ac_cache=
5045   elif test $ac_header; then
5046     ac_cache=$ac_item
5047   else
5048     ac_header=$ac_item
5049   fi
5050 done
5051
5052
5053
5054
5055
5056
5057
5058
5059 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5060 then :
5061
5062 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5063
5064 fi
5065
5066
5067
5068
5069
5070
5071   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5072 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5073 if test ${ac_cv_safe_to_define___extensions__+y}
5074 then :
5075   printf %s "(cached) " >&6
5076 else $as_nop
5077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h.  */
5079
5080 #         define __EXTENSIONS__ 1
5081           $ac_includes_default
5082 int
5083 main (void)
5084 {
5085
5086   ;
5087   return 0;
5088 }
5089 _ACEOF
5090 if ac_fn_c_try_compile "$LINENO"
5091 then :
5092   ac_cv_safe_to_define___extensions__=yes
5093 else $as_nop
5094   ac_cv_safe_to_define___extensions__=no
5095 fi
5096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5097 fi
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5099 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5100
5101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5102 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5103 if test ${ac_cv_should_define__xopen_source+y}
5104 then :
5105   printf %s "(cached) " >&6
5106 else $as_nop
5107   ac_cv_should_define__xopen_source=no
5108     if test $ac_cv_header_wchar_h = yes
5109 then :
5110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h.  */
5112
5113           #include <wchar.h>
5114           mbstate_t x;
5115 int
5116 main (void)
5117 {
5118
5119   ;
5120   return 0;
5121 }
5122 _ACEOF
5123 if ac_fn_c_try_compile "$LINENO"
5124 then :
5125
5126 else $as_nop
5127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h.  */
5129
5130             #define _XOPEN_SOURCE 500
5131             #include <wchar.h>
5132             mbstate_t x;
5133 int
5134 main (void)
5135 {
5136
5137   ;
5138   return 0;
5139 }
5140 _ACEOF
5141 if ac_fn_c_try_compile "$LINENO"
5142 then :
5143   ac_cv_should_define__xopen_source=yes
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5146 fi
5147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5148 fi
5149 fi
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5151 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5152
5153   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5154
5155   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5156
5157   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5158
5159   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5160
5161   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5162
5163   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5164
5165   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5166
5167   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5168
5169   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5170
5171   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5172
5173   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5174
5175   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5176
5177   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5178
5179   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5180
5181   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5182
5183   if test $ac_cv_header_minix_config_h = yes
5184 then :
5185   MINIX=yes
5186     printf "%s\n" "#define _MINIX 1" >>confdefs.h
5187
5188     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5189
5190     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5191
5192 else $as_nop
5193   MINIX=
5194 fi
5195   if test $ac_cv_safe_to_define___extensions__ = yes
5196 then :
5197   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5198
5199 fi
5200   if test $ac_cv_should_define__xopen_source = yes
5201 then :
5202   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5203
5204 fi
5205
5206
5207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5208 printf %s "checking whether byte ordering is bigendian... " >&6; }
5209 if test ${ac_cv_c_bigendian+y}
5210 then :
5211   printf %s "(cached) " >&6
5212 else $as_nop
5213   ac_cv_c_bigendian=unknown
5214     # See if we're dealing with a universal compiler.
5215     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h.  */
5217 #ifndef __APPLE_CC__
5218                not a universal capable compiler
5219              #endif
5220              typedef int dummy;
5221
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"
5224 then :
5225
5226         # Check for potential -arch flags.  It is not universal unless
5227         # there are at least two -arch flags with different values.
5228         ac_arch=
5229         ac_prev=
5230         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5231          if test -n "$ac_prev"; then
5232            case $ac_word in
5233              i?86 | x86_64 | ppc | ppc64)
5234                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5235                  ac_arch=$ac_word
5236                else
5237                  ac_cv_c_bigendian=universal
5238                  break
5239                fi
5240                ;;
5241            esac
5242            ac_prev=
5243          elif test "x$ac_word" = "x-arch"; then
5244            ac_prev=arch
5245          fi
5246        done
5247 fi
5248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5249     if test $ac_cv_c_bigendian = unknown; then
5250       # See if sys/param.h defines the BYTE_ORDER macro.
5251       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h.  */
5253 #include <sys/types.h>
5254              #include <sys/param.h>
5255
5256 int
5257 main (void)
5258 {
5259 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5260                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5261                      && LITTLE_ENDIAN)
5262               bogus endian macros
5263              #endif
5264
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 if ac_fn_c_try_compile "$LINENO"
5270 then :
5271   # It does; now see whether it defined to BIG_ENDIAN or not.
5272          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h.  */
5274 #include <sys/types.h>
5275                 #include <sys/param.h>
5276
5277 int
5278 main (void)
5279 {
5280 #if BYTE_ORDER != BIG_ENDIAN
5281                  not big endian
5282                 #endif
5283
5284   ;
5285   return 0;
5286 }
5287 _ACEOF
5288 if ac_fn_c_try_compile "$LINENO"
5289 then :
5290   ac_cv_c_bigendian=yes
5291 else $as_nop
5292   ac_cv_c_bigendian=no
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5295 fi
5296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5297     fi
5298     if test $ac_cv_c_bigendian = unknown; then
5299       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5300       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h.  */
5302 #include <limits.h>
5303
5304 int
5305 main (void)
5306 {
5307 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5308               bogus endian macros
5309              #endif
5310
5311   ;
5312   return 0;
5313 }
5314 _ACEOF
5315 if ac_fn_c_try_compile "$LINENO"
5316 then :
5317   # It does; now see whether it defined to _BIG_ENDIAN or not.
5318          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h.  */
5320 #include <limits.h>
5321
5322 int
5323 main (void)
5324 {
5325 #ifndef _BIG_ENDIAN
5326                  not big endian
5327                 #endif
5328
5329   ;
5330   return 0;
5331 }
5332 _ACEOF
5333 if ac_fn_c_try_compile "$LINENO"
5334 then :
5335   ac_cv_c_bigendian=yes
5336 else $as_nop
5337   ac_cv_c_bigendian=no
5338 fi
5339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5342     fi
5343     if test $ac_cv_c_bigendian = unknown; then
5344       # Compile a test program.
5345       if test "$cross_compiling" = yes
5346 then :
5347   # Try to guess by grepping values from an object file.
5348          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h.  */
5350 unsigned short int ascii_mm[] =
5351                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5352                 unsigned short int ascii_ii[] =
5353                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5354                 int use_ascii (int i) {
5355                   return ascii_mm[i] + ascii_ii[i];
5356                 }
5357                 unsigned short int ebcdic_ii[] =
5358                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5359                 unsigned short int ebcdic_mm[] =
5360                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5361                 int use_ebcdic (int i) {
5362                   return ebcdic_mm[i] + ebcdic_ii[i];
5363                 }
5364                 extern int foo;
5365
5366 int
5367 main (void)
5368 {
5369 return use_ascii (foo) == use_ebcdic (foo);
5370   ;
5371   return 0;
5372 }
5373 _ACEOF
5374 if ac_fn_c_try_compile "$LINENO"
5375 then :
5376   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5377               ac_cv_c_bigendian=yes
5378             fi
5379             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5380               if test "$ac_cv_c_bigendian" = unknown; then
5381                 ac_cv_c_bigendian=no
5382               else
5383                 # finding both strings is unlikely to happen, but who knows?
5384                 ac_cv_c_bigendian=unknown
5385               fi
5386             fi
5387 fi
5388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5389 else $as_nop
5390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h.  */
5392 $ac_includes_default
5393 int
5394 main (void)
5395 {
5396
5397              /* Are we little or big endian?  From Harbison&Steele.  */
5398              union
5399              {
5400                long int l;
5401                char c[sizeof (long int)];
5402              } u;
5403              u.l = 1;
5404              return u.c[sizeof (long int) - 1] == 1;
5405
5406   ;
5407   return 0;
5408 }
5409 _ACEOF
5410 if ac_fn_c_try_run "$LINENO"
5411 then :
5412   ac_cv_c_bigendian=no
5413 else $as_nop
5414   ac_cv_c_bigendian=yes
5415 fi
5416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5417   conftest.$ac_objext conftest.beam conftest.$ac_ext
5418 fi
5419
5420     fi
5421 fi
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5423 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5424  case $ac_cv_c_bigendian in #(
5425    yes)
5426      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5427 ;; #(
5428    no)
5429       ;; #(
5430    universal)
5431
5432 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5433
5434      ;; #(
5435    *)
5436      as_fn_error $? "unknown endianness
5437  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5438  esac
5439
5440
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5442 printf %s "checking whether ln -s works... " >&6; }
5443 LN_S=$as_ln_s
5444 if test "$LN_S" = "ln -s"; then
5445   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5446 printf "%s\n" "yes" >&6; }
5447 else
5448   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5449 printf "%s\n" "no, using $LN_S" >&6; }
5450 fi
5451
5452 case `pwd` in
5453   *\ * | *\     *)
5454     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5455 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5456 esac
5457
5458
5459
5460 macro_version='2.4.6'
5461 macro_revision='2.4.6'
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476 ltmain=$ac_aux_dir/ltmain.sh
5477
5478 # Backslashify metacharacters that are still active within
5479 # double-quoted strings.
5480 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5481
5482 # Same as above, but do not quote variable references.
5483 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5484
5485 # Sed substitution to delay expansion of an escaped shell variable in a
5486 # double_quote_subst'ed string.
5487 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5488
5489 # Sed substitution to delay expansion of an escaped single quote.
5490 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5491
5492 # Sed substitution to avoid accidental globbing in evaled expressions
5493 no_glob_subst='s/\*/\\\*/g'
5494
5495 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5496 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5497 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5498
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5500 printf %s "checking how to print strings... " >&6; }
5501 # Test print first, because it will be a builtin if present.
5502 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5503    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5504   ECHO='print -r --'
5505 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5506   ECHO='printf %s\n'
5507 else
5508   # Use this function as a fallback that always works.
5509   func_fallback_echo ()
5510   {
5511     eval 'cat <<_LTECHO_EOF
5512 $1
5513 _LTECHO_EOF'
5514   }
5515   ECHO='func_fallback_echo'
5516 fi
5517
5518 # func_echo_all arg...
5519 # Invoke $ECHO with all args, space-separated.
5520 func_echo_all ()
5521 {
5522     $ECHO ""
5523 }
5524
5525 case $ECHO in
5526   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5527 printf "%s\n" "printf" >&6; } ;;
5528   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5529 printf "%s\n" "print -r" >&6; } ;;
5530   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5531 printf "%s\n" "cat" >&6; } ;;
5532 esac
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5548 printf %s "checking for a sed that does not truncate output... " >&6; }
5549 if test ${ac_cv_path_SED+y}
5550 then :
5551   printf %s "(cached) " >&6
5552 else $as_nop
5553             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5554      for ac_i in 1 2 3 4 5 6 7; do
5555        ac_script="$ac_script$as_nl$ac_script"
5556      done
5557      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5558      { ac_script=; unset ac_script;}
5559      if test -z "$SED"; then
5560   ac_path_SED_found=false
5561   # Loop through the user's path and test for each of PROGNAME-LIST
5562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565   IFS=$as_save_IFS
5566   case $as_dir in #(((
5567     '') as_dir=./ ;;
5568     */) ;;
5569     *) as_dir=$as_dir/ ;;
5570   esac
5571     for ac_prog in sed gsed
5572    do
5573     for ac_exec_ext in '' $ac_executable_extensions; do
5574       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5575       as_fn_executable_p "$ac_path_SED" || continue
5576 # Check for GNU ac_path_SED and select it if it is found.
5577   # Check for GNU $ac_path_SED
5578 case `"$ac_path_SED" --version 2>&1` in
5579 *GNU*)
5580   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5581 *)
5582   ac_count=0
5583   printf %s 0123456789 >"conftest.in"
5584   while :
5585   do
5586     cat "conftest.in" "conftest.in" >"conftest.tmp"
5587     mv "conftest.tmp" "conftest.in"
5588     cp "conftest.in" "conftest.nl"
5589     printf "%s\n" '' >> "conftest.nl"
5590     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5591     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5592     as_fn_arith $ac_count + 1 && ac_count=$as_val
5593     if test $ac_count -gt ${ac_path_SED_max-0}; then
5594       # Best one so far, save it but keep looking for a better one
5595       ac_cv_path_SED="$ac_path_SED"
5596       ac_path_SED_max=$ac_count
5597     fi
5598     # 10*(2^10) chars as input seems more than enough
5599     test $ac_count -gt 10 && break
5600   done
5601   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5602 esac
5603
5604       $ac_path_SED_found && break 3
5605     done
5606   done
5607   done
5608 IFS=$as_save_IFS
5609   if test -z "$ac_cv_path_SED"; then
5610     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5611   fi
5612 else
5613   ac_cv_path_SED=$SED
5614 fi
5615
5616 fi
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5618 printf "%s\n" "$ac_cv_path_SED" >&6; }
5619  SED="$ac_cv_path_SED"
5620   rm -f conftest.sed
5621
5622 test -z "$SED" && SED=sed
5623 Xsed="$SED -e 1s/^X//"
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5636 printf %s "checking for grep that handles long lines and -e... " >&6; }
5637 if test ${ac_cv_path_GREP+y}
5638 then :
5639   printf %s "(cached) " >&6
5640 else $as_nop
5641   if test -z "$GREP"; then
5642   ac_path_GREP_found=false
5643   # Loop through the user's path and test for each of PROGNAME-LIST
5644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5646 do
5647   IFS=$as_save_IFS
5648   case $as_dir in #(((
5649     '') as_dir=./ ;;
5650     */) ;;
5651     *) as_dir=$as_dir/ ;;
5652   esac
5653     for ac_prog in grep ggrep
5654    do
5655     for ac_exec_ext in '' $ac_executable_extensions; do
5656       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5657       as_fn_executable_p "$ac_path_GREP" || continue
5658 # Check for GNU ac_path_GREP and select it if it is found.
5659   # Check for GNU $ac_path_GREP
5660 case `"$ac_path_GREP" --version 2>&1` in
5661 *GNU*)
5662   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5663 *)
5664   ac_count=0
5665   printf %s 0123456789 >"conftest.in"
5666   while :
5667   do
5668     cat "conftest.in" "conftest.in" >"conftest.tmp"
5669     mv "conftest.tmp" "conftest.in"
5670     cp "conftest.in" "conftest.nl"
5671     printf "%s\n" 'GREP' >> "conftest.nl"
5672     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5673     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5674     as_fn_arith $ac_count + 1 && ac_count=$as_val
5675     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5676       # Best one so far, save it but keep looking for a better one
5677       ac_cv_path_GREP="$ac_path_GREP"
5678       ac_path_GREP_max=$ac_count
5679     fi
5680     # 10*(2^10) chars as input seems more than enough
5681     test $ac_count -gt 10 && break
5682   done
5683   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5684 esac
5685
5686       $ac_path_GREP_found && break 3
5687     done
5688   done
5689   done
5690 IFS=$as_save_IFS
5691   if test -z "$ac_cv_path_GREP"; then
5692     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5693   fi
5694 else
5695   ac_cv_path_GREP=$GREP
5696 fi
5697
5698 fi
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5700 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5701  GREP="$ac_cv_path_GREP"
5702
5703
5704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5705 printf %s "checking for egrep... " >&6; }
5706 if test ${ac_cv_path_EGREP+y}
5707 then :
5708   printf %s "(cached) " >&6
5709 else $as_nop
5710   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5711    then ac_cv_path_EGREP="$GREP -E"
5712    else
5713      if test -z "$EGREP"; then
5714   ac_path_EGREP_found=false
5715   # Loop through the user's path and test for each of PROGNAME-LIST
5716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5718 do
5719   IFS=$as_save_IFS
5720   case $as_dir in #(((
5721     '') as_dir=./ ;;
5722     */) ;;
5723     *) as_dir=$as_dir/ ;;
5724   esac
5725     for ac_prog in egrep
5726    do
5727     for ac_exec_ext in '' $ac_executable_extensions; do
5728       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5729       as_fn_executable_p "$ac_path_EGREP" || continue
5730 # Check for GNU ac_path_EGREP and select it if it is found.
5731   # Check for GNU $ac_path_EGREP
5732 case `"$ac_path_EGREP" --version 2>&1` in
5733 *GNU*)
5734   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5735 *)
5736   ac_count=0
5737   printf %s 0123456789 >"conftest.in"
5738   while :
5739   do
5740     cat "conftest.in" "conftest.in" >"conftest.tmp"
5741     mv "conftest.tmp" "conftest.in"
5742     cp "conftest.in" "conftest.nl"
5743     printf "%s\n" 'EGREP' >> "conftest.nl"
5744     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5745     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5746     as_fn_arith $ac_count + 1 && ac_count=$as_val
5747     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5748       # Best one so far, save it but keep looking for a better one
5749       ac_cv_path_EGREP="$ac_path_EGREP"
5750       ac_path_EGREP_max=$ac_count
5751     fi
5752     # 10*(2^10) chars as input seems more than enough
5753     test $ac_count -gt 10 && break
5754   done
5755   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5756 esac
5757
5758       $ac_path_EGREP_found && break 3
5759     done
5760   done
5761   done
5762 IFS=$as_save_IFS
5763   if test -z "$ac_cv_path_EGREP"; then
5764     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5765   fi
5766 else
5767   ac_cv_path_EGREP=$EGREP
5768 fi
5769
5770    fi
5771 fi
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5773 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5774  EGREP="$ac_cv_path_EGREP"
5775
5776
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5778 printf %s "checking for fgrep... " >&6; }
5779 if test ${ac_cv_path_FGREP+y}
5780 then :
5781   printf %s "(cached) " >&6
5782 else $as_nop
5783   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5784    then ac_cv_path_FGREP="$GREP -F"
5785    else
5786      if test -z "$FGREP"; then
5787   ac_path_FGREP_found=false
5788   # Loop through the user's path and test for each of PROGNAME-LIST
5789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5791 do
5792   IFS=$as_save_IFS
5793   case $as_dir in #(((
5794     '') as_dir=./ ;;
5795     */) ;;
5796     *) as_dir=$as_dir/ ;;
5797   esac
5798     for ac_prog in fgrep
5799    do
5800     for ac_exec_ext in '' $ac_executable_extensions; do
5801       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5802       as_fn_executable_p "$ac_path_FGREP" || continue
5803 # Check for GNU ac_path_FGREP and select it if it is found.
5804   # Check for GNU $ac_path_FGREP
5805 case `"$ac_path_FGREP" --version 2>&1` in
5806 *GNU*)
5807   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5808 *)
5809   ac_count=0
5810   printf %s 0123456789 >"conftest.in"
5811   while :
5812   do
5813     cat "conftest.in" "conftest.in" >"conftest.tmp"
5814     mv "conftest.tmp" "conftest.in"
5815     cp "conftest.in" "conftest.nl"
5816     printf "%s\n" 'FGREP' >> "conftest.nl"
5817     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5818     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5819     as_fn_arith $ac_count + 1 && ac_count=$as_val
5820     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5821       # Best one so far, save it but keep looking for a better one
5822       ac_cv_path_FGREP="$ac_path_FGREP"
5823       ac_path_FGREP_max=$ac_count
5824     fi
5825     # 10*(2^10) chars as input seems more than enough
5826     test $ac_count -gt 10 && break
5827   done
5828   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5829 esac
5830
5831       $ac_path_FGREP_found && break 3
5832     done
5833   done
5834   done
5835 IFS=$as_save_IFS
5836   if test -z "$ac_cv_path_FGREP"; then
5837     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5838   fi
5839 else
5840   ac_cv_path_FGREP=$FGREP
5841 fi
5842
5843    fi
5844 fi
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5846 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5847  FGREP="$ac_cv_path_FGREP"
5848
5849
5850 test -z "$GREP" && GREP=grep
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870 # Check whether --with-gnu-ld was given.
5871 if test ${with_gnu_ld+y}
5872 then :
5873   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5874 else $as_nop
5875   with_gnu_ld=no
5876 fi
5877
5878 ac_prog=ld
5879 if test yes = "$GCC"; then
5880   # Check if gcc -print-prog-name=ld gives a path.
5881   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5882 printf %s "checking for ld used by $CC... " >&6; }
5883   case $host in
5884   *-*-mingw*)
5885     # gcc leaves a trailing carriage return, which upsets mingw
5886     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5887   *)
5888     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5889   esac
5890   case $ac_prog in
5891     # Accept absolute paths.
5892     [\\/]* | ?:[\\/]*)
5893       re_direlt='/[^/][^/]*/\.\./'
5894       # Canonicalize the pathname of ld
5895       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5896       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5897         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5898       done
5899       test -z "$LD" && LD=$ac_prog
5900       ;;
5901   "")
5902     # If it fails, then pretend we aren't using GCC.
5903     ac_prog=ld
5904     ;;
5905   *)
5906     # If it is relative, then search for the first ld in PATH.
5907     with_gnu_ld=unknown
5908     ;;
5909   esac
5910 elif test yes = "$with_gnu_ld"; then
5911   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5912 printf %s "checking for GNU ld... " >&6; }
5913 else
5914   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5915 printf %s "checking for non-GNU ld... " >&6; }
5916 fi
5917 if test ${lt_cv_path_LD+y}
5918 then :
5919   printf %s "(cached) " >&6
5920 else $as_nop
5921   if test -z "$LD"; then
5922   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5923   for ac_dir in $PATH; do
5924     IFS=$lt_save_ifs
5925     test -z "$ac_dir" && ac_dir=.
5926     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5927       lt_cv_path_LD=$ac_dir/$ac_prog
5928       # Check to see if the program is GNU ld.  I'd rather use --version,
5929       # but apparently some variants of GNU ld only accept -v.
5930       # Break only if it was the GNU/non-GNU ld that we prefer.
5931       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5932       *GNU* | *'with BFD'*)
5933         test no != "$with_gnu_ld" && break
5934         ;;
5935       *)
5936         test yes != "$with_gnu_ld" && break
5937         ;;
5938       esac
5939     fi
5940   done
5941   IFS=$lt_save_ifs
5942 else
5943   lt_cv_path_LD=$LD # Let the user override the test with a path.
5944 fi
5945 fi
5946
5947 LD=$lt_cv_path_LD
5948 if test -n "$LD"; then
5949   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5950 printf "%s\n" "$LD" >&6; }
5951 else
5952   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 printf "%s\n" "no" >&6; }
5954 fi
5955 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5957 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5958 if test ${lt_cv_prog_gnu_ld+y}
5959 then :
5960   printf %s "(cached) " >&6
5961 else $as_nop
5962   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5963 case `$LD -v 2>&1 </dev/null` in
5964 *GNU* | *'with BFD'*)
5965   lt_cv_prog_gnu_ld=yes
5966   ;;
5967 *)
5968   lt_cv_prog_gnu_ld=no
5969   ;;
5970 esac
5971 fi
5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5973 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5974 with_gnu_ld=$lt_cv_prog_gnu_ld
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5985 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5986 if test ${lt_cv_path_NM+y}
5987 then :
5988   printf %s "(cached) " >&6
5989 else $as_nop
5990   if test -n "$NM"; then
5991   # Let the user override the test.
5992   lt_cv_path_NM=$NM
5993 else
5994   lt_nm_to_check=${ac_tool_prefix}nm
5995   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5996     lt_nm_to_check="$lt_nm_to_check nm"
5997   fi
5998   for lt_tmp_nm in $lt_nm_to_check; do
5999     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6000     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6001       IFS=$lt_save_ifs
6002       test -z "$ac_dir" && ac_dir=.
6003       tmp_nm=$ac_dir/$lt_tmp_nm
6004       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6005         # Check to see if the nm accepts a BSD-compat flag.
6006         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6007         #   nm: unknown option "B" ignored
6008         # Tru64's nm complains that /dev/null is an invalid object file
6009         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6010         case $build_os in
6011         mingw*) lt_bad_file=conftest.nm/nofile ;;
6012         *) lt_bad_file=/dev/null ;;
6013         esac
6014         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6015         *$lt_bad_file* | *'Invalid file or object type'*)
6016           lt_cv_path_NM="$tmp_nm -B"
6017           break 2
6018           ;;
6019         *)
6020           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6021           */dev/null*)
6022             lt_cv_path_NM="$tmp_nm -p"
6023             break 2
6024             ;;
6025           *)
6026             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6027             continue # so that we can try to find one that supports BSD flags
6028             ;;
6029           esac
6030           ;;
6031         esac
6032       fi
6033     done
6034     IFS=$lt_save_ifs
6035   done
6036   : ${lt_cv_path_NM=no}
6037 fi
6038 fi
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6040 printf "%s\n" "$lt_cv_path_NM" >&6; }
6041 if test no != "$lt_cv_path_NM"; then
6042   NM=$lt_cv_path_NM
6043 else
6044   # Didn't find any BSD compatible name lister, look for dumpbin.
6045   if test -n "$DUMPBIN"; then :
6046     # Let the user override the test.
6047   else
6048     if test -n "$ac_tool_prefix"; then
6049   for ac_prog in dumpbin "link -dump"
6050   do
6051     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 printf %s "checking for $ac_word... " >&6; }
6055 if test ${ac_cv_prog_DUMPBIN+y}
6056 then :
6057   printf %s "(cached) " >&6
6058 else $as_nop
6059   if test -n "$DUMPBIN"; then
6060   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065   IFS=$as_save_IFS
6066   case $as_dir in #(((
6067     '') as_dir=./ ;;
6068     */) ;;
6069     *) as_dir=$as_dir/ ;;
6070   esac
6071     for ac_exec_ext in '' $ac_executable_extensions; do
6072   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6073     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6074     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6075     break 2
6076   fi
6077 done
6078   done
6079 IFS=$as_save_IFS
6080
6081 fi
6082 fi
6083 DUMPBIN=$ac_cv_prog_DUMPBIN
6084 if test -n "$DUMPBIN"; then
6085   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6086 printf "%s\n" "$DUMPBIN" >&6; }
6087 else
6088   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 printf "%s\n" "no" >&6; }
6090 fi
6091
6092
6093     test -n "$DUMPBIN" && break
6094   done
6095 fi
6096 if test -z "$DUMPBIN"; then
6097   ac_ct_DUMPBIN=$DUMPBIN
6098   for ac_prog in dumpbin "link -dump"
6099 do
6100   # Extract the first word of "$ac_prog", so it can be a program name with args.
6101 set dummy $ac_prog; ac_word=$2
6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 printf %s "checking for $ac_word... " >&6; }
6104 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6105 then :
6106   printf %s "(cached) " >&6
6107 else $as_nop
6108   if test -n "$ac_ct_DUMPBIN"; then
6109   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114   IFS=$as_save_IFS
6115   case $as_dir in #(((
6116     '') as_dir=./ ;;
6117     */) ;;
6118     *) as_dir=$as_dir/ ;;
6119   esac
6120     for ac_exec_ext in '' $ac_executable_extensions; do
6121   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6122     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6123     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6124     break 2
6125   fi
6126 done
6127   done
6128 IFS=$as_save_IFS
6129
6130 fi
6131 fi
6132 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6133 if test -n "$ac_ct_DUMPBIN"; then
6134   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6135 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6136 else
6137   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 printf "%s\n" "no" >&6; }
6139 fi
6140
6141
6142   test -n "$ac_ct_DUMPBIN" && break
6143 done
6144
6145   if test "x$ac_ct_DUMPBIN" = x; then
6146     DUMPBIN=":"
6147   else
6148     case $cross_compiling:$ac_tool_warned in
6149 yes:)
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6151 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152 ac_tool_warned=yes ;;
6153 esac
6154     DUMPBIN=$ac_ct_DUMPBIN
6155   fi
6156 fi
6157
6158     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6159     *COFF*)
6160       DUMPBIN="$DUMPBIN -symbols -headers"
6161       ;;
6162     *)
6163       DUMPBIN=:
6164       ;;
6165     esac
6166   fi
6167
6168   if test : != "$DUMPBIN"; then
6169     NM=$DUMPBIN
6170   fi
6171 fi
6172 test -z "$NM" && NM=nm
6173
6174
6175
6176
6177
6178
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6180 printf %s "checking the name lister ($NM) interface... " >&6; }
6181 if test ${lt_cv_nm_interface+y}
6182 then :
6183   printf %s "(cached) " >&6
6184 else $as_nop
6185   lt_cv_nm_interface="BSD nm"
6186   echo "int some_variable = 0;" > conftest.$ac_ext
6187   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6188   (eval "$ac_compile" 2>conftest.err)
6189   cat conftest.err >&5
6190   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6191   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6192   cat conftest.err >&5
6193   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6194   cat conftest.out >&5
6195   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6196     lt_cv_nm_interface="MS dumpbin"
6197   fi
6198   rm -f conftest*
6199 fi
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6201 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6202
6203 # find the maximum length of command line arguments
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6205 printf %s "checking the maximum length of command line arguments... " >&6; }
6206 if test ${lt_cv_sys_max_cmd_len+y}
6207 then :
6208   printf %s "(cached) " >&6
6209 else $as_nop
6210     i=0
6211   teststring=ABCD
6212
6213   case $build_os in
6214   msdosdjgpp*)
6215     # On DJGPP, this test can blow up pretty badly due to problems in libc
6216     # (any single argument exceeding 2000 bytes causes a buffer overrun
6217     # during glob expansion).  Even if it were fixed, the result of this
6218     # check would be larger than it should be.
6219     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6220     ;;
6221
6222   gnu*)
6223     # Under GNU Hurd, this test is not required because there is
6224     # no limit to the length of command line arguments.
6225     # Libtool will interpret -1 as no limit whatsoever
6226     lt_cv_sys_max_cmd_len=-1;
6227     ;;
6228
6229   cygwin* | mingw* | cegcc*)
6230     # On Win9x/ME, this test blows up -- it succeeds, but takes
6231     # about 5 minutes as the teststring grows exponentially.
6232     # Worse, since 9x/ME are not pre-emptively multitasking,
6233     # you end up with a "frozen" computer, even though with patience
6234     # the test eventually succeeds (with a max line length of 256k).
6235     # Instead, let's just punt: use the minimum linelength reported by
6236     # all of the supported platforms: 8192 (on NT/2K/XP).
6237     lt_cv_sys_max_cmd_len=8192;
6238     ;;
6239
6240   mint*)
6241     # On MiNT this can take a long time and run out of memory.
6242     lt_cv_sys_max_cmd_len=8192;
6243     ;;
6244
6245   amigaos*)
6246     # On AmigaOS with pdksh, this test takes hours, literally.
6247     # So we just punt and use a minimum line length of 8192.
6248     lt_cv_sys_max_cmd_len=8192;
6249     ;;
6250
6251   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6252     # This has been around since 386BSD, at least.  Likely further.
6253     if test -x /sbin/sysctl; then
6254       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6255     elif test -x /usr/sbin/sysctl; then
6256       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6257     else
6258       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6259     fi
6260     # And add a safety zone
6261     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6262     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6263     ;;
6264
6265   interix*)
6266     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6267     lt_cv_sys_max_cmd_len=196608
6268     ;;
6269
6270   os2*)
6271     # The test takes a long time on OS/2.
6272     lt_cv_sys_max_cmd_len=8192
6273     ;;
6274
6275   osf*)
6276     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6277     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6278     # nice to cause kernel panics so lets avoid the loop below.
6279     # First set a reasonable default.
6280     lt_cv_sys_max_cmd_len=16384
6281     #
6282     if test -x /sbin/sysconfig; then
6283       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6284         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6285       esac
6286     fi
6287     ;;
6288   sco3.2v5*)
6289     lt_cv_sys_max_cmd_len=102400
6290     ;;
6291   sysv5* | sco5v6* | sysv4.2uw2*)
6292     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6293     if test -n "$kargmax"; then
6294       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6295     else
6296       lt_cv_sys_max_cmd_len=32768
6297     fi
6298     ;;
6299   *)
6300     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6301     if test -n "$lt_cv_sys_max_cmd_len" && \
6302        test undefined != "$lt_cv_sys_max_cmd_len"; then
6303       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6304       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6305     else
6306       # Make teststring a little bigger before we do anything with it.
6307       # a 1K string should be a reasonable start.
6308       for i in 1 2 3 4 5 6 7 8; do
6309         teststring=$teststring$teststring
6310       done
6311       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6312       # If test is not a shell built-in, we'll probably end up computing a
6313       # maximum length that is only half of the actual maximum length, but
6314       # we can't tell.
6315       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6316                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6317               test 17 != "$i" # 1/2 MB should be enough
6318       do
6319         i=`expr $i + 1`
6320         teststring=$teststring$teststring
6321       done
6322       # Only check the string length outside the loop.
6323       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6324       teststring=
6325       # Add a significant safety factor because C++ compilers can tack on
6326       # massive amounts of additional arguments before passing them to the
6327       # linker.  It appears as though 1/2 is a usable value.
6328       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6329     fi
6330     ;;
6331   esac
6332
6333 fi
6334
6335 if test -n "$lt_cv_sys_max_cmd_len"; then
6336   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6337 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6338 else
6339   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6340 printf "%s\n" "none" >&6; }
6341 fi
6342 max_cmd_len=$lt_cv_sys_max_cmd_len
6343
6344
6345
6346
6347
6348
6349 : ${CP="cp -f"}
6350 : ${MV="mv -f"}
6351 : ${RM="rm -f"}
6352
6353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6354   lt_unset=unset
6355 else
6356   lt_unset=false
6357 fi
6358
6359
6360
6361
6362
6363 # test EBCDIC or ASCII
6364 case `echo X|tr X '\101'` in
6365  A) # ASCII based system
6366     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6367   lt_SP2NL='tr \040 \012'
6368   lt_NL2SP='tr \015\012 \040\040'
6369   ;;
6370  *) # EBCDIC based system
6371   lt_SP2NL='tr \100 \n'
6372   lt_NL2SP='tr \r\n \100\100'
6373   ;;
6374 esac
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6385 printf %s "checking how to convert $build file names to $host format... " >&6; }
6386 if test ${lt_cv_to_host_file_cmd+y}
6387 then :
6388   printf %s "(cached) " >&6
6389 else $as_nop
6390   case $host in
6391   *-*-mingw* )
6392     case $build in
6393       *-*-mingw* ) # actually msys
6394         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6395         ;;
6396       *-*-cygwin* )
6397         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6398         ;;
6399       * ) # otherwise, assume *nix
6400         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6401         ;;
6402     esac
6403     ;;
6404   *-*-cygwin* )
6405     case $build in
6406       *-*-mingw* ) # actually msys
6407         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6408         ;;
6409       *-*-cygwin* )
6410         lt_cv_to_host_file_cmd=func_convert_file_noop
6411         ;;
6412       * ) # otherwise, assume *nix
6413         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6414         ;;
6415     esac
6416     ;;
6417   * ) # unhandled hosts (and "normal" native builds)
6418     lt_cv_to_host_file_cmd=func_convert_file_noop
6419     ;;
6420 esac
6421
6422 fi
6423
6424 to_host_file_cmd=$lt_cv_to_host_file_cmd
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6426 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6427
6428
6429
6430
6431
6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6433 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6434 if test ${lt_cv_to_tool_file_cmd+y}
6435 then :
6436   printf %s "(cached) " >&6
6437 else $as_nop
6438   #assume ordinary cross tools, or native build.
6439 lt_cv_to_tool_file_cmd=func_convert_file_noop
6440 case $host in
6441   *-*-mingw* )
6442     case $build in
6443       *-*-mingw* ) # actually msys
6444         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6445         ;;
6446     esac
6447     ;;
6448 esac
6449
6450 fi
6451
6452 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6454 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6455
6456
6457
6458
6459
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6461 printf %s "checking for $LD option to reload object files... " >&6; }
6462 if test ${lt_cv_ld_reload_flag+y}
6463 then :
6464   printf %s "(cached) " >&6
6465 else $as_nop
6466   lt_cv_ld_reload_flag='-r'
6467 fi
6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6469 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6470 reload_flag=$lt_cv_ld_reload_flag
6471 case $reload_flag in
6472 "" | " "*) ;;
6473 *) reload_flag=" $reload_flag" ;;
6474 esac
6475 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6476 case $host_os in
6477   cygwin* | mingw* | pw32* | cegcc*)
6478     if test yes != "$GCC"; then
6479       reload_cmds=false
6480     fi
6481     ;;
6482   darwin*)
6483     if test yes = "$GCC"; then
6484       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6485     else
6486       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6487     fi
6488     ;;
6489 esac
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499 if test -n "$ac_tool_prefix"; then
6500   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6501 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 printf %s "checking for $ac_word... " >&6; }
6504 if test ${ac_cv_prog_OBJDUMP+y}
6505 then :
6506   printf %s "(cached) " >&6
6507 else $as_nop
6508   if test -n "$OBJDUMP"; then
6509   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6510 else
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514   IFS=$as_save_IFS
6515   case $as_dir in #(((
6516     '') as_dir=./ ;;
6517     */) ;;
6518     *) as_dir=$as_dir/ ;;
6519   esac
6520     for ac_exec_ext in '' $ac_executable_extensions; do
6521   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6522     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6523     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6524     break 2
6525   fi
6526 done
6527   done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 OBJDUMP=$ac_cv_prog_OBJDUMP
6533 if test -n "$OBJDUMP"; then
6534   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6535 printf "%s\n" "$OBJDUMP" >&6; }
6536 else
6537   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 printf "%s\n" "no" >&6; }
6539 fi
6540
6541
6542 fi
6543 if test -z "$ac_cv_prog_OBJDUMP"; then
6544   ac_ct_OBJDUMP=$OBJDUMP
6545   # Extract the first word of "objdump", so it can be a program name with args.
6546 set dummy objdump; ac_word=$2
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 printf %s "checking for $ac_word... " >&6; }
6549 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6550 then :
6551   printf %s "(cached) " >&6
6552 else $as_nop
6553   if test -n "$ac_ct_OBJDUMP"; then
6554   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559   IFS=$as_save_IFS
6560   case $as_dir in #(((
6561     '') as_dir=./ ;;
6562     */) ;;
6563     *) as_dir=$as_dir/ ;;
6564   esac
6565     for ac_exec_ext in '' $ac_executable_extensions; do
6566   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6567     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6568     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6569     break 2
6570   fi
6571 done
6572   done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6578 if test -n "$ac_ct_OBJDUMP"; then
6579   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6580 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6581 else
6582   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 printf "%s\n" "no" >&6; }
6584 fi
6585
6586   if test "x$ac_ct_OBJDUMP" = x; then
6587     OBJDUMP="false"
6588   else
6589     case $cross_compiling:$ac_tool_warned in
6590 yes:)
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6592 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6593 ac_tool_warned=yes ;;
6594 esac
6595     OBJDUMP=$ac_ct_OBJDUMP
6596   fi
6597 else
6598   OBJDUMP="$ac_cv_prog_OBJDUMP"
6599 fi
6600
6601 test -z "$OBJDUMP" && OBJDUMP=objdump
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6612 printf %s "checking how to recognize dependent libraries... " >&6; }
6613 if test ${lt_cv_deplibs_check_method+y}
6614 then :
6615   printf %s "(cached) " >&6
6616 else $as_nop
6617   lt_cv_file_magic_cmd='$MAGIC_CMD'
6618 lt_cv_file_magic_test_file=
6619 lt_cv_deplibs_check_method='unknown'
6620 # Need to set the preceding variable on all platforms that support
6621 # interlibrary dependencies.
6622 # 'none' -- dependencies not supported.
6623 # 'unknown' -- same as none, but documents that we really don't know.
6624 # 'pass_all' -- all dependencies passed with no checks.
6625 # 'test_compile' -- check by making test program.
6626 # 'file_magic [[regex]]' -- check by looking for files in library path
6627 # that responds to the $file_magic_cmd with a given extended regex.
6628 # If you have 'file' or equivalent on your system and you're not sure
6629 # whether 'pass_all' will *always* work, you probably want this one.
6630
6631 case $host_os in
6632 aix[4-9]*)
6633   lt_cv_deplibs_check_method=pass_all
6634   ;;
6635
6636 beos*)
6637   lt_cv_deplibs_check_method=pass_all
6638   ;;
6639
6640 bsdi[45]*)
6641   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6642   lt_cv_file_magic_cmd='/usr/bin/file -L'
6643   lt_cv_file_magic_test_file=/shlib/libc.so
6644   ;;
6645
6646 cygwin*)
6647   # func_win32_libid is a shell function defined in ltmain.sh
6648   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6649   lt_cv_file_magic_cmd='func_win32_libid'
6650   ;;
6651
6652 mingw* | pw32*)
6653   # Base MSYS/MinGW do not provide the 'file' command needed by
6654   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6655   # unless we find 'file', for example because we are cross-compiling.
6656   if ( file / ) >/dev/null 2>&1; then
6657     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6658     lt_cv_file_magic_cmd='func_win32_libid'
6659   else
6660     # Keep this pattern in sync with the one in func_win32_libid.
6661     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6662     lt_cv_file_magic_cmd='$OBJDUMP -f'
6663   fi
6664   ;;
6665
6666 cegcc*)
6667   # use the weaker test based on 'objdump'. See mingw*.
6668   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6669   lt_cv_file_magic_cmd='$OBJDUMP -f'
6670   ;;
6671
6672 darwin* | rhapsody*)
6673   lt_cv_deplibs_check_method=pass_all
6674   ;;
6675
6676 freebsd* | dragonfly*)
6677   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6678     case $host_cpu in
6679     i*86 )
6680       # Not sure whether the presence of OpenBSD here was a mistake.
6681       # Let's accept both of them until this is cleared up.
6682       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6683       lt_cv_file_magic_cmd=/usr/bin/file
6684       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6685       ;;
6686     esac
6687   else
6688     lt_cv_deplibs_check_method=pass_all
6689   fi
6690   ;;
6691
6692 haiku*)
6693   lt_cv_deplibs_check_method=pass_all
6694   ;;
6695
6696 hpux10.20* | hpux11*)
6697   lt_cv_file_magic_cmd=/usr/bin/file
6698   case $host_cpu in
6699   ia64*)
6700     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6701     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6702     ;;
6703   hppa*64*)
6704     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]'
6705     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6706     ;;
6707   *)
6708     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6709     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6710     ;;
6711   esac
6712   ;;
6713
6714 interix[3-9]*)
6715   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6716   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6717   ;;
6718
6719 irix5* | irix6* | nonstopux*)
6720   case $LD in
6721   *-32|*"-32 ") libmagic=32-bit;;
6722   *-n32|*"-n32 ") libmagic=N32;;
6723   *-64|*"-64 ") libmagic=64-bit;;
6724   *) libmagic=never-match;;
6725   esac
6726   lt_cv_deplibs_check_method=pass_all
6727   ;;
6728
6729 # This must be glibc/ELF.
6730 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6731   lt_cv_deplibs_check_method=pass_all
6732   ;;
6733
6734 netbsd*)
6735   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6736     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6737   else
6738     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6739   fi
6740   ;;
6741
6742 newos6*)
6743   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6744   lt_cv_file_magic_cmd=/usr/bin/file
6745   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6746   ;;
6747
6748 *nto* | *qnx*)
6749   lt_cv_deplibs_check_method=pass_all
6750   ;;
6751
6752 openbsd* | bitrig*)
6753   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6754     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6755   else
6756     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6757   fi
6758   ;;
6759
6760 osf3* | osf4* | osf5*)
6761   lt_cv_deplibs_check_method=pass_all
6762   ;;
6763
6764 rdos*)
6765   lt_cv_deplibs_check_method=pass_all
6766   ;;
6767
6768 solaris*)
6769   lt_cv_deplibs_check_method=pass_all
6770   ;;
6771
6772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6773   lt_cv_deplibs_check_method=pass_all
6774   ;;
6775
6776 sysv4 | sysv4.3*)
6777   case $host_vendor in
6778   motorola)
6779     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]'
6780     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6781     ;;
6782   ncr)
6783     lt_cv_deplibs_check_method=pass_all
6784     ;;
6785   sequent)
6786     lt_cv_file_magic_cmd='/bin/file'
6787     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6788     ;;
6789   sni)
6790     lt_cv_file_magic_cmd='/bin/file'
6791     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6792     lt_cv_file_magic_test_file=/lib/libc.so
6793     ;;
6794   siemens)
6795     lt_cv_deplibs_check_method=pass_all
6796     ;;
6797   pc)
6798     lt_cv_deplibs_check_method=pass_all
6799     ;;
6800   esac
6801   ;;
6802
6803 tpf*)
6804   lt_cv_deplibs_check_method=pass_all
6805   ;;
6806 os2*)
6807   lt_cv_deplibs_check_method=pass_all
6808   ;;
6809 esac
6810
6811 fi
6812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6813 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6814
6815 file_magic_glob=
6816 want_nocaseglob=no
6817 if test "$build" = "$host"; then
6818   case $host_os in
6819   mingw* | pw32*)
6820     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6821       want_nocaseglob=yes
6822     else
6823       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6824     fi
6825     ;;
6826   esac
6827 fi
6828
6829 file_magic_cmd=$lt_cv_file_magic_cmd
6830 deplibs_check_method=$lt_cv_deplibs_check_method
6831 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854 if test -n "$ac_tool_prefix"; then
6855   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 printf %s "checking for $ac_word... " >&6; }
6859 if test ${ac_cv_prog_DLLTOOL+y}
6860 then :
6861   printf %s "(cached) " >&6
6862 else $as_nop
6863   if test -n "$DLLTOOL"; then
6864   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869   IFS=$as_save_IFS
6870   case $as_dir in #(((
6871     '') as_dir=./ ;;
6872     */) ;;
6873     *) as_dir=$as_dir/ ;;
6874   esac
6875     for ac_exec_ext in '' $ac_executable_extensions; do
6876   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6877     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6878     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6879     break 2
6880   fi
6881 done
6882   done
6883 IFS=$as_save_IFS
6884
6885 fi
6886 fi
6887 DLLTOOL=$ac_cv_prog_DLLTOOL
6888 if test -n "$DLLTOOL"; then
6889   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6890 printf "%s\n" "$DLLTOOL" >&6; }
6891 else
6892   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 printf "%s\n" "no" >&6; }
6894 fi
6895
6896
6897 fi
6898 if test -z "$ac_cv_prog_DLLTOOL"; then
6899   ac_ct_DLLTOOL=$DLLTOOL
6900   # Extract the first word of "dlltool", so it can be a program name with args.
6901 set dummy dlltool; ac_word=$2
6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 printf %s "checking for $ac_word... " >&6; }
6904 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6905 then :
6906   printf %s "(cached) " >&6
6907 else $as_nop
6908   if test -n "$ac_ct_DLLTOOL"; then
6909   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914   IFS=$as_save_IFS
6915   case $as_dir in #(((
6916     '') as_dir=./ ;;
6917     */) ;;
6918     *) as_dir=$as_dir/ ;;
6919   esac
6920     for ac_exec_ext in '' $ac_executable_extensions; do
6921   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6922     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6923     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6924     break 2
6925   fi
6926 done
6927   done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6933 if test -n "$ac_ct_DLLTOOL"; then
6934   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6935 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6936 else
6937   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 printf "%s\n" "no" >&6; }
6939 fi
6940
6941   if test "x$ac_ct_DLLTOOL" = x; then
6942     DLLTOOL="false"
6943   else
6944     case $cross_compiling:$ac_tool_warned in
6945 yes:)
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948 ac_tool_warned=yes ;;
6949 esac
6950     DLLTOOL=$ac_ct_DLLTOOL
6951   fi
6952 else
6953   DLLTOOL="$ac_cv_prog_DLLTOOL"
6954 fi
6955
6956 test -z "$DLLTOOL" && DLLTOOL=dlltool
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6968 printf %s "checking how to associate runtime and link libraries... " >&6; }
6969 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6970 then :
6971   printf %s "(cached) " >&6
6972 else $as_nop
6973   lt_cv_sharedlib_from_linklib_cmd='unknown'
6974
6975 case $host_os in
6976 cygwin* | mingw* | pw32* | cegcc*)
6977   # two different shell functions defined in ltmain.sh;
6978   # decide which one to use based on capabilities of $DLLTOOL
6979   case `$DLLTOOL --help 2>&1` in
6980   *--identify-strict*)
6981     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6982     ;;
6983   *)
6984     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6985     ;;
6986   esac
6987   ;;
6988 *)
6989   # fallback: assume linklib IS sharedlib
6990   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6991   ;;
6992 esac
6993
6994 fi
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6996 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6997 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6998 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6999
7000
7001
7002
7003
7004
7005
7006 if test -n "$ac_tool_prefix"; then
7007   for ac_prog in ar
7008   do
7009     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 printf %s "checking for $ac_word... " >&6; }
7013 if test ${ac_cv_prog_AR+y}
7014 then :
7015   printf %s "(cached) " >&6
7016 else $as_nop
7017   if test -n "$AR"; then
7018   ac_cv_prog_AR="$AR" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023   IFS=$as_save_IFS
7024   case $as_dir in #(((
7025     '') as_dir=./ ;;
7026     */) ;;
7027     *) as_dir=$as_dir/ ;;
7028   esac
7029     for ac_exec_ext in '' $ac_executable_extensions; do
7030   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7031     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7032     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7033     break 2
7034   fi
7035 done
7036   done
7037 IFS=$as_save_IFS
7038
7039 fi
7040 fi
7041 AR=$ac_cv_prog_AR
7042 if test -n "$AR"; then
7043   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7044 printf "%s\n" "$AR" >&6; }
7045 else
7046   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 printf "%s\n" "no" >&6; }
7048 fi
7049
7050
7051     test -n "$AR" && break
7052   done
7053 fi
7054 if test -z "$AR"; then
7055   ac_ct_AR=$AR
7056   for ac_prog in ar
7057 do
7058   # Extract the first word of "$ac_prog", so it can be a program name with args.
7059 set dummy $ac_prog; ac_word=$2
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 printf %s "checking for $ac_word... " >&6; }
7062 if test ${ac_cv_prog_ac_ct_AR+y}
7063 then :
7064   printf %s "(cached) " >&6
7065 else $as_nop
7066   if test -n "$ac_ct_AR"; then
7067   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   case $as_dir in #(((
7074     '') as_dir=./ ;;
7075     */) ;;
7076     *) as_dir=$as_dir/ ;;
7077   esac
7078     for ac_exec_ext in '' $ac_executable_extensions; do
7079   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7080     ac_cv_prog_ac_ct_AR="$ac_prog"
7081     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085   done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7091 if test -n "$ac_ct_AR"; then
7092   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7093 printf "%s\n" "$ac_ct_AR" >&6; }
7094 else
7095   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 printf "%s\n" "no" >&6; }
7097 fi
7098
7099
7100   test -n "$ac_ct_AR" && break
7101 done
7102
7103   if test "x$ac_ct_AR" = x; then
7104     AR="false"
7105   else
7106     case $cross_compiling:$ac_tool_warned in
7107 yes:)
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112     AR=$ac_ct_AR
7113   fi
7114 fi
7115
7116 : ${AR=ar}
7117 : ${AR_FLAGS=cru}
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7130 printf %s "checking for archiver @FILE support... " >&6; }
7131 if test ${lt_cv_ar_at_file+y}
7132 then :
7133   printf %s "(cached) " >&6
7134 else $as_nop
7135   lt_cv_ar_at_file=no
7136    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h.  */
7138
7139 int
7140 main (void)
7141 {
7142
7143   ;
7144   return 0;
7145 }
7146 _ACEOF
7147 if ac_fn_c_try_compile "$LINENO"
7148 then :
7149   echo conftest.$ac_objext > conftest.lst
7150       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7151       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7152   (eval $lt_ar_try) 2>&5
7153   ac_status=$?
7154   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155   test $ac_status = 0; }
7156       if test 0 -eq "$ac_status"; then
7157         # Ensure the archiver fails upon bogus file names.
7158         rm -f conftest.$ac_objext libconftest.a
7159         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7160   (eval $lt_ar_try) 2>&5
7161   ac_status=$?
7162   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7163   test $ac_status = 0; }
7164         if test 0 -ne "$ac_status"; then
7165           lt_cv_ar_at_file=@
7166         fi
7167       fi
7168       rm -f conftest.* libconftest.a
7169
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7172
7173 fi
7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7175 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7176
7177 if test no = "$lt_cv_ar_at_file"; then
7178   archiver_list_spec=
7179 else
7180   archiver_list_spec=$lt_cv_ar_at_file
7181 fi
7182
7183
7184
7185
7186
7187
7188
7189 if test -n "$ac_tool_prefix"; then
7190   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}strip; ac_word=$2
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 printf %s "checking for $ac_word... " >&6; }
7194 if test ${ac_cv_prog_STRIP+y}
7195 then :
7196   printf %s "(cached) " >&6
7197 else $as_nop
7198   if test -n "$STRIP"; then
7199   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   case $as_dir in #(((
7206     '') as_dir=./ ;;
7207     */) ;;
7208     *) as_dir=$as_dir/ ;;
7209   esac
7210     for ac_exec_ext in '' $ac_executable_extensions; do
7211   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7212     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7213     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7214     break 2
7215   fi
7216 done
7217   done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 STRIP=$ac_cv_prog_STRIP
7223 if test -n "$STRIP"; then
7224   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7225 printf "%s\n" "$STRIP" >&6; }
7226 else
7227   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 printf "%s\n" "no" >&6; }
7229 fi
7230
7231
7232 fi
7233 if test -z "$ac_cv_prog_STRIP"; then
7234   ac_ct_STRIP=$STRIP
7235   # Extract the first word of "strip", so it can be a program name with args.
7236 set dummy strip; ac_word=$2
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 printf %s "checking for $ac_word... " >&6; }
7239 if test ${ac_cv_prog_ac_ct_STRIP+y}
7240 then :
7241   printf %s "(cached) " >&6
7242 else $as_nop
7243   if test -n "$ac_ct_STRIP"; then
7244   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249   IFS=$as_save_IFS
7250   case $as_dir in #(((
7251     '') as_dir=./ ;;
7252     */) ;;
7253     *) as_dir=$as_dir/ ;;
7254   esac
7255     for ac_exec_ext in '' $ac_executable_extensions; do
7256   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7257     ac_cv_prog_ac_ct_STRIP="strip"
7258     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262   done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7268 if test -n "$ac_ct_STRIP"; then
7269   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7270 printf "%s\n" "$ac_ct_STRIP" >&6; }
7271 else
7272   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 printf "%s\n" "no" >&6; }
7274 fi
7275
7276   if test "x$ac_ct_STRIP" = x; then
7277     STRIP=":"
7278   else
7279     case $cross_compiling:$ac_tool_warned in
7280 yes:)
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285     STRIP=$ac_ct_STRIP
7286   fi
7287 else
7288   STRIP="$ac_cv_prog_STRIP"
7289 fi
7290
7291 test -z "$STRIP" && STRIP=:
7292
7293
7294
7295
7296
7297
7298 if test -n "$ac_tool_prefix"; then
7299   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7300 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 printf %s "checking for $ac_word... " >&6; }
7303 if test ${ac_cv_prog_RANLIB+y}
7304 then :
7305   printf %s "(cached) " >&6
7306 else $as_nop
7307   if test -n "$RANLIB"; then
7308   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   case $as_dir in #(((
7315     '') as_dir=./ ;;
7316     */) ;;
7317     *) as_dir=$as_dir/ ;;
7318   esac
7319     for ac_exec_ext in '' $ac_executable_extensions; do
7320   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7321     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7322     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7323     break 2
7324   fi
7325 done
7326   done
7327 IFS=$as_save_IFS
7328
7329 fi
7330 fi
7331 RANLIB=$ac_cv_prog_RANLIB
7332 if test -n "$RANLIB"; then
7333   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7334 printf "%s\n" "$RANLIB" >&6; }
7335 else
7336   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 printf "%s\n" "no" >&6; }
7338 fi
7339
7340
7341 fi
7342 if test -z "$ac_cv_prog_RANLIB"; then
7343   ac_ct_RANLIB=$RANLIB
7344   # Extract the first word of "ranlib", so it can be a program name with args.
7345 set dummy ranlib; ac_word=$2
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 printf %s "checking for $ac_word... " >&6; }
7348 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7349 then :
7350   printf %s "(cached) " >&6
7351 else $as_nop
7352   if test -n "$ac_ct_RANLIB"; then
7353   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   case $as_dir in #(((
7360     '') as_dir=./ ;;
7361     */) ;;
7362     *) as_dir=$as_dir/ ;;
7363   esac
7364     for ac_exec_ext in '' $ac_executable_extensions; do
7365   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7366     ac_cv_prog_ac_ct_RANLIB="ranlib"
7367     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7368     break 2
7369   fi
7370 done
7371   done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7377 if test -n "$ac_ct_RANLIB"; then
7378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7379 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7380 else
7381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 printf "%s\n" "no" >&6; }
7383 fi
7384
7385   if test "x$ac_ct_RANLIB" = x; then
7386     RANLIB=":"
7387   else
7388     case $cross_compiling:$ac_tool_warned in
7389 yes:)
7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7393 esac
7394     RANLIB=$ac_ct_RANLIB
7395   fi
7396 else
7397   RANLIB="$ac_cv_prog_RANLIB"
7398 fi
7399
7400 test -z "$RANLIB" && RANLIB=:
7401
7402
7403
7404
7405
7406
7407 # Determine commands to create old-style static archives.
7408 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7409 old_postinstall_cmds='chmod 644 $oldlib'
7410 old_postuninstall_cmds=
7411
7412 if test -n "$RANLIB"; then
7413   case $host_os in
7414   bitrig* | openbsd*)
7415     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7416     ;;
7417   *)
7418     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7419     ;;
7420   esac
7421   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7422 fi
7423
7424 case $host_os in
7425   darwin*)
7426     lock_old_archive_extraction=yes ;;
7427   *)
7428     lock_old_archive_extraction=no ;;
7429 esac
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469 # If no C compiler was specified, use CC.
7470 LTCC=${LTCC-"$CC"}
7471
7472 # If no C compiler flags were specified, use CFLAGS.
7473 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7474
7475 # Allow CC to be a program name with arguments.
7476 compiler=$CC
7477
7478
7479 # Check for command to grab the raw symbol name followed by C symbol from nm.
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7481 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7482 if test ${lt_cv_sys_global_symbol_pipe+y}
7483 then :
7484   printf %s "(cached) " >&6
7485 else $as_nop
7486
7487 # These are sane defaults that work on at least a few old systems.
7488 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7489
7490 # Character class describing NM global symbol codes.
7491 symcode='[BCDEGRST]'
7492
7493 # Regexp to match symbols that can be accessed directly from C.
7494 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7495
7496 # Define system-specific variables.
7497 case $host_os in
7498 aix*)
7499   symcode='[BCDT]'
7500   ;;
7501 cygwin* | mingw* | pw32* | cegcc*)
7502   symcode='[ABCDGISTW]'
7503   ;;
7504 hpux*)
7505   if test ia64 = "$host_cpu"; then
7506     symcode='[ABCDEGRST]'
7507   fi
7508   ;;
7509 irix* | nonstopux*)
7510   symcode='[BCDEGRST]'
7511   ;;
7512 osf*)
7513   symcode='[BCDEGQRST]'
7514   ;;
7515 solaris*)
7516   symcode='[BDRT]'
7517   ;;
7518 sco3.2v5*)
7519   symcode='[DT]'
7520   ;;
7521 sysv4.2uw2*)
7522   symcode='[DT]'
7523   ;;
7524 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7525   symcode='[ABDT]'
7526   ;;
7527 sysv4)
7528   symcode='[DFNSTU]'
7529   ;;
7530 esac
7531
7532 # If we're using GNU nm, then use its standard symbol codes.
7533 case `$NM -V 2>&1` in
7534 *GNU* | *'with BFD'*)
7535   symcode='[ABCDGIRSTW]' ;;
7536 esac
7537
7538 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7539   # Gets list of data symbols to import.
7540   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7541   # Adjust the below global symbol transforms to fixup imported variables.
7542   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7543   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7544   lt_c_name_lib_hook="\
7545   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7546   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7547 else
7548   # Disable hooks by default.
7549   lt_cv_sys_global_symbol_to_import=
7550   lt_cdecl_hook=
7551   lt_c_name_hook=
7552   lt_c_name_lib_hook=
7553 fi
7554
7555 # Transform an extracted symbol line into a proper C declaration.
7556 # Some systems (esp. on ia64) link data and code symbols differently,
7557 # so use this general approach.
7558 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7559 $lt_cdecl_hook\
7560 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7561 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7562
7563 # Transform an extracted symbol line into symbol name and symbol address
7564 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7565 $lt_c_name_hook\
7566 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7567 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7568
7569 # Transform an extracted symbol line into symbol name with lib prefix and
7570 # symbol address.
7571 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7572 $lt_c_name_lib_hook\
7573 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7574 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7575 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7576
7577 # Handle CRLF in mingw tool chain
7578 opt_cr=
7579 case $build_os in
7580 mingw*)
7581   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7582   ;;
7583 esac
7584
7585 # Try without a prefix underscore, then with it.
7586 for ac_symprfx in "" "_"; do
7587
7588   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7589   symxfrm="\\1 $ac_symprfx\\2 \\2"
7590
7591   # Write the raw and C identifiers.
7592   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7593     # Fake it for dumpbin and say T for any non-static function,
7594     # D for any global variable and I for any imported variable.
7595     # Also find C++ and __fastcall symbols from MSVC++,
7596     # which start with @ or ?.
7597     lt_cv_sys_global_symbol_pipe="$AWK '"\
7598 "     {last_section=section; section=\$ 3};"\
7599 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7600 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7601 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7602 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7603 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7604 "     \$ 0!~/External *\|/{next};"\
7605 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7606 "     {if(hide[section]) next};"\
7607 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7608 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7609 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7610 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7611 "     ' prfx=^$ac_symprfx"
7612   else
7613     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7614   fi
7615   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7616
7617   # Check to see that the pipe works correctly.
7618   pipe_works=no
7619
7620   rm -f conftest*
7621   cat > conftest.$ac_ext <<_LT_EOF
7622 #ifdef __cplusplus
7623 extern "C" {
7624 #endif
7625 char nm_test_var;
7626 void nm_test_func(void);
7627 void nm_test_func(void){}
7628 #ifdef __cplusplus
7629 }
7630 #endif
7631 int main(){nm_test_var='a';nm_test_func();return(0);}
7632 _LT_EOF
7633
7634   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7635   (eval $ac_compile) 2>&5
7636   ac_status=$?
7637   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7638   test $ac_status = 0; }; then
7639     # Now try to grab the symbols.
7640     nlist=conftest.nm
7641     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7642   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7643   ac_status=$?
7644   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7645   test $ac_status = 0; } && test -s "$nlist"; then
7646       # Try sorting and uniquifying the output.
7647       if sort "$nlist" | uniq > "$nlist"T; then
7648         mv -f "$nlist"T "$nlist"
7649       else
7650         rm -f "$nlist"T
7651       fi
7652
7653       # Make sure that we snagged all the symbols we need.
7654       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7655         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7656           cat <<_LT_EOF > conftest.$ac_ext
7657 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7658 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7659 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7660    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7661 # define LT_DLSYM_CONST
7662 #elif defined __osf__
7663 /* This system does not cope well with relocations in const data.  */
7664 # define LT_DLSYM_CONST
7665 #else
7666 # define LT_DLSYM_CONST const
7667 #endif
7668
7669 #ifdef __cplusplus
7670 extern "C" {
7671 #endif
7672
7673 _LT_EOF
7674           # Now generate the symbol file.
7675           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7676
7677           cat <<_LT_EOF >> conftest.$ac_ext
7678
7679 /* The mapping between symbol names and symbols.  */
7680 LT_DLSYM_CONST struct {
7681   const char *name;
7682   void       *address;
7683 }
7684 lt__PROGRAM__LTX_preloaded_symbols[] =
7685 {
7686   { "@PROGRAM@", (void *) 0 },
7687 _LT_EOF
7688           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7689           cat <<\_LT_EOF >> conftest.$ac_ext
7690   {0, (void *) 0}
7691 };
7692
7693 /* This works around a problem in FreeBSD linker */
7694 #ifdef FREEBSD_WORKAROUND
7695 static const void *lt_preloaded_setup() {
7696   return lt__PROGRAM__LTX_preloaded_symbols;
7697 }
7698 #endif
7699
7700 #ifdef __cplusplus
7701 }
7702 #endif
7703 _LT_EOF
7704           # Now try linking the two files.
7705           mv conftest.$ac_objext conftstm.$ac_objext
7706           lt_globsym_save_LIBS=$LIBS
7707           lt_globsym_save_CFLAGS=$CFLAGS
7708           LIBS=conftstm.$ac_objext
7709           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7710           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7711   (eval $ac_link) 2>&5
7712   ac_status=$?
7713   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7714   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7715             pipe_works=yes
7716           fi
7717           LIBS=$lt_globsym_save_LIBS
7718           CFLAGS=$lt_globsym_save_CFLAGS
7719         else
7720           echo "cannot find nm_test_func in $nlist" >&5
7721         fi
7722       else
7723         echo "cannot find nm_test_var in $nlist" >&5
7724       fi
7725     else
7726       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7727     fi
7728   else
7729     echo "$progname: failed program was:" >&5
7730     cat conftest.$ac_ext >&5
7731   fi
7732   rm -rf conftest* conftst*
7733
7734   # Do not use the global_symbol_pipe unless it works.
7735   if test yes = "$pipe_works"; then
7736     break
7737   else
7738     lt_cv_sys_global_symbol_pipe=
7739   fi
7740 done
7741
7742 fi
7743
7744 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7745   lt_cv_sys_global_symbol_to_cdecl=
7746 fi
7747 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7748   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7749 printf "%s\n" "failed" >&6; }
7750 else
7751   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7752 printf "%s\n" "ok" >&6; }
7753 fi
7754
7755 # Response file support.
7756 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7757   nm_file_list_spec='@'
7758 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7759   nm_file_list_spec='@'
7760 fi
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7799 printf %s "checking for sysroot... " >&6; }
7800
7801 # Check whether --with-sysroot was given.
7802 if test ${with_sysroot+y}
7803 then :
7804   withval=$with_sysroot;
7805 else $as_nop
7806   with_sysroot=no
7807 fi
7808
7809
7810 lt_sysroot=
7811 case $with_sysroot in #(
7812  yes)
7813    if test yes = "$GCC"; then
7814      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7815    fi
7816    ;; #(
7817  /*)
7818    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7819    ;; #(
7820  no|'')
7821    ;; #(
7822  *)
7823    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7824 printf "%s\n" "$with_sysroot" >&6; }
7825    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7826    ;;
7827 esac
7828
7829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7830 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7831
7832
7833
7834
7835
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7837 printf %s "checking for a working dd... " >&6; }
7838 if test ${ac_cv_path_lt_DD+y}
7839 then :
7840   printf %s "(cached) " >&6
7841 else $as_nop
7842   printf 0123456789abcdef0123456789abcdef >conftest.i
7843 cat conftest.i conftest.i >conftest2.i
7844 : ${lt_DD:=$DD}
7845 if test -z "$lt_DD"; then
7846   ac_path_lt_DD_found=false
7847   # Loop through the user's path and test for each of PROGNAME-LIST
7848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851   IFS=$as_save_IFS
7852   case $as_dir in #(((
7853     '') as_dir=./ ;;
7854     */) ;;
7855     *) as_dir=$as_dir/ ;;
7856   esac
7857     for ac_prog in dd
7858    do
7859     for ac_exec_ext in '' $ac_executable_extensions; do
7860       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7861       as_fn_executable_p "$ac_path_lt_DD" || continue
7862 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7863   cmp -s conftest.i conftest.out \
7864   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7865 fi
7866       $ac_path_lt_DD_found && break 3
7867     done
7868   done
7869   done
7870 IFS=$as_save_IFS
7871   if test -z "$ac_cv_path_lt_DD"; then
7872     :
7873   fi
7874 else
7875   ac_cv_path_lt_DD=$lt_DD
7876 fi
7877
7878 rm -f conftest.i conftest2.i conftest.out
7879 fi
7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7881 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7882
7883
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7885 printf %s "checking how to truncate binary pipes... " >&6; }
7886 if test ${lt_cv_truncate_bin+y}
7887 then :
7888   printf %s "(cached) " >&6
7889 else $as_nop
7890   printf 0123456789abcdef0123456789abcdef >conftest.i
7891 cat conftest.i conftest.i >conftest2.i
7892 lt_cv_truncate_bin=
7893 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7894   cmp -s conftest.i conftest.out \
7895   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7896 fi
7897 rm -f conftest.i conftest2.i conftest.out
7898 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7899 fi
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7901 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7902
7903
7904
7905
7906
7907
7908
7909 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7910 func_cc_basename ()
7911 {
7912     for cc_temp in $*""; do
7913       case $cc_temp in
7914         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7915         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7916         \-*) ;;
7917         *) break;;
7918       esac
7919     done
7920     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7921 }
7922
7923 # Check whether --enable-libtool-lock was given.
7924 if test ${enable_libtool_lock+y}
7925 then :
7926   enableval=$enable_libtool_lock;
7927 fi
7928
7929 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7930
7931 # Some flags need to be propagated to the compiler or linker for good
7932 # libtool support.
7933 case $host in
7934 ia64-*-hpux*)
7935   # Find out what ABI is being produced by ac_compile, and set mode
7936   # options accordingly.
7937   echo 'int i;' > conftest.$ac_ext
7938   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7939   (eval $ac_compile) 2>&5
7940   ac_status=$?
7941   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7942   test $ac_status = 0; }; then
7943     case `/usr/bin/file conftest.$ac_objext` in
7944       *ELF-32*)
7945         HPUX_IA64_MODE=32
7946         ;;
7947       *ELF-64*)
7948         HPUX_IA64_MODE=64
7949         ;;
7950     esac
7951   fi
7952   rm -rf conftest*
7953   ;;
7954 *-*-irix6*)
7955   # Find out what ABI is being produced by ac_compile, and set linker
7956   # options accordingly.
7957   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7958   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7959   (eval $ac_compile) 2>&5
7960   ac_status=$?
7961   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962   test $ac_status = 0; }; then
7963     if test yes = "$lt_cv_prog_gnu_ld"; then
7964       case `/usr/bin/file conftest.$ac_objext` in
7965         *32-bit*)
7966           LD="${LD-ld} -melf32bsmip"
7967           ;;
7968         *N32*)
7969           LD="${LD-ld} -melf32bmipn32"
7970           ;;
7971         *64-bit*)
7972           LD="${LD-ld} -melf64bmip"
7973         ;;
7974       esac
7975     else
7976       case `/usr/bin/file conftest.$ac_objext` in
7977         *32-bit*)
7978           LD="${LD-ld} -32"
7979           ;;
7980         *N32*)
7981           LD="${LD-ld} -n32"
7982           ;;
7983         *64-bit*)
7984           LD="${LD-ld} -64"
7985           ;;
7986       esac
7987     fi
7988   fi
7989   rm -rf conftest*
7990   ;;
7991
7992 mips64*-*linux*)
7993   # Find out what ABI is being produced by ac_compile, and set linker
7994   # options accordingly.
7995   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7996   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7997   (eval $ac_compile) 2>&5
7998   ac_status=$?
7999   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8000   test $ac_status = 0; }; then
8001     emul=elf
8002     case `/usr/bin/file conftest.$ac_objext` in
8003       *32-bit*)
8004         emul="${emul}32"
8005         ;;
8006       *64-bit*)
8007         emul="${emul}64"
8008         ;;
8009     esac
8010     case `/usr/bin/file conftest.$ac_objext` in
8011       *MSB*)
8012         emul="${emul}btsmip"
8013         ;;
8014       *LSB*)
8015         emul="${emul}ltsmip"
8016         ;;
8017     esac
8018     case `/usr/bin/file conftest.$ac_objext` in
8019       *N32*)
8020         emul="${emul}n32"
8021         ;;
8022     esac
8023     LD="${LD-ld} -m $emul"
8024   fi
8025   rm -rf conftest*
8026   ;;
8027
8028 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8029 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8030   # Find out what ABI is being produced by ac_compile, and set linker
8031   # options accordingly.  Note that the listed cases only cover the
8032   # situations where additional linker options are needed (such as when
8033   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8034   # vice versa); the common cases where no linker options are needed do
8035   # not appear in the list.
8036   echo 'int i;' > conftest.$ac_ext
8037   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8038   (eval $ac_compile) 2>&5
8039   ac_status=$?
8040   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041   test $ac_status = 0; }; then
8042     case `/usr/bin/file conftest.o` in
8043       *32-bit*)
8044         case $host in
8045           x86_64-*kfreebsd*-gnu)
8046             LD="${LD-ld} -m elf_i386_fbsd"
8047             ;;
8048           x86_64-*linux*)
8049             case `/usr/bin/file conftest.o` in
8050               *x86-64*)
8051                 LD="${LD-ld} -m elf32_x86_64"
8052                 ;;
8053               *)
8054                 LD="${LD-ld} -m elf_i386"
8055                 ;;
8056             esac
8057             ;;
8058           powerpc64le-*linux*)
8059             LD="${LD-ld} -m elf32lppclinux"
8060             ;;
8061           powerpc64-*linux*)
8062             LD="${LD-ld} -m elf32ppclinux"
8063             ;;
8064           s390x-*linux*)
8065             LD="${LD-ld} -m elf_s390"
8066             ;;
8067           sparc64-*linux*)
8068             LD="${LD-ld} -m elf32_sparc"
8069             ;;
8070         esac
8071         ;;
8072       *64-bit*)
8073         case $host in
8074           x86_64-*kfreebsd*-gnu)
8075             LD="${LD-ld} -m elf_x86_64_fbsd"
8076             ;;
8077           x86_64-*linux*)
8078             LD="${LD-ld} -m elf_x86_64"
8079             ;;
8080           powerpcle-*linux*)
8081             LD="${LD-ld} -m elf64lppc"
8082             ;;
8083           powerpc-*linux*)
8084             LD="${LD-ld} -m elf64ppc"
8085             ;;
8086           s390*-*linux*|s390*-*tpf*)
8087             LD="${LD-ld} -m elf64_s390"
8088             ;;
8089           sparc*-*linux*)
8090             LD="${LD-ld} -m elf64_sparc"
8091             ;;
8092         esac
8093         ;;
8094     esac
8095   fi
8096   rm -rf conftest*
8097   ;;
8098
8099 *-*-sco3.2v5*)
8100   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8101   SAVE_CFLAGS=$CFLAGS
8102   CFLAGS="$CFLAGS -belf"
8103   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8104 printf %s "checking whether the C compiler needs -belf... " >&6; }
8105 if test ${lt_cv_cc_needs_belf+y}
8106 then :
8107   printf %s "(cached) " >&6
8108 else $as_nop
8109   ac_ext=c
8110 ac_cpp='$CPP $CPPFLAGS'
8111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8114
8115      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h.  */
8117
8118 int
8119 main (void)
8120 {
8121
8122   ;
8123   return 0;
8124 }
8125 _ACEOF
8126 if ac_fn_c_try_link "$LINENO"
8127 then :
8128   lt_cv_cc_needs_belf=yes
8129 else $as_nop
8130   lt_cv_cc_needs_belf=no
8131 fi
8132 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8133     conftest$ac_exeext conftest.$ac_ext
8134      ac_ext=c
8135 ac_cpp='$CPP $CPPFLAGS'
8136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8139
8140 fi
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8142 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8143   if test yes != "$lt_cv_cc_needs_belf"; then
8144     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8145     CFLAGS=$SAVE_CFLAGS
8146   fi
8147   ;;
8148 *-*solaris*)
8149   # Find out what ABI is being produced by ac_compile, and set linker
8150   # options accordingly.
8151   echo 'int i;' > conftest.$ac_ext
8152   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8153   (eval $ac_compile) 2>&5
8154   ac_status=$?
8155   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8156   test $ac_status = 0; }; then
8157     case `/usr/bin/file conftest.o` in
8158     *64-bit*)
8159       case $lt_cv_prog_gnu_ld in
8160       yes*)
8161         case $host in
8162         i?86-*-solaris*|x86_64-*-solaris*)
8163           LD="${LD-ld} -m elf_x86_64"
8164           ;;
8165         sparc*-*-solaris*)
8166           LD="${LD-ld} -m elf64_sparc"
8167           ;;
8168         esac
8169         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8170         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8171           LD=${LD-ld}_sol2
8172         fi
8173         ;;
8174       *)
8175         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8176           LD="${LD-ld} -64"
8177         fi
8178         ;;
8179       esac
8180       ;;
8181     esac
8182   fi
8183   rm -rf conftest*
8184   ;;
8185 esac
8186
8187 need_locks=$enable_libtool_lock
8188
8189 if test -n "$ac_tool_prefix"; then
8190   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8191 set dummy ${ac_tool_prefix}mt; ac_word=$2
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 printf %s "checking for $ac_word... " >&6; }
8194 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8195 then :
8196   printf %s "(cached) " >&6
8197 else $as_nop
8198   if test -n "$MANIFEST_TOOL"; then
8199   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8200 else
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204   IFS=$as_save_IFS
8205   case $as_dir in #(((
8206     '') as_dir=./ ;;
8207     */) ;;
8208     *) as_dir=$as_dir/ ;;
8209   esac
8210     for ac_exec_ext in '' $ac_executable_extensions; do
8211   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8212     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8213     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8214     break 2
8215   fi
8216 done
8217   done
8218 IFS=$as_save_IFS
8219
8220 fi
8221 fi
8222 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8223 if test -n "$MANIFEST_TOOL"; then
8224   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8225 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8226 else
8227   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 printf "%s\n" "no" >&6; }
8229 fi
8230
8231
8232 fi
8233 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8234   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8235   # Extract the first word of "mt", so it can be a program name with args.
8236 set dummy mt; ac_word=$2
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 printf %s "checking for $ac_word... " >&6; }
8239 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8240 then :
8241   printf %s "(cached) " >&6
8242 else $as_nop
8243   if test -n "$ac_ct_MANIFEST_TOOL"; then
8244   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8245 else
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8248 do
8249   IFS=$as_save_IFS
8250   case $as_dir in #(((
8251     '') as_dir=./ ;;
8252     */) ;;
8253     *) as_dir=$as_dir/ ;;
8254   esac
8255     for ac_exec_ext in '' $ac_executable_extensions; do
8256   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8257     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8258     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8259     break 2
8260   fi
8261 done
8262   done
8263 IFS=$as_save_IFS
8264
8265 fi
8266 fi
8267 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8268 if test -n "$ac_ct_MANIFEST_TOOL"; then
8269   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8270 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8271 else
8272   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 printf "%s\n" "no" >&6; }
8274 fi
8275
8276   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8277     MANIFEST_TOOL=":"
8278   else
8279     case $cross_compiling:$ac_tool_warned in
8280 yes:)
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8282 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8283 ac_tool_warned=yes ;;
8284 esac
8285     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8286   fi
8287 else
8288   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8289 fi
8290
8291 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8293 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8294 if test ${lt_cv_path_mainfest_tool+y}
8295 then :
8296   printf %s "(cached) " >&6
8297 else $as_nop
8298   lt_cv_path_mainfest_tool=no
8299   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8300   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8301   cat conftest.err >&5
8302   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8303     lt_cv_path_mainfest_tool=yes
8304   fi
8305   rm -f conftest*
8306 fi
8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8308 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8309 if test yes != "$lt_cv_path_mainfest_tool"; then
8310   MANIFEST_TOOL=:
8311 fi
8312
8313
8314
8315
8316
8317
8318   case $host_os in
8319     rhapsody* | darwin*)
8320     if test -n "$ac_tool_prefix"; then
8321   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8322 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324 printf %s "checking for $ac_word... " >&6; }
8325 if test ${ac_cv_prog_DSYMUTIL+y}
8326 then :
8327   printf %s "(cached) " >&6
8328 else $as_nop
8329   if test -n "$DSYMUTIL"; then
8330   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335   IFS=$as_save_IFS
8336   case $as_dir in #(((
8337     '') as_dir=./ ;;
8338     */) ;;
8339     *) as_dir=$as_dir/ ;;
8340   esac
8341     for ac_exec_ext in '' $ac_executable_extensions; do
8342   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8343     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8344     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8345     break 2
8346   fi
8347 done
8348   done
8349 IFS=$as_save_IFS
8350
8351 fi
8352 fi
8353 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8354 if test -n "$DSYMUTIL"; then
8355   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8356 printf "%s\n" "$DSYMUTIL" >&6; }
8357 else
8358   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 printf "%s\n" "no" >&6; }
8360 fi
8361
8362
8363 fi
8364 if test -z "$ac_cv_prog_DSYMUTIL"; then
8365   ac_ct_DSYMUTIL=$DSYMUTIL
8366   # Extract the first word of "dsymutil", so it can be a program name with args.
8367 set dummy dsymutil; ac_word=$2
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 printf %s "checking for $ac_word... " >&6; }
8370 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8371 then :
8372   printf %s "(cached) " >&6
8373 else $as_nop
8374   if test -n "$ac_ct_DSYMUTIL"; then
8375   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8379 do
8380   IFS=$as_save_IFS
8381   case $as_dir in #(((
8382     '') as_dir=./ ;;
8383     */) ;;
8384     *) as_dir=$as_dir/ ;;
8385   esac
8386     for ac_exec_ext in '' $ac_executable_extensions; do
8387   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8388     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8389     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8390     break 2
8391   fi
8392 done
8393   done
8394 IFS=$as_save_IFS
8395
8396 fi
8397 fi
8398 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8399 if test -n "$ac_ct_DSYMUTIL"; then
8400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8401 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8402 else
8403   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 printf "%s\n" "no" >&6; }
8405 fi
8406
8407   if test "x$ac_ct_DSYMUTIL" = x; then
8408     DSYMUTIL=":"
8409   else
8410     case $cross_compiling:$ac_tool_warned in
8411 yes:)
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414 ac_tool_warned=yes ;;
8415 esac
8416     DSYMUTIL=$ac_ct_DSYMUTIL
8417   fi
8418 else
8419   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8420 fi
8421
8422     if test -n "$ac_tool_prefix"; then
8423   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8424 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 printf %s "checking for $ac_word... " >&6; }
8427 if test ${ac_cv_prog_NMEDIT+y}
8428 then :
8429   printf %s "(cached) " >&6
8430 else $as_nop
8431   if test -n "$NMEDIT"; then
8432   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8433 else
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 for as_dir in $PATH
8436 do
8437   IFS=$as_save_IFS
8438   case $as_dir in #(((
8439     '') as_dir=./ ;;
8440     */) ;;
8441     *) as_dir=$as_dir/ ;;
8442   esac
8443     for ac_exec_ext in '' $ac_executable_extensions; do
8444   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8445     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8446     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8447     break 2
8448   fi
8449 done
8450   done
8451 IFS=$as_save_IFS
8452
8453 fi
8454 fi
8455 NMEDIT=$ac_cv_prog_NMEDIT
8456 if test -n "$NMEDIT"; then
8457   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8458 printf "%s\n" "$NMEDIT" >&6; }
8459 else
8460   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 printf "%s\n" "no" >&6; }
8462 fi
8463
8464
8465 fi
8466 if test -z "$ac_cv_prog_NMEDIT"; then
8467   ac_ct_NMEDIT=$NMEDIT
8468   # Extract the first word of "nmedit", so it can be a program name with args.
8469 set dummy nmedit; ac_word=$2
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 printf %s "checking for $ac_word... " >&6; }
8472 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8473 then :
8474   printf %s "(cached) " >&6
8475 else $as_nop
8476   if test -n "$ac_ct_NMEDIT"; then
8477   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482   IFS=$as_save_IFS
8483   case $as_dir in #(((
8484     '') as_dir=./ ;;
8485     */) ;;
8486     *) as_dir=$as_dir/ ;;
8487   esac
8488     for ac_exec_ext in '' $ac_executable_extensions; do
8489   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8490     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8491     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8492     break 2
8493   fi
8494 done
8495   done
8496 IFS=$as_save_IFS
8497
8498 fi
8499 fi
8500 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8501 if test -n "$ac_ct_NMEDIT"; then
8502   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8503 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8504 else
8505   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 printf "%s\n" "no" >&6; }
8507 fi
8508
8509   if test "x$ac_ct_NMEDIT" = x; then
8510     NMEDIT=":"
8511   else
8512     case $cross_compiling:$ac_tool_warned in
8513 yes:)
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8515 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8516 ac_tool_warned=yes ;;
8517 esac
8518     NMEDIT=$ac_ct_NMEDIT
8519   fi
8520 else
8521   NMEDIT="$ac_cv_prog_NMEDIT"
8522 fi
8523
8524     if test -n "$ac_tool_prefix"; then
8525   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8526 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528 printf %s "checking for $ac_word... " >&6; }
8529 if test ${ac_cv_prog_LIPO+y}
8530 then :
8531   printf %s "(cached) " >&6
8532 else $as_nop
8533   if test -n "$LIPO"; then
8534   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8535 else
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8538 do
8539   IFS=$as_save_IFS
8540   case $as_dir in #(((
8541     '') as_dir=./ ;;
8542     */) ;;
8543     *) as_dir=$as_dir/ ;;
8544   esac
8545     for ac_exec_ext in '' $ac_executable_extensions; do
8546   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8547     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8548     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8549     break 2
8550   fi
8551 done
8552   done
8553 IFS=$as_save_IFS
8554
8555 fi
8556 fi
8557 LIPO=$ac_cv_prog_LIPO
8558 if test -n "$LIPO"; then
8559   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8560 printf "%s\n" "$LIPO" >&6; }
8561 else
8562   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 printf "%s\n" "no" >&6; }
8564 fi
8565
8566
8567 fi
8568 if test -z "$ac_cv_prog_LIPO"; then
8569   ac_ct_LIPO=$LIPO
8570   # Extract the first word of "lipo", so it can be a program name with args.
8571 set dummy lipo; ac_word=$2
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 printf %s "checking for $ac_word... " >&6; }
8574 if test ${ac_cv_prog_ac_ct_LIPO+y}
8575 then :
8576   printf %s "(cached) " >&6
8577 else $as_nop
8578   if test -n "$ac_ct_LIPO"; then
8579   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8580 else
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8583 do
8584   IFS=$as_save_IFS
8585   case $as_dir in #(((
8586     '') as_dir=./ ;;
8587     */) ;;
8588     *) as_dir=$as_dir/ ;;
8589   esac
8590     for ac_exec_ext in '' $ac_executable_extensions; do
8591   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8592     ac_cv_prog_ac_ct_LIPO="lipo"
8593     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8594     break 2
8595   fi
8596 done
8597   done
8598 IFS=$as_save_IFS
8599
8600 fi
8601 fi
8602 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8603 if test -n "$ac_ct_LIPO"; then
8604   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8605 printf "%s\n" "$ac_ct_LIPO" >&6; }
8606 else
8607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 printf "%s\n" "no" >&6; }
8609 fi
8610
8611   if test "x$ac_ct_LIPO" = x; then
8612     LIPO=":"
8613   else
8614     case $cross_compiling:$ac_tool_warned in
8615 yes:)
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618 ac_tool_warned=yes ;;
8619 esac
8620     LIPO=$ac_ct_LIPO
8621   fi
8622 else
8623   LIPO="$ac_cv_prog_LIPO"
8624 fi
8625
8626     if test -n "$ac_tool_prefix"; then
8627   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8628 set dummy ${ac_tool_prefix}otool; ac_word=$2
8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630 printf %s "checking for $ac_word... " >&6; }
8631 if test ${ac_cv_prog_OTOOL+y}
8632 then :
8633   printf %s "(cached) " >&6
8634 else $as_nop
8635   if test -n "$OTOOL"; then
8636   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8637 else
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 for as_dir in $PATH
8640 do
8641   IFS=$as_save_IFS
8642   case $as_dir in #(((
8643     '') as_dir=./ ;;
8644     */) ;;
8645     *) as_dir=$as_dir/ ;;
8646   esac
8647     for ac_exec_ext in '' $ac_executable_extensions; do
8648   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8649     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8650     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8651     break 2
8652   fi
8653 done
8654   done
8655 IFS=$as_save_IFS
8656
8657 fi
8658 fi
8659 OTOOL=$ac_cv_prog_OTOOL
8660 if test -n "$OTOOL"; then
8661   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8662 printf "%s\n" "$OTOOL" >&6; }
8663 else
8664   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 printf "%s\n" "no" >&6; }
8666 fi
8667
8668
8669 fi
8670 if test -z "$ac_cv_prog_OTOOL"; then
8671   ac_ct_OTOOL=$OTOOL
8672   # Extract the first word of "otool", so it can be a program name with args.
8673 set dummy otool; ac_word=$2
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 printf %s "checking for $ac_word... " >&6; }
8676 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8677 then :
8678   printf %s "(cached) " >&6
8679 else $as_nop
8680   if test -n "$ac_ct_OTOOL"; then
8681   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686   IFS=$as_save_IFS
8687   case $as_dir in #(((
8688     '') as_dir=./ ;;
8689     */) ;;
8690     *) as_dir=$as_dir/ ;;
8691   esac
8692     for ac_exec_ext in '' $ac_executable_extensions; do
8693   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8694     ac_cv_prog_ac_ct_OTOOL="otool"
8695     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8696     break 2
8697   fi
8698 done
8699   done
8700 IFS=$as_save_IFS
8701
8702 fi
8703 fi
8704 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8705 if test -n "$ac_ct_OTOOL"; then
8706   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8707 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8708 else
8709   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 printf "%s\n" "no" >&6; }
8711 fi
8712
8713   if test "x$ac_ct_OTOOL" = x; then
8714     OTOOL=":"
8715   else
8716     case $cross_compiling:$ac_tool_warned in
8717 yes:)
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8720 ac_tool_warned=yes ;;
8721 esac
8722     OTOOL=$ac_ct_OTOOL
8723   fi
8724 else
8725   OTOOL="$ac_cv_prog_OTOOL"
8726 fi
8727
8728     if test -n "$ac_tool_prefix"; then
8729   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8730 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 printf %s "checking for $ac_word... " >&6; }
8733 if test ${ac_cv_prog_OTOOL64+y}
8734 then :
8735   printf %s "(cached) " >&6
8736 else $as_nop
8737   if test -n "$OTOOL64"; then
8738   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743   IFS=$as_save_IFS
8744   case $as_dir in #(((
8745     '') as_dir=./ ;;
8746     */) ;;
8747     *) as_dir=$as_dir/ ;;
8748   esac
8749     for ac_exec_ext in '' $ac_executable_extensions; do
8750   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8751     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8752     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8753     break 2
8754   fi
8755 done
8756   done
8757 IFS=$as_save_IFS
8758
8759 fi
8760 fi
8761 OTOOL64=$ac_cv_prog_OTOOL64
8762 if test -n "$OTOOL64"; then
8763   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8764 printf "%s\n" "$OTOOL64" >&6; }
8765 else
8766   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 printf "%s\n" "no" >&6; }
8768 fi
8769
8770
8771 fi
8772 if test -z "$ac_cv_prog_OTOOL64"; then
8773   ac_ct_OTOOL64=$OTOOL64
8774   # Extract the first word of "otool64", so it can be a program name with args.
8775 set dummy otool64; ac_word=$2
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 printf %s "checking for $ac_word... " >&6; }
8778 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8779 then :
8780   printf %s "(cached) " >&6
8781 else $as_nop
8782   if test -n "$ac_ct_OTOOL64"; then
8783   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8784 else
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8787 do
8788   IFS=$as_save_IFS
8789   case $as_dir in #(((
8790     '') as_dir=./ ;;
8791     */) ;;
8792     *) as_dir=$as_dir/ ;;
8793   esac
8794     for ac_exec_ext in '' $ac_executable_extensions; do
8795   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8796     ac_cv_prog_ac_ct_OTOOL64="otool64"
8797     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8798     break 2
8799   fi
8800 done
8801   done
8802 IFS=$as_save_IFS
8803
8804 fi
8805 fi
8806 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8807 if test -n "$ac_ct_OTOOL64"; then
8808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8809 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8810 else
8811   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 printf "%s\n" "no" >&6; }
8813 fi
8814
8815   if test "x$ac_ct_OTOOL64" = x; then
8816     OTOOL64=":"
8817   else
8818     case $cross_compiling:$ac_tool_warned in
8819 yes:)
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8821 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8822 ac_tool_warned=yes ;;
8823 esac
8824     OTOOL64=$ac_ct_OTOOL64
8825   fi
8826 else
8827   OTOOL64="$ac_cv_prog_OTOOL64"
8828 fi
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8857 printf %s "checking for -single_module linker flag... " >&6; }
8858 if test ${lt_cv_apple_cc_single_mod+y}
8859 then :
8860   printf %s "(cached) " >&6
8861 else $as_nop
8862   lt_cv_apple_cc_single_mod=no
8863       if test -z "$LT_MULTI_MODULE"; then
8864         # By default we will add the -single_module flag. You can override
8865         # by either setting the environment variable LT_MULTI_MODULE
8866         # non-empty at configure time, or by adding -multi_module to the
8867         # link flags.
8868         rm -rf libconftest.dylib*
8869         echo "int foo(void){return 1;}" > conftest.c
8870         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8871 -dynamiclib -Wl,-single_module conftest.c" >&5
8872         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8873           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8874         _lt_result=$?
8875         # If there is a non-empty error log, and "single_module"
8876         # appears in it, assume the flag caused a linker warning
8877         if test -s conftest.err && $GREP single_module conftest.err; then
8878           cat conftest.err >&5
8879         # Otherwise, if the output was created with a 0 exit code from
8880         # the compiler, it worked.
8881         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8882           lt_cv_apple_cc_single_mod=yes
8883         else
8884           cat conftest.err >&5
8885         fi
8886         rm -rf libconftest.dylib*
8887         rm -f conftest.*
8888       fi
8889 fi
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8891 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8892
8893     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8894 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8895 if test ${lt_cv_ld_exported_symbols_list+y}
8896 then :
8897   printf %s "(cached) " >&6
8898 else $as_nop
8899   lt_cv_ld_exported_symbols_list=no
8900       save_LDFLAGS=$LDFLAGS
8901       echo "_main" > conftest.sym
8902       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8903       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h.  */
8905
8906 int
8907 main (void)
8908 {
8909
8910   ;
8911   return 0;
8912 }
8913 _ACEOF
8914 if ac_fn_c_try_link "$LINENO"
8915 then :
8916   lt_cv_ld_exported_symbols_list=yes
8917 else $as_nop
8918   lt_cv_ld_exported_symbols_list=no
8919 fi
8920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8921     conftest$ac_exeext conftest.$ac_ext
8922         LDFLAGS=$save_LDFLAGS
8923
8924 fi
8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8926 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8927
8928     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8929 printf %s "checking for -force_load linker flag... " >&6; }
8930 if test ${lt_cv_ld_force_load+y}
8931 then :
8932   printf %s "(cached) " >&6
8933 else $as_nop
8934   lt_cv_ld_force_load=no
8935       cat > conftest.c << _LT_EOF
8936 int forced_loaded() { return 2;}
8937 _LT_EOF
8938       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8939       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8940       echo "$AR cru libconftest.a conftest.o" >&5
8941       $AR cru libconftest.a conftest.o 2>&5
8942       echo "$RANLIB libconftest.a" >&5
8943       $RANLIB libconftest.a 2>&5
8944       cat > conftest.c << _LT_EOF
8945 int main() { return 0;}
8946 _LT_EOF
8947       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8948       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8949       _lt_result=$?
8950       if test -s conftest.err && $GREP force_load conftest.err; then
8951         cat conftest.err >&5
8952       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8953         lt_cv_ld_force_load=yes
8954       else
8955         cat conftest.err >&5
8956       fi
8957         rm -f conftest.err libconftest.a conftest conftest.c
8958         rm -rf conftest.dSYM
8959
8960 fi
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8962 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8963     case $host_os in
8964     rhapsody* | darwin1.[012])
8965       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8966     darwin1.*)
8967       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8968     darwin*) # darwin 5.x on
8969       # if running on 10.5 or later, the deployment target defaults
8970       # to the OS version, if on x86, and 10.4, the deployment
8971       # target defaults to 10.4. Don't you love it?
8972       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8973         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8974           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8975         10.[012][,.]*)
8976           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8977         10.*)
8978           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8979       esac
8980     ;;
8981   esac
8982     if test yes = "$lt_cv_apple_cc_single_mod"; then
8983       _lt_dar_single_mod='$single_module'
8984     fi
8985     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8986       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8987     else
8988       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8989     fi
8990     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8991       _lt_dsymutil='~$DSYMUTIL $lib || :'
8992     else
8993       _lt_dsymutil=
8994     fi
8995     ;;
8996   esac
8997
8998 # func_munge_path_list VARIABLE PATH
8999 # -----------------------------------
9000 # VARIABLE is name of variable containing _space_ separated list of
9001 # directories to be munged by the contents of PATH, which is string
9002 # having a format:
9003 # "DIR[:DIR]:"
9004 #       string "DIR[ DIR]" will be prepended to VARIABLE
9005 # ":DIR[:DIR]"
9006 #       string "DIR[ DIR]" will be appended to VARIABLE
9007 # "DIRP[:DIRP]::[DIRA:]DIRA"
9008 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9009 #       "DIRA[ DIRA]" will be appended to VARIABLE
9010 # "DIR[:DIR]"
9011 #       VARIABLE will be replaced by "DIR[ DIR]"
9012 func_munge_path_list ()
9013 {
9014     case x$2 in
9015     x)
9016         ;;
9017     *:)
9018         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9019         ;;
9020     x:*)
9021         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9022         ;;
9023     *::*)
9024         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9025         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9026         ;;
9027     *)
9028         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9029         ;;
9030     esac
9031 }
9032
9033 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9034 "
9035 if test "x$ac_cv_header_dlfcn_h" = xyes
9036 then :
9037   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9038
9039 fi
9040
9041
9042
9043
9044
9045 # Set options
9046 # Check whether --enable-static was given.
9047 if test ${enable_static+y}
9048 then :
9049   enableval=$enable_static; p=${PACKAGE-default}
9050     case $enableval in
9051     yes) enable_static=yes ;;
9052     no) enable_static=no ;;
9053     *)
9054      enable_static=no
9055       # Look at the argument we got.  We use all the common list separators.
9056       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9057       for pkg in $enableval; do
9058         IFS=$lt_save_ifs
9059         if test "X$pkg" = "X$p"; then
9060           enable_static=yes
9061         fi
9062       done
9063       IFS=$lt_save_ifs
9064       ;;
9065     esac
9066 else $as_nop
9067   enable_static=no
9068 fi
9069
9070
9071
9072
9073
9074
9075
9076
9077 # Check whether --with-pic was given.
9078 if test ${with_pic+y}
9079 then :
9080   withval=$with_pic; lt_p=${PACKAGE-default}
9081     case $withval in
9082     yes|no) pic_mode=$withval ;;
9083     *)
9084       pic_mode=default
9085       # Look at the argument we got.  We use all the common list separators.
9086       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9087       for lt_pkg in $withval; do
9088         IFS=$lt_save_ifs
9089         if test "X$lt_pkg" = "X$lt_p"; then
9090           pic_mode=yes
9091         fi
9092       done
9093       IFS=$lt_save_ifs
9094       ;;
9095     esac
9096 else $as_nop
9097   pic_mode=yes
9098 fi
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108         enable_dlopen=no
9109
9110
9111   enable_win32_dll=no
9112
9113
9114             # Check whether --enable-shared was given.
9115 if test ${enable_shared+y}
9116 then :
9117   enableval=$enable_shared; p=${PACKAGE-default}
9118     case $enableval in
9119     yes) enable_shared=yes ;;
9120     no) enable_shared=no ;;
9121     *)
9122       enable_shared=no
9123       # Look at the argument we got.  We use all the common list separators.
9124       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9125       for pkg in $enableval; do
9126         IFS=$lt_save_ifs
9127         if test "X$pkg" = "X$p"; then
9128           enable_shared=yes
9129         fi
9130       done
9131       IFS=$lt_save_ifs
9132       ;;
9133     esac
9134 else $as_nop
9135   enable_shared=yes
9136 fi
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148   # Check whether --enable-fast-install was given.
9149 if test ${enable_fast_install+y}
9150 then :
9151   enableval=$enable_fast_install; p=${PACKAGE-default}
9152     case $enableval in
9153     yes) enable_fast_install=yes ;;
9154     no) enable_fast_install=no ;;
9155     *)
9156       enable_fast_install=no
9157       # Look at the argument we got.  We use all the common list separators.
9158       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9159       for pkg in $enableval; do
9160         IFS=$lt_save_ifs
9161         if test "X$pkg" = "X$p"; then
9162           enable_fast_install=yes
9163         fi
9164       done
9165       IFS=$lt_save_ifs
9166       ;;
9167     esac
9168 else $as_nop
9169   enable_fast_install=yes
9170 fi
9171
9172
9173
9174
9175
9176
9177
9178
9179   shared_archive_member_spec=
9180 case $host,$enable_shared in
9181 power*-*-aix[5-9]*,yes)
9182   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9183 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9184
9185 # Check whether --with-aix-soname was given.
9186 if test ${with_aix_soname+y}
9187 then :
9188   withval=$with_aix_soname; case $withval in
9189     aix|svr4|both)
9190       ;;
9191     *)
9192       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9193       ;;
9194     esac
9195     lt_cv_with_aix_soname=$with_aix_soname
9196 else $as_nop
9197   if test ${lt_cv_with_aix_soname+y}
9198 then :
9199   printf %s "(cached) " >&6
9200 else $as_nop
9201   lt_cv_with_aix_soname=aix
9202 fi
9203
9204     with_aix_soname=$lt_cv_with_aix_soname
9205 fi
9206
9207   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9208 printf "%s\n" "$with_aix_soname" >&6; }
9209   if test aix != "$with_aix_soname"; then
9210     # For the AIX way of multilib, we name the shared archive member
9211     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9212     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9213     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9214     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9215     if test 64 = "${OBJECT_MODE-32}"; then
9216       shared_archive_member_spec=shr_64
9217     else
9218       shared_archive_member_spec=shr
9219     fi
9220   fi
9221   ;;
9222 *)
9223   with_aix_soname=aix
9224   ;;
9225 esac
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236 # This can be used to rebuild libtool when needed
9237 LIBTOOL_DEPS=$ltmain
9238
9239 # Always use our own libtool.
9240 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271 test -z "$LN_S" && LN_S="ln -s"
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286 if test -n "${ZSH_VERSION+set}"; then
9287    setopt NO_GLOB_SUBST
9288 fi
9289
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9291 printf %s "checking for objdir... " >&6; }
9292 if test ${lt_cv_objdir+y}
9293 then :
9294   printf %s "(cached) " >&6
9295 else $as_nop
9296   rm -f .libs 2>/dev/null
9297 mkdir .libs 2>/dev/null
9298 if test -d .libs; then
9299   lt_cv_objdir=.libs
9300 else
9301   # MS-DOS does not allow filenames that begin with a dot.
9302   lt_cv_objdir=_libs
9303 fi
9304 rmdir .libs 2>/dev/null
9305 fi
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9307 printf "%s\n" "$lt_cv_objdir" >&6; }
9308 objdir=$lt_cv_objdir
9309
9310
9311
9312
9313
9314 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9315
9316
9317
9318
9319 case $host_os in
9320 aix3*)
9321   # AIX sometimes has problems with the GCC collect2 program.  For some
9322   # reason, if we set the COLLECT_NAMES environment variable, the problems
9323   # vanish in a puff of smoke.
9324   if test set != "${COLLECT_NAMES+set}"; then
9325     COLLECT_NAMES=
9326     export COLLECT_NAMES
9327   fi
9328   ;;
9329 esac
9330
9331 # Global variables:
9332 ofile=libtool
9333 can_build_shared=yes
9334
9335 # All known linkers require a '.a' archive for static linking (except MSVC,
9336 # which needs '.lib').
9337 libext=a
9338
9339 with_gnu_ld=$lt_cv_prog_gnu_ld
9340
9341 old_CC=$CC
9342 old_CFLAGS=$CFLAGS
9343
9344 # Set sane defaults for various variables
9345 test -z "$CC" && CC=cc
9346 test -z "$LTCC" && LTCC=$CC
9347 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9348 test -z "$LD" && LD=ld
9349 test -z "$ac_objext" && ac_objext=o
9350
9351 func_cc_basename $compiler
9352 cc_basename=$func_cc_basename_result
9353
9354
9355 # Only perform the check for file, if the check method requires it
9356 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9357 case $deplibs_check_method in
9358 file_magic*)
9359   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9360     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9361 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9362 if test ${lt_cv_path_MAGIC_CMD+y}
9363 then :
9364   printf %s "(cached) " >&6
9365 else $as_nop
9366   case $MAGIC_CMD in
9367 [\\/*] |  ?:[\\/]*)
9368   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9369   ;;
9370 *)
9371   lt_save_MAGIC_CMD=$MAGIC_CMD
9372   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9373   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9374   for ac_dir in $ac_dummy; do
9375     IFS=$lt_save_ifs
9376     test -z "$ac_dir" && ac_dir=.
9377     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9378       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9379       if test -n "$file_magic_test_file"; then
9380         case $deplibs_check_method in
9381         "file_magic "*)
9382           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9383           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9384           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9385             $EGREP "$file_magic_regex" > /dev/null; then
9386             :
9387           else
9388             cat <<_LT_EOF 1>&2
9389
9390 *** Warning: the command libtool uses to detect shared libraries,
9391 *** $file_magic_cmd, produces output that libtool cannot recognize.
9392 *** The result is that libtool may fail to recognize shared libraries
9393 *** as such.  This will affect the creation of libtool libraries that
9394 *** depend on shared libraries, but programs linked with such libtool
9395 *** libraries will work regardless of this problem.  Nevertheless, you
9396 *** may want to report the problem to your system manager and/or to
9397 *** bug-libtool@gnu.org
9398
9399 _LT_EOF
9400           fi ;;
9401         esac
9402       fi
9403       break
9404     fi
9405   done
9406   IFS=$lt_save_ifs
9407   MAGIC_CMD=$lt_save_MAGIC_CMD
9408   ;;
9409 esac
9410 fi
9411
9412 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9413 if test -n "$MAGIC_CMD"; then
9414   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9415 printf "%s\n" "$MAGIC_CMD" >&6; }
9416 else
9417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 printf "%s\n" "no" >&6; }
9419 fi
9420
9421
9422
9423
9424
9425 if test -z "$lt_cv_path_MAGIC_CMD"; then
9426   if test -n "$ac_tool_prefix"; then
9427     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9428 printf %s "checking for file... " >&6; }
9429 if test ${lt_cv_path_MAGIC_CMD+y}
9430 then :
9431   printf %s "(cached) " >&6
9432 else $as_nop
9433   case $MAGIC_CMD in
9434 [\\/*] |  ?:[\\/]*)
9435   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9436   ;;
9437 *)
9438   lt_save_MAGIC_CMD=$MAGIC_CMD
9439   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9440   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9441   for ac_dir in $ac_dummy; do
9442     IFS=$lt_save_ifs
9443     test -z "$ac_dir" && ac_dir=.
9444     if test -f "$ac_dir/file"; then
9445       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9446       if test -n "$file_magic_test_file"; then
9447         case $deplibs_check_method in
9448         "file_magic "*)
9449           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9450           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9451           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9452             $EGREP "$file_magic_regex" > /dev/null; then
9453             :
9454           else
9455             cat <<_LT_EOF 1>&2
9456
9457 *** Warning: the command libtool uses to detect shared libraries,
9458 *** $file_magic_cmd, produces output that libtool cannot recognize.
9459 *** The result is that libtool may fail to recognize shared libraries
9460 *** as such.  This will affect the creation of libtool libraries that
9461 *** depend on shared libraries, but programs linked with such libtool
9462 *** libraries will work regardless of this problem.  Nevertheless, you
9463 *** may want to report the problem to your system manager and/or to
9464 *** bug-libtool@gnu.org
9465
9466 _LT_EOF
9467           fi ;;
9468         esac
9469       fi
9470       break
9471     fi
9472   done
9473   IFS=$lt_save_ifs
9474   MAGIC_CMD=$lt_save_MAGIC_CMD
9475   ;;
9476 esac
9477 fi
9478
9479 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9480 if test -n "$MAGIC_CMD"; then
9481   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9482 printf "%s\n" "$MAGIC_CMD" >&6; }
9483 else
9484   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485 printf "%s\n" "no" >&6; }
9486 fi
9487
9488
9489   else
9490     MAGIC_CMD=:
9491   fi
9492 fi
9493
9494   fi
9495   ;;
9496 esac
9497
9498 # Use C for the default configuration in the libtool script
9499
9500 lt_save_CC=$CC
9501 ac_ext=c
9502 ac_cpp='$CPP $CPPFLAGS'
9503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9506
9507
9508 # Source file extension for C test sources.
9509 ac_ext=c
9510
9511 # Object file extension for compiled C test sources.
9512 objext=o
9513 objext=$objext
9514
9515 # Code to be used in simple compile tests
9516 lt_simple_compile_test_code="int some_variable = 0;"
9517
9518 # Code to be used in simple link tests
9519 lt_simple_link_test_code='int main(){return(0);}'
9520
9521
9522
9523
9524
9525
9526
9527 # If no C compiler was specified, use CC.
9528 LTCC=${LTCC-"$CC"}
9529
9530 # If no C compiler flags were specified, use CFLAGS.
9531 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9532
9533 # Allow CC to be a program name with arguments.
9534 compiler=$CC
9535
9536 # Save the default compiler, since it gets overwritten when the other
9537 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9538 compiler_DEFAULT=$CC
9539
9540 # save warnings/boilerplate of simple test code
9541 ac_outfile=conftest.$ac_objext
9542 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9543 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9544 _lt_compiler_boilerplate=`cat conftest.err`
9545 $RM conftest*
9546
9547 ac_outfile=conftest.$ac_objext
9548 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9549 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9550 _lt_linker_boilerplate=`cat conftest.err`
9551 $RM -r conftest*
9552
9553
9554 ## CAVEAT EMPTOR:
9555 ## There is no encapsulation within the following macros, do not change
9556 ## the running order or otherwise move them around unless you know exactly
9557 ## what you are doing...
9558 if test -n "$compiler"; then
9559
9560 lt_prog_compiler_no_builtin_flag=
9561
9562 if test yes = "$GCC"; then
9563   case $cc_basename in
9564   nvcc*)
9565     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9566   *)
9567     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9568   esac
9569
9570   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9571 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9572 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9573 then :
9574   printf %s "(cached) " >&6
9575 else $as_nop
9576   lt_cv_prog_compiler_rtti_exceptions=no
9577    ac_outfile=conftest.$ac_objext
9578    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9579    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9580    # Insert the option either (1) after the last *FLAGS variable, or
9581    # (2) before a word containing "conftest.", or (3) at the end.
9582    # Note that $ac_compile itself does not contain backslashes and begins
9583    # with a dollar sign (not a hyphen), so the echo should work correctly.
9584    # The option is referenced via a variable to avoid confusing sed.
9585    lt_compile=`echo "$ac_compile" | $SED \
9586    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9587    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9588    -e 's:$: $lt_compiler_flag:'`
9589    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9590    (eval "$lt_compile" 2>conftest.err)
9591    ac_status=$?
9592    cat conftest.err >&5
9593    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594    if (exit $ac_status) && test -s "$ac_outfile"; then
9595      # The compiler can only warn and ignore the option if not recognized
9596      # So say no if there are warnings other than the usual output.
9597      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9598      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9599      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9600        lt_cv_prog_compiler_rtti_exceptions=yes
9601      fi
9602    fi
9603    $RM conftest*
9604
9605 fi
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9607 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9608
9609 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9610     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9611 else
9612     :
9613 fi
9614
9615 fi
9616
9617
9618
9619
9620
9621
9622   lt_prog_compiler_wl=
9623 lt_prog_compiler_pic=
9624 lt_prog_compiler_static=
9625
9626
9627   if test yes = "$GCC"; then
9628     lt_prog_compiler_wl='-Wl,'
9629     lt_prog_compiler_static='-static'
9630
9631     case $host_os in
9632       aix*)
9633       # All AIX code is PIC.
9634       if test ia64 = "$host_cpu"; then
9635         # AIX 5 now supports IA64 processor
9636         lt_prog_compiler_static='-Bstatic'
9637       fi
9638       lt_prog_compiler_pic='-fPIC'
9639       ;;
9640
9641     amigaos*)
9642       case $host_cpu in
9643       powerpc)
9644             # see comment about AmigaOS4 .so support
9645             lt_prog_compiler_pic='-fPIC'
9646         ;;
9647       m68k)
9648             # FIXME: we need at least 68020 code to build shared libraries, but
9649             # adding the '-m68020' flag to GCC prevents building anything better,
9650             # like '-m68040'.
9651             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9652         ;;
9653       esac
9654       ;;
9655
9656     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9657       # PIC is the default for these OSes.
9658       ;;
9659
9660     mingw* | cygwin* | pw32* | os2* | cegcc*)
9661       # This hack is so that the source file can tell whether it is being
9662       # built for inclusion in a dll (and should export symbols for example).
9663       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9664       # (--disable-auto-import) libraries
9665       lt_prog_compiler_pic='-DDLL_EXPORT'
9666       case $host_os in
9667       os2*)
9668         lt_prog_compiler_static='$wl-static'
9669         ;;
9670       esac
9671       ;;
9672
9673     darwin* | rhapsody*)
9674       # PIC is the default on this platform
9675       # Common symbols not allowed in MH_DYLIB files
9676       lt_prog_compiler_pic='-fno-common'
9677       ;;
9678
9679     haiku*)
9680       # PIC is the default for Haiku.
9681       # The "-static" flag exists, but is broken.
9682       lt_prog_compiler_static=
9683       ;;
9684
9685     hpux*)
9686       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9687       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9688       # sets the default TLS model and affects inlining.
9689       case $host_cpu in
9690       hppa*64*)
9691         # +Z the default
9692         ;;
9693       *)
9694         lt_prog_compiler_pic='-fPIC'
9695         ;;
9696       esac
9697       ;;
9698
9699     interix[3-9]*)
9700       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9701       # Instead, we relocate shared libraries at runtime.
9702       ;;
9703
9704     msdosdjgpp*)
9705       # Just because we use GCC doesn't mean we suddenly get shared libraries
9706       # on systems that don't support them.
9707       lt_prog_compiler_can_build_shared=no
9708       enable_shared=no
9709       ;;
9710
9711     *nto* | *qnx*)
9712       # QNX uses GNU C++, but need to define -shared option too, otherwise
9713       # it will coredump.
9714       lt_prog_compiler_pic='-fPIC -shared'
9715       ;;
9716
9717     sysv4*MP*)
9718       if test -d /usr/nec; then
9719         lt_prog_compiler_pic=-Kconform_pic
9720       fi
9721       ;;
9722
9723     *)
9724       lt_prog_compiler_pic='-fPIC'
9725       ;;
9726     esac
9727
9728     case $cc_basename in
9729     nvcc*) # Cuda Compiler Driver 2.2
9730       lt_prog_compiler_wl='-Xlinker '
9731       if test -n "$lt_prog_compiler_pic"; then
9732         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9733       fi
9734       ;;
9735     esac
9736   else
9737     # PORTME Check for flag to pass linker flags through the system compiler.
9738     case $host_os in
9739     aix*)
9740       lt_prog_compiler_wl='-Wl,'
9741       if test ia64 = "$host_cpu"; then
9742         # AIX 5 now supports IA64 processor
9743         lt_prog_compiler_static='-Bstatic'
9744       else
9745         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9746       fi
9747       ;;
9748
9749     darwin* | rhapsody*)
9750       # PIC is the default on this platform
9751       # Common symbols not allowed in MH_DYLIB files
9752       lt_prog_compiler_pic='-fno-common'
9753       case $cc_basename in
9754       nagfor*)
9755         # NAG Fortran compiler
9756         lt_prog_compiler_wl='-Wl,-Wl,,'
9757         lt_prog_compiler_pic='-PIC'
9758         lt_prog_compiler_static='-Bstatic'
9759         ;;
9760       esac
9761       ;;
9762
9763     mingw* | cygwin* | pw32* | os2* | cegcc*)
9764       # This hack is so that the source file can tell whether it is being
9765       # built for inclusion in a dll (and should export symbols for example).
9766       lt_prog_compiler_pic='-DDLL_EXPORT'
9767       case $host_os in
9768       os2*)
9769         lt_prog_compiler_static='$wl-static'
9770         ;;
9771       esac
9772       ;;
9773
9774     hpux9* | hpux10* | hpux11*)
9775       lt_prog_compiler_wl='-Wl,'
9776       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9777       # not for PA HP-UX.
9778       case $host_cpu in
9779       hppa*64*|ia64*)
9780         # +Z the default
9781         ;;
9782       *)
9783         lt_prog_compiler_pic='+Z'
9784         ;;
9785       esac
9786       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9787       lt_prog_compiler_static='$wl-a ${wl}archive'
9788       ;;
9789
9790     irix5* | irix6* | nonstopux*)
9791       lt_prog_compiler_wl='-Wl,'
9792       # PIC (with -KPIC) is the default.
9793       lt_prog_compiler_static='-non_shared'
9794       ;;
9795
9796     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9797       case $cc_basename in
9798       # old Intel for x86_64, which still supported -KPIC.
9799       ecc*)
9800         lt_prog_compiler_wl='-Wl,'
9801         lt_prog_compiler_pic='-KPIC'
9802         lt_prog_compiler_static='-static'
9803         ;;
9804       # icc used to be incompatible with GCC.
9805       # ICC 10 doesn't accept -KPIC any more.
9806       icc* | ifort*)
9807         lt_prog_compiler_wl='-Wl,'
9808         lt_prog_compiler_pic='-fPIC'
9809         lt_prog_compiler_static='-static'
9810         ;;
9811       # Lahey Fortran 8.1.
9812       lf95*)
9813         lt_prog_compiler_wl='-Wl,'
9814         lt_prog_compiler_pic='--shared'
9815         lt_prog_compiler_static='--static'
9816         ;;
9817       nagfor*)
9818         # NAG Fortran compiler
9819         lt_prog_compiler_wl='-Wl,-Wl,,'
9820         lt_prog_compiler_pic='-PIC'
9821         lt_prog_compiler_static='-Bstatic'
9822         ;;
9823       tcc*)
9824         # Fabrice Bellard et al's Tiny C Compiler
9825         lt_prog_compiler_wl='-Wl,'
9826         lt_prog_compiler_pic='-fPIC'
9827         lt_prog_compiler_static='-static'
9828         ;;
9829       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9830         # Portland Group compilers (*not* the Pentium gcc compiler,
9831         # which looks to be a dead project)
9832         lt_prog_compiler_wl='-Wl,'
9833         lt_prog_compiler_pic='-fpic'
9834         lt_prog_compiler_static='-Bstatic'
9835         ;;
9836       ccc*)
9837         lt_prog_compiler_wl='-Wl,'
9838         # All Alpha code is PIC.
9839         lt_prog_compiler_static='-non_shared'
9840         ;;
9841       xl* | bgxl* | bgf* | mpixl*)
9842         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9843         lt_prog_compiler_wl='-Wl,'
9844         lt_prog_compiler_pic='-qpic'
9845         lt_prog_compiler_static='-qstaticlink'
9846         ;;
9847       *)
9848         case `$CC -V 2>&1 | sed 5q` in
9849         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9850           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9851           lt_prog_compiler_pic='-KPIC'
9852           lt_prog_compiler_static='-Bstatic'
9853           lt_prog_compiler_wl=''
9854           ;;
9855         *Sun\ F* | *Sun*Fortran*)
9856           lt_prog_compiler_pic='-KPIC'
9857           lt_prog_compiler_static='-Bstatic'
9858           lt_prog_compiler_wl='-Qoption ld '
9859           ;;
9860         *Sun\ C*)
9861           # Sun C 5.9
9862           lt_prog_compiler_pic='-KPIC'
9863           lt_prog_compiler_static='-Bstatic'
9864           lt_prog_compiler_wl='-Wl,'
9865           ;;
9866         *Intel*\ [CF]*Compiler*)
9867           lt_prog_compiler_wl='-Wl,'
9868           lt_prog_compiler_pic='-fPIC'
9869           lt_prog_compiler_static='-static'
9870           ;;
9871         *Portland\ Group*)
9872           lt_prog_compiler_wl='-Wl,'
9873           lt_prog_compiler_pic='-fpic'
9874           lt_prog_compiler_static='-Bstatic'
9875           ;;
9876         esac
9877         ;;
9878       esac
9879       ;;
9880
9881     newsos6)
9882       lt_prog_compiler_pic='-KPIC'
9883       lt_prog_compiler_static='-Bstatic'
9884       ;;
9885
9886     *nto* | *qnx*)
9887       # QNX uses GNU C++, but need to define -shared option too, otherwise
9888       # it will coredump.
9889       lt_prog_compiler_pic='-fPIC -shared'
9890       ;;
9891
9892     osf3* | osf4* | osf5*)
9893       lt_prog_compiler_wl='-Wl,'
9894       # All OSF/1 code is PIC.
9895       lt_prog_compiler_static='-non_shared'
9896       ;;
9897
9898     rdos*)
9899       lt_prog_compiler_static='-non_shared'
9900       ;;
9901
9902     solaris*)
9903       lt_prog_compiler_pic='-KPIC'
9904       lt_prog_compiler_static='-Bstatic'
9905       case $cc_basename in
9906       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9907         lt_prog_compiler_wl='-Qoption ld ';;
9908       *)
9909         lt_prog_compiler_wl='-Wl,';;
9910       esac
9911       ;;
9912
9913     sunos4*)
9914       lt_prog_compiler_wl='-Qoption ld '
9915       lt_prog_compiler_pic='-PIC'
9916       lt_prog_compiler_static='-Bstatic'
9917       ;;
9918
9919     sysv4 | sysv4.2uw2* | sysv4.3*)
9920       lt_prog_compiler_wl='-Wl,'
9921       lt_prog_compiler_pic='-KPIC'
9922       lt_prog_compiler_static='-Bstatic'
9923       ;;
9924
9925     sysv4*MP*)
9926       if test -d /usr/nec; then
9927         lt_prog_compiler_pic='-Kconform_pic'
9928         lt_prog_compiler_static='-Bstatic'
9929       fi
9930       ;;
9931
9932     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9933       lt_prog_compiler_wl='-Wl,'
9934       lt_prog_compiler_pic='-KPIC'
9935       lt_prog_compiler_static='-Bstatic'
9936       ;;
9937
9938     unicos*)
9939       lt_prog_compiler_wl='-Wl,'
9940       lt_prog_compiler_can_build_shared=no
9941       ;;
9942
9943     uts4*)
9944       lt_prog_compiler_pic='-pic'
9945       lt_prog_compiler_static='-Bstatic'
9946       ;;
9947
9948     *)
9949       lt_prog_compiler_can_build_shared=no
9950       ;;
9951     esac
9952   fi
9953
9954 case $host_os in
9955   # For platforms that do not support PIC, -DPIC is meaningless:
9956   *djgpp*)
9957     lt_prog_compiler_pic=
9958     ;;
9959   *)
9960     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9961     ;;
9962 esac
9963
9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9965 printf %s "checking for $compiler option to produce PIC... " >&6; }
9966 if test ${lt_cv_prog_compiler_pic+y}
9967 then :
9968   printf %s "(cached) " >&6
9969 else $as_nop
9970   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9971 fi
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9973 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9974 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9975
9976 #
9977 # Check to make sure the PIC flag actually works.
9978 #
9979 if test -n "$lt_prog_compiler_pic"; then
9980   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9981 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9982 if test ${lt_cv_prog_compiler_pic_works+y}
9983 then :
9984   printf %s "(cached) " >&6
9985 else $as_nop
9986   lt_cv_prog_compiler_pic_works=no
9987    ac_outfile=conftest.$ac_objext
9988    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9989    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9990    # Insert the option either (1) after the last *FLAGS variable, or
9991    # (2) before a word containing "conftest.", or (3) at the end.
9992    # Note that $ac_compile itself does not contain backslashes and begins
9993    # with a dollar sign (not a hyphen), so the echo should work correctly.
9994    # The option is referenced via a variable to avoid confusing sed.
9995    lt_compile=`echo "$ac_compile" | $SED \
9996    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9997    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9998    -e 's:$: $lt_compiler_flag:'`
9999    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10000    (eval "$lt_compile" 2>conftest.err)
10001    ac_status=$?
10002    cat conftest.err >&5
10003    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004    if (exit $ac_status) && test -s "$ac_outfile"; then
10005      # The compiler can only warn and ignore the option if not recognized
10006      # So say no if there are warnings other than the usual output.
10007      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10008      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10009      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10010        lt_cv_prog_compiler_pic_works=yes
10011      fi
10012    fi
10013    $RM conftest*
10014
10015 fi
10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10017 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10018
10019 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10020     case $lt_prog_compiler_pic in
10021      "" | " "*) ;;
10022      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10023      esac
10024 else
10025     lt_prog_compiler_pic=
10026      lt_prog_compiler_can_build_shared=no
10027 fi
10028
10029 fi
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041 #
10042 # Check to make sure the static flag actually works.
10043 #
10044 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10046 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10047 if test ${lt_cv_prog_compiler_static_works+y}
10048 then :
10049   printf %s "(cached) " >&6
10050 else $as_nop
10051   lt_cv_prog_compiler_static_works=no
10052    save_LDFLAGS=$LDFLAGS
10053    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10054    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10055    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10056      # The linker can only warn and ignore the option if not recognized
10057      # So say no if there are warnings
10058      if test -s conftest.err; then
10059        # Append any errors to the config.log.
10060        cat conftest.err 1>&5
10061        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10062        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10063        if diff conftest.exp conftest.er2 >/dev/null; then
10064          lt_cv_prog_compiler_static_works=yes
10065        fi
10066      else
10067        lt_cv_prog_compiler_static_works=yes
10068      fi
10069    fi
10070    $RM -r conftest*
10071    LDFLAGS=$save_LDFLAGS
10072
10073 fi
10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10075 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10076
10077 if test yes = "$lt_cv_prog_compiler_static_works"; then
10078     :
10079 else
10080     lt_prog_compiler_static=
10081 fi
10082
10083
10084
10085
10086
10087
10088
10089   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10090 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10091 if test ${lt_cv_prog_compiler_c_o+y}
10092 then :
10093   printf %s "(cached) " >&6
10094 else $as_nop
10095   lt_cv_prog_compiler_c_o=no
10096    $RM -r conftest 2>/dev/null
10097    mkdir conftest
10098    cd conftest
10099    mkdir out
10100    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10101
10102    lt_compiler_flag="-o out/conftest2.$ac_objext"
10103    # Insert the option either (1) after the last *FLAGS variable, or
10104    # (2) before a word containing "conftest.", or (3) at the end.
10105    # Note that $ac_compile itself does not contain backslashes and begins
10106    # with a dollar sign (not a hyphen), so the echo should work correctly.
10107    lt_compile=`echo "$ac_compile" | $SED \
10108    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10109    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10110    -e 's:$: $lt_compiler_flag:'`
10111    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10112    (eval "$lt_compile" 2>out/conftest.err)
10113    ac_status=$?
10114    cat out/conftest.err >&5
10115    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10117    then
10118      # The compiler can only warn and ignore the option if not recognized
10119      # So say no if there are warnings
10120      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10121      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10122      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10123        lt_cv_prog_compiler_c_o=yes
10124      fi
10125    fi
10126    chmod u+w . 2>&5
10127    $RM conftest*
10128    # SGI C++ compiler will create directory out/ii_files/ for
10129    # template instantiation
10130    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10131    $RM out/* && rmdir out
10132    cd ..
10133    $RM -r conftest
10134    $RM conftest*
10135
10136 fi
10137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10138 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10139
10140
10141
10142
10143
10144
10145   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10146 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10147 if test ${lt_cv_prog_compiler_c_o+y}
10148 then :
10149   printf %s "(cached) " >&6
10150 else $as_nop
10151   lt_cv_prog_compiler_c_o=no
10152    $RM -r conftest 2>/dev/null
10153    mkdir conftest
10154    cd conftest
10155    mkdir out
10156    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10157
10158    lt_compiler_flag="-o out/conftest2.$ac_objext"
10159    # Insert the option either (1) after the last *FLAGS variable, or
10160    # (2) before a word containing "conftest.", or (3) at the end.
10161    # Note that $ac_compile itself does not contain backslashes and begins
10162    # with a dollar sign (not a hyphen), so the echo should work correctly.
10163    lt_compile=`echo "$ac_compile" | $SED \
10164    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10165    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10166    -e 's:$: $lt_compiler_flag:'`
10167    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10168    (eval "$lt_compile" 2>out/conftest.err)
10169    ac_status=$?
10170    cat out/conftest.err >&5
10171    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10173    then
10174      # The compiler can only warn and ignore the option if not recognized
10175      # So say no if there are warnings
10176      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10177      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10178      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10179        lt_cv_prog_compiler_c_o=yes
10180      fi
10181    fi
10182    chmod u+w . 2>&5
10183    $RM conftest*
10184    # SGI C++ compiler will create directory out/ii_files/ for
10185    # template instantiation
10186    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10187    $RM out/* && rmdir out
10188    cd ..
10189    $RM -r conftest
10190    $RM conftest*
10191
10192 fi
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10194 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10195
10196
10197
10198
10199 hard_links=nottested
10200 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10201   # do not overwrite the value of need_locks provided by the user
10202   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10203 printf %s "checking if we can lock with hard links... " >&6; }
10204   hard_links=yes
10205   $RM conftest*
10206   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10207   touch conftest.a
10208   ln conftest.a conftest.b 2>&5 || hard_links=no
10209   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10210   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10211 printf "%s\n" "$hard_links" >&6; }
10212   if test no = "$hard_links"; then
10213     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10214 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10215     need_locks=warn
10216   fi
10217 else
10218   need_locks=no
10219 fi
10220
10221
10222
10223
10224
10225
10226   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10227 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10228
10229   runpath_var=
10230   allow_undefined_flag=
10231   always_export_symbols=no
10232   archive_cmds=
10233   archive_expsym_cmds=
10234   compiler_needs_object=no
10235   enable_shared_with_static_runtimes=no
10236   export_dynamic_flag_spec=
10237   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10238   hardcode_automatic=no
10239   hardcode_direct=no
10240   hardcode_direct_absolute=no
10241   hardcode_libdir_flag_spec=
10242   hardcode_libdir_separator=
10243   hardcode_minus_L=no
10244   hardcode_shlibpath_var=unsupported
10245   inherit_rpath=no
10246   link_all_deplibs=unknown
10247   module_cmds=
10248   module_expsym_cmds=
10249   old_archive_from_new_cmds=
10250   old_archive_from_expsyms_cmds=
10251   thread_safe_flag_spec=
10252   whole_archive_flag_spec=
10253   # include_expsyms should be a list of space-separated symbols to be *always*
10254   # included in the symbol list
10255   include_expsyms=
10256   # exclude_expsyms can be an extended regexp of symbols to exclude
10257   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10258   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10259   # as well as any symbol that contains 'd'.
10260   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10261   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10262   # platforms (ab)use it in PIC code, but their linkers get confused if
10263   # the symbol is explicitly referenced.  Since portable code cannot
10264   # rely on this symbol name, it's probably fine to never include it in
10265   # preloaded symbol tables.
10266   # Exclude shared library initialization/finalization symbols.
10267   extract_expsyms_cmds=
10268
10269   case $host_os in
10270   cygwin* | mingw* | pw32* | cegcc*)
10271     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10272     # When not using gcc, we currently assume that we are using
10273     # Microsoft Visual C++.
10274     if test yes != "$GCC"; then
10275       with_gnu_ld=no
10276     fi
10277     ;;
10278   interix*)
10279     # we just hope/assume this is gcc and not c89 (= MSVC++)
10280     with_gnu_ld=yes
10281     ;;
10282   openbsd* | bitrig*)
10283     with_gnu_ld=no
10284     ;;
10285   esac
10286
10287   ld_shlibs=yes
10288
10289   # On some targets, GNU ld is compatible enough with the native linker
10290   # that we're better off using the native interface for both.
10291   lt_use_gnu_ld_interface=no
10292   if test yes = "$with_gnu_ld"; then
10293     case $host_os in
10294       aix*)
10295         # The AIX port of GNU ld has always aspired to compatibility
10296         # with the native linker.  However, as the warning in the GNU ld
10297         # block says, versions before 2.19.5* couldn't really create working
10298         # shared libraries, regardless of the interface used.
10299         case `$LD -v 2>&1` in
10300           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10301           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10302           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10303           *)
10304             lt_use_gnu_ld_interface=yes
10305             ;;
10306         esac
10307         ;;
10308       *)
10309         lt_use_gnu_ld_interface=yes
10310         ;;
10311     esac
10312   fi
10313
10314   if test yes = "$lt_use_gnu_ld_interface"; then
10315     # If archive_cmds runs LD, not CC, wlarc should be empty
10316     wlarc='$wl'
10317
10318     # Set some defaults for GNU ld with shared library support. These
10319     # are reset later if shared libraries are not supported. Putting them
10320     # here allows them to be overridden if necessary.
10321     runpath_var=LD_RUN_PATH
10322     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10323     export_dynamic_flag_spec='$wl--export-dynamic'
10324     # ancient GNU ld didn't support --whole-archive et. al.
10325     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10326       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10327     else
10328       whole_archive_flag_spec=
10329     fi
10330     supports_anon_versioning=no
10331     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10332       *GNU\ gold*) supports_anon_versioning=yes ;;
10333       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10334       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10335       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10336       *\ 2.11.*) ;; # other 2.11 versions
10337       *) supports_anon_versioning=yes ;;
10338     esac
10339
10340     # See if GNU ld supports shared libraries.
10341     case $host_os in
10342     aix[3-9]*)
10343       # On AIX/PPC, the GNU linker is very broken
10344       if test ia64 != "$host_cpu"; then
10345         ld_shlibs=no
10346         cat <<_LT_EOF 1>&2
10347
10348 *** Warning: the GNU linker, at least up to release 2.19, is reported
10349 *** to be unable to reliably create shared libraries on AIX.
10350 *** Therefore, libtool is disabling shared libraries support.  If you
10351 *** really care for shared libraries, you may want to install binutils
10352 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10353 *** You will then need to restart the configuration process.
10354
10355 _LT_EOF
10356       fi
10357       ;;
10358
10359     amigaos*)
10360       case $host_cpu in
10361       powerpc)
10362             # see comment about AmigaOS4 .so support
10363             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10364             archive_expsym_cmds=''
10365         ;;
10366       m68k)
10367             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)'
10368             hardcode_libdir_flag_spec='-L$libdir'
10369             hardcode_minus_L=yes
10370         ;;
10371       esac
10372       ;;
10373
10374     beos*)
10375       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10376         allow_undefined_flag=unsupported
10377         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10378         # support --undefined.  This deserves some investigation.  FIXME
10379         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10380       else
10381         ld_shlibs=no
10382       fi
10383       ;;
10384
10385     cygwin* | mingw* | pw32* | cegcc*)
10386       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10387       # as there is no search path for DLLs.
10388       hardcode_libdir_flag_spec='-L$libdir'
10389       export_dynamic_flag_spec='$wl--export-all-symbols'
10390       allow_undefined_flag=unsupported
10391       always_export_symbols=no
10392       enable_shared_with_static_runtimes=yes
10393       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'
10394       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10395
10396       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10397         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10398         # If the export-symbols file already is a .def file, use it as
10399         # is; otherwise, prepend EXPORTS...
10400         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10401           cp $export_symbols $output_objdir/$soname.def;
10402         else
10403           echo EXPORTS > $output_objdir/$soname.def;
10404           cat $export_symbols >> $output_objdir/$soname.def;
10405         fi~
10406         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10407       else
10408         ld_shlibs=no
10409       fi
10410       ;;
10411
10412     haiku*)
10413       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10414       link_all_deplibs=yes
10415       ;;
10416
10417     os2*)
10418       hardcode_libdir_flag_spec='-L$libdir'
10419       hardcode_minus_L=yes
10420       allow_undefined_flag=unsupported
10421       shrext_cmds=.dll
10422       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10423         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10424         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10425         $ECHO EXPORTS >> $output_objdir/$libname.def~
10426         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10427         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10428         emximp -o $lib $output_objdir/$libname.def'
10429       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10430         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10431         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10432         $ECHO EXPORTS >> $output_objdir/$libname.def~
10433         prefix_cmds="$SED"~
10434         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10435           prefix_cmds="$prefix_cmds -e 1d";
10436         fi~
10437         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10438         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10439         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10440         emximp -o $lib $output_objdir/$libname.def'
10441       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10442       enable_shared_with_static_runtimes=yes
10443       ;;
10444
10445     interix[3-9]*)
10446       hardcode_direct=no
10447       hardcode_shlibpath_var=no
10448       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10449       export_dynamic_flag_spec='$wl-E'
10450       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10451       # Instead, shared libraries are loaded at an image base (0x10000000 by
10452       # default) and relocated if they conflict, which is a slow very memory
10453       # consuming and fragmenting process.  To avoid this, we pick a random,
10454       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10455       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10456       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10457       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'
10458       ;;
10459
10460     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10461       tmp_diet=no
10462       if test linux-dietlibc = "$host_os"; then
10463         case $cc_basename in
10464           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10465         esac
10466       fi
10467       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10468          && test no = "$tmp_diet"
10469       then
10470         tmp_addflag=' $pic_flag'
10471         tmp_sharedflag='-shared'
10472         case $cc_basename,$host_cpu in
10473         pgcc*)                          # Portland Group C compiler
10474           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'
10475           tmp_addflag=' $pic_flag'
10476           ;;
10477         pgf77* | pgf90* | pgf95* | pgfortran*)
10478                                         # Portland Group f77 and f90 compilers
10479           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'
10480           tmp_addflag=' $pic_flag -Mnomain' ;;
10481         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10482           tmp_addflag=' -i_dynamic' ;;
10483         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10484           tmp_addflag=' -i_dynamic -nofor_main' ;;
10485         ifc* | ifort*)                  # Intel Fortran compiler
10486           tmp_addflag=' -nofor_main' ;;
10487         lf95*)                          # Lahey Fortran 8.1
10488           whole_archive_flag_spec=
10489           tmp_sharedflag='--shared' ;;
10490         nagfor*)                        # NAGFOR 5.3
10491           tmp_sharedflag='-Wl,-shared' ;;
10492         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10493           tmp_sharedflag='-qmkshrobj'
10494           tmp_addflag= ;;
10495         nvcc*)  # Cuda Compiler Driver 2.2
10496           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'
10497           compiler_needs_object=yes
10498           ;;
10499         esac
10500         case `$CC -V 2>&1 | sed 5q` in
10501         *Sun\ C*)                       # Sun C 5.9
10502           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'
10503           compiler_needs_object=yes
10504           tmp_sharedflag='-G' ;;
10505         *Sun\ F*)                       # Sun Fortran 8.3
10506           tmp_sharedflag='-G' ;;
10507         esac
10508         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10509
10510         if test yes = "$supports_anon_versioning"; then
10511           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10512             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10513             echo "local: *; };" >> $output_objdir/$libname.ver~
10514             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10515         fi
10516
10517         case $cc_basename in
10518         tcc*)
10519           export_dynamic_flag_spec='-rdynamic'
10520           ;;
10521         xlf* | bgf* | bgxlf* | mpixlf*)
10522           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10523           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10524           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10525           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10526           if test yes = "$supports_anon_versioning"; then
10527             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10528               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10529               echo "local: *; };" >> $output_objdir/$libname.ver~
10530               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10531           fi
10532           ;;
10533         esac
10534       else
10535         ld_shlibs=no
10536       fi
10537       ;;
10538
10539     netbsd*)
10540       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10541         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10542         wlarc=
10543       else
10544         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10545         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10546       fi
10547       ;;
10548
10549     solaris*)
10550       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10551         ld_shlibs=no
10552         cat <<_LT_EOF 1>&2
10553
10554 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10555 *** create shared libraries on Solaris systems.  Therefore, libtool
10556 *** is disabling shared libraries support.  We urge you to upgrade GNU
10557 *** binutils to release 2.9.1 or newer.  Another option is to modify
10558 *** your PATH or compiler configuration so that the native linker is
10559 *** used, and then restart.
10560
10561 _LT_EOF
10562       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10563         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10564         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10565       else
10566         ld_shlibs=no
10567       fi
10568       ;;
10569
10570     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10571       case `$LD -v 2>&1` in
10572         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10573         ld_shlibs=no
10574         cat <<_LT_EOF 1>&2
10575
10576 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10577 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10578 *** is disabling shared libraries support.  We urge you to upgrade GNU
10579 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10580 *** your PATH or compiler configuration so that the native linker is
10581 *** used, and then restart.
10582
10583 _LT_EOF
10584         ;;
10585         *)
10586           # For security reasons, it is highly recommended that you always
10587           # use absolute paths for naming shared libraries, and exclude the
10588           # DT_RUNPATH tag from executables and libraries.  But doing so
10589           # requires that you compile everything twice, which is a pain.
10590           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10591             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10592             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10593             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10594           else
10595             ld_shlibs=no
10596           fi
10597         ;;
10598       esac
10599       ;;
10600
10601     sunos4*)
10602       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10603       wlarc=
10604       hardcode_direct=yes
10605       hardcode_shlibpath_var=no
10606       ;;
10607
10608     *)
10609       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10610         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10611         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10612       else
10613         ld_shlibs=no
10614       fi
10615       ;;
10616     esac
10617
10618     if test no = "$ld_shlibs"; then
10619       runpath_var=
10620       hardcode_libdir_flag_spec=
10621       export_dynamic_flag_spec=
10622       whole_archive_flag_spec=
10623     fi
10624   else
10625     # PORTME fill in a description of your system's linker (not GNU ld)
10626     case $host_os in
10627     aix3*)
10628       allow_undefined_flag=unsupported
10629       always_export_symbols=yes
10630       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'
10631       # Note: this linker hardcodes the directories in LIBPATH if there
10632       # are no directories specified by -L.
10633       hardcode_minus_L=yes
10634       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10635         # Neither direct hardcoding nor static linking is supported with a
10636         # broken collect2.
10637         hardcode_direct=unsupported
10638       fi
10639       ;;
10640
10641     aix[4-9]*)
10642       if test ia64 = "$host_cpu"; then
10643         # On IA64, the linker does run time linking by default, so we don't
10644         # have to do anything special.
10645         aix_use_runtimelinking=no
10646         exp_sym_flag='-Bexport'
10647         no_entry_flag=
10648       else
10649         # If we're using GNU nm, then we don't want the "-C" option.
10650         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10651         # Without the "-l" option, or with the "-B" option, AIX nm treats
10652         # weak defined symbols like other global defined symbols, whereas
10653         # GNU nm marks them as "W".
10654         # While the 'weak' keyword is ignored in the Export File, we need
10655         # it in the Import File for the 'aix-soname' feature, so we have
10656         # to replace the "-B" option with "-P" for AIX nm.
10657         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10658           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10659         else
10660           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10661         fi
10662         aix_use_runtimelinking=no
10663
10664         # Test if we are trying to use run time linking or normal
10665         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10666         # have runtime linking enabled, and use it for executables.
10667         # For shared libraries, we enable/disable runtime linking
10668         # depending on the kind of the shared library created -
10669         # when "with_aix_soname,aix_use_runtimelinking" is:
10670         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10671         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10672         #            lib.a           static archive
10673         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10674         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10675         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10676         #            lib.a(lib.so.V) shared, rtl:no
10677         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10678         #            lib.a           static archive
10679         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10680           for ld_flag in $LDFLAGS; do
10681           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10682             aix_use_runtimelinking=yes
10683             break
10684           fi
10685           done
10686           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10687             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10688             # so we don't have lib.a shared libs to link our executables.
10689             # We have to force runtime linking in this case.
10690             aix_use_runtimelinking=yes
10691             LDFLAGS="$LDFLAGS -Wl,-brtl"
10692           fi
10693           ;;
10694         esac
10695
10696         exp_sym_flag='-bexport'
10697         no_entry_flag='-bnoentry'
10698       fi
10699
10700       # When large executables or shared objects are built, AIX ld can
10701       # have problems creating the table of contents.  If linking a library
10702       # or program results in "error TOC overflow" add -mminimal-toc to
10703       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10704       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10705
10706       archive_cmds=''
10707       hardcode_direct=yes
10708       hardcode_direct_absolute=yes
10709       hardcode_libdir_separator=':'
10710       link_all_deplibs=yes
10711       file_list_spec='$wl-f,'
10712       case $with_aix_soname,$aix_use_runtimelinking in
10713       aix,*) ;; # traditional, no import file
10714       svr4,* | *,yes) # use import file
10715         # The Import File defines what to hardcode.
10716         hardcode_direct=no
10717         hardcode_direct_absolute=no
10718         ;;
10719       esac
10720
10721       if test yes = "$GCC"; then
10722         case $host_os in aix4.[012]|aix4.[012].*)
10723         # We only want to do this on AIX 4.2 and lower, the check
10724         # below for broken collect2 doesn't work under 4.3+
10725           collect2name=`$CC -print-prog-name=collect2`
10726           if test -f "$collect2name" &&
10727            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10728           then
10729           # We have reworked collect2
10730           :
10731           else
10732           # We have old collect2
10733           hardcode_direct=unsupported
10734           # It fails to find uninstalled libraries when the uninstalled
10735           # path is not listed in the libpath.  Setting hardcode_minus_L
10736           # to unsupported forces relinking
10737           hardcode_minus_L=yes
10738           hardcode_libdir_flag_spec='-L$libdir'
10739           hardcode_libdir_separator=
10740           fi
10741           ;;
10742         esac
10743         shared_flag='-shared'
10744         if test yes = "$aix_use_runtimelinking"; then
10745           shared_flag="$shared_flag "'$wl-G'
10746         fi
10747         # Need to ensure runtime linking is disabled for the traditional
10748         # shared library, or the linker may eventually find shared libraries
10749         # /with/ Import File - we do not want to mix them.
10750         shared_flag_aix='-shared'
10751         shared_flag_svr4='-shared $wl-G'
10752       else
10753         # not using gcc
10754         if test ia64 = "$host_cpu"; then
10755         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10756         # chokes on -Wl,-G. The following line is correct:
10757           shared_flag='-G'
10758         else
10759           if test yes = "$aix_use_runtimelinking"; then
10760             shared_flag='$wl-G'
10761           else
10762             shared_flag='$wl-bM:SRE'
10763           fi
10764           shared_flag_aix='$wl-bM:SRE'
10765           shared_flag_svr4='$wl-G'
10766         fi
10767       fi
10768
10769       export_dynamic_flag_spec='$wl-bexpall'
10770       # It seems that -bexpall does not export symbols beginning with
10771       # underscore (_), so it is better to generate a list of symbols to export.
10772       always_export_symbols=yes
10773       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10774         # Warning - without using the other runtime loading flags (-brtl),
10775         # -berok will link without error, but may produce a broken library.
10776         allow_undefined_flag='-berok'
10777         # Determine the default libpath from the value encoded in an
10778         # empty executable.
10779         if test set = "${lt_cv_aix_libpath+set}"; then
10780   aix_libpath=$lt_cv_aix_libpath
10781 else
10782   if test ${lt_cv_aix_libpath_+y}
10783 then :
10784   printf %s "(cached) " >&6
10785 else $as_nop
10786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h.  */
10788
10789 int
10790 main (void)
10791 {
10792
10793   ;
10794   return 0;
10795 }
10796 _ACEOF
10797 if ac_fn_c_try_link "$LINENO"
10798 then :
10799
10800   lt_aix_libpath_sed='
10801       /Import File Strings/,/^$/ {
10802           /^0/ {
10803               s/^0  *\([^ ]*\) *$/\1/
10804               p
10805           }
10806       }'
10807   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10808   # Check for a 64-bit object if we didn't find anything.
10809   if test -z "$lt_cv_aix_libpath_"; then
10810     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10811   fi
10812 fi
10813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10814     conftest$ac_exeext conftest.$ac_ext
10815   if test -z "$lt_cv_aix_libpath_"; then
10816     lt_cv_aix_libpath_=/usr/lib:/lib
10817   fi
10818
10819 fi
10820
10821   aix_libpath=$lt_cv_aix_libpath_
10822 fi
10823
10824         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10825         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10826       else
10827         if test ia64 = "$host_cpu"; then
10828           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10829           allow_undefined_flag="-z nodefs"
10830           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"
10831         else
10832          # Determine the default libpath from the value encoded in an
10833          # empty executable.
10834          if test set = "${lt_cv_aix_libpath+set}"; then
10835   aix_libpath=$lt_cv_aix_libpath
10836 else
10837   if test ${lt_cv_aix_libpath_+y}
10838 then :
10839   printf %s "(cached) " >&6
10840 else $as_nop
10841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h.  */
10843
10844 int
10845 main (void)
10846 {
10847
10848   ;
10849   return 0;
10850 }
10851 _ACEOF
10852 if ac_fn_c_try_link "$LINENO"
10853 then :
10854
10855   lt_aix_libpath_sed='
10856       /Import File Strings/,/^$/ {
10857           /^0/ {
10858               s/^0  *\([^ ]*\) *$/\1/
10859               p
10860           }
10861       }'
10862   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10863   # Check for a 64-bit object if we didn't find anything.
10864   if test -z "$lt_cv_aix_libpath_"; then
10865     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10866   fi
10867 fi
10868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10869     conftest$ac_exeext conftest.$ac_ext
10870   if test -z "$lt_cv_aix_libpath_"; then
10871     lt_cv_aix_libpath_=/usr/lib:/lib
10872   fi
10873
10874 fi
10875
10876   aix_libpath=$lt_cv_aix_libpath_
10877 fi
10878
10879          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10880           # Warning - without using the other run time loading flags,
10881           # -berok will link without error, but may produce a broken library.
10882           no_undefined_flag=' $wl-bernotok'
10883           allow_undefined_flag=' $wl-berok'
10884           if test yes = "$with_gnu_ld"; then
10885             # We only use this code for GNU lds that support --whole-archive.
10886             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10887           else
10888             # Exported symbols can be pulled into shared objects from archives
10889             whole_archive_flag_spec='$convenience'
10890           fi
10891           archive_cmds_need_lc=yes
10892           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10893           # -brtl affects multiple linker settings, -berok does not and is overridden later
10894           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10895           if test svr4 != "$with_aix_soname"; then
10896             # This is similar to how AIX traditionally builds its shared libraries.
10897             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10898           fi
10899           if test aix != "$with_aix_soname"; then
10900             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10901           else
10902             # used by -dlpreopen to get the symbols
10903             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10904           fi
10905           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10906         fi
10907       fi
10908       ;;
10909
10910     amigaos*)
10911       case $host_cpu in
10912       powerpc)
10913             # see comment about AmigaOS4 .so support
10914             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10915             archive_expsym_cmds=''
10916         ;;
10917       m68k)
10918             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)'
10919             hardcode_libdir_flag_spec='-L$libdir'
10920             hardcode_minus_L=yes
10921         ;;
10922       esac
10923       ;;
10924
10925     bsdi[45]*)
10926       export_dynamic_flag_spec=-rdynamic
10927       ;;
10928
10929     cygwin* | mingw* | pw32* | cegcc*)
10930       # When not using gcc, we currently assume that we are using
10931       # Microsoft Visual C++.
10932       # hardcode_libdir_flag_spec is actually meaningless, as there is
10933       # no search path for DLLs.
10934       case $cc_basename in
10935       cl*)
10936         # Native MSVC
10937         hardcode_libdir_flag_spec=' '
10938         allow_undefined_flag=unsupported
10939         always_export_symbols=yes
10940         file_list_spec='@'
10941         # Tell ltmain to make .lib files, not .a files.
10942         libext=lib
10943         # Tell ltmain to make .dll files, not .so files.
10944         shrext_cmds=.dll
10945         # FIXME: Setting linknames here is a bad hack.
10946         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10947         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10948             cp "$export_symbols" "$output_objdir/$soname.def";
10949             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10950           else
10951             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10952           fi~
10953           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10954           linknames='
10955         # The linker will not automatically build a static lib if we build a DLL.
10956         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10957         enable_shared_with_static_runtimes=yes
10958         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10959         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10960         # Don't use ranlib
10961         old_postinstall_cmds='chmod 644 $oldlib'
10962         postlink_cmds='lt_outputfile="@OUTPUT@"~
10963           lt_tool_outputfile="@TOOL_OUTPUT@"~
10964           case $lt_outputfile in
10965             *.exe|*.EXE) ;;
10966             *)
10967               lt_outputfile=$lt_outputfile.exe
10968               lt_tool_outputfile=$lt_tool_outputfile.exe
10969               ;;
10970           esac~
10971           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10972             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10973             $RM "$lt_outputfile.manifest";
10974           fi'
10975         ;;
10976       *)
10977         # Assume MSVC wrapper
10978         hardcode_libdir_flag_spec=' '
10979         allow_undefined_flag=unsupported
10980         # Tell ltmain to make .lib files, not .a files.
10981         libext=lib
10982         # Tell ltmain to make .dll files, not .so files.
10983         shrext_cmds=.dll
10984         # FIXME: Setting linknames here is a bad hack.
10985         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10986         # The linker will automatically build a .lib file if we build a DLL.
10987         old_archive_from_new_cmds='true'
10988         # FIXME: Should let the user specify the lib program.
10989         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10990         enable_shared_with_static_runtimes=yes
10991         ;;
10992       esac
10993       ;;
10994
10995     darwin* | rhapsody*)
10996
10997
10998   archive_cmds_need_lc=no
10999   hardcode_direct=no
11000   hardcode_automatic=yes
11001   hardcode_shlibpath_var=unsupported
11002   if test yes = "$lt_cv_ld_force_load"; then
11003     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\"`'
11004
11005   else
11006     whole_archive_flag_spec=''
11007   fi
11008   link_all_deplibs=yes
11009   allow_undefined_flag=$_lt_dar_allow_undefined
11010   case $cc_basename in
11011      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11012      *) _lt_dar_can_shared=$GCC ;;
11013   esac
11014   if test yes = "$_lt_dar_can_shared"; then
11015     output_verbose_link_cmd=func_echo_all
11016     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11017     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11018     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"
11019     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"
11020
11021   else
11022   ld_shlibs=no
11023   fi
11024
11025       ;;
11026
11027     dgux*)
11028       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11029       hardcode_libdir_flag_spec='-L$libdir'
11030       hardcode_shlibpath_var=no
11031       ;;
11032
11033     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11034     # support.  Future versions do this automatically, but an explicit c++rt0.o
11035     # does not break anything, and helps significantly (at the cost of a little
11036     # extra space).
11037     freebsd2.2*)
11038       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11039       hardcode_libdir_flag_spec='-R$libdir'
11040       hardcode_direct=yes
11041       hardcode_shlibpath_var=no
11042       ;;
11043
11044     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11045     freebsd2.*)
11046       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11047       hardcode_direct=yes
11048       hardcode_minus_L=yes
11049       hardcode_shlibpath_var=no
11050       ;;
11051
11052     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11053     freebsd* | dragonfly*)
11054       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11055       hardcode_libdir_flag_spec='-R$libdir'
11056       hardcode_direct=yes
11057       hardcode_shlibpath_var=no
11058       ;;
11059
11060     hpux9*)
11061       if test yes = "$GCC"; then
11062         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11063       else
11064         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11065       fi
11066       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11067       hardcode_libdir_separator=:
11068       hardcode_direct=yes
11069
11070       # hardcode_minus_L: Not really in the search PATH,
11071       # but as the default location of the library.
11072       hardcode_minus_L=yes
11073       export_dynamic_flag_spec='$wl-E'
11074       ;;
11075
11076     hpux10*)
11077       if test yes,no = "$GCC,$with_gnu_ld"; then
11078         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11079       else
11080         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11081       fi
11082       if test no = "$with_gnu_ld"; then
11083         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11084         hardcode_libdir_separator=:
11085         hardcode_direct=yes
11086         hardcode_direct_absolute=yes
11087         export_dynamic_flag_spec='$wl-E'
11088         # hardcode_minus_L: Not really in the search PATH,
11089         # but as the default location of the library.
11090         hardcode_minus_L=yes
11091       fi
11092       ;;
11093
11094     hpux11*)
11095       if test yes,no = "$GCC,$with_gnu_ld"; then
11096         case $host_cpu in
11097         hppa*64*)
11098           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11099           ;;
11100         ia64*)
11101           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11102           ;;
11103         *)
11104           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11105           ;;
11106         esac
11107       else
11108         case $host_cpu in
11109         hppa*64*)
11110           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11111           ;;
11112         ia64*)
11113           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11114           ;;
11115         *)
11116
11117           # Older versions of the 11.00 compiler do not understand -b yet
11118           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11119           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11120 printf %s "checking if $CC understands -b... " >&6; }
11121 if test ${lt_cv_prog_compiler__b+y}
11122 then :
11123   printf %s "(cached) " >&6
11124 else $as_nop
11125   lt_cv_prog_compiler__b=no
11126    save_LDFLAGS=$LDFLAGS
11127    LDFLAGS="$LDFLAGS -b"
11128    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11129    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11130      # The linker can only warn and ignore the option if not recognized
11131      # So say no if there are warnings
11132      if test -s conftest.err; then
11133        # Append any errors to the config.log.
11134        cat conftest.err 1>&5
11135        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11136        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11137        if diff conftest.exp conftest.er2 >/dev/null; then
11138          lt_cv_prog_compiler__b=yes
11139        fi
11140      else
11141        lt_cv_prog_compiler__b=yes
11142      fi
11143    fi
11144    $RM -r conftest*
11145    LDFLAGS=$save_LDFLAGS
11146
11147 fi
11148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11149 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11150
11151 if test yes = "$lt_cv_prog_compiler__b"; then
11152     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11153 else
11154     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11155 fi
11156
11157           ;;
11158         esac
11159       fi
11160       if test no = "$with_gnu_ld"; then
11161         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11162         hardcode_libdir_separator=:
11163
11164         case $host_cpu in
11165         hppa*64*|ia64*)
11166           hardcode_direct=no
11167           hardcode_shlibpath_var=no
11168           ;;
11169         *)
11170           hardcode_direct=yes
11171           hardcode_direct_absolute=yes
11172           export_dynamic_flag_spec='$wl-E'
11173
11174           # hardcode_minus_L: Not really in the search PATH,
11175           # but as the default location of the library.
11176           hardcode_minus_L=yes
11177           ;;
11178         esac
11179       fi
11180       ;;
11181
11182     irix5* | irix6* | nonstopux*)
11183       if test yes = "$GCC"; then
11184         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'
11185         # Try to use the -exported_symbol ld option, if it does not
11186         # work, assume that -exports_file does not work either and
11187         # implicitly export all symbols.
11188         # This should be the same for all languages, so no per-tag cache variable.
11189         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11190 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11191 if test ${lt_cv_irix_exported_symbol+y}
11192 then :
11193   printf %s "(cached) " >&6
11194 else $as_nop
11195   save_LDFLAGS=$LDFLAGS
11196            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11197            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h.  */
11199 int foo (void) { return 0; }
11200 _ACEOF
11201 if ac_fn_c_try_link "$LINENO"
11202 then :
11203   lt_cv_irix_exported_symbol=yes
11204 else $as_nop
11205   lt_cv_irix_exported_symbol=no
11206 fi
11207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11208     conftest$ac_exeext conftest.$ac_ext
11209            LDFLAGS=$save_LDFLAGS
11210 fi
11211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11212 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11213         if test yes = "$lt_cv_irix_exported_symbol"; then
11214           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'
11215         fi
11216       else
11217         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'
11218         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'
11219       fi
11220       archive_cmds_need_lc='no'
11221       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11222       hardcode_libdir_separator=:
11223       inherit_rpath=yes
11224       link_all_deplibs=yes
11225       ;;
11226
11227     linux*)
11228       case $cc_basename in
11229       tcc*)
11230         # Fabrice Bellard et al's Tiny C Compiler
11231         ld_shlibs=yes
11232         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11233         ;;
11234       esac
11235       ;;
11236
11237     netbsd*)
11238       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11239         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11240       else
11241         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11242       fi
11243       hardcode_libdir_flag_spec='-R$libdir'
11244       hardcode_direct=yes
11245       hardcode_shlibpath_var=no
11246       ;;
11247
11248     newsos6)
11249       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11250       hardcode_direct=yes
11251       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11252       hardcode_libdir_separator=:
11253       hardcode_shlibpath_var=no
11254       ;;
11255
11256     *nto* | *qnx*)
11257       ;;
11258
11259     openbsd* | bitrig*)
11260       if test -f /usr/libexec/ld.so; then
11261         hardcode_direct=yes
11262         hardcode_shlibpath_var=no
11263         hardcode_direct_absolute=yes
11264         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11265           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11266           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11267           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11268           export_dynamic_flag_spec='$wl-E'
11269         else
11270           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11271           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11272         fi
11273       else
11274         ld_shlibs=no
11275       fi
11276       ;;
11277
11278     os2*)
11279       hardcode_libdir_flag_spec='-L$libdir'
11280       hardcode_minus_L=yes
11281       allow_undefined_flag=unsupported
11282       shrext_cmds=.dll
11283       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11284         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11285         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11286         $ECHO EXPORTS >> $output_objdir/$libname.def~
11287         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11288         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11289         emximp -o $lib $output_objdir/$libname.def'
11290       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11291         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11292         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11293         $ECHO EXPORTS >> $output_objdir/$libname.def~
11294         prefix_cmds="$SED"~
11295         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11296           prefix_cmds="$prefix_cmds -e 1d";
11297         fi~
11298         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11299         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11300         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11301         emximp -o $lib $output_objdir/$libname.def'
11302       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11303       enable_shared_with_static_runtimes=yes
11304       ;;
11305
11306     osf3*)
11307       if test yes = "$GCC"; then
11308         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11309         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'
11310       else
11311         allow_undefined_flag=' -expect_unresolved \*'
11312         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'
11313       fi
11314       archive_cmds_need_lc='no'
11315       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11316       hardcode_libdir_separator=:
11317       ;;
11318
11319     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11320       if test yes = "$GCC"; then
11321         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11322         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'
11323         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11324       else
11325         allow_undefined_flag=' -expect_unresolved \*'
11326         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'
11327         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~
11328           $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'
11329
11330         # Both c and cxx compiler support -rpath directly
11331         hardcode_libdir_flag_spec='-rpath $libdir'
11332       fi
11333       archive_cmds_need_lc='no'
11334       hardcode_libdir_separator=:
11335       ;;
11336
11337     solaris*)
11338       no_undefined_flag=' -z defs'
11339       if test yes = "$GCC"; then
11340         wlarc='$wl'
11341         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11342         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11343           $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'
11344       else
11345         case `$CC -V 2>&1` in
11346         *"Compilers 5.0"*)
11347           wlarc=''
11348           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11349           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11350             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11351           ;;
11352         *)
11353           wlarc='$wl'
11354           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11355           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11356             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11357           ;;
11358         esac
11359       fi
11360       hardcode_libdir_flag_spec='-R$libdir'
11361       hardcode_shlibpath_var=no
11362       case $host_os in
11363       solaris2.[0-5] | solaris2.[0-5].*) ;;
11364       *)
11365         # The compiler driver will combine and reorder linker options,
11366         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11367         # but is careful enough not to reorder.
11368         # Supported since Solaris 2.6 (maybe 2.5.1?)
11369         if test yes = "$GCC"; then
11370           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11371         else
11372           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11373         fi
11374         ;;
11375       esac
11376       link_all_deplibs=yes
11377       ;;
11378
11379     sunos4*)
11380       if test sequent = "$host_vendor"; then
11381         # Use $CC to link under sequent, because it throws in some extra .o
11382         # files that make .init and .fini sections work.
11383         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11384       else
11385         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11386       fi
11387       hardcode_libdir_flag_spec='-L$libdir'
11388       hardcode_direct=yes
11389       hardcode_minus_L=yes
11390       hardcode_shlibpath_var=no
11391       ;;
11392
11393     sysv4)
11394       case $host_vendor in
11395         sni)
11396           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11397           hardcode_direct=yes # is this really true???
11398         ;;
11399         siemens)
11400           ## LD is ld it makes a PLAMLIB
11401           ## CC just makes a GrossModule.
11402           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11403           reload_cmds='$CC -r -o $output$reload_objs'
11404           hardcode_direct=no
11405         ;;
11406         motorola)
11407           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11408           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11409         ;;
11410       esac
11411       runpath_var='LD_RUN_PATH'
11412       hardcode_shlibpath_var=no
11413       ;;
11414
11415     sysv4.3*)
11416       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11417       hardcode_shlibpath_var=no
11418       export_dynamic_flag_spec='-Bexport'
11419       ;;
11420
11421     sysv4*MP*)
11422       if test -d /usr/nec; then
11423         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11424         hardcode_shlibpath_var=no
11425         runpath_var=LD_RUN_PATH
11426         hardcode_runpath_var=yes
11427         ld_shlibs=yes
11428       fi
11429       ;;
11430
11431     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11432       no_undefined_flag='$wl-z,text'
11433       archive_cmds_need_lc=no
11434       hardcode_shlibpath_var=no
11435       runpath_var='LD_RUN_PATH'
11436
11437       if test yes = "$GCC"; then
11438         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11439         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11440       else
11441         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11442         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11443       fi
11444       ;;
11445
11446     sysv5* | sco3.2v5* | sco5v6*)
11447       # Note: We CANNOT use -z defs as we might desire, because we do not
11448       # link with -lc, and that would cause any symbols used from libc to
11449       # always be unresolved, which means just about no library would
11450       # ever link correctly.  If we're not using GNU ld we use -z text
11451       # though, which does catch some bad symbols but isn't as heavy-handed
11452       # as -z defs.
11453       no_undefined_flag='$wl-z,text'
11454       allow_undefined_flag='$wl-z,nodefs'
11455       archive_cmds_need_lc=no
11456       hardcode_shlibpath_var=no
11457       hardcode_libdir_flag_spec='$wl-R,$libdir'
11458       hardcode_libdir_separator=':'
11459       link_all_deplibs=yes
11460       export_dynamic_flag_spec='$wl-Bexport'
11461       runpath_var='LD_RUN_PATH'
11462
11463       if test yes = "$GCC"; then
11464         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11465         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11466       else
11467         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11468         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11469       fi
11470       ;;
11471
11472     uts4*)
11473       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11474       hardcode_libdir_flag_spec='-L$libdir'
11475       hardcode_shlibpath_var=no
11476       ;;
11477
11478     *)
11479       ld_shlibs=no
11480       ;;
11481     esac
11482
11483     if test sni = "$host_vendor"; then
11484       case $host in
11485       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11486         export_dynamic_flag_spec='$wl-Blargedynsym'
11487         ;;
11488       esac
11489     fi
11490   fi
11491
11492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11493 printf "%s\n" "$ld_shlibs" >&6; }
11494 test no = "$ld_shlibs" && can_build_shared=no
11495
11496 with_gnu_ld=$with_gnu_ld
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512 #
11513 # Do we need to explicitly link libc?
11514 #
11515 case "x$archive_cmds_need_lc" in
11516 x|xyes)
11517   # Assume -lc should be added
11518   archive_cmds_need_lc=yes
11519
11520   if test yes,yes = "$GCC,$enable_shared"; then
11521     case $archive_cmds in
11522     *'~'*)
11523       # FIXME: we may have to deal with multi-command sequences.
11524       ;;
11525     '$CC '*)
11526       # Test whether the compiler implicitly links with -lc since on some
11527       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11528       # to ld, don't add -lc before -lgcc.
11529       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11530 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11531 if test ${lt_cv_archive_cmds_need_lc+y}
11532 then :
11533   printf %s "(cached) " >&6
11534 else $as_nop
11535   $RM conftest*
11536         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11537
11538         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11539   (eval $ac_compile) 2>&5
11540   ac_status=$?
11541   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11542   test $ac_status = 0; } 2>conftest.err; then
11543           soname=conftest
11544           lib=conftest
11545           libobjs=conftest.$ac_objext
11546           deplibs=
11547           wl=$lt_prog_compiler_wl
11548           pic_flag=$lt_prog_compiler_pic
11549           compiler_flags=-v
11550           linker_flags=-v
11551           verstring=
11552           output_objdir=.
11553           libname=conftest
11554           lt_save_allow_undefined_flag=$allow_undefined_flag
11555           allow_undefined_flag=
11556           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11557   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11558   ac_status=$?
11559   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11560   test $ac_status = 0; }
11561           then
11562             lt_cv_archive_cmds_need_lc=no
11563           else
11564             lt_cv_archive_cmds_need_lc=yes
11565           fi
11566           allow_undefined_flag=$lt_save_allow_undefined_flag
11567         else
11568           cat conftest.err 1>&5
11569         fi
11570         $RM conftest*
11571
11572 fi
11573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11574 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11575       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11576       ;;
11577     esac
11578   fi
11579   ;;
11580 esac
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11734 printf %s "checking dynamic linker characteristics... " >&6; }
11735
11736 if test yes = "$GCC"; then
11737   case $host_os in
11738     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11739     *) lt_awk_arg='/^libraries:/' ;;
11740   esac
11741   case $host_os in
11742     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11743     *) lt_sed_strip_eq='s|=/|/|g' ;;
11744   esac
11745   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11746   case $lt_search_path_spec in
11747   *\;*)
11748     # if the path contains ";" then we assume it to be the separator
11749     # otherwise default to the standard path separator (i.e. ":") - it is
11750     # assumed that no part of a normal pathname contains ";" but that should
11751     # okay in the real world where ";" in dirpaths is itself problematic.
11752     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11753     ;;
11754   *)
11755     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11756     ;;
11757   esac
11758   # Ok, now we have the path, separated by spaces, we can step through it
11759   # and add multilib dir if necessary...
11760   lt_tmp_lt_search_path_spec=
11761   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11762   # ...but if some path component already ends with the multilib dir we assume
11763   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11764   case "$lt_multi_os_dir; $lt_search_path_spec " in
11765   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11766     lt_multi_os_dir=
11767     ;;
11768   esac
11769   for lt_sys_path in $lt_search_path_spec; do
11770     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11771       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11772     elif test -n "$lt_multi_os_dir"; then
11773       test -d "$lt_sys_path" && \
11774         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11775     fi
11776   done
11777   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11778 BEGIN {RS = " "; FS = "/|\n";} {
11779   lt_foo = "";
11780   lt_count = 0;
11781   for (lt_i = NF; lt_i > 0; lt_i--) {
11782     if ($lt_i != "" && $lt_i != ".") {
11783       if ($lt_i == "..") {
11784         lt_count++;
11785       } else {
11786         if (lt_count == 0) {
11787           lt_foo = "/" $lt_i lt_foo;
11788         } else {
11789           lt_count--;
11790         }
11791       }
11792     }
11793   }
11794   if (lt_foo != "") { lt_freq[lt_foo]++; }
11795   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11796 }'`
11797   # AWK program above erroneously prepends '/' to C:/dos/paths
11798   # for these hosts.
11799   case $host_os in
11800     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11801       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11802   esac
11803   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11804 else
11805   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11806 fi
11807 library_names_spec=
11808 libname_spec='lib$name'
11809 soname_spec=
11810 shrext_cmds=.so
11811 postinstall_cmds=
11812 postuninstall_cmds=
11813 finish_cmds=
11814 finish_eval=
11815 shlibpath_var=
11816 shlibpath_overrides_runpath=unknown
11817 version_type=none
11818 dynamic_linker="$host_os ld.so"
11819 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11820 need_lib_prefix=unknown
11821 hardcode_into_libs=no
11822
11823 # when you set need_version to no, make sure it does not cause -set_version
11824 # flags to be left without arguments
11825 need_version=unknown
11826
11827
11828
11829 case $host_os in
11830 aix3*)
11831   version_type=linux # correct to gnu/linux during the next big refactor
11832   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11833   shlibpath_var=LIBPATH
11834
11835   # AIX 3 has no versioning support, so we append a major version to the name.
11836   soname_spec='$libname$release$shared_ext$major'
11837   ;;
11838
11839 aix[4-9]*)
11840   version_type=linux # correct to gnu/linux during the next big refactor
11841   need_lib_prefix=no
11842   need_version=no
11843   hardcode_into_libs=yes
11844   if test ia64 = "$host_cpu"; then
11845     # AIX 5 supports IA64
11846     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11847     shlibpath_var=LD_LIBRARY_PATH
11848   else
11849     # With GCC up to 2.95.x, collect2 would create an import file
11850     # for dependence libraries.  The import file would start with
11851     # the line '#! .'.  This would cause the generated library to
11852     # depend on '.', always an invalid library.  This was fixed in
11853     # development snapshots of GCC prior to 3.0.
11854     case $host_os in
11855       aix4 | aix4.[01] | aix4.[01].*)
11856       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11857            echo ' yes '
11858            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11859         :
11860       else
11861         can_build_shared=no
11862       fi
11863       ;;
11864     esac
11865     # Using Import Files as archive members, it is possible to support
11866     # filename-based versioning of shared library archives on AIX. While
11867     # this would work for both with and without runtime linking, it will
11868     # prevent static linking of such archives. So we do filename-based
11869     # shared library versioning with .so extension only, which is used
11870     # when both runtime linking and shared linking is enabled.
11871     # Unfortunately, runtime linking may impact performance, so we do
11872     # not want this to be the default eventually. Also, we use the
11873     # versioned .so libs for executables only if there is the -brtl
11874     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11875     # To allow for filename-based versioning support, we need to create
11876     # libNAME.so.V as an archive file, containing:
11877     # *) an Import File, referring to the versioned filename of the
11878     #    archive as well as the shared archive member, telling the
11879     #    bitwidth (32 or 64) of that shared object, and providing the
11880     #    list of exported symbols of that shared object, eventually
11881     #    decorated with the 'weak' keyword
11882     # *) the shared object with the F_LOADONLY flag set, to really avoid
11883     #    it being seen by the linker.
11884     # At run time we better use the real file rather than another symlink,
11885     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11886
11887     case $with_aix_soname,$aix_use_runtimelinking in
11888     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11889     # soname into executable. Probably we can add versioning support to
11890     # collect2, so additional links can be useful in future.
11891     aix,yes) # traditional libtool
11892       dynamic_linker='AIX unversionable lib.so'
11893       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11894       # instead of lib<name>.a to let people know that these are not
11895       # typical AIX shared libraries.
11896       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11897       ;;
11898     aix,no) # traditional AIX only
11899       dynamic_linker='AIX lib.a(lib.so.V)'
11900       # We preserve .a as extension for shared libraries through AIX4.2
11901       # and later when we are not doing run time linking.
11902       library_names_spec='$libname$release.a $libname.a'
11903       soname_spec='$libname$release$shared_ext$major'
11904       ;;
11905     svr4,*) # full svr4 only
11906       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11907       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11908       # We do not specify a path in Import Files, so LIBPATH fires.
11909       shlibpath_overrides_runpath=yes
11910       ;;
11911     *,yes) # both, prefer svr4
11912       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11913       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11914       # unpreferred sharedlib libNAME.a needs extra handling
11915       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11916       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11917       # We do not specify a path in Import Files, so LIBPATH fires.
11918       shlibpath_overrides_runpath=yes
11919       ;;
11920     *,no) # both, prefer aix
11921       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11922       library_names_spec='$libname$release.a $libname.a'
11923       soname_spec='$libname$release$shared_ext$major'
11924       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11925       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11926       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11927       ;;
11928     esac
11929     shlibpath_var=LIBPATH
11930   fi
11931   ;;
11932
11933 amigaos*)
11934   case $host_cpu in
11935   powerpc)
11936     # Since July 2007 AmigaOS4 officially supports .so libraries.
11937     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11938     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11939     ;;
11940   m68k)
11941     library_names_spec='$libname.ixlibrary $libname.a'
11942     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11943     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11944     ;;
11945   esac
11946   ;;
11947
11948 beos*)
11949   library_names_spec='$libname$shared_ext'
11950   dynamic_linker="$host_os ld.so"
11951   shlibpath_var=LIBRARY_PATH
11952   ;;
11953
11954 bsdi[45]*)
11955   version_type=linux # correct to gnu/linux during the next big refactor
11956   need_version=no
11957   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11958   soname_spec='$libname$release$shared_ext$major'
11959   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11960   shlibpath_var=LD_LIBRARY_PATH
11961   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11962   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11963   # the default ld.so.conf also contains /usr/contrib/lib and
11964   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11965   # libtool to hard-code these into programs
11966   ;;
11967
11968 cygwin* | mingw* | pw32* | cegcc*)
11969   version_type=windows
11970   shrext_cmds=.dll
11971   need_version=no
11972   need_lib_prefix=no
11973
11974   case $GCC,$cc_basename in
11975   yes,*)
11976     # gcc
11977     library_names_spec='$libname.dll.a'
11978     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11979     postinstall_cmds='base_file=`basename \$file`~
11980       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11981       dldir=$destdir/`dirname \$dlpath`~
11982       test -d \$dldir || mkdir -p \$dldir~
11983       $install_prog $dir/$dlname \$dldir/$dlname~
11984       chmod a+x \$dldir/$dlname~
11985       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11986         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11987       fi'
11988     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11989       dlpath=$dir/\$dldll~
11990        $RM \$dlpath'
11991     shlibpath_overrides_runpath=yes
11992
11993     case $host_os in
11994     cygwin*)
11995       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11996       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11997
11998       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11999       ;;
12000     mingw* | cegcc*)
12001       # MinGW DLLs use traditional 'lib' prefix
12002       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12003       ;;
12004     pw32*)
12005       # pw32 DLLs use 'pw' prefix rather than 'lib'
12006       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12007       ;;
12008     esac
12009     dynamic_linker='Win32 ld.exe'
12010     ;;
12011
12012   *,cl*)
12013     # Native MSVC
12014     libname_spec='$name'
12015     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12016     library_names_spec='$libname.dll.lib'
12017
12018     case $build_os in
12019     mingw*)
12020       sys_lib_search_path_spec=
12021       lt_save_ifs=$IFS
12022       IFS=';'
12023       for lt_path in $LIB
12024       do
12025         IFS=$lt_save_ifs
12026         # Let DOS variable expansion print the short 8.3 style file name.
12027         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12028         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12029       done
12030       IFS=$lt_save_ifs
12031       # Convert to MSYS style.
12032       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12033       ;;
12034     cygwin*)
12035       # Convert to unix form, then to dos form, then back to unix form
12036       # but this time dos style (no spaces!) so that the unix form looks
12037       # like /cygdrive/c/PROGRA~1:/cygdr...
12038       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12039       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12040       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12041       ;;
12042     *)
12043       sys_lib_search_path_spec=$LIB
12044       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12045         # It is most probably a Windows format PATH.
12046         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12047       else
12048         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12049       fi
12050       # FIXME: find the short name or the path components, as spaces are
12051       # common. (e.g. "Program Files" -> "PROGRA~1")
12052       ;;
12053     esac
12054
12055     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12056     postinstall_cmds='base_file=`basename \$file`~
12057       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12058       dldir=$destdir/`dirname \$dlpath`~
12059       test -d \$dldir || mkdir -p \$dldir~
12060       $install_prog $dir/$dlname \$dldir/$dlname'
12061     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12062       dlpath=$dir/\$dldll~
12063        $RM \$dlpath'
12064     shlibpath_overrides_runpath=yes
12065     dynamic_linker='Win32 link.exe'
12066     ;;
12067
12068   *)
12069     # Assume MSVC wrapper
12070     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12071     dynamic_linker='Win32 ld.exe'
12072     ;;
12073   esac
12074   # FIXME: first we should search . and the directory the executable is in
12075   shlibpath_var=PATH
12076   ;;
12077
12078 darwin* | rhapsody*)
12079   dynamic_linker="$host_os dyld"
12080   version_type=darwin
12081   need_lib_prefix=no
12082   need_version=no
12083   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12084   soname_spec='$libname$release$major$shared_ext'
12085   shlibpath_overrides_runpath=yes
12086   shlibpath_var=DYLD_LIBRARY_PATH
12087   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12088
12089   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12090   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12091   ;;
12092
12093 dgux*)
12094   version_type=linux # correct to gnu/linux during the next big refactor
12095   need_lib_prefix=no
12096   need_version=no
12097   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12098   soname_spec='$libname$release$shared_ext$major'
12099   shlibpath_var=LD_LIBRARY_PATH
12100   ;;
12101
12102 freebsd* | dragonfly*)
12103   # DragonFly does not have aout.  When/if they implement a new
12104   # versioning mechanism, adjust this.
12105   if test -x /usr/bin/objformat; then
12106     objformat=`/usr/bin/objformat`
12107   else
12108     case $host_os in
12109     freebsd[23].*) objformat=aout ;;
12110     *) objformat=elf ;;
12111     esac
12112   fi
12113   version_type=freebsd-$objformat
12114   case $version_type in
12115     freebsd-elf*)
12116       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12117       soname_spec='$libname$release$shared_ext$major'
12118       need_version=no
12119       need_lib_prefix=no
12120       ;;
12121     freebsd-*)
12122       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12123       need_version=yes
12124       ;;
12125   esac
12126   shlibpath_var=LD_LIBRARY_PATH
12127   case $host_os in
12128   freebsd2.*)
12129     shlibpath_overrides_runpath=yes
12130     ;;
12131   freebsd3.[01]* | freebsdelf3.[01]*)
12132     shlibpath_overrides_runpath=yes
12133     hardcode_into_libs=yes
12134     ;;
12135   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12136   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12137     shlibpath_overrides_runpath=no
12138     hardcode_into_libs=yes
12139     ;;
12140   *) # from 4.6 on, and DragonFly
12141     shlibpath_overrides_runpath=yes
12142     hardcode_into_libs=yes
12143     ;;
12144   esac
12145   ;;
12146
12147 haiku*)
12148   version_type=linux # correct to gnu/linux during the next big refactor
12149   need_lib_prefix=no
12150   need_version=no
12151   dynamic_linker="$host_os runtime_loader"
12152   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12153   soname_spec='$libname$release$shared_ext$major'
12154   shlibpath_var=LIBRARY_PATH
12155   shlibpath_overrides_runpath=no
12156   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12157   hardcode_into_libs=yes
12158   ;;
12159
12160 hpux9* | hpux10* | hpux11*)
12161   # Give a soname corresponding to the major version so that dld.sl refuses to
12162   # link against other versions.
12163   version_type=sunos
12164   need_lib_prefix=no
12165   need_version=no
12166   case $host_cpu in
12167   ia64*)
12168     shrext_cmds='.so'
12169     hardcode_into_libs=yes
12170     dynamic_linker="$host_os dld.so"
12171     shlibpath_var=LD_LIBRARY_PATH
12172     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12173     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12174     soname_spec='$libname$release$shared_ext$major'
12175     if test 32 = "$HPUX_IA64_MODE"; then
12176       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12177       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12178     else
12179       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12180       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12181     fi
12182     ;;
12183   hppa*64*)
12184     shrext_cmds='.sl'
12185     hardcode_into_libs=yes
12186     dynamic_linker="$host_os dld.sl"
12187     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12188     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12189     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12190     soname_spec='$libname$release$shared_ext$major'
12191     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12192     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12193     ;;
12194   *)
12195     shrext_cmds='.sl'
12196     dynamic_linker="$host_os dld.sl"
12197     shlibpath_var=SHLIB_PATH
12198     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12199     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12200     soname_spec='$libname$release$shared_ext$major'
12201     ;;
12202   esac
12203   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12204   postinstall_cmds='chmod 555 $lib'
12205   # or fails outright, so override atomically:
12206   install_override_mode=555
12207   ;;
12208
12209 interix[3-9]*)
12210   version_type=linux # correct to gnu/linux during the next big refactor
12211   need_lib_prefix=no
12212   need_version=no
12213   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12214   soname_spec='$libname$release$shared_ext$major'
12215   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12216   shlibpath_var=LD_LIBRARY_PATH
12217   shlibpath_overrides_runpath=no
12218   hardcode_into_libs=yes
12219   ;;
12220
12221 irix5* | irix6* | nonstopux*)
12222   case $host_os in
12223     nonstopux*) version_type=nonstopux ;;
12224     *)
12225         if test yes = "$lt_cv_prog_gnu_ld"; then
12226                 version_type=linux # correct to gnu/linux during the next big refactor
12227         else
12228                 version_type=irix
12229         fi ;;
12230   esac
12231   need_lib_prefix=no
12232   need_version=no
12233   soname_spec='$libname$release$shared_ext$major'
12234   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12235   case $host_os in
12236   irix5* | nonstopux*)
12237     libsuff= shlibsuff=
12238     ;;
12239   *)
12240     case $LD in # libtool.m4 will add one of these switches to LD
12241     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12242       libsuff= shlibsuff= libmagic=32-bit;;
12243     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12244       libsuff=32 shlibsuff=N32 libmagic=N32;;
12245     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12246       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12247     *) libsuff= shlibsuff= libmagic=never-match;;
12248     esac
12249     ;;
12250   esac
12251   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12252   shlibpath_overrides_runpath=no
12253   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12254   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12255   hardcode_into_libs=yes
12256   ;;
12257
12258 # No shared lib support for Linux oldld, aout, or coff.
12259 linux*oldld* | linux*aout* | linux*coff*)
12260   dynamic_linker=no
12261   ;;
12262
12263 linux*android*)
12264   version_type=none # Android doesn't support versioned libraries.
12265   need_lib_prefix=no
12266   need_version=no
12267   library_names_spec='$libname$release$shared_ext'
12268   soname_spec='$libname$release$shared_ext'
12269   finish_cmds=
12270   shlibpath_var=LD_LIBRARY_PATH
12271   shlibpath_overrides_runpath=yes
12272
12273   # This implies no fast_install, which is unacceptable.
12274   # Some rework will be needed to allow for fast_install
12275   # before this can be enabled.
12276   hardcode_into_libs=yes
12277
12278   dynamic_linker='Android linker'
12279   # Don't embed -rpath directories since the linker doesn't support them.
12280   hardcode_libdir_flag_spec='-L$libdir'
12281   ;;
12282
12283 # This must be glibc/ELF.
12284 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12285   version_type=linux # correct to gnu/linux during the next big refactor
12286   need_lib_prefix=no
12287   need_version=no
12288   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12289   soname_spec='$libname$release$shared_ext$major'
12290   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12291   shlibpath_var=LD_LIBRARY_PATH
12292   shlibpath_overrides_runpath=no
12293
12294   # Some binutils ld are patched to set DT_RUNPATH
12295   if test ${lt_cv_shlibpath_overrides_runpath+y}
12296 then :
12297   printf %s "(cached) " >&6
12298 else $as_nop
12299   lt_cv_shlibpath_overrides_runpath=no
12300     save_LDFLAGS=$LDFLAGS
12301     save_libdir=$libdir
12302     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12303          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12304     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h.  */
12306
12307 int
12308 main (void)
12309 {
12310
12311   ;
12312   return 0;
12313 }
12314 _ACEOF
12315 if ac_fn_c_try_link "$LINENO"
12316 then :
12317   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12318 then :
12319   lt_cv_shlibpath_overrides_runpath=yes
12320 fi
12321 fi
12322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12323     conftest$ac_exeext conftest.$ac_ext
12324     LDFLAGS=$save_LDFLAGS
12325     libdir=$save_libdir
12326
12327 fi
12328
12329   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12330
12331   # This implies no fast_install, which is unacceptable.
12332   # Some rework will be needed to allow for fast_install
12333   # before this can be enabled.
12334   hardcode_into_libs=yes
12335
12336   # Ideally, we could use ldconfig to report *all* directores which are
12337   # searched for libraries, however this is still not possible.  Aside from not
12338   # being certain /sbin/ldconfig is available, command
12339   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12340   # even though it is searched at run-time.  Try to do the best guess by
12341   # appending ld.so.conf contents (and includes) to the search path.
12342   if test -f /etc/ld.so.conf; then
12343     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' ' '`
12344     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12345   fi
12346
12347   # We used to test for /lib/ld.so.1 and disable shared libraries on
12348   # powerpc, because MkLinux only supported shared libraries with the
12349   # GNU dynamic linker.  Since this was broken with cross compilers,
12350   # most powerpc-linux boxes support dynamic linking these days and
12351   # people can always --disable-shared, the test was removed, and we
12352   # assume the GNU/Linux dynamic linker is in use.
12353   dynamic_linker='GNU/Linux ld.so'
12354   ;;
12355
12356 netbsd*)
12357   version_type=sunos
12358   need_lib_prefix=no
12359   need_version=no
12360   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12361     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12362     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12363     dynamic_linker='NetBSD (a.out) ld.so'
12364   else
12365     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12366     soname_spec='$libname$release$shared_ext$major'
12367     dynamic_linker='NetBSD ld.elf_so'
12368   fi
12369   shlibpath_var=LD_LIBRARY_PATH
12370   shlibpath_overrides_runpath=yes
12371   hardcode_into_libs=yes
12372   ;;
12373
12374 newsos6)
12375   version_type=linux # correct to gnu/linux during the next big refactor
12376   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12377   shlibpath_var=LD_LIBRARY_PATH
12378   shlibpath_overrides_runpath=yes
12379   ;;
12380
12381 *nto* | *qnx*)
12382   version_type=qnx
12383   need_lib_prefix=no
12384   need_version=no
12385   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12386   soname_spec='$libname$release$shared_ext$major'
12387   shlibpath_var=LD_LIBRARY_PATH
12388   shlibpath_overrides_runpath=no
12389   hardcode_into_libs=yes
12390   dynamic_linker='ldqnx.so'
12391   ;;
12392
12393 openbsd* | bitrig*)
12394   version_type=sunos
12395   sys_lib_dlsearch_path_spec=/usr/lib
12396   need_lib_prefix=no
12397   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12398     need_version=no
12399   else
12400     need_version=yes
12401   fi
12402   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12403   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12404   shlibpath_var=LD_LIBRARY_PATH
12405   shlibpath_overrides_runpath=yes
12406   ;;
12407
12408 os2*)
12409   libname_spec='$name'
12410   version_type=windows
12411   shrext_cmds=.dll
12412   need_version=no
12413   need_lib_prefix=no
12414   # OS/2 can only load a DLL with a base name of 8 characters or less.
12415   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12416     v=$($ECHO $release$versuffix | tr -d .-);
12417     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12418     $ECHO $n$v`$shared_ext'
12419   library_names_spec='${libname}_dll.$libext'
12420   dynamic_linker='OS/2 ld.exe'
12421   shlibpath_var=BEGINLIBPATH
12422   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12423   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12424   postinstall_cmds='base_file=`basename \$file`~
12425     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12426     dldir=$destdir/`dirname \$dlpath`~
12427     test -d \$dldir || mkdir -p \$dldir~
12428     $install_prog $dir/$dlname \$dldir/$dlname~
12429     chmod a+x \$dldir/$dlname~
12430     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12431       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12432     fi'
12433   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12434     dlpath=$dir/\$dldll~
12435     $RM \$dlpath'
12436   ;;
12437
12438 osf3* | osf4* | osf5*)
12439   version_type=osf
12440   need_lib_prefix=no
12441   need_version=no
12442   soname_spec='$libname$release$shared_ext$major'
12443   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12444   shlibpath_var=LD_LIBRARY_PATH
12445   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12446   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12447   ;;
12448
12449 rdos*)
12450   dynamic_linker=no
12451   ;;
12452
12453 solaris*)
12454   version_type=linux # correct to gnu/linux during the next big refactor
12455   need_lib_prefix=no
12456   need_version=no
12457   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12458   soname_spec='$libname$release$shared_ext$major'
12459   shlibpath_var=LD_LIBRARY_PATH
12460   shlibpath_overrides_runpath=yes
12461   hardcode_into_libs=yes
12462   # ldd complains unless libraries are executable
12463   postinstall_cmds='chmod +x $lib'
12464   ;;
12465
12466 sunos4*)
12467   version_type=sunos
12468   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12469   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12470   shlibpath_var=LD_LIBRARY_PATH
12471   shlibpath_overrides_runpath=yes
12472   if test yes = "$with_gnu_ld"; then
12473     need_lib_prefix=no
12474   fi
12475   need_version=yes
12476   ;;
12477
12478 sysv4 | sysv4.3*)
12479   version_type=linux # correct to gnu/linux during the next big refactor
12480   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12481   soname_spec='$libname$release$shared_ext$major'
12482   shlibpath_var=LD_LIBRARY_PATH
12483   case $host_vendor in
12484     sni)
12485       shlibpath_overrides_runpath=no
12486       need_lib_prefix=no
12487       runpath_var=LD_RUN_PATH
12488       ;;
12489     siemens)
12490       need_lib_prefix=no
12491       ;;
12492     motorola)
12493       need_lib_prefix=no
12494       need_version=no
12495       shlibpath_overrides_runpath=no
12496       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12497       ;;
12498   esac
12499   ;;
12500
12501 sysv4*MP*)
12502   if test -d /usr/nec; then
12503     version_type=linux # correct to gnu/linux during the next big refactor
12504     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12505     soname_spec='$libname$shared_ext.$major'
12506     shlibpath_var=LD_LIBRARY_PATH
12507   fi
12508   ;;
12509
12510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12511   version_type=sco
12512   need_lib_prefix=no
12513   need_version=no
12514   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12515   soname_spec='$libname$release$shared_ext$major'
12516   shlibpath_var=LD_LIBRARY_PATH
12517   shlibpath_overrides_runpath=yes
12518   hardcode_into_libs=yes
12519   if test yes = "$with_gnu_ld"; then
12520     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12521   else
12522     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12523     case $host_os in
12524       sco3.2v5*)
12525         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12526         ;;
12527     esac
12528   fi
12529   sys_lib_dlsearch_path_spec='/usr/lib'
12530   ;;
12531
12532 tpf*)
12533   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12534   version_type=linux # correct to gnu/linux during the next big refactor
12535   need_lib_prefix=no
12536   need_version=no
12537   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12538   shlibpath_var=LD_LIBRARY_PATH
12539   shlibpath_overrides_runpath=no
12540   hardcode_into_libs=yes
12541   ;;
12542
12543 uts4*)
12544   version_type=linux # correct to gnu/linux during the next big refactor
12545   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12546   soname_spec='$libname$release$shared_ext$major'
12547   shlibpath_var=LD_LIBRARY_PATH
12548   ;;
12549
12550 *)
12551   dynamic_linker=no
12552   ;;
12553 esac
12554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12555 printf "%s\n" "$dynamic_linker" >&6; }
12556 test no = "$dynamic_linker" && can_build_shared=no
12557
12558 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12559 if test yes = "$GCC"; then
12560   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12561 fi
12562
12563 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12564   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12565 fi
12566
12567 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12568   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12569 fi
12570
12571 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12572 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12573
12574 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12575 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12576
12577 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12578 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12677 printf %s "checking how to hardcode library paths into programs... " >&6; }
12678 hardcode_action=
12679 if test -n "$hardcode_libdir_flag_spec" ||
12680    test -n "$runpath_var" ||
12681    test yes = "$hardcode_automatic"; then
12682
12683   # We can hardcode non-existent directories.
12684   if test no != "$hardcode_direct" &&
12685      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12686      # have to relink, otherwise we might link with an installed library
12687      # when we should be linking with a yet-to-be-installed one
12688      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12689      test no != "$hardcode_minus_L"; then
12690     # Linking always hardcodes the temporary library directory.
12691     hardcode_action=relink
12692   else
12693     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12694     hardcode_action=immediate
12695   fi
12696 else
12697   # We cannot hardcode anything, or else we can only hardcode existing
12698   # directories.
12699   hardcode_action=unsupported
12700 fi
12701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12702 printf "%s\n" "$hardcode_action" >&6; }
12703
12704 if test relink = "$hardcode_action" ||
12705    test yes = "$inherit_rpath"; then
12706   # Fast installation is not supported
12707   enable_fast_install=no
12708 elif test yes = "$shlibpath_overrides_runpath" ||
12709      test no = "$enable_shared"; then
12710   # Fast installation is not necessary
12711   enable_fast_install=needless
12712 fi
12713
12714
12715
12716
12717
12718
12719   if test yes != "$enable_dlopen"; then
12720   enable_dlopen=unknown
12721   enable_dlopen_self=unknown
12722   enable_dlopen_self_static=unknown
12723 else
12724   lt_cv_dlopen=no
12725   lt_cv_dlopen_libs=
12726
12727   case $host_os in
12728   beos*)
12729     lt_cv_dlopen=load_add_on
12730     lt_cv_dlopen_libs=
12731     lt_cv_dlopen_self=yes
12732     ;;
12733
12734   mingw* | pw32* | cegcc*)
12735     lt_cv_dlopen=LoadLibrary
12736     lt_cv_dlopen_libs=
12737     ;;
12738
12739   cygwin*)
12740     lt_cv_dlopen=dlopen
12741     lt_cv_dlopen_libs=
12742     ;;
12743
12744   darwin*)
12745     # if libdl is installed we need to link against it
12746     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12747 printf %s "checking for dlopen in -ldl... " >&6; }
12748 if test ${ac_cv_lib_dl_dlopen+y}
12749 then :
12750   printf %s "(cached) " >&6
12751 else $as_nop
12752   ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-ldl  $LIBS"
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h.  */
12756
12757 /* Override any GCC internal prototype to avoid an error.
12758    Use char because int might match the return type of a GCC
12759    builtin and then its argument prototype would still apply.  */
12760 char dlopen ();
12761 int
12762 main (void)
12763 {
12764 return dlopen ();
12765   ;
12766   return 0;
12767 }
12768 _ACEOF
12769 if ac_fn_c_try_link "$LINENO"
12770 then :
12771   ac_cv_lib_dl_dlopen=yes
12772 else $as_nop
12773   ac_cv_lib_dl_dlopen=no
12774 fi
12775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12776     conftest$ac_exeext conftest.$ac_ext
12777 LIBS=$ac_check_lib_save_LIBS
12778 fi
12779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12780 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12781 if test "x$ac_cv_lib_dl_dlopen" = xyes
12782 then :
12783   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12784 else $as_nop
12785
12786     lt_cv_dlopen=dyld
12787     lt_cv_dlopen_libs=
12788     lt_cv_dlopen_self=yes
12789
12790 fi
12791
12792     ;;
12793
12794   tpf*)
12795     # Don't try to run any link tests for TPF.  We know it's impossible
12796     # because TPF is a cross-compiler, and we know how we open DSOs.
12797     lt_cv_dlopen=dlopen
12798     lt_cv_dlopen_libs=
12799     lt_cv_dlopen_self=no
12800     ;;
12801
12802   *)
12803     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12804 if test "x$ac_cv_func_shl_load" = xyes
12805 then :
12806   lt_cv_dlopen=shl_load
12807 else $as_nop
12808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12809 printf %s "checking for shl_load in -ldld... " >&6; }
12810 if test ${ac_cv_lib_dld_shl_load+y}
12811 then :
12812   printf %s "(cached) " >&6
12813 else $as_nop
12814   ac_check_lib_save_LIBS=$LIBS
12815 LIBS="-ldld  $LIBS"
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h.  */
12818
12819 /* Override any GCC internal prototype to avoid an error.
12820    Use char because int might match the return type of a GCC
12821    builtin and then its argument prototype would still apply.  */
12822 char shl_load ();
12823 int
12824 main (void)
12825 {
12826 return shl_load ();
12827   ;
12828   return 0;
12829 }
12830 _ACEOF
12831 if ac_fn_c_try_link "$LINENO"
12832 then :
12833   ac_cv_lib_dld_shl_load=yes
12834 else $as_nop
12835   ac_cv_lib_dld_shl_load=no
12836 fi
12837 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12838     conftest$ac_exeext conftest.$ac_ext
12839 LIBS=$ac_check_lib_save_LIBS
12840 fi
12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12842 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12843 if test "x$ac_cv_lib_dld_shl_load" = xyes
12844 then :
12845   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12846 else $as_nop
12847   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12848 if test "x$ac_cv_func_dlopen" = xyes
12849 then :
12850   lt_cv_dlopen=dlopen
12851 else $as_nop
12852   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12853 printf %s "checking for dlopen in -ldl... " >&6; }
12854 if test ${ac_cv_lib_dl_dlopen+y}
12855 then :
12856   printf %s "(cached) " >&6
12857 else $as_nop
12858   ac_check_lib_save_LIBS=$LIBS
12859 LIBS="-ldl  $LIBS"
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h.  */
12862
12863 /* Override any GCC internal prototype to avoid an error.
12864    Use char because int might match the return type of a GCC
12865    builtin and then its argument prototype would still apply.  */
12866 char dlopen ();
12867 int
12868 main (void)
12869 {
12870 return dlopen ();
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 if ac_fn_c_try_link "$LINENO"
12876 then :
12877   ac_cv_lib_dl_dlopen=yes
12878 else $as_nop
12879   ac_cv_lib_dl_dlopen=no
12880 fi
12881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12882     conftest$ac_exeext conftest.$ac_ext
12883 LIBS=$ac_check_lib_save_LIBS
12884 fi
12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12886 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12887 if test "x$ac_cv_lib_dl_dlopen" = xyes
12888 then :
12889   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12890 else $as_nop
12891   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12892 printf %s "checking for dlopen in -lsvld... " >&6; }
12893 if test ${ac_cv_lib_svld_dlopen+y}
12894 then :
12895   printf %s "(cached) " >&6
12896 else $as_nop
12897   ac_check_lib_save_LIBS=$LIBS
12898 LIBS="-lsvld  $LIBS"
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h.  */
12901
12902 /* Override any GCC internal prototype to avoid an error.
12903    Use char because int might match the return type of a GCC
12904    builtin and then its argument prototype would still apply.  */
12905 char dlopen ();
12906 int
12907 main (void)
12908 {
12909 return dlopen ();
12910   ;
12911   return 0;
12912 }
12913 _ACEOF
12914 if ac_fn_c_try_link "$LINENO"
12915 then :
12916   ac_cv_lib_svld_dlopen=yes
12917 else $as_nop
12918   ac_cv_lib_svld_dlopen=no
12919 fi
12920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12921     conftest$ac_exeext conftest.$ac_ext
12922 LIBS=$ac_check_lib_save_LIBS
12923 fi
12924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12925 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12926 if test "x$ac_cv_lib_svld_dlopen" = xyes
12927 then :
12928   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12929 else $as_nop
12930   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12931 printf %s "checking for dld_link in -ldld... " >&6; }
12932 if test ${ac_cv_lib_dld_dld_link+y}
12933 then :
12934   printf %s "(cached) " >&6
12935 else $as_nop
12936   ac_check_lib_save_LIBS=$LIBS
12937 LIBS="-ldld  $LIBS"
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h.  */
12940
12941 /* Override any GCC internal prototype to avoid an error.
12942    Use char because int might match the return type of a GCC
12943    builtin and then its argument prototype would still apply.  */
12944 char dld_link ();
12945 int
12946 main (void)
12947 {
12948 return dld_link ();
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953 if ac_fn_c_try_link "$LINENO"
12954 then :
12955   ac_cv_lib_dld_dld_link=yes
12956 else $as_nop
12957   ac_cv_lib_dld_dld_link=no
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12960     conftest$ac_exeext conftest.$ac_ext
12961 LIBS=$ac_check_lib_save_LIBS
12962 fi
12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12964 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12965 if test "x$ac_cv_lib_dld_dld_link" = xyes
12966 then :
12967   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12968 fi
12969
12970
12971 fi
12972
12973
12974 fi
12975
12976
12977 fi
12978
12979
12980 fi
12981
12982
12983 fi
12984
12985     ;;
12986   esac
12987
12988   if test no = "$lt_cv_dlopen"; then
12989     enable_dlopen=no
12990   else
12991     enable_dlopen=yes
12992   fi
12993
12994   case $lt_cv_dlopen in
12995   dlopen)
12996     save_CPPFLAGS=$CPPFLAGS
12997     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12998
12999     save_LDFLAGS=$LDFLAGS
13000     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13001
13002     save_LIBS=$LIBS
13003     LIBS="$lt_cv_dlopen_libs $LIBS"
13004
13005     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13006 printf %s "checking whether a program can dlopen itself... " >&6; }
13007 if test ${lt_cv_dlopen_self+y}
13008 then :
13009   printf %s "(cached) " >&6
13010 else $as_nop
13011           if test yes = "$cross_compiling"; then :
13012   lt_cv_dlopen_self=cross
13013 else
13014   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13015   lt_status=$lt_dlunknown
13016   cat > conftest.$ac_ext <<_LT_EOF
13017 #line $LINENO "configure"
13018 #include "confdefs.h"
13019
13020 #if HAVE_DLFCN_H
13021 #include <dlfcn.h>
13022 #endif
13023
13024 #include <stdio.h>
13025
13026 #ifdef RTLD_GLOBAL
13027 #  define LT_DLGLOBAL           RTLD_GLOBAL
13028 #else
13029 #  ifdef DL_GLOBAL
13030 #    define LT_DLGLOBAL         DL_GLOBAL
13031 #  else
13032 #    define LT_DLGLOBAL         0
13033 #  endif
13034 #endif
13035
13036 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13037    find out it does not work in some platform. */
13038 #ifndef LT_DLLAZY_OR_NOW
13039 #  ifdef RTLD_LAZY
13040 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13041 #  else
13042 #    ifdef DL_LAZY
13043 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13044 #    else
13045 #      ifdef RTLD_NOW
13046 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13047 #      else
13048 #        ifdef DL_NOW
13049 #          define LT_DLLAZY_OR_NOW      DL_NOW
13050 #        else
13051 #          define LT_DLLAZY_OR_NOW      0
13052 #        endif
13053 #      endif
13054 #    endif
13055 #  endif
13056 #endif
13057
13058 /* When -fvisibility=hidden is used, assume the code has been annotated
13059    correspondingly for the symbols needed.  */
13060 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13061 int fnord () __attribute__((visibility("default")));
13062 #endif
13063
13064 int fnord () { return 42; }
13065 int main ()
13066 {
13067   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13068   int status = $lt_dlunknown;
13069
13070   if (self)
13071     {
13072       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13073       else
13074         {
13075           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13076           else puts (dlerror ());
13077         }
13078       /* dlclose (self); */
13079     }
13080   else
13081     puts (dlerror ());
13082
13083   return status;
13084 }
13085 _LT_EOF
13086   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13087   (eval $ac_link) 2>&5
13088   ac_status=$?
13089   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13090   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13091     (./conftest; exit; ) >&5 2>/dev/null
13092     lt_status=$?
13093     case x$lt_status in
13094       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13095       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13096       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13097     esac
13098   else :
13099     # compilation failed
13100     lt_cv_dlopen_self=no
13101   fi
13102 fi
13103 rm -fr conftest*
13104
13105
13106 fi
13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13108 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13109
13110     if test yes = "$lt_cv_dlopen_self"; then
13111       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13112       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13113 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13114 if test ${lt_cv_dlopen_self_static+y}
13115 then :
13116   printf %s "(cached) " >&6
13117 else $as_nop
13118           if test yes = "$cross_compiling"; then :
13119   lt_cv_dlopen_self_static=cross
13120 else
13121   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13122   lt_status=$lt_dlunknown
13123   cat > conftest.$ac_ext <<_LT_EOF
13124 #line $LINENO "configure"
13125 #include "confdefs.h"
13126
13127 #if HAVE_DLFCN_H
13128 #include <dlfcn.h>
13129 #endif
13130
13131 #include <stdio.h>
13132
13133 #ifdef RTLD_GLOBAL
13134 #  define LT_DLGLOBAL           RTLD_GLOBAL
13135 #else
13136 #  ifdef DL_GLOBAL
13137 #    define LT_DLGLOBAL         DL_GLOBAL
13138 #  else
13139 #    define LT_DLGLOBAL         0
13140 #  endif
13141 #endif
13142
13143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13144    find out it does not work in some platform. */
13145 #ifndef LT_DLLAZY_OR_NOW
13146 #  ifdef RTLD_LAZY
13147 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13148 #  else
13149 #    ifdef DL_LAZY
13150 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13151 #    else
13152 #      ifdef RTLD_NOW
13153 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13154 #      else
13155 #        ifdef DL_NOW
13156 #          define LT_DLLAZY_OR_NOW      DL_NOW
13157 #        else
13158 #          define LT_DLLAZY_OR_NOW      0
13159 #        endif
13160 #      endif
13161 #    endif
13162 #  endif
13163 #endif
13164
13165 /* When -fvisibility=hidden is used, assume the code has been annotated
13166    correspondingly for the symbols needed.  */
13167 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13168 int fnord () __attribute__((visibility("default")));
13169 #endif
13170
13171 int fnord () { return 42; }
13172 int main ()
13173 {
13174   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13175   int status = $lt_dlunknown;
13176
13177   if (self)
13178     {
13179       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13180       else
13181         {
13182           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13183           else puts (dlerror ());
13184         }
13185       /* dlclose (self); */
13186     }
13187   else
13188     puts (dlerror ());
13189
13190   return status;
13191 }
13192 _LT_EOF
13193   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13194   (eval $ac_link) 2>&5
13195   ac_status=$?
13196   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13197   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13198     (./conftest; exit; ) >&5 2>/dev/null
13199     lt_status=$?
13200     case x$lt_status in
13201       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13202       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13203       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13204     esac
13205   else :
13206     # compilation failed
13207     lt_cv_dlopen_self_static=no
13208   fi
13209 fi
13210 rm -fr conftest*
13211
13212
13213 fi
13214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13215 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13216     fi
13217
13218     CPPFLAGS=$save_CPPFLAGS
13219     LDFLAGS=$save_LDFLAGS
13220     LIBS=$save_LIBS
13221     ;;
13222   esac
13223
13224   case $lt_cv_dlopen_self in
13225   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13226   *) enable_dlopen_self=unknown ;;
13227   esac
13228
13229   case $lt_cv_dlopen_self_static in
13230   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13231   *) enable_dlopen_self_static=unknown ;;
13232   esac
13233 fi
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251 striplib=
13252 old_striplib=
13253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13254 printf %s "checking whether stripping libraries is possible... " >&6; }
13255 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13256   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13257   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13258   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13259 printf "%s\n" "yes" >&6; }
13260 else
13261 # FIXME - insert some real tests, host_os isn't really good enough
13262   case $host_os in
13263   darwin*)
13264     if test -n "$STRIP"; then
13265       striplib="$STRIP -x"
13266       old_striplib="$STRIP -S"
13267       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13268 printf "%s\n" "yes" >&6; }
13269     else
13270       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271 printf "%s\n" "no" >&6; }
13272     fi
13273     ;;
13274   *)
13275     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 printf "%s\n" "no" >&6; }
13277     ;;
13278   esac
13279 fi
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292   # Report what library types will actually be built
13293   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13294 printf %s "checking if libtool supports shared libraries... " >&6; }
13295   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13296 printf "%s\n" "$can_build_shared" >&6; }
13297
13298   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13299 printf %s "checking whether to build shared libraries... " >&6; }
13300   test no = "$can_build_shared" && enable_shared=no
13301
13302   # On AIX, shared libraries and static libraries use the same namespace, and
13303   # are all built from PIC.
13304   case $host_os in
13305   aix3*)
13306     test yes = "$enable_shared" && enable_static=no
13307     if test -n "$RANLIB"; then
13308       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13309       postinstall_cmds='$RANLIB $lib'
13310     fi
13311     ;;
13312
13313   aix[4-9]*)
13314     if test ia64 != "$host_cpu"; then
13315       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13316       yes,aix,yes) ;;                   # shared object as lib.so file only
13317       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13318       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13319       esac
13320     fi
13321     ;;
13322   esac
13323   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13324 printf "%s\n" "$enable_shared" >&6; }
13325
13326   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13327 printf %s "checking whether to build static libraries... " >&6; }
13328   # Make sure either enable_shared or enable_static is yes.
13329   test yes = "$enable_shared" || enable_static=yes
13330   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13331 printf "%s\n" "$enable_static" >&6; }
13332
13333
13334
13335
13336 fi
13337 ac_ext=c
13338 ac_cpp='$CPP $CPPFLAGS'
13339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13342
13343 CC=$lt_save_CC
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359         ac_config_commands="$ac_config_commands libtool"
13360
13361
13362
13363
13364 # Only expand once:
13365
13366
13367
13368
13369   CFLAG_VISIBILITY=
13370   HAVE_VISIBILITY=0
13371   if test -n "$GCC"; then
13372                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
13373 printf %s "checking whether the -Werror option is usable... " >&6; }
13374     if test ${gl_cv_cc_vis_werror+y}
13375 then :
13376   printf %s "(cached) " >&6
13377 else $as_nop
13378
13379       gl_save_CFLAGS="$CFLAGS"
13380       CFLAGS="$CFLAGS -Werror"
13381       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h.  */
13383
13384 int
13385 main (void)
13386 {
13387
13388   ;
13389   return 0;
13390 }
13391 _ACEOF
13392 if ac_fn_c_try_compile "$LINENO"
13393 then :
13394   gl_cv_cc_vis_werror=yes
13395 else $as_nop
13396   gl_cv_cc_vis_werror=no
13397 fi
13398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13399       CFLAGS="$gl_save_CFLAGS"
13400 fi
13401
13402     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
13403 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
13404         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
13405 printf %s "checking for simple visibility declarations... " >&6; }
13406     if test ${gl_cv_cc_visibility+y}
13407 then :
13408   printf %s "(cached) " >&6
13409 else $as_nop
13410
13411       gl_save_CFLAGS="$CFLAGS"
13412       CFLAGS="$CFLAGS -fvisibility=hidden"
13413                                     if test $gl_cv_cc_vis_werror = yes; then
13414         CFLAGS="$CFLAGS -Werror"
13415       fi
13416       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h.  */
13418 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
13419              extern __attribute__((__visibility__("default"))) int exportedvar;
13420              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
13421              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
13422              void dummyfunc (void) {}
13423
13424 int
13425 main (void)
13426 {
13427
13428   ;
13429   return 0;
13430 }
13431 _ACEOF
13432 if ac_fn_c_try_compile "$LINENO"
13433 then :
13434   gl_cv_cc_visibility=yes
13435 else $as_nop
13436   gl_cv_cc_visibility=no
13437 fi
13438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13439       CFLAGS="$gl_save_CFLAGS"
13440 fi
13441
13442     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
13443 printf "%s\n" "$gl_cv_cc_visibility" >&6; }
13444     if test $gl_cv_cc_visibility = yes; then
13445       CFLAG_VISIBILITY="-fvisibility=hidden"
13446       HAVE_VISIBILITY=1
13447     fi
13448   fi
13449
13450
13451
13452 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
13453
13454
13455
13456 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
13457 if test "x$ac_cv_header_sys_mkdev_h" = xyes
13458 then :
13459
13460 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
13461
13462 fi
13463
13464 if test $ac_cv_header_sys_mkdev_h = no; then
13465   ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13466 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
13467 then :
13468
13469 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
13470
13471 fi
13472
13473 fi
13474
13475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13476 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13477 if test ${ac_cv_header_sys_wait_h+y}
13478 then :
13479   printf %s "(cached) " >&6
13480 else $as_nop
13481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482 /* end confdefs.h.  */
13483 #include <sys/types.h>
13484 #include <sys/wait.h>
13485 #ifndef WEXITSTATUS
13486 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13487 #endif
13488 #ifndef WIFEXITED
13489 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13490 #endif
13491
13492 int
13493 main (void)
13494 {
13495   int s;
13496   wait (&s);
13497   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13498   ;
13499   return 0;
13500 }
13501 _ACEOF
13502 if ac_fn_c_try_compile "$LINENO"
13503 then :
13504   ac_cv_header_sys_wait_h=yes
13505 else $as_nop
13506   ac_cv_header_sys_wait_h=no
13507 fi
13508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13509 fi
13510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13511 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
13512 if test $ac_cv_header_sys_wait_h = yes; then
13513
13514 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13515
13516 fi
13517
13518 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13519 if test "x$ac_cv_header_stdint_h" = xyes
13520 then :
13521   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
13522
13523 fi
13524 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13525 if test "x$ac_cv_header_fcntl_h" = xyes
13526 then :
13527   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
13528
13529 fi
13530 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13531 if test "x$ac_cv_header_inttypes_h" = xyes
13532 then :
13533   printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
13534
13535 fi
13536 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13537 if test "x$ac_cv_header_unistd_h" = xyes
13538 then :
13539   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13540
13541 fi
13542 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
13543 if test "x$ac_cv_header_byteswap_h" = xyes
13544 then :
13545   printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
13546
13547 fi
13548
13549 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
13550 if test "x$ac_cv_header_spawn_h" = xyes
13551 then :
13552   printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
13553
13554 fi
13555 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
13556 if test "x$ac_cv_header_utime_h" = xyes
13557 then :
13558   printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
13559
13560 fi
13561 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
13562 if test "x$ac_cv_header_wchar_h" = xyes
13563 then :
13564   printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
13565
13566 fi
13567 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
13568 if test "x$ac_cv_header_wctype_h" = xyes
13569 then :
13570   printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
13571
13572 fi
13573
13574 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13575 if test "x$ac_cv_header_getopt_h" = xyes
13576 then :
13577   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
13578
13579 fi
13580 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
13581 if test "x$ac_cv_header_err_h" = xyes
13582 then :
13583   printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
13584
13585 fi
13586 ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
13587 if test "x$ac_cv_header_xlocale_h" = xyes
13588 then :
13589   printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h
13590
13591 fi
13592
13593 ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default"
13594 if test "x$ac_cv_header_sys_bswap_h" = xyes
13595 then :
13596   printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h
13597
13598 fi
13599 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13600 if test "x$ac_cv_header_sys_mman_h" = xyes
13601 then :
13602   printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
13603
13604 fi
13605 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
13606 if test "x$ac_cv_header_sys_stat_h" = xyes
13607 then :
13608   printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
13609
13610 fi
13611 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
13612 if test "x$ac_cv_header_sys_types_h" = xyes
13613 then :
13614   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
13615
13616 fi
13617 ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"
13618 if test "x$ac_cv_header_sys_utime_h" = xyes
13619 then :
13620   printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
13621
13622 fi
13623 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13624 if test "x$ac_cv_header_sys_time_h" = xyes
13625 then :
13626   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
13627
13628 fi
13629 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13630 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
13631 then :
13632   printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
13633
13634 fi
13635 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13636 if test "x$ac_cv_header_sys_ioctl_h" = xyes
13637 then :
13638   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
13639
13640 fi
13641
13642 if test "$enable_zlib" != "no"; then
13643   ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13644 if test "x$ac_cv_header_zlib_h" = xyes
13645 then :
13646   printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
13647
13648 fi
13649
13650 fi
13651 if test "$enable_bzlib" != "no"; then
13652   ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13653 if test "x$ac_cv_header_bzlib_h" = xyes
13654 then :
13655   printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
13656
13657 fi
13658
13659 fi
13660 if test "$enable_xzlib" != "no"; then
13661   ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
13662 if test "x$ac_cv_header_lzma_h" = xyes
13663 then :
13664   printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
13665
13666 fi
13667
13668 fi
13669 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
13670 "
13671 if test "x$ac_cv_type_sig_t" = xyes
13672 then :
13673
13674 printf "%s\n" "#define HAVE_SIG_T 1" >>confdefs.h
13675
13676 fi
13677
13678
13679 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13680 if test "x$ac_cv_type_off_t" = xyes
13681 then :
13682
13683 else $as_nop
13684
13685 printf "%s\n" "#define off_t long int" >>confdefs.h
13686
13687 fi
13688
13689 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13690 if test "x$ac_cv_type_size_t" = xyes
13691 then :
13692
13693 else $as_nop
13694
13695 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13696
13697 fi
13698
13699 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
13700 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
13701 then :
13702
13703 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
13704
13705
13706 fi
13707
13708
13709 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
13710 "
13711 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
13712 then :
13713
13714 printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
13715
13716
13717 fi
13718
13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13720 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13721 if test ${ac_cv_struct_tm+y}
13722 then :
13723   printf %s "(cached) " >&6
13724 else $as_nop
13725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h.  */
13727 #include <sys/types.h>
13728 #include <time.h>
13729
13730 int
13731 main (void)
13732 {
13733 struct tm tm;
13734                                      int *p = &tm.tm_sec;
13735                                      return !p;
13736   ;
13737   return 0;
13738 }
13739 _ACEOF
13740 if ac_fn_c_try_compile "$LINENO"
13741 then :
13742   ac_cv_struct_tm=time.h
13743 else $as_nop
13744   ac_cv_struct_tm=sys/time.h
13745 fi
13746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13747 fi
13748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13749 printf "%s\n" "$ac_cv_struct_tm" >&6; }
13750 if test $ac_cv_struct_tm = sys/time.h; then
13751
13752 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
13753
13754 fi
13755
13756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13757 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13758 if test ${ac_cv_c_undeclared_builtin_options+y}
13759 then :
13760   printf %s "(cached) " >&6
13761 else $as_nop
13762   ac_save_CFLAGS=$CFLAGS
13763    ac_cv_c_undeclared_builtin_options='cannot detect'
13764    for ac_arg in '' -fno-builtin; do
13765      CFLAGS="$ac_save_CFLAGS $ac_arg"
13766      # This test program should *not* compile successfully.
13767      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h.  */
13769
13770 int
13771 main (void)
13772 {
13773 (void) strchr;
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 if ac_fn_c_try_compile "$LINENO"
13779 then :
13780
13781 else $as_nop
13782   # This test program should compile successfully.
13783         # No library function is consistently available on
13784         # freestanding implementations, so test against a dummy
13785         # declaration.  Include always-available headers on the
13786         # off chance that they somehow elicit warnings.
13787         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h.  */
13789 #include <float.h>
13790 #include <limits.h>
13791 #include <stdarg.h>
13792 #include <stddef.h>
13793 extern void ac_decl (int, char *);
13794
13795 int
13796 main (void)
13797 {
13798 (void) ac_decl (0, (char *) 0);
13799   (void) ac_decl;
13800
13801   ;
13802   return 0;
13803 }
13804 _ACEOF
13805 if ac_fn_c_try_compile "$LINENO"
13806 then :
13807   if test x"$ac_arg" = x
13808 then :
13809   ac_cv_c_undeclared_builtin_options='none needed'
13810 else $as_nop
13811   ac_cv_c_undeclared_builtin_options=$ac_arg
13812 fi
13813           break
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13816 fi
13817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13818     done
13819     CFLAGS=$ac_save_CFLAGS
13820
13821 fi
13822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13823 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13824   case $ac_cv_c_undeclared_builtin_options in #(
13825   'cannot detect') :
13826     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13827 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13828 as_fn_error $? "cannot make $CC report undeclared builtins
13829 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13830   'none needed') :
13831     ac_c_undeclared_builtin_options='' ;; #(
13832   *) :
13833     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13834 esac
13835
13836 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13837 #include <$ac_cv_struct_tm>
13838
13839 "
13840 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
13841 then :
13842
13843 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
13844
13845
13846 fi
13847
13848 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13849
13850 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
13851
13852 else
13853   ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13854 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13855 if test "x$ac_cv_have_decl_tzname" = xyes
13856 then :
13857   ac_have_decl=1
13858 else $as_nop
13859   ac_have_decl=0
13860 fi
13861 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
13862
13863   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13864 printf %s "checking for tzname... " >&6; }
13865 if test ${ac_cv_var_tzname+y}
13866 then :
13867   printf %s "(cached) " >&6
13868 else $as_nop
13869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h.  */
13871 #include <time.h>
13872 #if !HAVE_DECL_TZNAME
13873 extern char *tzname[];
13874 #endif
13875
13876 int
13877 main (void)
13878 {
13879 return tzname[0][0];
13880   ;
13881   return 0;
13882 }
13883 _ACEOF
13884 if ac_fn_c_try_link "$LINENO"
13885 then :
13886   ac_cv_var_tzname=yes
13887 else $as_nop
13888   ac_cv_var_tzname=no
13889 fi
13890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13891     conftest$ac_exeext conftest.$ac_ext
13892 fi
13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13894 printf "%s\n" "$ac_cv_var_tzname" >&6; }
13895   if test $ac_cv_var_tzname = yes; then
13896
13897 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
13898
13899   fi
13900 fi
13901
13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13903 printf %s "checking for tm_zone in struct tm... " >&6; }
13904 if test ${ac_cv_struct_tm_zone+y}
13905 then :
13906   printf %s "(cached) " >&6
13907 else $as_nop
13908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h.  */
13910 #include <sys/types.h>
13911 #include <$ac_cv_struct_tm>
13912 int
13913 main (void)
13914 {
13915 struct tm tm; tm.tm_zone;
13916   ;
13917   return 0;
13918 }
13919 _ACEOF
13920 if ac_fn_c_try_compile "$LINENO"
13921 then :
13922   ac_cv_struct_tm_zone=yes
13923 else $as_nop
13924   ac_cv_struct_tm_zone=no
13925 fi
13926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13927 fi
13928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
13929 printf "%s\n" "$ac_cv_struct_tm_zone" >&6; }
13930 if test "$ac_cv_struct_tm_zone" = yes; then
13931
13932 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
13933
13934 fi
13935
13936 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13937 # consider it declared and we won't give our own extern.
13938 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13939 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13940 if test "x$ac_cv_have_decl_tzname" = xyes
13941 then :
13942   ac_have_decl=1
13943 else $as_nop
13944   ac_have_decl=0
13945 fi
13946 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
13947
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13949 printf %s "checking for tzname... " >&6; }
13950 if test ${ac_cv_var_tzname+y}
13951 then :
13952   printf %s "(cached) " >&6
13953 else $as_nop
13954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h.  */
13956 #include <time.h>
13957 int
13958 main (void)
13959 {
13960 #if !HAVE_DECL_TZNAME
13961 extern char *tzname[];
13962 #endif
13963 return tzname[0][0];
13964   ;
13965   return 0;
13966 }
13967 _ACEOF
13968 if ac_fn_c_try_link "$LINENO"
13969 then :
13970   ac_cv_var_tzname=yes
13971 else $as_nop
13972   ac_cv_var_tzname=no
13973 fi
13974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13975     conftest$ac_exeext conftest.$ac_ext
13976 fi
13977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13978 printf "%s\n" "$ac_cv_var_tzname" >&6; }
13979   if test $ac_cv_var_tzname = yes; then
13980
13981 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
13982
13983   fi
13984
13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
13986 printf %s "checking for tm_isdst in struct tm... " >&6; }
13987 if test ${ac_cv_struct_tm_isdst+y}
13988 then :
13989   printf %s "(cached) " >&6
13990 else $as_nop
13991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h.  */
13993 #include <sys/types.h>
13994 #include <$ac_cv_struct_tm>
13995 int
13996 main (void)
13997 {
13998 struct tm tm; tm.tm_isdst;
13999   ;
14000   return 0;
14001 }
14002 _ACEOF
14003 if ac_fn_c_try_compile "$LINENO"
14004 then :
14005   ac_cv_struct_tm_isdst=yes
14006 else $as_nop
14007   ac_cv_struct_tm_isdst=no
14008 fi
14009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14010 fi
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
14012 printf "%s\n" "$ac_cv_struct_tm_isdst" >&6; }
14013 if test "$ac_cv_struct_tm_isdst" = yes; then
14014
14015 printf "%s\n" "#define HAVE_TM_ISDST 1" >>confdefs.h
14016
14017 fi
14018
14019
14020 ac_fn_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
14021 #include <stdlib.h>
14022 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14023 if test "x$ac_cv_have_decl_daylight" = xyes
14024 then :
14025   ac_have_decl=1
14026 else $as_nop
14027   ac_have_decl=0
14028 fi
14029 printf "%s\n" "#define HAVE_DECL_DAYLIGHT $ac_have_decl" >>confdefs.h
14030
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
14032 printf %s "checking for daylight... " >&6; }
14033 if test ${ac_cv_var_daylight+y}
14034 then :
14035   printf %s "(cached) " >&6
14036 else $as_nop
14037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h.  */
14039 #include <time.h>
14040 int
14041 main (void)
14042 {
14043 #if !HAVE_DECL_DAYLIGHT
14044 extern int daylight;
14045 #endif
14046 atoi(daylight);
14047   ;
14048   return 0;
14049 }
14050 _ACEOF
14051 if ac_fn_c_try_link "$LINENO"
14052 then :
14053   ac_cv_var_daylight=yes
14054 else $as_nop
14055   ac_cv_var_daylight=no
14056 fi
14057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14058     conftest$ac_exeext conftest.$ac_ext
14059 fi
14060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
14061 printf "%s\n" "$ac_cv_var_daylight" >&6; }
14062   if test $ac_cv_var_daylight = yes; then
14063
14064 printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h
14065
14066   fi
14067
14068 # Check whether --enable-largefile was given.
14069 if test ${enable_largefile+y}
14070 then :
14071   enableval=$enable_largefile;
14072 fi
14073
14074 if test "$enable_largefile" != no; then
14075
14076   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14077 printf %s "checking for special C compiler options needed for large files... " >&6; }
14078 if test ${ac_cv_sys_largefile_CC+y}
14079 then :
14080   printf %s "(cached) " >&6
14081 else $as_nop
14082   ac_cv_sys_largefile_CC=no
14083      if test "$GCC" != yes; then
14084        ac_save_CC=$CC
14085        while :; do
14086          # IRIX 6.2 and later do not support large files by default,
14087          # so use the C compiler's -n32 option if that helps.
14088          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h.  */
14090 #include <sys/types.h>
14091  /* Check that off_t can represent 2**63 - 1 correctly.
14092     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14093     since some C++ compilers masquerading as C compilers
14094     incorrectly reject 9223372036854775807.  */
14095 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14096   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14097                        && LARGE_OFF_T % 2147483647 == 1)
14098                       ? 1 : -1];
14099 int
14100 main (void)
14101 {
14102
14103   ;
14104   return 0;
14105 }
14106 _ACEOF
14107          if ac_fn_c_try_compile "$LINENO"
14108 then :
14109   break
14110 fi
14111 rm -f core conftest.err conftest.$ac_objext conftest.beam
14112          CC="$CC -n32"
14113          if ac_fn_c_try_compile "$LINENO"
14114 then :
14115   ac_cv_sys_largefile_CC=' -n32'; break
14116 fi
14117 rm -f core conftest.err conftest.$ac_objext conftest.beam
14118          break
14119        done
14120        CC=$ac_save_CC
14121        rm -f conftest.$ac_ext
14122     fi
14123 fi
14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14125 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
14126   if test "$ac_cv_sys_largefile_CC" != no; then
14127     CC=$CC$ac_cv_sys_largefile_CC
14128   fi
14129
14130   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14131 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14132 if test ${ac_cv_sys_file_offset_bits+y}
14133 then :
14134   printf %s "(cached) " >&6
14135 else $as_nop
14136   while :; do
14137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h.  */
14139 #include <sys/types.h>
14140  /* Check that off_t can represent 2**63 - 1 correctly.
14141     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14142     since some C++ compilers masquerading as C compilers
14143     incorrectly reject 9223372036854775807.  */
14144 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14145   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14146                        && LARGE_OFF_T % 2147483647 == 1)
14147                       ? 1 : -1];
14148 int
14149 main (void)
14150 {
14151
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 if ac_fn_c_try_compile "$LINENO"
14157 then :
14158   ac_cv_sys_file_offset_bits=no; break
14159 fi
14160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h.  */
14163 #define _FILE_OFFSET_BITS 64
14164 #include <sys/types.h>
14165  /* Check that off_t can represent 2**63 - 1 correctly.
14166     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14167     since some C++ compilers masquerading as C compilers
14168     incorrectly reject 9223372036854775807.  */
14169 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14170   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14171                        && LARGE_OFF_T % 2147483647 == 1)
14172                       ? 1 : -1];
14173 int
14174 main (void)
14175 {
14176
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 if ac_fn_c_try_compile "$LINENO"
14182 then :
14183   ac_cv_sys_file_offset_bits=64; break
14184 fi
14185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14186   ac_cv_sys_file_offset_bits=unknown
14187   break
14188 done
14189 fi
14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14191 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
14192 case $ac_cv_sys_file_offset_bits in #(
14193   no | unknown) ;;
14194   *)
14195 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
14196 ;;
14197 esac
14198 rm -rf conftest*
14199   if test $ac_cv_sys_file_offset_bits = unknown; then
14200     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14201 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
14202 if test ${ac_cv_sys_large_files+y}
14203 then :
14204   printf %s "(cached) " >&6
14205 else $as_nop
14206   while :; do
14207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h.  */
14209 #include <sys/types.h>
14210  /* Check that off_t can represent 2**63 - 1 correctly.
14211     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14212     since some C++ compilers masquerading as C compilers
14213     incorrectly reject 9223372036854775807.  */
14214 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14215   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14216                        && LARGE_OFF_T % 2147483647 == 1)
14217                       ? 1 : -1];
14218 int
14219 main (void)
14220 {
14221
14222   ;
14223   return 0;
14224 }
14225 _ACEOF
14226 if ac_fn_c_try_compile "$LINENO"
14227 then :
14228   ac_cv_sys_large_files=no; break
14229 fi
14230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h.  */
14233 #define _LARGE_FILES 1
14234 #include <sys/types.h>
14235  /* Check that off_t can represent 2**63 - 1 correctly.
14236     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14237     since some C++ compilers masquerading as C compilers
14238     incorrectly reject 9223372036854775807.  */
14239 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14240   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14241                        && LARGE_OFF_T % 2147483647 == 1)
14242                       ? 1 : -1];
14243 int
14244 main (void)
14245 {
14246
14247   ;
14248   return 0;
14249 }
14250 _ACEOF
14251 if ac_fn_c_try_compile "$LINENO"
14252 then :
14253   ac_cv_sys_large_files=1; break
14254 fi
14255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14256   ac_cv_sys_large_files=unknown
14257   break
14258 done
14259 fi
14260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14261 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
14262 case $ac_cv_sys_large_files in #(
14263   no | unknown) ;;
14264   *)
14265 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
14266 ;;
14267 esac
14268 rm -rf conftest*
14269   fi
14270 fi
14271
14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14273 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14274 if test ${ac_cv_sys_largefile_source+y}
14275 then :
14276   printf %s "(cached) " >&6
14277 else $as_nop
14278   while :; do
14279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h.  */
14281 #include <sys/types.h> /* for off_t */
14282      #include <stdio.h>
14283 int
14284 main (void)
14285 {
14286 int (*fp) (FILE *, off_t, int) = fseeko;
14287      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14288   ;
14289   return 0;
14290 }
14291 _ACEOF
14292 if ac_fn_c_try_link "$LINENO"
14293 then :
14294   ac_cv_sys_largefile_source=no; break
14295 fi
14296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14297     conftest$ac_exeext conftest.$ac_ext
14298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h.  */
14300 #define _LARGEFILE_SOURCE 1
14301 #include <sys/types.h> /* for off_t */
14302      #include <stdio.h>
14303 int
14304 main (void)
14305 {
14306 int (*fp) (FILE *, off_t, int) = fseeko;
14307      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14308   ;
14309   return 0;
14310 }
14311 _ACEOF
14312 if ac_fn_c_try_link "$LINENO"
14313 then :
14314   ac_cv_sys_largefile_source=1; break
14315 fi
14316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14317     conftest$ac_exeext conftest.$ac_ext
14318   ac_cv_sys_largefile_source=unknown
14319   break
14320 done
14321 fi
14322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14323 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
14324 case $ac_cv_sys_largefile_source in #(
14325   no | unknown) ;;
14326   *)
14327 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
14328 ;;
14329 esac
14330 rm -rf conftest*
14331
14332 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14333 # in glibc 2.1.3, but that breaks too many other things.
14334 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14335 if test $ac_cv_sys_largefile_source != unknown; then
14336
14337 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
14338
14339 fi
14340
14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14342 printf %s "checking for mbstate_t... " >&6; }
14343 if test ${ac_cv_type_mbstate_t+y}
14344 then :
14345   printf %s "(cached) " >&6
14346 else $as_nop
14347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h.  */
14349 $ac_includes_default
14350 #           include <wchar.h>
14351 int
14352 main (void)
14353 {
14354 mbstate_t x; return sizeof x;
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 if ac_fn_c_try_compile "$LINENO"
14360 then :
14361   ac_cv_type_mbstate_t=yes
14362 else $as_nop
14363   ac_cv_type_mbstate_t=no
14364 fi
14365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14366 fi
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14368 printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
14369    if test $ac_cv_type_mbstate_t = yes; then
14370
14371 printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
14372
14373    else
14374
14375 printf "%s\n" "#define mbstate_t int" >>confdefs.h
14376
14377    fi
14378
14379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
14380 printf %s "checking for struct option in getopt... " >&6; }
14381 if test ${ac_cv_struct_option_getopt_h+y}
14382 then :
14383   printf %s "(cached) " >&6
14384 else $as_nop
14385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h.  */
14387 #include <getopt.h>
14388 int
14389 main (void)
14390 {
14391 struct option op; op.name;
14392   ;
14393   return 0;
14394 }
14395 _ACEOF
14396 if ac_fn_c_try_compile "$LINENO"
14397 then :
14398   ac_cv_struct_option_getopt_h=yes
14399 else $as_nop
14400   ac_cv_struct_option_getopt_h=no
14401 fi
14402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14403 fi
14404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
14405 printf "%s\n" "$ac_cv_struct_option_getopt_h" >&6; }
14406 if test "$ac_cv_struct_option_getopt_h" = yes; then
14407
14408 printf "%s\n" "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
14409
14410 fi
14411
14412
14413   ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
14414 "
14415 if test "x$ac_cv_type_pid_t" = xyes
14416 then :
14417
14418 else $as_nop
14419                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h.  */
14421
14422           #if defined _WIN64 && !defined __CYGWIN__
14423           LLP64
14424           #endif
14425
14426 int
14427 main (void)
14428 {
14429
14430   ;
14431   return 0;
14432 }
14433
14434 _ACEOF
14435 if ac_fn_c_try_compile "$LINENO"
14436 then :
14437   ac_pid_type='int'
14438 else $as_nop
14439   ac_pid_type='__int64'
14440 fi
14441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14442
14443 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
14444
14445
14446 fi
14447
14448
14449 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14450 case $ac_cv_c_uint8_t in #(
14451   no|yes) ;; #(
14452   *)
14453
14454 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
14455
14456
14457 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
14458 ;;
14459   esac
14460
14461 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14462 case $ac_cv_c_uint16_t in #(
14463   no|yes) ;; #(
14464   *)
14465
14466
14467 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
14468 ;;
14469   esac
14470
14471 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14472 case $ac_cv_c_uint32_t in #(
14473   no|yes) ;; #(
14474   *)
14475
14476 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
14477
14478
14479 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
14480 ;;
14481   esac
14482
14483 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14484 case $ac_cv_c_int32_t in #(
14485   no|yes) ;; #(
14486   *)
14487
14488 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
14489 ;;
14490 esac
14491
14492 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14493 case $ac_cv_c_uint64_t in #(
14494   no|yes) ;; #(
14495   *)
14496
14497 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
14498
14499
14500 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
14501 ;;
14502   esac
14503
14504 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14505 case $ac_cv_c_int64_t in #(
14506   no|yes) ;; #(
14507   *)
14508
14509 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
14510 ;;
14511 esac
14512
14513
14514   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14515 if test "x$ac_cv_type_intptr_t" = xyes
14516 then :
14517
14518 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
14519
14520 else $as_nop
14521   for ac_type in 'int' 'long int' 'long long int'; do
14522        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h.  */
14524 $ac_includes_default
14525 int
14526 main (void)
14527 {
14528 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14529 test_array [0] = 0;
14530 return test_array [0];
14531
14532   ;
14533   return 0;
14534 }
14535 _ACEOF
14536 if ac_fn_c_try_compile "$LINENO"
14537 then :
14538
14539 printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h
14540
14541           ac_type=
14542 fi
14543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14544        test -z "$ac_type" && break
14545      done
14546 fi
14547
14548
14549
14550   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14551 if test "x$ac_cv_type_uintptr_t" = xyes
14552 then :
14553
14554 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
14555
14556 else $as_nop
14557   for ac_type in 'unsigned int' 'unsigned long int' \
14558         'unsigned long long int'; do
14559        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14560 /* end confdefs.h.  */
14561 $ac_includes_default
14562 int
14563 main (void)
14564 {
14565 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14566 test_array [0] = 0;
14567 return test_array [0];
14568
14569   ;
14570   return 0;
14571 }
14572 _ACEOF
14573 if ac_fn_c_try_compile "$LINENO"
14574 then :
14575
14576 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
14577
14578           ac_type=
14579 fi
14580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14581        test -z "$ac_type" && break
14582      done
14583 fi
14584
14585
14586
14587 ac_func=
14588 for ac_item in $ac_func_c_list
14589 do
14590   if test $ac_func; then
14591     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
14592     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
14593       echo "#define $ac_item 1" >> confdefs.h
14594     fi
14595     ac_func=
14596   else
14597     ac_func=$ac_item
14598   fi
14599 done
14600
14601
14602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14603 printf %s "checking for working mmap... " >&6; }
14604 if test ${ac_cv_func_mmap_fixed_mapped+y}
14605 then :
14606   printf %s "(cached) " >&6
14607 else $as_nop
14608   if test "$cross_compiling" = yes
14609 then :
14610   case "$host_os" in # ((
14611                           # Guess yes on platforms where we know the result.
14612                   linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
14613                           # If we don't know, assume the worst.
14614                   *)      ac_cv_func_mmap_fixed_mapped=no ;;
14615                 esac
14616 else $as_nop
14617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h.  */
14619 $ac_includes_default
14620 /* malloc might have been renamed as rpl_malloc. */
14621 #undef malloc
14622
14623 /* Thanks to Mike Haertel and Jim Avera for this test.
14624    Here is a matrix of mmap possibilities:
14625         mmap private not fixed
14626         mmap private fixed at somewhere currently unmapped
14627         mmap private fixed at somewhere already mapped
14628         mmap shared not fixed
14629         mmap shared fixed at somewhere currently unmapped
14630         mmap shared fixed at somewhere already mapped
14631    For private mappings, we should verify that changes cannot be read()
14632    back from the file, nor mmap's back from the file at a different
14633    address.  (There have been systems where private was not correctly
14634    implemented like the infamous i386 svr4.0, and systems where the
14635    VM page cache was not coherent with the file system buffer cache
14636    like early versions of FreeBSD and possibly contemporary NetBSD.)
14637    For shared mappings, we should conversely verify that changes get
14638    propagated back to all the places they're supposed to be.
14639
14640    Grep wants private fixed already mapped.
14641    The main things grep needs to know about mmap are:
14642    * does it exist and is it safe to write into the mmap'd area
14643    * how to use it (BSD variants)  */
14644
14645 #include <fcntl.h>
14646 #include <sys/mman.h>
14647
14648 /* This mess was copied from the GNU getpagesize.h.  */
14649 #ifndef HAVE_GETPAGESIZE
14650 # ifdef _SC_PAGESIZE
14651 #  define getpagesize() sysconf(_SC_PAGESIZE)
14652 # else /* no _SC_PAGESIZE */
14653 #  ifdef HAVE_SYS_PARAM_H
14654 #   include <sys/param.h>
14655 #   ifdef EXEC_PAGESIZE
14656 #    define getpagesize() EXEC_PAGESIZE
14657 #   else /* no EXEC_PAGESIZE */
14658 #    ifdef NBPG
14659 #     define getpagesize() NBPG * CLSIZE
14660 #     ifndef CLSIZE
14661 #      define CLSIZE 1
14662 #     endif /* no CLSIZE */
14663 #    else /* no NBPG */
14664 #     ifdef NBPC
14665 #      define getpagesize() NBPC
14666 #     else /* no NBPC */
14667 #      ifdef PAGESIZE
14668 #       define getpagesize() PAGESIZE
14669 #      endif /* PAGESIZE */
14670 #     endif /* no NBPC */
14671 #    endif /* no NBPG */
14672 #   endif /* no EXEC_PAGESIZE */
14673 #  else /* no HAVE_SYS_PARAM_H */
14674 #   define getpagesize() 8192   /* punt totally */
14675 #  endif /* no HAVE_SYS_PARAM_H */
14676 # endif /* no _SC_PAGESIZE */
14677
14678 #endif /* no HAVE_GETPAGESIZE */
14679
14680 int
14681 main (void)
14682 {
14683   char *data, *data2, *data3;
14684   const char *cdata2;
14685   int i, pagesize;
14686   int fd, fd2;
14687
14688   pagesize = getpagesize ();
14689
14690   /* First, make a file with some known garbage in it. */
14691   data = (char *) malloc (pagesize);
14692   if (!data)
14693     return 1;
14694   for (i = 0; i < pagesize; ++i)
14695     *(data + i) = rand ();
14696   umask (0);
14697   fd = creat ("conftest.mmap", 0600);
14698   if (fd < 0)
14699     return 2;
14700   if (write (fd, data, pagesize) != pagesize)
14701     return 3;
14702   close (fd);
14703
14704   /* Next, check that the tail of a page is zero-filled.  File must have
14705      non-zero length, otherwise we risk SIGBUS for entire page.  */
14706   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14707   if (fd2 < 0)
14708     return 4;
14709   cdata2 = "";
14710   if (write (fd2, cdata2, 1) != 1)
14711     return 5;
14712   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14713   if (data2 == MAP_FAILED)
14714     return 6;
14715   for (i = 0; i < pagesize; ++i)
14716     if (*(data2 + i))
14717       return 7;
14718   close (fd2);
14719   if (munmap (data2, pagesize))
14720     return 8;
14721
14722   /* Next, try to mmap the file at a fixed address which already has
14723      something else allocated at it.  If we can, also make sure that
14724      we see the same garbage.  */
14725   fd = open ("conftest.mmap", O_RDWR);
14726   if (fd < 0)
14727     return 9;
14728   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14729                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14730     return 10;
14731   for (i = 0; i < pagesize; ++i)
14732     if (*(data + i) != *(data2 + i))
14733       return 11;
14734
14735   /* Finally, make sure that changes to the mapped area do not
14736      percolate back to the file as seen by read().  (This is a bug on
14737      some variants of i386 svr4.0.)  */
14738   for (i = 0; i < pagesize; ++i)
14739     *(data2 + i) = *(data2 + i) + 1;
14740   data3 = (char *) malloc (pagesize);
14741   if (!data3)
14742     return 12;
14743   if (read (fd, data3, pagesize) != pagesize)
14744     return 13;
14745   for (i = 0; i < pagesize; ++i)
14746     if (*(data + i) != *(data3 + i))
14747       return 14;
14748   close (fd);
14749   free (data);
14750   free (data3);
14751   return 0;
14752 }
14753 _ACEOF
14754 if ac_fn_c_try_run "$LINENO"
14755 then :
14756   ac_cv_func_mmap_fixed_mapped=yes
14757 else $as_nop
14758   ac_cv_func_mmap_fixed_mapped=no
14759 fi
14760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14761   conftest.$ac_objext conftest.beam conftest.$ac_ext
14762 fi
14763
14764 fi
14765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14766 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
14767 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14768
14769 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
14770
14771 fi
14772 rm -f conftest.mmap conftest.txt
14773
14774
14775
14776
14777
14778
14779 if test "x$ac_cv_func_fork" = xyes; then
14780   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14781 printf %s "checking for working fork... " >&6; }
14782 if test ${ac_cv_func_fork_works+y}
14783 then :
14784   printf %s "(cached) " >&6
14785 else $as_nop
14786   if test "$cross_compiling" = yes
14787 then :
14788   ac_cv_func_fork_works=cross
14789 else $as_nop
14790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h.  */
14792 $ac_includes_default
14793 int
14794 main (void)
14795 {
14796
14797           /* By Ruediger Kuhlmann. */
14798           return fork () < 0;
14799
14800   ;
14801   return 0;
14802 }
14803 _ACEOF
14804 if ac_fn_c_try_run "$LINENO"
14805 then :
14806   ac_cv_func_fork_works=yes
14807 else $as_nop
14808   ac_cv_func_fork_works=no
14809 fi
14810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14811   conftest.$ac_objext conftest.beam conftest.$ac_ext
14812 fi
14813
14814 fi
14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14816 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
14817
14818 else
14819   ac_cv_func_fork_works=$ac_cv_func_fork
14820 fi
14821 if test "x$ac_cv_func_fork_works" = xcross; then
14822   case $host in
14823     *-*-amigaos* | *-*-msdosdjgpp*)
14824       # Override, as these systems have only a dummy fork() stub
14825       ac_cv_func_fork_works=no
14826       ;;
14827     *)
14828       ac_cv_func_fork_works=yes
14829       ;;
14830   esac
14831   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14832 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14833 fi
14834 ac_cv_func_vfork_works=$ac_cv_func_vfork
14835 if test "x$ac_cv_func_vfork" = xyes; then
14836   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14837 printf %s "checking for working vfork... " >&6; }
14838 if test ${ac_cv_func_vfork_works+y}
14839 then :
14840   printf %s "(cached) " >&6
14841 else $as_nop
14842   if test "$cross_compiling" = yes
14843 then :
14844   ac_cv_func_vfork_works=cross
14845 else $as_nop
14846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h.  */
14848 /* Thanks to Paul Eggert for this test.  */
14849 $ac_includes_default
14850 #include <signal.h>
14851 #include <sys/wait.h>
14852 #ifdef HAVE_VFORK_H
14853 # include <vfork.h>
14854 #endif
14855
14856 static void
14857 do_nothing (int sig)
14858 {
14859   (void) sig;
14860 }
14861
14862 /* On some sparc systems, changes by the child to local and incoming
14863    argument registers are propagated back to the parent.  The compiler
14864    is told about this with #include <vfork.h>, but some compilers
14865    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14866    static variable whose address is put into a register that is
14867    clobbered by the vfork.  */
14868 static void
14869 sparc_address_test (int arg)
14870 {
14871   static pid_t child;
14872   if (!child) {
14873     child = vfork ();
14874     if (child < 0) {
14875       perror ("vfork");
14876       _exit(2);
14877     }
14878     if (!child) {
14879       arg = getpid();
14880       write(-1, "", 0);
14881       _exit (arg);
14882     }
14883   }
14884 }
14885
14886 int
14887 main (void)
14888 {
14889   pid_t parent = getpid ();
14890   pid_t child;
14891
14892   sparc_address_test (0);
14893
14894   /* On Solaris 2.4, changes by the child to the signal handler
14895      also munge signal handlers in the parent.  To detect this,
14896      start by putting the parent's handler in a known state.  */
14897   signal (SIGTERM, SIG_DFL);
14898
14899   child = vfork ();
14900
14901   if (child == 0) {
14902     /* Here is another test for sparc vfork register problems.  This
14903        test uses lots of local variables, at least as many local
14904        variables as main has allocated so far including compiler
14905        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14906        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14907        reuse the register of parent for one of the local variables,
14908        since it will think that parent can't possibly be used any more
14909        in this routine.  Assigning to the local variable will thus
14910        munge parent in the parent process.  */
14911     pid_t
14912       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14913       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14914     /* Convince the compiler that p..p7 are live; otherwise, it might
14915        use the same hardware register for all 8 local variables.  */
14916     if (p != p1 || p != p2 || p != p3 || p != p4
14917         || p != p5 || p != p6 || p != p7)
14918       _exit(1);
14919
14920     /* Alter the child's signal handler.  */
14921     if (signal (SIGTERM, do_nothing) != SIG_DFL)
14922       _exit(1);
14923
14924     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14925        from child file descriptors.  If the child closes a descriptor
14926        before it execs or exits, this munges the parent's descriptor
14927        as well.  Test for this by closing stdout in the child.  */
14928     _exit(close(fileno(stdout)) != 0);
14929   } else {
14930     int status;
14931     struct stat st;
14932
14933     while (wait(&status) != child)
14934       ;
14935     return (
14936          /* Was there some problem with vforking?  */
14937          child < 0
14938
14939          /* Did the child munge the parent's signal handler?  */
14940          || signal (SIGTERM, SIG_DFL) != SIG_DFL
14941
14942          /* Did the child fail?  (This shouldn't happen.)  */
14943          || status
14944
14945          /* Did the vfork/compiler bug occur?  */
14946          || parent != getpid()
14947
14948          /* Did the file descriptor bug occur?  */
14949          || fstat(fileno(stdout), &st) != 0
14950          );
14951   }
14952 }
14953 _ACEOF
14954 if ac_fn_c_try_run "$LINENO"
14955 then :
14956   ac_cv_func_vfork_works=yes
14957 else $as_nop
14958   ac_cv_func_vfork_works=no
14959 fi
14960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14961   conftest.$ac_objext conftest.beam conftest.$ac_ext
14962 fi
14963
14964 fi
14965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14966 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
14967
14968 fi;
14969 if test "x$ac_cv_func_fork_works" = xcross; then
14970   ac_cv_func_vfork_works=$ac_cv_func_vfork
14971   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14972 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14973 fi
14974
14975 if test "x$ac_cv_func_vfork_works" = xyes; then
14976
14977 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14978
14979 else
14980
14981 printf "%s\n" "#define vfork fork" >>confdefs.h
14982
14983 fi
14984 if test "x$ac_cv_func_fork_works" = xyes; then
14985
14986 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
14987
14988 fi
14989
14990
14991   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14992 printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14993 if test ${ac_cv_func_mbrtowc+y}
14994 then :
14995   printf %s "(cached) " >&6
14996 else $as_nop
14997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h.  */
14999 #include <wchar.h>
15000 int
15001 main (void)
15002 {
15003 wchar_t wc;
15004               char const s[] = "";
15005               size_t n = 1;
15006               mbstate_t state;
15007               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
15008   ;
15009   return 0;
15010 }
15011 _ACEOF
15012 if ac_fn_c_try_link "$LINENO"
15013 then :
15014   ac_cv_func_mbrtowc=yes
15015 else $as_nop
15016   ac_cv_func_mbrtowc=no
15017 fi
15018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15019     conftest$ac_exeext conftest.$ac_ext
15020 fi
15021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
15022 printf "%s\n" "$ac_cv_func_mbrtowc" >&6; }
15023   if test $ac_cv_func_mbrtowc = yes; then
15024
15025 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
15026
15027   fi
15028
15029
15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
15031 printf %s "checking for gcc compiler warnings... " >&6; }
15032 # Check whether --enable-warnings was given.
15033 if test ${enable_warnings+y}
15034 then :
15035   enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
15036    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037 printf "%s\n" "no" >&6; }
15038    WARNINGS=
15039 else
15040    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15041 printf "%s\n" "yes" >&6; }
15042    WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
15043        -Wmissing-declarations -Wredundant-decls -Wnested-externs \
15044        -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
15045        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
15046 fi
15047 else $as_nop
15048
15049 if test "$GCC" = yes; then
15050    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15051 printf "%s\n" "yes" >&6; }
15052    WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
15053        -Wmissing-declarations -Wredundant-decls -Wnested-externs \
15054        -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
15055        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
15056 else
15057    WARNINGS=
15058    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15059 printf "%s\n" "no" >&6; }
15060 fi
15061 fi
15062
15063
15064 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
15065 if test "x$ac_cv_func_strndup" = xyes
15066 then :
15067   printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
15068
15069 fi
15070 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15071 if test "x$ac_cv_func_mkstemp" = xyes
15072 then :
15073   printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15074
15075 fi
15076 ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
15077 if test "x$ac_cv_func_mkostemp" = xyes
15078 then :
15079   printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
15080
15081 fi
15082 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
15083 if test "x$ac_cv_func_utimes" = xyes
15084 then :
15085   printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
15086
15087 fi
15088 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
15089 if test "x$ac_cv_func_utime" = xyes
15090 then :
15091   printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
15092
15093 fi
15094 ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
15095 if test "x$ac_cv_func_wcwidth" = xyes
15096 then :
15097   printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h
15098
15099 fi
15100 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
15101 if test "x$ac_cv_func_strtof" = xyes
15102 then :
15103   printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h
15104
15105 fi
15106 ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
15107 if test "x$ac_cv_func_newlocale" = xyes
15108 then :
15109   printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h
15110
15111 fi
15112 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
15113 if test "x$ac_cv_func_uselocale" = xyes
15114 then :
15115   printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
15116
15117 fi
15118 ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale"
15119 if test "x$ac_cv_func_freelocale" = xyes
15120 then :
15121   printf "%s\n" "#define HAVE_FREELOCALE 1" >>confdefs.h
15122
15123 fi
15124 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15125 if test "x$ac_cv_func_memmem" = xyes
15126 then :
15127   printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h
15128
15129 fi
15130 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
15131 if test "x$ac_cv_func_pipe2" = xyes
15132 then :
15133   printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
15134
15135 fi
15136 ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
15137 if test "x$ac_cv_func_posix_spawnp" = xyes
15138 then :
15139   printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
15140
15141 fi
15142
15143
15144 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15145 if test "x$ac_cv_func_getopt_long" = xyes
15146 then :
15147   printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
15148
15149 else $as_nop
15150   case " $LIBOBJS " in
15151   *" getopt_long.$ac_objext "* ) ;;
15152   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
15153  ;;
15154 esac
15155
15156 fi
15157 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
15158 if test "x$ac_cv_func_asprintf" = xyes
15159 then :
15160   printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
15161
15162 else $as_nop
15163   case " $LIBOBJS " in
15164   *" asprintf.$ac_objext "* ) ;;
15165   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
15166  ;;
15167 esac
15168
15169 fi
15170 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
15171 if test "x$ac_cv_func_vasprintf" = xyes
15172 then :
15173   printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
15174
15175 else $as_nop
15176   case " $LIBOBJS " in
15177   *" vasprintf.$ac_objext "* ) ;;
15178   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
15179  ;;
15180 esac
15181
15182 fi
15183 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15184 if test "x$ac_cv_func_strlcpy" = xyes
15185 then :
15186   printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
15187
15188 else $as_nop
15189   case " $LIBOBJS " in
15190   *" strlcpy.$ac_objext "* ) ;;
15191   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
15192  ;;
15193 esac
15194
15195 fi
15196 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
15197 if test "x$ac_cv_func_strlcat" = xyes
15198 then :
15199   printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
15200
15201 else $as_nop
15202   case " $LIBOBJS " in
15203   *" strlcat.$ac_objext "* ) ;;
15204   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
15205  ;;
15206 esac
15207
15208 fi
15209 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
15210 if test "x$ac_cv_func_getline" = xyes
15211 then :
15212   printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
15213
15214 else $as_nop
15215   case " $LIBOBJS " in
15216   *" getline.$ac_objext "* ) ;;
15217   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
15218  ;;
15219 esac
15220
15221 fi
15222 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
15223 if test "x$ac_cv_func_ctime_r" = xyes
15224 then :
15225   printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
15226
15227 else $as_nop
15228   case " $LIBOBJS " in
15229   *" ctime_r.$ac_objext "* ) ;;
15230   *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
15231  ;;
15232 esac
15233
15234 fi
15235 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
15236 if test "x$ac_cv_func_asctime_r" = xyes
15237 then :
15238   printf "%s\n" "#define HAVE_ASCTIME_R 1" >>confdefs.h
15239
15240 else $as_nop
15241   case " $LIBOBJS " in
15242   *" asctime_r.$ac_objext "* ) ;;
15243   *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
15244  ;;
15245 esac
15246
15247 fi
15248 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
15249 if test "x$ac_cv_func_localtime_r" = xyes
15250 then :
15251   printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
15252
15253 else $as_nop
15254   case " $LIBOBJS " in
15255   *" localtime_r.$ac_objext "* ) ;;
15256   *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
15257  ;;
15258 esac
15259
15260 fi
15261 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
15262 if test "x$ac_cv_func_gmtime_r" = xyes
15263 then :
15264   printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
15265
15266 else $as_nop
15267   case " $LIBOBJS " in
15268   *" gmtime_r.$ac_objext "* ) ;;
15269   *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
15270  ;;
15271 esac
15272
15273 fi
15274 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
15275 if test "x$ac_cv_func_pread" = xyes
15276 then :
15277   printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
15278
15279 else $as_nop
15280   case " $LIBOBJS " in
15281   *" pread.$ac_objext "* ) ;;
15282   *) LIBOBJS="$LIBOBJS pread.$ac_objext"
15283  ;;
15284 esac
15285
15286 fi
15287 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
15288 if test "x$ac_cv_func_strcasestr" = xyes
15289 then :
15290   printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
15291
15292 else $as_nop
15293   case " $LIBOBJS " in
15294   *" strcasestr.$ac_objext "* ) ;;
15295   *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
15296  ;;
15297 esac
15298
15299 fi
15300 ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
15301 if test "x$ac_cv_func_fmtcheck" = xyes
15302 then :
15303   printf "%s\n" "#define HAVE_FMTCHECK 1" >>confdefs.h
15304
15305 else $as_nop
15306   case " $LIBOBJS " in
15307   *" fmtcheck.$ac_objext "* ) ;;
15308   *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
15309  ;;
15310 esac
15311
15312 fi
15313 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
15314 if test "x$ac_cv_func_dprintf" = xyes
15315 then :
15316   printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h
15317
15318 else $as_nop
15319   case " $LIBOBJS " in
15320   *" dprintf.$ac_objext "* ) ;;
15321   *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
15322  ;;
15323 esac
15324
15325 fi
15326
15327
15328 if test "$enable_zlib" != "no"; then
15329   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
15330 printf %s "checking for gzopen in -lz... " >&6; }
15331 if test ${ac_cv_lib_z_gzopen+y}
15332 then :
15333   printf %s "(cached) " >&6
15334 else $as_nop
15335   ac_check_lib_save_LIBS=$LIBS
15336 LIBS="-lz  $LIBS"
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h.  */
15339
15340 /* Override any GCC internal prototype to avoid an error.
15341    Use char because int might match the return type of a GCC
15342    builtin and then its argument prototype would still apply.  */
15343 char gzopen ();
15344 int
15345 main (void)
15346 {
15347 return gzopen ();
15348   ;
15349   return 0;
15350 }
15351 _ACEOF
15352 if ac_fn_c_try_link "$LINENO"
15353 then :
15354   ac_cv_lib_z_gzopen=yes
15355 else $as_nop
15356   ac_cv_lib_z_gzopen=no
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15359     conftest$ac_exeext conftest.$ac_ext
15360 LIBS=$ac_check_lib_save_LIBS
15361 fi
15362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
15363 printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
15364 if test "x$ac_cv_lib_z_gzopen" = xyes
15365 then :
15366   printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
15367
15368   LIBS="-lz $LIBS"
15369
15370 fi
15371
15372 fi
15373 if test "$enable_bzlib" != "no"; then
15374   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15375 printf %s "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15376 if test ${ac_cv_lib_bz2_BZ2_bzCompressInit+y}
15377 then :
15378   printf %s "(cached) " >&6
15379 else $as_nop
15380   ac_check_lib_save_LIBS=$LIBS
15381 LIBS="-lbz2  $LIBS"
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h.  */
15384
15385 /* Override any GCC internal prototype to avoid an error.
15386    Use char because int might match the return type of a GCC
15387    builtin and then its argument prototype would still apply.  */
15388 char BZ2_bzCompressInit ();
15389 int
15390 main (void)
15391 {
15392 return BZ2_bzCompressInit ();
15393   ;
15394   return 0;
15395 }
15396 _ACEOF
15397 if ac_fn_c_try_link "$LINENO"
15398 then :
15399   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15400 else $as_nop
15401   ac_cv_lib_bz2_BZ2_bzCompressInit=no
15402 fi
15403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15404     conftest$ac_exeext conftest.$ac_ext
15405 LIBS=$ac_check_lib_save_LIBS
15406 fi
15407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15408 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15409 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes
15410 then :
15411   printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
15412
15413   LIBS="-lbz2 $LIBS"
15414
15415 fi
15416
15417 fi
15418 if test "$enable_xzlib" != "no"; then
15419   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
15420 printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }
15421 if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}
15422 then :
15423   printf %s "(cached) " >&6
15424 else $as_nop
15425   ac_check_lib_save_LIBS=$LIBS
15426 LIBS="-llzma  $LIBS"
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h.  */
15429
15430 /* Override any GCC internal prototype to avoid an error.
15431    Use char because int might match the return type of a GCC
15432    builtin and then its argument prototype would still apply.  */
15433 char lzma_stream_decoder ();
15434 int
15435 main (void)
15436 {
15437 return lzma_stream_decoder ();
15438   ;
15439   return 0;
15440 }
15441 _ACEOF
15442 if ac_fn_c_try_link "$LINENO"
15443 then :
15444   ac_cv_lib_lzma_lzma_stream_decoder=yes
15445 else $as_nop
15446   ac_cv_lib_lzma_lzma_stream_decoder=no
15447 fi
15448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15449     conftest$ac_exeext conftest.$ac_ext
15450 LIBS=$ac_check_lib_save_LIBS
15451 fi
15452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
15453 printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
15454 if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes
15455 then :
15456   printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h
15457
15458   LIBS="-llzma $LIBS"
15459
15460 fi
15461
15462 fi
15463 if test "$enable_libseccomp" != "no"; then
15464     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
15465 printf %s "checking for seccomp_init in -lseccomp... " >&6; }
15466 if test ${ac_cv_lib_seccomp_seccomp_init+y}
15467 then :
15468   printf %s "(cached) " >&6
15469 else $as_nop
15470   ac_check_lib_save_LIBS=$LIBS
15471 LIBS="-lseccomp  $LIBS"
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h.  */
15474
15475 /* Override any GCC internal prototype to avoid an error.
15476    Use char because int might match the return type of a GCC
15477    builtin and then its argument prototype would still apply.  */
15478 char seccomp_init ();
15479 int
15480 main (void)
15481 {
15482 return seccomp_init ();
15483   ;
15484   return 0;
15485 }
15486 _ACEOF
15487 if ac_fn_c_try_link "$LINENO"
15488 then :
15489   ac_cv_lib_seccomp_seccomp_init=yes
15490 else $as_nop
15491   ac_cv_lib_seccomp_seccomp_init=no
15492 fi
15493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15494     conftest$ac_exeext conftest.$ac_ext
15495 LIBS=$ac_check_lib_save_LIBS
15496 fi
15497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
15498 printf "%s\n" "$ac_cv_lib_seccomp_seccomp_init" >&6; }
15499 if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes
15500 then :
15501   printf "%s\n" "#define HAVE_LIBSECCOMP 1" >>confdefs.h
15502
15503   LIBS="-lseccomp $LIBS"
15504
15505 fi
15506
15507 fi
15508 if test "$MINGW" = 1; then
15509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
15510 printf %s "checking for regexec in -lgnurx... " >&6; }
15511 if test ${ac_cv_lib_gnurx_regexec+y}
15512 then :
15513   printf %s "(cached) " >&6
15514 else $as_nop
15515   ac_check_lib_save_LIBS=$LIBS
15516 LIBS="-lgnurx  $LIBS"
15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h.  */
15519
15520 /* Override any GCC internal prototype to avoid an error.
15521    Use char because int might match the return type of a GCC
15522    builtin and then its argument prototype would still apply.  */
15523 char regexec ();
15524 int
15525 main (void)
15526 {
15527 return regexec ();
15528   ;
15529   return 0;
15530 }
15531 _ACEOF
15532 if ac_fn_c_try_link "$LINENO"
15533 then :
15534   ac_cv_lib_gnurx_regexec=yes
15535 else $as_nop
15536   ac_cv_lib_gnurx_regexec=no
15537 fi
15538 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15539     conftest$ac_exeext conftest.$ac_ext
15540 LIBS=$ac_check_lib_save_LIBS
15541 fi
15542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
15543 printf "%s\n" "$ac_cv_lib_gnurx_regexec" >&6; }
15544 if test "x$ac_cv_lib_gnurx_regexec" = xyes
15545 then :
15546   printf "%s\n" "#define HAVE_LIBGNURX 1" >>confdefs.h
15547
15548   LIBS="-lgnurx $LIBS"
15549
15550 else $as_nop
15551   as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
15552 fi
15553
15554 fi
15555
15556  if test "$cross_compiling" = yes; then
15557   IS_CROSS_COMPILE_TRUE=
15558   IS_CROSS_COMPILE_FALSE='#'
15559 else
15560   IS_CROSS_COMPILE_TRUE='#'
15561   IS_CROSS_COMPILE_FALSE=
15562 fi
15563
15564
15565 if test "$enable_zlib" = "yes"; then
15566   if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
15567     as_fn_error $? "zlib support requested but not found" "$LINENO" 5
15568   fi
15569 fi
15570 if  test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
15571
15572 printf "%s\n" "#define ZLIBSUPPORT 1" >>confdefs.h
15573
15574 fi
15575 if test "$enable_bzlib" = "yes"; then
15576   if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
15577     as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
15578   fi
15579 fi
15580 if  test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
15581
15582 printf "%s\n" "#define BZLIBSUPPORT 1" >>confdefs.h
15583
15584 fi
15585 if test "$enable_xzlib" = "yes"; then
15586   if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
15587     as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
15588   fi
15589 fi
15590 if  test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
15591
15592 printf "%s\n" "#define XZLIBSUPPORT 1" >>confdefs.h
15593
15594 fi
15595
15596 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
15597
15598 cat >confcache <<\_ACEOF
15599 # This file is a shell script that caches the results of configure
15600 # tests run on this system so they can be shared between configure
15601 # scripts and configure runs, see configure's option --config-cache.
15602 # It is not useful on other systems.  If it contains results you don't
15603 # want to keep, you may remove or edit it.
15604 #
15605 # config.status only pays attention to the cache file if you give it
15606 # the --recheck option to rerun configure.
15607 #
15608 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15609 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15610 # following values.
15611
15612 _ACEOF
15613
15614 # The following way of writing the cache mishandles newlines in values,
15615 # but we know of no workaround that is simple, portable, and efficient.
15616 # So, we kill variables containing newlines.
15617 # Ultrix sh set writes to stderr and can't be redirected directly,
15618 # and sets the high bit in the cache file unless we assign to the vars.
15619 (
15620   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15621     eval ac_val=\$$ac_var
15622     case $ac_val in #(
15623     *${as_nl}*)
15624       case $ac_var in #(
15625       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15626 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15627       esac
15628       case $ac_var in #(
15629       _ | IFS | as_nl) ;; #(
15630       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15631       *) { eval $ac_var=; unset $ac_var;} ;;
15632       esac ;;
15633     esac
15634   done
15635
15636   (set) 2>&1 |
15637     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15638     *${as_nl}ac_space=\ *)
15639       # `set' does not quote correctly, so add quotes: double-quote
15640       # substitution turns \\\\ into \\, and sed turns \\ into \.
15641       sed -n \
15642         "s/'/'\\\\''/g;
15643           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15644       ;; #(
15645     *)
15646       # `set' quotes correctly as required by POSIX, so do not add quotes.
15647       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15648       ;;
15649     esac |
15650     sort
15651 ) |
15652   sed '
15653      /^ac_cv_env_/b end
15654      t clear
15655      :clear
15656      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15657      t end
15658      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15659      :end' >>confcache
15660 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15661   if test -w "$cache_file"; then
15662     if test "x$cache_file" != "x/dev/null"; then
15663       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15664 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15665       if test ! -f "$cache_file" || test -h "$cache_file"; then
15666         cat confcache >"$cache_file"
15667       else
15668         case $cache_file in #(
15669         */* | ?:*)
15670           mv -f confcache "$cache_file"$$ &&
15671           mv -f "$cache_file"$$ "$cache_file" ;; #(
15672         *)
15673           mv -f confcache "$cache_file" ;;
15674         esac
15675       fi
15676     fi
15677   else
15678     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15679 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15680   fi
15681 fi
15682 rm -f confcache
15683
15684 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15685 # Let make expand exec_prefix.
15686 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15687
15688 DEFS=-DHAVE_CONFIG_H
15689
15690 ac_libobjs=
15691 ac_ltlibobjs=
15692 U=
15693 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15694   # 1. Remove the extension, and $U if already installed.
15695   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15696   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15697   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15698   #    will be set to the directory where LIBOBJS objects are built.
15699   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15700   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15701 done
15702 LIBOBJS=$ac_libobjs
15703
15704 LTLIBOBJS=$ac_ltlibobjs
15705
15706
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15708 printf %s "checking that generated files are newer than configure... " >&6; }
15709    if test -n "$am_sleep_pid"; then
15710      # Hide warnings about reused PIDs.
15711      wait $am_sleep_pid 2>/dev/null
15712    fi
15713    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15714 printf "%s\n" "done" >&6; }
15715  if test -n "$EXEEXT"; then
15716   am__EXEEXT_TRUE=
15717   am__EXEEXT_FALSE='#'
15718 else
15719   am__EXEEXT_TRUE='#'
15720   am__EXEEXT_FALSE=
15721 fi
15722
15723 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
15724   as_fn_error $? "conditional \"MINGW\" was never defined.
15725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15726 fi
15727 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
15728   as_fn_error $? "conditional \"FSECT5\" was never defined.
15729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15730 fi
15731 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15732   as_fn_error $? "conditional \"AMDEP\" was never defined.
15733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15734 fi
15735 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15736   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15738 fi
15739
15740 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
15741   as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
15742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15743 fi
15744
15745 : "${CONFIG_STATUS=./config.status}"
15746 ac_write_fail=0
15747 ac_clean_files_save=$ac_clean_files
15748 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15750 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15751 as_write_fail=0
15752 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15753 #! $SHELL
15754 # Generated by $as_me.
15755 # Run this file to recreate the current configuration.
15756 # Compiler output produced by configure, useful for debugging
15757 # configure, is in config.log if it exists.
15758
15759 debug=false
15760 ac_cs_recheck=false
15761 ac_cs_silent=false
15762
15763 SHELL=\${CONFIG_SHELL-$SHELL}
15764 export SHELL
15765 _ASEOF
15766 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15767 ## -------------------- ##
15768 ## M4sh Initialization. ##
15769 ## -------------------- ##
15770
15771 # Be more Bourne compatible
15772 DUALCASE=1; export DUALCASE # for MKS sh
15773 as_nop=:
15774 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15775 then :
15776   emulate sh
15777   NULLCMD=:
15778   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15779   # is contrary to our usage.  Disable this feature.
15780   alias -g '${1+"$@"}'='"$@"'
15781   setopt NO_GLOB_SUBST
15782 else $as_nop
15783   case `(set -o) 2>/dev/null` in #(
15784   *posix*) :
15785     set -o posix ;; #(
15786   *) :
15787      ;;
15788 esac
15789 fi
15790
15791
15792
15793 # Reset variables that may have inherited troublesome values from
15794 # the environment.
15795
15796 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15797 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15798 # side effect of setting IFS to empty, thus disabling word splitting.)
15799 # Quoting is to prevent editors from complaining about space-tab.
15800 as_nl='
15801 '
15802 export as_nl
15803 IFS=" ""        $as_nl"
15804
15805 PS1='$ '
15806 PS2='> '
15807 PS4='+ '
15808
15809 # Ensure predictable behavior from utilities with locale-dependent output.
15810 LC_ALL=C
15811 export LC_ALL
15812 LANGUAGE=C
15813 export LANGUAGE
15814
15815 # We cannot yet rely on "unset" to work, but we need these variables
15816 # to be unset--not just set to an empty or harmless value--now, to
15817 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
15818 # also avoids known problems related to "unset" and subshell syntax
15819 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15820 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15821 do eval test \${$as_var+y} \
15822   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15823 done
15824
15825 # Ensure that fds 0, 1, and 2 are open.
15826 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15827 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15828 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
15829
15830 # The user is always right.
15831 if ${PATH_SEPARATOR+false} :; then
15832   PATH_SEPARATOR=:
15833   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15834     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15835       PATH_SEPARATOR=';'
15836   }
15837 fi
15838
15839
15840 # Find who we are.  Look in the path if we contain no directory separator.
15841 as_myself=
15842 case $0 in #((
15843   *[\\/]* ) as_myself=$0 ;;
15844   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15845 for as_dir in $PATH
15846 do
15847   IFS=$as_save_IFS
15848   case $as_dir in #(((
15849     '') as_dir=./ ;;
15850     */) ;;
15851     *) as_dir=$as_dir/ ;;
15852   esac
15853     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15854   done
15855 IFS=$as_save_IFS
15856
15857      ;;
15858 esac
15859 # We did not find ourselves, most probably we were run as `sh COMMAND'
15860 # in which case we are not to be found in the path.
15861 if test "x$as_myself" = x; then
15862   as_myself=$0
15863 fi
15864 if test ! -f "$as_myself"; then
15865   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15866   exit 1
15867 fi
15868
15869
15870
15871 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15872 # ----------------------------------------
15873 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15874 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15875 # script with STATUS, using 1 if that was 0.
15876 as_fn_error ()
15877 {
15878   as_status=$1; test $as_status -eq 0 && as_status=1
15879   if test "$4"; then
15880     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15881     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15882   fi
15883   printf "%s\n" "$as_me: error: $2" >&2
15884   as_fn_exit $as_status
15885 } # as_fn_error
15886
15887
15888
15889 # as_fn_set_status STATUS
15890 # -----------------------
15891 # Set $? to STATUS, without forking.
15892 as_fn_set_status ()
15893 {
15894   return $1
15895 } # as_fn_set_status
15896
15897 # as_fn_exit STATUS
15898 # -----------------
15899 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15900 as_fn_exit ()
15901 {
15902   set +e
15903   as_fn_set_status $1
15904   exit $1
15905 } # as_fn_exit
15906
15907 # as_fn_unset VAR
15908 # ---------------
15909 # Portably unset VAR.
15910 as_fn_unset ()
15911 {
15912   { eval $1=; unset $1;}
15913 }
15914 as_unset=as_fn_unset
15915
15916 # as_fn_append VAR VALUE
15917 # ----------------------
15918 # Append the text in VALUE to the end of the definition contained in VAR. Take
15919 # advantage of any shell optimizations that allow amortized linear growth over
15920 # repeated appends, instead of the typical quadratic growth present in naive
15921 # implementations.
15922 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15923 then :
15924   eval 'as_fn_append ()
15925   {
15926     eval $1+=\$2
15927   }'
15928 else $as_nop
15929   as_fn_append ()
15930   {
15931     eval $1=\$$1\$2
15932   }
15933 fi # as_fn_append
15934
15935 # as_fn_arith ARG...
15936 # ------------------
15937 # Perform arithmetic evaluation on the ARGs, and store the result in the
15938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15939 # must be portable across $(()) and expr.
15940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15941 then :
15942   eval 'as_fn_arith ()
15943   {
15944     as_val=$(( $* ))
15945   }'
15946 else $as_nop
15947   as_fn_arith ()
15948   {
15949     as_val=`expr "$@" || test $? -eq 1`
15950   }
15951 fi # as_fn_arith
15952
15953
15954 if expr a : '\(a\)' >/dev/null 2>&1 &&
15955    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15956   as_expr=expr
15957 else
15958   as_expr=false
15959 fi
15960
15961 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15962   as_basename=basename
15963 else
15964   as_basename=false
15965 fi
15966
15967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15968   as_dirname=dirname
15969 else
15970   as_dirname=false
15971 fi
15972
15973 as_me=`$as_basename -- "$0" ||
15974 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15975          X"$0" : 'X\(//\)$' \| \
15976          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15977 printf "%s\n" X/"$0" |
15978     sed '/^.*\/\([^/][^/]*\)\/*$/{
15979             s//\1/
15980             q
15981           }
15982           /^X\/\(\/\/\)$/{
15983             s//\1/
15984             q
15985           }
15986           /^X\/\(\/\).*/{
15987             s//\1/
15988             q
15989           }
15990           s/.*/./; q'`
15991
15992 # Avoid depending upon Character Ranges.
15993 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15994 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15995 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15996 as_cr_digits='0123456789'
15997 as_cr_alnum=$as_cr_Letters$as_cr_digits
15998
15999
16000 # Determine whether it's possible to make 'echo' print without a newline.
16001 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16002 # for compatibility with existing Makefiles.
16003 ECHO_C= ECHO_N= ECHO_T=
16004 case `echo -n x` in #(((((
16005 -n*)
16006   case `echo 'xy\c'` in
16007   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16008   xy)  ECHO_C='\c';;
16009   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16010        ECHO_T=' ';;
16011   esac;;
16012 *)
16013   ECHO_N='-n';;
16014 esac
16015
16016 # For backward compatibility with old third-party macros, we provide
16017 # the shell variables $as_echo and $as_echo_n.  New code should use
16018 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16019 as_echo='printf %s\n'
16020 as_echo_n='printf %s'
16021
16022 rm -f conf$$ conf$$.exe conf$$.file
16023 if test -d conf$$.dir; then
16024   rm -f conf$$.dir/conf$$.file
16025 else
16026   rm -f conf$$.dir
16027   mkdir conf$$.dir 2>/dev/null
16028 fi
16029 if (echo >conf$$.file) 2>/dev/null; then
16030   if ln -s conf$$.file conf$$ 2>/dev/null; then
16031     as_ln_s='ln -s'
16032     # ... but there are two gotchas:
16033     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16034     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16035     # In both cases, we have to default to `cp -pR'.
16036     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16037       as_ln_s='cp -pR'
16038   elif ln conf$$.file conf$$ 2>/dev/null; then
16039     as_ln_s=ln
16040   else
16041     as_ln_s='cp -pR'
16042   fi
16043 else
16044   as_ln_s='cp -pR'
16045 fi
16046 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16047 rmdir conf$$.dir 2>/dev/null
16048
16049
16050 # as_fn_mkdir_p
16051 # -------------
16052 # Create "$as_dir" as a directory, including parents if necessary.
16053 as_fn_mkdir_p ()
16054 {
16055
16056   case $as_dir in #(
16057   -*) as_dir=./$as_dir;;
16058   esac
16059   test -d "$as_dir" || eval $as_mkdir_p || {
16060     as_dirs=
16061     while :; do
16062       case $as_dir in #(
16063       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16064       *) as_qdir=$as_dir;;
16065       esac
16066       as_dirs="'$as_qdir' $as_dirs"
16067       as_dir=`$as_dirname -- "$as_dir" ||
16068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16069          X"$as_dir" : 'X\(//\)[^/]' \| \
16070          X"$as_dir" : 'X\(//\)$' \| \
16071          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16072 printf "%s\n" X"$as_dir" |
16073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16074             s//\1/
16075             q
16076           }
16077           /^X\(\/\/\)[^/].*/{
16078             s//\1/
16079             q
16080           }
16081           /^X\(\/\/\)$/{
16082             s//\1/
16083             q
16084           }
16085           /^X\(\/\).*/{
16086             s//\1/
16087             q
16088           }
16089           s/.*/./; q'`
16090       test -d "$as_dir" && break
16091     done
16092     test -z "$as_dirs" || eval "mkdir $as_dirs"
16093   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16094
16095
16096 } # as_fn_mkdir_p
16097 if mkdir -p . 2>/dev/null; then
16098   as_mkdir_p='mkdir -p "$as_dir"'
16099 else
16100   test -d ./-p && rmdir ./-p
16101   as_mkdir_p=false
16102 fi
16103
16104
16105 # as_fn_executable_p FILE
16106 # -----------------------
16107 # Test if FILE is an executable regular file.
16108 as_fn_executable_p ()
16109 {
16110   test -f "$1" && test -x "$1"
16111 } # as_fn_executable_p
16112 as_test_x='test -x'
16113 as_executable_p=as_fn_executable_p
16114
16115 # Sed expression to map a string onto a valid CPP name.
16116 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16117
16118 # Sed expression to map a string onto a valid variable name.
16119 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16120
16121
16122 exec 6>&1
16123 ## ----------------------------------- ##
16124 ## Main body of $CONFIG_STATUS script. ##
16125 ## ----------------------------------- ##
16126 _ASEOF
16127 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16128
16129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16130 # Save the log message, to keep $0 and so on meaningful, and to
16131 # report actual input values of CONFIG_FILES etc. instead of their
16132 # values after options handling.
16133 ac_log="
16134 This file was extended by file $as_me 5.43, which was
16135 generated by GNU Autoconf 2.71.  Invocation command line was
16136
16137   CONFIG_FILES    = $CONFIG_FILES
16138   CONFIG_HEADERS  = $CONFIG_HEADERS
16139   CONFIG_LINKS    = $CONFIG_LINKS
16140   CONFIG_COMMANDS = $CONFIG_COMMANDS
16141   $ $0 $@
16142
16143 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16144 "
16145
16146 _ACEOF
16147
16148 case $ac_config_files in *"
16149 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16150 esac
16151
16152 case $ac_config_headers in *"
16153 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16154 esac
16155
16156
16157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16158 # Files that config.status was made for.
16159 config_files="$ac_config_files"
16160 config_headers="$ac_config_headers"
16161 config_commands="$ac_config_commands"
16162
16163 _ACEOF
16164
16165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16166 ac_cs_usage="\
16167 \`$as_me' instantiates files and other configuration actions
16168 from templates according to the current configuration.  Unless the files
16169 and actions are specified as TAGs, all are instantiated by default.
16170
16171 Usage: $0 [OPTION]... [TAG]...
16172
16173   -h, --help       print this help, then exit
16174   -V, --version    print version number and configuration settings, then exit
16175       --config     print configuration, then exit
16176   -q, --quiet, --silent
16177                    do not print progress messages
16178   -d, --debug      don't remove temporary files
16179       --recheck    update $as_me by reconfiguring in the same conditions
16180       --file=FILE[:TEMPLATE]
16181                    instantiate the configuration file FILE
16182       --header=FILE[:TEMPLATE]
16183                    instantiate the configuration header FILE
16184
16185 Configuration files:
16186 $config_files
16187
16188 Configuration headers:
16189 $config_headers
16190
16191 Configuration commands:
16192 $config_commands
16193
16194 Report bugs to <christos@astron.com>."
16195
16196 _ACEOF
16197 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16198 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16200 ac_cs_config='$ac_cs_config_escaped'
16201 ac_cs_version="\\
16202 file config.status 5.43
16203 configured by $0, generated by GNU Autoconf 2.71,
16204   with options \\"\$ac_cs_config\\"
16205
16206 Copyright (C) 2021 Free Software Foundation, Inc.
16207 This config.status script is free software; the Free Software Foundation
16208 gives unlimited permission to copy, distribute and modify it."
16209
16210 ac_pwd='$ac_pwd'
16211 srcdir='$srcdir'
16212 INSTALL='$INSTALL'
16213 MKDIR_P='$MKDIR_P'
16214 AWK='$AWK'
16215 test -n "\$AWK" || AWK=awk
16216 _ACEOF
16217
16218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16219 # The default lists apply if the user does not specify any file.
16220 ac_need_defaults=:
16221 while test $# != 0
16222 do
16223   case $1 in
16224   --*=?*)
16225     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16226     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16227     ac_shift=:
16228     ;;
16229   --*=)
16230     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16231     ac_optarg=
16232     ac_shift=:
16233     ;;
16234   *)
16235     ac_option=$1
16236     ac_optarg=$2
16237     ac_shift=shift
16238     ;;
16239   esac
16240
16241   case $ac_option in
16242   # Handling of the options.
16243   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16244     ac_cs_recheck=: ;;
16245   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16246     printf "%s\n" "$ac_cs_version"; exit ;;
16247   --config | --confi | --conf | --con | --co | --c )
16248     printf "%s\n" "$ac_cs_config"; exit ;;
16249   --debug | --debu | --deb | --de | --d | -d )
16250     debug=: ;;
16251   --file | --fil | --fi | --f )
16252     $ac_shift
16253     case $ac_optarg in
16254     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16255     '') as_fn_error $? "missing file argument" ;;
16256     esac
16257     as_fn_append CONFIG_FILES " '$ac_optarg'"
16258     ac_need_defaults=false;;
16259   --header | --heade | --head | --hea )
16260     $ac_shift
16261     case $ac_optarg in
16262     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16263     esac
16264     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16265     ac_need_defaults=false;;
16266   --he | --h)
16267     # Conflict between --help and --header
16268     as_fn_error $? "ambiguous option: \`$1'
16269 Try \`$0 --help' for more information.";;
16270   --help | --hel | -h )
16271     printf "%s\n" "$ac_cs_usage"; exit ;;
16272   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16273   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16274     ac_cs_silent=: ;;
16275
16276   # This is an error.
16277   -*) as_fn_error $? "unrecognized option: \`$1'
16278 Try \`$0 --help' for more information." ;;
16279
16280   *) as_fn_append ac_config_targets " $1"
16281      ac_need_defaults=false ;;
16282
16283   esac
16284   shift
16285 done
16286
16287 ac_configure_extra_args=
16288
16289 if $ac_cs_silent; then
16290   exec 6>/dev/null
16291   ac_configure_extra_args="$ac_configure_extra_args --silent"
16292 fi
16293
16294 _ACEOF
16295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296 if \$ac_cs_recheck; then
16297   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16298   shift
16299   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16300   CONFIG_SHELL='$SHELL'
16301   export CONFIG_SHELL
16302   exec "\$@"
16303 fi
16304
16305 _ACEOF
16306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16307 exec 5>>config.log
16308 {
16309   echo
16310   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16311 ## Running $as_me. ##
16312 _ASBOX
16313   printf "%s\n" "$ac_log"
16314 } >&5
16315
16316 _ACEOF
16317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16318 #
16319 # INIT-COMMANDS
16320 #
16321 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16322
16323
16324 # The HP-UX ksh and POSIX shell print the target directory to stdout
16325 # if CDPATH is set.
16326 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16327
16328 sed_quote_subst='$sed_quote_subst'
16329 double_quote_subst='$double_quote_subst'
16330 delay_variable_subst='$delay_variable_subst'
16331 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16332 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16333 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16334 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16335 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16336 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16337 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16338 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16339 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16340 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16341 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16342 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16343 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16344 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16345 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16346 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16347 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16348 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16349 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16350 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16351 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16352 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16353 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16354 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16355 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16356 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16357 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16358 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16359 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16360 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16361 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16362 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16363 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16364 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16365 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16366 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16367 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16368 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16369 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16370 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16371 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16372 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16373 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16374 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16375 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16376 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16377 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16378 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16379 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16380 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16381 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16382 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16383 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16384 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16385 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16386 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16387 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16388 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16389 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"`'
16390 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16391 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16392 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16393 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16394 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16395 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16396 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16397 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16398 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16399 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16400 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16401 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16402 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16403 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16404 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16405 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16406 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16407 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16408 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16409 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16410 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16411 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16412 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16413 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16414 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16415 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16416 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16417 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16418 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16419 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16420 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16421 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16422 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16423 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16424 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16425 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16426 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16427 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16428 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16429 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16430 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16431 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16432 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16433 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16434 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16435 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16436 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16437 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16438 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16439 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16440 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16441 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16442 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16443 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16444 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16445 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16446 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16447 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16448 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16449 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16450 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16451 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16452 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16453 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16454 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16455 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16456 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16457 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16458 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16459 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16460 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16461 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16462 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16463 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16464 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16465 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16466
16467 LTCC='$LTCC'
16468 LTCFLAGS='$LTCFLAGS'
16469 compiler='$compiler_DEFAULT'
16470
16471 # A function that is used when there is no print builtin or printf.
16472 func_fallback_echo ()
16473 {
16474   eval 'cat <<_LTECHO_EOF
16475 \$1
16476 _LTECHO_EOF'
16477 }
16478
16479 # Quote evaled strings.
16480 for var in SHELL \
16481 ECHO \
16482 PATH_SEPARATOR \
16483 SED \
16484 GREP \
16485 EGREP \
16486 FGREP \
16487 LD \
16488 NM \
16489 LN_S \
16490 lt_SP2NL \
16491 lt_NL2SP \
16492 reload_flag \
16493 OBJDUMP \
16494 deplibs_check_method \
16495 file_magic_cmd \
16496 file_magic_glob \
16497 want_nocaseglob \
16498 DLLTOOL \
16499 sharedlib_from_linklib_cmd \
16500 AR \
16501 AR_FLAGS \
16502 archiver_list_spec \
16503 STRIP \
16504 RANLIB \
16505 CC \
16506 CFLAGS \
16507 compiler \
16508 lt_cv_sys_global_symbol_pipe \
16509 lt_cv_sys_global_symbol_to_cdecl \
16510 lt_cv_sys_global_symbol_to_import \
16511 lt_cv_sys_global_symbol_to_c_name_address \
16512 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16513 lt_cv_nm_interface \
16514 nm_file_list_spec \
16515 lt_cv_truncate_bin \
16516 lt_prog_compiler_no_builtin_flag \
16517 lt_prog_compiler_pic \
16518 lt_prog_compiler_wl \
16519 lt_prog_compiler_static \
16520 lt_cv_prog_compiler_c_o \
16521 need_locks \
16522 MANIFEST_TOOL \
16523 DSYMUTIL \
16524 NMEDIT \
16525 LIPO \
16526 OTOOL \
16527 OTOOL64 \
16528 shrext_cmds \
16529 export_dynamic_flag_spec \
16530 whole_archive_flag_spec \
16531 compiler_needs_object \
16532 with_gnu_ld \
16533 allow_undefined_flag \
16534 no_undefined_flag \
16535 hardcode_libdir_flag_spec \
16536 hardcode_libdir_separator \
16537 exclude_expsyms \
16538 include_expsyms \
16539 file_list_spec \
16540 variables_saved_for_relink \
16541 libname_spec \
16542 library_names_spec \
16543 soname_spec \
16544 install_override_mode \
16545 finish_eval \
16546 old_striplib \
16547 striplib; do
16548     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16549     *[\\\\\\\`\\"\\\$]*)
16550       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16551       ;;
16552     *)
16553       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16554       ;;
16555     esac
16556 done
16557
16558 # Double-quote double-evaled strings.
16559 for var in reload_cmds \
16560 old_postinstall_cmds \
16561 old_postuninstall_cmds \
16562 old_archive_cmds \
16563 extract_expsyms_cmds \
16564 old_archive_from_new_cmds \
16565 old_archive_from_expsyms_cmds \
16566 archive_cmds \
16567 archive_expsym_cmds \
16568 module_cmds \
16569 module_expsym_cmds \
16570 export_symbols_cmds \
16571 prelink_cmds \
16572 postlink_cmds \
16573 postinstall_cmds \
16574 postuninstall_cmds \
16575 finish_cmds \
16576 sys_lib_search_path_spec \
16577 configure_time_dlsearch_path \
16578 configure_time_lt_sys_library_path; do
16579     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16580     *[\\\\\\\`\\"\\\$]*)
16581       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16582       ;;
16583     *)
16584       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16585       ;;
16586     esac
16587 done
16588
16589 ac_aux_dir='$ac_aux_dir'
16590
16591 # See if we are running on zsh, and set the options that allow our
16592 # commands through without removal of \ escapes INIT.
16593 if test -n "\${ZSH_VERSION+set}"; then
16594    setopt NO_GLOB_SUBST
16595 fi
16596
16597
16598     PACKAGE='$PACKAGE'
16599     VERSION='$VERSION'
16600     RM='$RM'
16601     ofile='$ofile'
16602
16603
16604
16605
16606 _ACEOF
16607
16608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16609
16610 # Handling of arguments.
16611 for ac_config_target in $ac_config_targets
16612 do
16613   case $ac_config_target in
16614     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16615     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16616     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16617     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16618     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16619     "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
16620     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16621     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16622     "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16623     "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
16624
16625   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16626   esac
16627 done
16628
16629
16630 # If the user did not use the arguments to specify the items to instantiate,
16631 # then the envvar interface is used.  Set only those that are not.
16632 # We use the long form for the default assignment because of an extremely
16633 # bizarre bug on SunOS 4.1.3.
16634 if $ac_need_defaults; then
16635   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16636   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16637   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16638 fi
16639
16640 # Have a temporary directory for convenience.  Make it in the build tree
16641 # simply because there is no reason against having it here, and in addition,
16642 # creating and moving files from /tmp can sometimes cause problems.
16643 # Hook for its removal unless debugging.
16644 # Note that there is a small window in which the directory will not be cleaned:
16645 # after its creation but before its name has been assigned to `$tmp'.
16646 $debug ||
16647 {
16648   tmp= ac_tmp=
16649   trap 'exit_status=$?
16650   : "${ac_tmp:=$tmp}"
16651   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16652 ' 0
16653   trap 'as_fn_exit 1' 1 2 13 15
16654 }
16655 # Create a (secure) tmp directory for tmp files.
16656
16657 {
16658   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16659   test -d "$tmp"
16660 }  ||
16661 {
16662   tmp=./conf$$-$RANDOM
16663   (umask 077 && mkdir "$tmp")
16664 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16665 ac_tmp=$tmp
16666
16667 # Set up the scripts for CONFIG_FILES section.
16668 # No need to generate them if there are no CONFIG_FILES.
16669 # This happens for instance with `./config.status config.h'.
16670 if test -n "$CONFIG_FILES"; then
16671
16672
16673 ac_cr=`echo X | tr X '\015'`
16674 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16675 # But we know of no other shell where ac_cr would be empty at this
16676 # point, so we can use a bashism as a fallback.
16677 if test "x$ac_cr" = x; then
16678   eval ac_cr=\$\'\\r\'
16679 fi
16680 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16681 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16682   ac_cs_awk_cr='\\r'
16683 else
16684   ac_cs_awk_cr=$ac_cr
16685 fi
16686
16687 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16688 _ACEOF
16689
16690
16691 {
16692   echo "cat >conf$$subs.awk <<_ACEOF" &&
16693   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16694   echo "_ACEOF"
16695 } >conf$$subs.sh ||
16696   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16697 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16698 ac_delim='%!_!# '
16699 for ac_last_try in false false false false false :; do
16700   . ./conf$$subs.sh ||
16701     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16702
16703   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16704   if test $ac_delim_n = $ac_delim_num; then
16705     break
16706   elif $ac_last_try; then
16707     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16708   else
16709     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16710   fi
16711 done
16712 rm -f conf$$subs.sh
16713
16714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16715 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16716 _ACEOF
16717 sed -n '
16718 h
16719 s/^/S["/; s/!.*/"]=/
16720 p
16721 g
16722 s/^[^!]*!//
16723 :repl
16724 t repl
16725 s/'"$ac_delim"'$//
16726 t delim
16727 :nl
16728 h
16729 s/\(.\{148\}\)..*/\1/
16730 t more1
16731 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16732 p
16733 n
16734 b repl
16735 :more1
16736 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16737 p
16738 g
16739 s/.\{148\}//
16740 t nl
16741 :delim
16742 h
16743 s/\(.\{148\}\)..*/\1/
16744 t more2
16745 s/["\\]/\\&/g; s/^/"/; s/$/"/
16746 p
16747 b
16748 :more2
16749 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16750 p
16751 g
16752 s/.\{148\}//
16753 t delim
16754 ' <conf$$subs.awk | sed '
16755 /^[^""]/{
16756   N
16757   s/\n//
16758 }
16759 ' >>$CONFIG_STATUS || ac_write_fail=1
16760 rm -f conf$$subs.awk
16761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16762 _ACAWK
16763 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16764   for (key in S) S_is_set[key] = 1
16765   FS = "\a"
16766
16767 }
16768 {
16769   line = $ 0
16770   nfields = split(line, field, "@")
16771   substed = 0
16772   len = length(field[1])
16773   for (i = 2; i < nfields; i++) {
16774     key = field[i]
16775     keylen = length(key)
16776     if (S_is_set[key]) {
16777       value = S[key]
16778       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16779       len += length(value) + length(field[++i])
16780       substed = 1
16781     } else
16782       len += 1 + keylen
16783   }
16784
16785   print line
16786 }
16787
16788 _ACAWK
16789 _ACEOF
16790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16791 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16792   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16793 else
16794   cat
16795 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16796   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16797 _ACEOF
16798
16799 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16800 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16801 # trailing colons and then remove the whole line if VPATH becomes empty
16802 # (actually we leave an empty line to preserve line numbers).
16803 if test "x$srcdir" = x.; then
16804   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16805 h
16806 s///
16807 s/^/:/
16808 s/[      ]*$/:/
16809 s/:\$(srcdir):/:/g
16810 s/:\${srcdir}:/:/g
16811 s/:@srcdir@:/:/g
16812 s/^:*//
16813 s/:*$//
16814 x
16815 s/\(=[   ]*\).*/\1/
16816 G
16817 s/\n//
16818 s/^[^=]*=[       ]*$//
16819 }'
16820 fi
16821
16822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16823 fi # test -n "$CONFIG_FILES"
16824
16825 # Set up the scripts for CONFIG_HEADERS section.
16826 # No need to generate them if there are no CONFIG_HEADERS.
16827 # This happens for instance with `./config.status Makefile'.
16828 if test -n "$CONFIG_HEADERS"; then
16829 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16830 BEGIN {
16831 _ACEOF
16832
16833 # Transform confdefs.h into an awk script `defines.awk', embedded as
16834 # here-document in config.status, that substitutes the proper values into
16835 # config.h.in to produce config.h.
16836
16837 # Create a delimiter string that does not exist in confdefs.h, to ease
16838 # handling of long lines.
16839 ac_delim='%!_!# '
16840 for ac_last_try in false false :; do
16841   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16842   if test -z "$ac_tt"; then
16843     break
16844   elif $ac_last_try; then
16845     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16846   else
16847     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16848   fi
16849 done
16850
16851 # For the awk script, D is an array of macro values keyed by name,
16852 # likewise P contains macro parameters if any.  Preserve backslash
16853 # newline sequences.
16854
16855 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16856 sed -n '
16857 s/.\{148\}/&'"$ac_delim"'/g
16858 t rset
16859 :rset
16860 s/^[     ]*#[    ]*define[       ][      ]*/ /
16861 t def
16862 d
16863 :def
16864 s/\\$//
16865 t bsnl
16866 s/["\\]/\\&/g
16867 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16868 D["\1"]=" \3"/p
16869 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16870 d
16871 :bsnl
16872 s/["\\]/\\&/g
16873 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16874 D["\1"]=" \3\\\\\\n"\\/p
16875 t cont
16876 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16877 t cont
16878 d
16879 :cont
16880 n
16881 s/.\{148\}/&'"$ac_delim"'/g
16882 t clear
16883 :clear
16884 s/\\$//
16885 t bsnlc
16886 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16887 d
16888 :bsnlc
16889 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16890 b cont
16891 ' <confdefs.h | sed '
16892 s/'"$ac_delim"'/"\\\
16893 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16894
16895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16896   for (key in D) D_is_set[key] = 1
16897   FS = "\a"
16898 }
16899 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16900   line = \$ 0
16901   split(line, arg, " ")
16902   if (arg[1] == "#") {
16903     defundef = arg[2]
16904     mac1 = arg[3]
16905   } else {
16906     defundef = substr(arg[1], 2)
16907     mac1 = arg[2]
16908   }
16909   split(mac1, mac2, "(") #)
16910   macro = mac2[1]
16911   prefix = substr(line, 1, index(line, defundef) - 1)
16912   if (D_is_set[macro]) {
16913     # Preserve the white space surrounding the "#".
16914     print prefix "define", macro P[macro] D[macro]
16915     next
16916   } else {
16917     # Replace #undef with comments.  This is necessary, for example,
16918     # in the case of _POSIX_SOURCE, which is predefined and required
16919     # on some systems where configure will not decide to define it.
16920     if (defundef == "undef") {
16921       print "/*", prefix defundef, macro, "*/"
16922       next
16923     }
16924   }
16925 }
16926 { print }
16927 _ACAWK
16928 _ACEOF
16929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16930   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16931 fi # test -n "$CONFIG_HEADERS"
16932
16933
16934 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16935 shift
16936 for ac_tag
16937 do
16938   case $ac_tag in
16939   :[FHLC]) ac_mode=$ac_tag; continue;;
16940   esac
16941   case $ac_mode$ac_tag in
16942   :[FHL]*:*);;
16943   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16944   :[FH]-) ac_tag=-:-;;
16945   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16946   esac
16947   ac_save_IFS=$IFS
16948   IFS=:
16949   set x $ac_tag
16950   IFS=$ac_save_IFS
16951   shift
16952   ac_file=$1
16953   shift
16954
16955   case $ac_mode in
16956   :L) ac_source=$1;;
16957   :[FH])
16958     ac_file_inputs=
16959     for ac_f
16960     do
16961       case $ac_f in
16962       -) ac_f="$ac_tmp/stdin";;
16963       *) # Look for the file first in the build tree, then in the source tree
16964          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16965          # because $ac_f cannot contain `:'.
16966          test -f "$ac_f" ||
16967            case $ac_f in
16968            [\\/$]*) false;;
16969            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16970            esac ||
16971            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16972       esac
16973       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16974       as_fn_append ac_file_inputs " '$ac_f'"
16975     done
16976
16977     # Let's still pretend it is `configure' which instantiates (i.e., don't
16978     # use $as_me), people would be surprised to read:
16979     #    /* config.h.  Generated by config.status.  */
16980     configure_input='Generated from '`
16981           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16982         `' by configure.'
16983     if test x"$ac_file" != x-; then
16984       configure_input="$ac_file.  $configure_input"
16985       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16986 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16987     fi
16988     # Neutralize special characters interpreted by sed in replacement strings.
16989     case $configure_input in #(
16990     *\&* | *\|* | *\\* )
16991        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16992        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16993     *) ac_sed_conf_input=$configure_input;;
16994     esac
16995
16996     case $ac_tag in
16997     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16998       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16999     esac
17000     ;;
17001   esac
17002
17003   ac_dir=`$as_dirname -- "$ac_file" ||
17004 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17005          X"$ac_file" : 'X\(//\)[^/]' \| \
17006          X"$ac_file" : 'X\(//\)$' \| \
17007          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17008 printf "%s\n" X"$ac_file" |
17009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17010             s//\1/
17011             q
17012           }
17013           /^X\(\/\/\)[^/].*/{
17014             s//\1/
17015             q
17016           }
17017           /^X\(\/\/\)$/{
17018             s//\1/
17019             q
17020           }
17021           /^X\(\/\).*/{
17022             s//\1/
17023             q
17024           }
17025           s/.*/./; q'`
17026   as_dir="$ac_dir"; as_fn_mkdir_p
17027   ac_builddir=.
17028
17029 case "$ac_dir" in
17030 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17031 *)
17032   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17033   # A ".." for each directory in $ac_dir_suffix.
17034   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17035   case $ac_top_builddir_sub in
17036   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17037   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17038   esac ;;
17039 esac
17040 ac_abs_top_builddir=$ac_pwd
17041 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17042 # for backward compatibility:
17043 ac_top_builddir=$ac_top_build_prefix
17044
17045 case $srcdir in
17046   .)  # We are building in place.
17047     ac_srcdir=.
17048     ac_top_srcdir=$ac_top_builddir_sub
17049     ac_abs_top_srcdir=$ac_pwd ;;
17050   [\\/]* | ?:[\\/]* )  # Absolute name.
17051     ac_srcdir=$srcdir$ac_dir_suffix;
17052     ac_top_srcdir=$srcdir
17053     ac_abs_top_srcdir=$srcdir ;;
17054   *) # Relative name.
17055     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17056     ac_top_srcdir=$ac_top_build_prefix$srcdir
17057     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17058 esac
17059 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17060
17061
17062   case $ac_mode in
17063   :F)
17064   #
17065   # CONFIG_FILE
17066   #
17067
17068   case $INSTALL in
17069   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17070   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17071   esac
17072   ac_MKDIR_P=$MKDIR_P
17073   case $MKDIR_P in
17074   [\\/$]* | ?:[\\/]* ) ;;
17075   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17076   esac
17077 _ACEOF
17078
17079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17080 # If the template does not know about datarootdir, expand it.
17081 # FIXME: This hack should be removed a few years after 2.60.
17082 ac_datarootdir_hack=; ac_datarootdir_seen=
17083 ac_sed_dataroot='
17084 /datarootdir/ {
17085   p
17086   q
17087 }
17088 /@datadir@/p
17089 /@docdir@/p
17090 /@infodir@/p
17091 /@localedir@/p
17092 /@mandir@/p'
17093 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17094 *datarootdir*) ac_datarootdir_seen=yes;;
17095 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17096   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17097 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17098 _ACEOF
17099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17100   ac_datarootdir_hack='
17101   s&@datadir@&$datadir&g
17102   s&@docdir@&$docdir&g
17103   s&@infodir@&$infodir&g
17104   s&@localedir@&$localedir&g
17105   s&@mandir@&$mandir&g
17106   s&\\\${datarootdir}&$datarootdir&g' ;;
17107 esac
17108 _ACEOF
17109
17110 # Neutralize VPATH when `$srcdir' = `.'.
17111 # Shell code in configure.ac might set extrasub.
17112 # FIXME: do we really want to maintain this feature?
17113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17114 ac_sed_extra="$ac_vpsub
17115 $extrasub
17116 _ACEOF
17117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17118 :t
17119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17120 s|@configure_input@|$ac_sed_conf_input|;t t
17121 s&@top_builddir@&$ac_top_builddir_sub&;t t
17122 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17123 s&@srcdir@&$ac_srcdir&;t t
17124 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17125 s&@top_srcdir@&$ac_top_srcdir&;t t
17126 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17127 s&@builddir@&$ac_builddir&;t t
17128 s&@abs_builddir@&$ac_abs_builddir&;t t
17129 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17130 s&@INSTALL@&$ac_INSTALL&;t t
17131 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17132 $ac_datarootdir_hack
17133 "
17134 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17135   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17136
17137 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17138   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17139   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17140       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17141   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17142 which seems to be undefined.  Please make sure it is defined" >&5
17143 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17144 which seems to be undefined.  Please make sure it is defined" >&2;}
17145
17146   rm -f "$ac_tmp/stdin"
17147   case $ac_file in
17148   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17149   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17150   esac \
17151   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17152  ;;
17153   :H)
17154   #
17155   # CONFIG_HEADER
17156   #
17157   if test x"$ac_file" != x-; then
17158     {
17159       printf "%s\n" "/* $configure_input  */" >&1 \
17160       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17161     } >"$ac_tmp/config.h" \
17162       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17163     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17164       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17165 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17166     else
17167       rm -f "$ac_file"
17168       mv "$ac_tmp/config.h" "$ac_file" \
17169         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17170     fi
17171   else
17172     printf "%s\n" "/* $configure_input  */" >&1 \
17173       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17174       || as_fn_error $? "could not create -" "$LINENO" 5
17175   fi
17176 # Compute "$ac_file"'s index in $config_headers.
17177 _am_arg="$ac_file"
17178 _am_stamp_count=1
17179 for _am_header in $config_headers :; do
17180   case $_am_header in
17181     $_am_arg | $_am_arg:* )
17182       break ;;
17183     * )
17184       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17185   esac
17186 done
17187 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17188 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17189          X"$_am_arg" : 'X\(//\)[^/]' \| \
17190          X"$_am_arg" : 'X\(//\)$' \| \
17191          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17192 printf "%s\n" X"$_am_arg" |
17193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17194             s//\1/
17195             q
17196           }
17197           /^X\(\/\/\)[^/].*/{
17198             s//\1/
17199             q
17200           }
17201           /^X\(\/\/\)$/{
17202             s//\1/
17203             q
17204           }
17205           /^X\(\/\).*/{
17206             s//\1/
17207             q
17208           }
17209           s/.*/./; q'`/stamp-h$_am_stamp_count
17210  ;;
17211
17212   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17213 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17214  ;;
17215   esac
17216
17217
17218   case $ac_file$ac_mode in
17219     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17220   # Older Autoconf quotes --file arguments for eval, but not when files
17221   # are listed without --file.  Let's play safe and only enable the eval
17222   # if we detect the quoting.
17223   # TODO: see whether this extra hack can be removed once we start
17224   # requiring Autoconf 2.70 or later.
17225   case $CONFIG_FILES in #(
17226   *\'*) :
17227     eval set x "$CONFIG_FILES" ;; #(
17228   *) :
17229     set x $CONFIG_FILES ;; #(
17230   *) :
17231      ;;
17232 esac
17233   shift
17234   # Used to flag and report bootstrapping failures.
17235   am_rc=0
17236   for am_mf
17237   do
17238     # Strip MF so we end up with the name of the file.
17239     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17240     # Check whether this is an Automake generated Makefile which includes
17241     # dependency-tracking related rules and includes.
17242     # Grep'ing the whole file directly is not great: AIX grep has a line
17243     # limit of 2048, but all sed's we know have understand at least 4000.
17244     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17245       || continue
17246     am_dirpart=`$as_dirname -- "$am_mf" ||
17247 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17248          X"$am_mf" : 'X\(//\)[^/]' \| \
17249          X"$am_mf" : 'X\(//\)$' \| \
17250          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17251 printf "%s\n" X"$am_mf" |
17252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17253             s//\1/
17254             q
17255           }
17256           /^X\(\/\/\)[^/].*/{
17257             s//\1/
17258             q
17259           }
17260           /^X\(\/\/\)$/{
17261             s//\1/
17262             q
17263           }
17264           /^X\(\/\).*/{
17265             s//\1/
17266             q
17267           }
17268           s/.*/./; q'`
17269     am_filepart=`$as_basename -- "$am_mf" ||
17270 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17271          X"$am_mf" : 'X\(//\)$' \| \
17272          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17273 printf "%s\n" X/"$am_mf" |
17274     sed '/^.*\/\([^/][^/]*\)\/*$/{
17275             s//\1/
17276             q
17277           }
17278           /^X\/\(\/\/\)$/{
17279             s//\1/
17280             q
17281           }
17282           /^X\/\(\/\).*/{
17283             s//\1/
17284             q
17285           }
17286           s/.*/./; q'`
17287     { echo "$as_me:$LINENO: cd "$am_dirpart" \
17288       && sed -e '/# am--include-marker/d' "$am_filepart" \
17289         | $MAKE -f - am--depfiles" >&5
17290    (cd "$am_dirpart" \
17291       && sed -e '/# am--include-marker/d' "$am_filepart" \
17292         | $MAKE -f - am--depfiles) >&5 2>&5
17293    ac_status=$?
17294    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295    (exit $ac_status); } || am_rc=$?
17296   done
17297   if test $am_rc -ne 0; then
17298     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17299 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17300 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17301     for automatic dependency tracking.  If GNU make was not used, consider
17302     re-running the configure script with MAKE=\"gmake\" (or whatever is
17303     necessary).  You can also try re-running configure with the
17304     '--disable-dependency-tracking' option to at least be able to build
17305     the package (albeit without support for automatic dependency tracking).
17306 See \`config.log' for more details" "$LINENO" 5; }
17307   fi
17308   { am_dirpart=; unset am_dirpart;}
17309   { am_filepart=; unset am_filepart;}
17310   { am_mf=; unset am_mf;}
17311   { am_rc=; unset am_rc;}
17312   rm -f conftest-deps.mk
17313 }
17314  ;;
17315     "libtool":C)
17316
17317     # See if we are running on zsh, and set the options that allow our
17318     # commands through without removal of \ escapes.
17319     if test -n "${ZSH_VERSION+set}"; then
17320       setopt NO_GLOB_SUBST
17321     fi
17322
17323     cfgfile=${ofile}T
17324     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17325     $RM "$cfgfile"
17326
17327     cat <<_LT_EOF >> "$cfgfile"
17328 #! $SHELL
17329 # Generated automatically by $as_me ($PACKAGE) $VERSION
17330 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17331 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17332
17333 # Provide generalized library-building support services.
17334 # Written by Gordon Matzigkeit, 1996
17335
17336 # Copyright (C) 2014 Free Software Foundation, Inc.
17337 # This is free software; see the source for copying conditions.  There is NO
17338 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17339
17340 # GNU Libtool is free software; you can redistribute it and/or modify
17341 # it under the terms of the GNU General Public License as published by
17342 # the Free Software Foundation; either version 2 of of the License, or
17343 # (at your option) any later version.
17344 #
17345 # As a special exception to the GNU General Public License, if you
17346 # distribute this file as part of a program or library that is built
17347 # using GNU Libtool, you may include this file under the  same
17348 # distribution terms that you use for the rest of that program.
17349 #
17350 # GNU Libtool is distributed in the hope that it will be useful, but
17351 # WITHOUT ANY WARRANTY; without even the implied warranty of
17352 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17353 # GNU General Public License for more details.
17354 #
17355 # You should have received a copy of the GNU General Public License
17356 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17357
17358
17359 # The names of the tagged configurations supported by this script.
17360 available_tags=''
17361
17362 # Configured defaults for sys_lib_dlsearch_path munging.
17363 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17364
17365 # ### BEGIN LIBTOOL CONFIG
17366
17367 # Which release of libtool.m4 was used?
17368 macro_version=$macro_version
17369 macro_revision=$macro_revision
17370
17371 # Whether or not to build static libraries.
17372 build_old_libs=$enable_static
17373
17374 # What type of objects to build.
17375 pic_mode=$pic_mode
17376
17377 # Whether or not to build shared libraries.
17378 build_libtool_libs=$enable_shared
17379
17380 # Whether or not to optimize for fast installation.
17381 fast_install=$enable_fast_install
17382
17383 # Shared archive member basename,for filename based shared library versioning on AIX.
17384 shared_archive_member_spec=$shared_archive_member_spec
17385
17386 # Shell to use when invoking shell scripts.
17387 SHELL=$lt_SHELL
17388
17389 # An echo program that protects backslashes.
17390 ECHO=$lt_ECHO
17391
17392 # The PATH separator for the build system.
17393 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17394
17395 # The host system.
17396 host_alias=$host_alias
17397 host=$host
17398 host_os=$host_os
17399
17400 # The build system.
17401 build_alias=$build_alias
17402 build=$build
17403 build_os=$build_os
17404
17405 # A sed program that does not truncate output.
17406 SED=$lt_SED
17407
17408 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17409 Xsed="\$SED -e 1s/^X//"
17410
17411 # A grep program that handles long lines.
17412 GREP=$lt_GREP
17413
17414 # An ERE matcher.
17415 EGREP=$lt_EGREP
17416
17417 # A literal string matcher.
17418 FGREP=$lt_FGREP
17419
17420 # A BSD- or MS-compatible name lister.
17421 NM=$lt_NM
17422
17423 # Whether we need soft or hard links.
17424 LN_S=$lt_LN_S
17425
17426 # What is the maximum length of a command?
17427 max_cmd_len=$max_cmd_len
17428
17429 # Object file suffix (normally "o").
17430 objext=$ac_objext
17431
17432 # Executable file suffix (normally "").
17433 exeext=$exeext
17434
17435 # whether the shell understands "unset".
17436 lt_unset=$lt_unset
17437
17438 # turn spaces into newlines.
17439 SP2NL=$lt_lt_SP2NL
17440
17441 # turn newlines into spaces.
17442 NL2SP=$lt_lt_NL2SP
17443
17444 # convert \$build file names to \$host format.
17445 to_host_file_cmd=$lt_cv_to_host_file_cmd
17446
17447 # convert \$build files to toolchain format.
17448 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17449
17450 # An object symbol dumper.
17451 OBJDUMP=$lt_OBJDUMP
17452
17453 # Method to check whether dependent libraries are shared objects.
17454 deplibs_check_method=$lt_deplibs_check_method
17455
17456 # Command to use when deplibs_check_method = "file_magic".
17457 file_magic_cmd=$lt_file_magic_cmd
17458
17459 # How to find potential files when deplibs_check_method = "file_magic".
17460 file_magic_glob=$lt_file_magic_glob
17461
17462 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17463 want_nocaseglob=$lt_want_nocaseglob
17464
17465 # DLL creation program.
17466 DLLTOOL=$lt_DLLTOOL
17467
17468 # Command to associate shared and link libraries.
17469 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17470
17471 # The archiver.
17472 AR=$lt_AR
17473
17474 # Flags to create an archive.
17475 AR_FLAGS=$lt_AR_FLAGS
17476
17477 # How to feed a file listing to the archiver.
17478 archiver_list_spec=$lt_archiver_list_spec
17479
17480 # A symbol stripping program.
17481 STRIP=$lt_STRIP
17482
17483 # Commands used to install an old-style archive.
17484 RANLIB=$lt_RANLIB
17485 old_postinstall_cmds=$lt_old_postinstall_cmds
17486 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17487
17488 # Whether to use a lock for old archive extraction.
17489 lock_old_archive_extraction=$lock_old_archive_extraction
17490
17491 # A C compiler.
17492 LTCC=$lt_CC
17493
17494 # LTCC compiler flags.
17495 LTCFLAGS=$lt_CFLAGS
17496
17497 # Take the output of nm and produce a listing of raw symbols and C names.
17498 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17499
17500 # Transform the output of nm in a proper C declaration.
17501 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17502
17503 # Transform the output of nm into a list of symbols to manually relocate.
17504 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17505
17506 # Transform the output of nm in a C name address pair.
17507 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17508
17509 # Transform the output of nm in a C name address pair when lib prefix is needed.
17510 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17511
17512 # The name lister interface.
17513 nm_interface=$lt_lt_cv_nm_interface
17514
17515 # Specify filename containing input files for \$NM.
17516 nm_file_list_spec=$lt_nm_file_list_spec
17517
17518 # The root where to search for dependent libraries,and where our libraries should be installed.
17519 lt_sysroot=$lt_sysroot
17520
17521 # Command to truncate a binary pipe.
17522 lt_truncate_bin=$lt_lt_cv_truncate_bin
17523
17524 # The name of the directory that contains temporary libtool files.
17525 objdir=$objdir
17526
17527 # Used to examine libraries when file_magic_cmd begins with "file".
17528 MAGIC_CMD=$MAGIC_CMD
17529
17530 # Must we lock files when doing compilation?
17531 need_locks=$lt_need_locks
17532
17533 # Manifest tool.
17534 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17535
17536 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17537 DSYMUTIL=$lt_DSYMUTIL
17538
17539 # Tool to change global to local symbols on Mac OS X.
17540 NMEDIT=$lt_NMEDIT
17541
17542 # Tool to manipulate fat objects and archives on Mac OS X.
17543 LIPO=$lt_LIPO
17544
17545 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17546 OTOOL=$lt_OTOOL
17547
17548 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17549 OTOOL64=$lt_OTOOL64
17550
17551 # Old archive suffix (normally "a").
17552 libext=$libext
17553
17554 # Shared library suffix (normally ".so").
17555 shrext_cmds=$lt_shrext_cmds
17556
17557 # The commands to extract the exported symbol list from a shared archive.
17558 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17559
17560 # Variables whose values should be saved in libtool wrapper scripts and
17561 # restored at link time.
17562 variables_saved_for_relink=$lt_variables_saved_for_relink
17563
17564 # Do we need the "lib" prefix for modules?
17565 need_lib_prefix=$need_lib_prefix
17566
17567 # Do we need a version for libraries?
17568 need_version=$need_version
17569
17570 # Library versioning type.
17571 version_type=$version_type
17572
17573 # Shared library runtime path variable.
17574 runpath_var=$runpath_var
17575
17576 # Shared library path variable.
17577 shlibpath_var=$shlibpath_var
17578
17579 # Is shlibpath searched before the hard-coded library search path?
17580 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17581
17582 # Format of library name prefix.
17583 libname_spec=$lt_libname_spec
17584
17585 # List of archive names.  First name is the real one, the rest are links.
17586 # The last name is the one that the linker finds with -lNAME
17587 library_names_spec=$lt_library_names_spec
17588
17589 # The coded name of the library, if different from the real name.
17590 soname_spec=$lt_soname_spec
17591
17592 # Permission mode override for installation of shared libraries.
17593 install_override_mode=$lt_install_override_mode
17594
17595 # Command to use after installation of a shared archive.
17596 postinstall_cmds=$lt_postinstall_cmds
17597
17598 # Command to use after uninstallation of a shared archive.
17599 postuninstall_cmds=$lt_postuninstall_cmds
17600
17601 # Commands used to finish a libtool library installation in a directory.
17602 finish_cmds=$lt_finish_cmds
17603
17604 # As "finish_cmds", except a single script fragment to be evaled but
17605 # not shown.
17606 finish_eval=$lt_finish_eval
17607
17608 # Whether we should hardcode library paths into libraries.
17609 hardcode_into_libs=$hardcode_into_libs
17610
17611 # Compile-time system search path for libraries.
17612 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17613
17614 # Detected run-time system search path for libraries.
17615 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17616
17617 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17618 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17619
17620 # Whether dlopen is supported.
17621 dlopen_support=$enable_dlopen
17622
17623 # Whether dlopen of programs is supported.
17624 dlopen_self=$enable_dlopen_self
17625
17626 # Whether dlopen of statically linked programs is supported.
17627 dlopen_self_static=$enable_dlopen_self_static
17628
17629 # Commands to strip libraries.
17630 old_striplib=$lt_old_striplib
17631 striplib=$lt_striplib
17632
17633
17634 # The linker used to build libraries.
17635 LD=$lt_LD
17636
17637 # How to create reloadable object files.
17638 reload_flag=$lt_reload_flag
17639 reload_cmds=$lt_reload_cmds
17640
17641 # Commands used to build an old-style archive.
17642 old_archive_cmds=$lt_old_archive_cmds
17643
17644 # A language specific compiler.
17645 CC=$lt_compiler
17646
17647 # Is the compiler the GNU compiler?
17648 with_gcc=$GCC
17649
17650 # Compiler flag to turn off builtin functions.
17651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17652
17653 # Additional compiler flags for building library objects.
17654 pic_flag=$lt_lt_prog_compiler_pic
17655
17656 # How to pass a linker flag through the compiler.
17657 wl=$lt_lt_prog_compiler_wl
17658
17659 # Compiler flag to prevent dynamic linking.
17660 link_static_flag=$lt_lt_prog_compiler_static
17661
17662 # Does compiler simultaneously support -c and -o options?
17663 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17664
17665 # Whether or not to add -lc for building shared libraries.
17666 build_libtool_need_lc=$archive_cmds_need_lc
17667
17668 # Whether or not to disallow shared libs when runtime libs are static.
17669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17670
17671 # Compiler flag to allow reflexive dlopens.
17672 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17673
17674 # Compiler flag to generate shared objects directly from archives.
17675 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17676
17677 # Whether the compiler copes with passing no objects directly.
17678 compiler_needs_object=$lt_compiler_needs_object
17679
17680 # Create an old-style archive from a shared archive.
17681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17682
17683 # Create a temporary old-style archive to link instead of a shared archive.
17684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17685
17686 # Commands used to build a shared archive.
17687 archive_cmds=$lt_archive_cmds
17688 archive_expsym_cmds=$lt_archive_expsym_cmds
17689
17690 # Commands used to build a loadable module if different from building
17691 # a shared archive.
17692 module_cmds=$lt_module_cmds
17693 module_expsym_cmds=$lt_module_expsym_cmds
17694
17695 # Whether we are building with GNU ld or not.
17696 with_gnu_ld=$lt_with_gnu_ld
17697
17698 # Flag that allows shared libraries with undefined symbols to be built.
17699 allow_undefined_flag=$lt_allow_undefined_flag
17700
17701 # Flag that enforces no undefined symbols.
17702 no_undefined_flag=$lt_no_undefined_flag
17703
17704 # Flag to hardcode \$libdir into a binary during linking.
17705 # This must work even if \$libdir does not exist
17706 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17707
17708 # Whether we need a single "-rpath" flag with a separated argument.
17709 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17710
17711 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17712 # DIR into the resulting binary.
17713 hardcode_direct=$hardcode_direct
17714
17715 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17716 # DIR into the resulting binary and the resulting library dependency is
17717 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17718 # library is relocated.
17719 hardcode_direct_absolute=$hardcode_direct_absolute
17720
17721 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17722 # into the resulting binary.
17723 hardcode_minus_L=$hardcode_minus_L
17724
17725 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17726 # into the resulting binary.
17727 hardcode_shlibpath_var=$hardcode_shlibpath_var
17728
17729 # Set to "yes" if building a shared library automatically hardcodes DIR
17730 # into the library and all subsequent libraries and executables linked
17731 # against it.
17732 hardcode_automatic=$hardcode_automatic
17733
17734 # Set to yes if linker adds runtime paths of dependent libraries
17735 # to runtime path list.
17736 inherit_rpath=$inherit_rpath
17737
17738 # Whether libtool must link a program against all its dependency libraries.
17739 link_all_deplibs=$link_all_deplibs
17740
17741 # Set to "yes" if exported symbols are required.
17742 always_export_symbols=$always_export_symbols
17743
17744 # The commands to list exported symbols.
17745 export_symbols_cmds=$lt_export_symbols_cmds
17746
17747 # Symbols that should not be listed in the preloaded symbols.
17748 exclude_expsyms=$lt_exclude_expsyms
17749
17750 # Symbols that must always be exported.
17751 include_expsyms=$lt_include_expsyms
17752
17753 # Commands necessary for linking programs (against libraries) with templates.
17754 prelink_cmds=$lt_prelink_cmds
17755
17756 # Commands necessary for finishing linking programs.
17757 postlink_cmds=$lt_postlink_cmds
17758
17759 # Specify filename containing input files.
17760 file_list_spec=$lt_file_list_spec
17761
17762 # How to hardcode a shared library path into an executable.
17763 hardcode_action=$hardcode_action
17764
17765 # ### END LIBTOOL CONFIG
17766
17767 _LT_EOF
17768
17769     cat <<'_LT_EOF' >> "$cfgfile"
17770
17771 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17772
17773 # func_munge_path_list VARIABLE PATH
17774 # -----------------------------------
17775 # VARIABLE is name of variable containing _space_ separated list of
17776 # directories to be munged by the contents of PATH, which is string
17777 # having a format:
17778 # "DIR[:DIR]:"
17779 #       string "DIR[ DIR]" will be prepended to VARIABLE
17780 # ":DIR[:DIR]"
17781 #       string "DIR[ DIR]" will be appended to VARIABLE
17782 # "DIRP[:DIRP]::[DIRA:]DIRA"
17783 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17784 #       "DIRA[ DIRA]" will be appended to VARIABLE
17785 # "DIR[:DIR]"
17786 #       VARIABLE will be replaced by "DIR[ DIR]"
17787 func_munge_path_list ()
17788 {
17789     case x$2 in
17790     x)
17791         ;;
17792     *:)
17793         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17794         ;;
17795     x:*)
17796         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17797         ;;
17798     *::*)
17799         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17800         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17801         ;;
17802     *)
17803         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17804         ;;
17805     esac
17806 }
17807
17808
17809 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17810 func_cc_basename ()
17811 {
17812     for cc_temp in $*""; do
17813       case $cc_temp in
17814         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17815         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17816         \-*) ;;
17817         *) break;;
17818       esac
17819     done
17820     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17821 }
17822
17823
17824 # ### END FUNCTIONS SHARED WITH CONFIGURE
17825
17826 _LT_EOF
17827
17828   case $host_os in
17829   aix3*)
17830     cat <<\_LT_EOF >> "$cfgfile"
17831 # AIX sometimes has problems with the GCC collect2 program.  For some
17832 # reason, if we set the COLLECT_NAMES environment variable, the problems
17833 # vanish in a puff of smoke.
17834 if test set != "${COLLECT_NAMES+set}"; then
17835   COLLECT_NAMES=
17836   export COLLECT_NAMES
17837 fi
17838 _LT_EOF
17839     ;;
17840   esac
17841
17842
17843
17844 ltmain=$ac_aux_dir/ltmain.sh
17845
17846
17847   # We use sed instead of cat because bash on DJGPP gets confused if
17848   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17849   # text mode, it properly converts lines to CR/LF.  This bash problem
17850   # is reportedly fixed, but why not run on old versions too?
17851   sed '$q' "$ltmain" >> "$cfgfile" \
17852      || (rm -f "$cfgfile"; exit 1)
17853
17854    mv -f "$cfgfile" "$ofile" ||
17855     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17856   chmod +x "$ofile"
17857
17858  ;;
17859
17860   esac
17861 done # for ac_tag
17862
17863
17864 as_fn_exit 0
17865 _ACEOF
17866 ac_clean_files=$ac_clean_files_save
17867
17868 test $ac_write_fail = 0 ||
17869   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17870
17871
17872 # configure is writing to config.log, and then calls config.status.
17873 # config.status does its own redirection, appending to config.log.
17874 # Unfortunately, on DOS this fails, as config.log is still kept open
17875 # by configure, so config.status won't be able to write to it; its
17876 # output is simply discarded.  So we exec the FD to /dev/null,
17877 # effectively closing config.log, so it can be properly (re)opened and
17878 # appended to by config.status.  When coming back to configure, we
17879 # need to make the FD available again.
17880 if test "$no_create" != yes; then
17881   ac_cs_success=:
17882   ac_config_status_args=
17883   test "$silent" = yes &&
17884     ac_config_status_args="$ac_config_status_args --quiet"
17885   exec 5>/dev/null
17886   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17887   exec 5>>config.log
17888   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17889   # would make configure fail if this is the last instruction.
17890   $ac_cs_success || as_fn_exit 1
17891 fi
17892 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17893   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17894 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17895 fi
17896
17897